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.
Files changed (288) hide show
  1. package/README.md +10 -4
  2. package/icons.json +1846 -150
  3. package/index.d.ts +71 -4
  4. package/index.js +8 -7
  5. package/package.json +3 -3
  6. package/sprite.svg +66 -0
  7. package/svg/alloco.svg +1 -0
  8. package/svg/ananastranche.svg +1 -0
  9. package/svg/arachidedecortiquee.svg +1 -0
  10. package/svg/avocatcoupe.svg +1 -0
  11. package/svg/cacaoouvert.svg +1 -0
  12. package/svg/calebassepleine.svg +1 -0
  13. package/svg/cocoouverte.svg +1 -0
  14. package/svg/drapeau-afrique-du-sud.svg +1 -0
  15. package/svg/drapeau-algerie.svg +1 -0
  16. package/svg/drapeau-angola.svg +1 -0
  17. package/svg/drapeau-benin.svg +1 -0
  18. package/svg/drapeau-botswana.svg +1 -0
  19. package/svg/drapeau-burkina-faso.svg +1 -0
  20. package/svg/drapeau-burundi.svg +1 -0
  21. package/svg/drapeau-cameroun.svg +1 -0
  22. package/svg/drapeau-cap-vert.svg +1 -0
  23. package/svg/drapeau-centrafrique.svg +1 -0
  24. package/svg/drapeau-comores.svg +1 -0
  25. package/svg/drapeau-congo.svg +1 -0
  26. package/svg/drapeau-cote-d-ivoire.svg +1 -0
  27. package/svg/drapeau-djibouti.svg +1 -0
  28. package/svg/drapeau-egypte.svg +1 -0
  29. package/svg/drapeau-erythree.svg +1 -0
  30. package/svg/drapeau-eswatini.svg +1 -0
  31. package/svg/drapeau-ethiopie.svg +1 -0
  32. package/svg/drapeau-gabon.svg +1 -0
  33. package/svg/drapeau-gambie.svg +1 -0
  34. package/svg/drapeau-ghana.svg +1 -0
  35. package/svg/drapeau-guinee-bissau.svg +1 -0
  36. package/svg/drapeau-guinee-equatoriale.svg +1 -0
  37. package/svg/drapeau-guinee.svg +1 -0
  38. package/svg/drapeau-kenya.svg +1 -0
  39. package/svg/drapeau-lesotho.svg +1 -0
  40. package/svg/drapeau-liberia.svg +1 -0
  41. package/svg/drapeau-libye.svg +1 -0
  42. package/svg/drapeau-madagascar.svg +1 -0
  43. package/svg/drapeau-malawi.svg +1 -0
  44. package/svg/drapeau-mali.svg +1 -0
  45. package/svg/drapeau-maroc.svg +1 -0
  46. package/svg/drapeau-maurice.svg +1 -0
  47. package/svg/drapeau-mauritanie.svg +1 -0
  48. package/svg/drapeau-mozambique.svg +1 -0
  49. package/svg/drapeau-namibie.svg +1 -0
  50. package/svg/drapeau-niger.svg +1 -0
  51. package/svg/drapeau-nigeria.svg +1 -0
  52. package/svg/drapeau-ouganda.svg +1 -0
  53. package/svg/drapeau-rd-congo.svg +1 -0
  54. package/svg/drapeau-rwanda.svg +1 -0
  55. package/svg/drapeau-sao-tome-et-principe.svg +1 -0
  56. package/svg/drapeau-senegal.svg +1 -0
  57. package/svg/drapeau-seychelles.svg +1 -0
  58. package/svg/drapeau-sierra-leone.svg +1 -0
  59. package/svg/drapeau-somalie.svg +1 -0
  60. package/svg/drapeau-soudan-du-sud.svg +1 -0
  61. package/svg/drapeau-soudan.svg +1 -0
  62. package/svg/drapeau-tanzanie.svg +1 -0
  63. package/svg/drapeau-tchad.svg +1 -0
  64. package/svg/drapeau-togo.svg +1 -0
  65. package/svg/drapeau-tunisie.svg +1 -0
  66. package/svg/drapeau-zambie.svg +1 -0
  67. package/svg/drapeau-zimbabwe.svg +1 -0
  68. package/svg/fill/acacia.svg +1 -0
  69. package/svg/fill/adinkrahene.svg +1 -0
  70. package/svg/fill/afrique.svg +1 -0
  71. package/svg/fill/agama.svg +1 -0
  72. package/svg/fill/alloco.svg +1 -0
  73. package/svg/fill/ananas.svg +1 -0
  74. package/svg/fill/ananastranche.svg +1 -0
  75. package/svg/fill/ankh.svg +1 -0
  76. package/svg/fill/arachide.svg +1 -0
  77. package/svg/fill/arachidedecortiquee.svg +1 -0
  78. package/svg/fill/ardoise.svg +1 -0
  79. package/svg/fill/autruche.svg +1 -0
  80. package/svg/fill/avocat.svg +1 -0
  81. package/svg/fill/avocatcoupe.svg +1 -0
  82. package/svg/fill/awale.svg +1 -0
  83. package/svg/fill/balafon.svg +1 -0
  84. package/svg/fill/ballon.svg +1 -0
  85. package/svg/fill/bamileke.svg +1 -0
  86. package/svg/fill/baobab.svg +1 -0
  87. package/svg/fill/beignets.svg +1 -0
  88. package/svg/fill/bissap.svg +1 -0
  89. package/svg/fill/bogolan.svg +1 -0
  90. package/svg/fill/boubou.svg +1 -0
  91. package/svg/fill/boutique.svg +1 -0
  92. package/svg/fill/brochettes.svg +1 -0
  93. package/svg/fill/cacao.svg +1 -0
  94. package/svg/fill/cacaoouvert.svg +1 -0
  95. package/svg/fill/calao.svg +1 -0
  96. package/svg/fill/calebasse.svg +1 -0
  97. package/svg/fill/calebassepleine.svg +1 -0
  98. package/svg/fill/cameleon.svg +1 -0
  99. package/svg/fill/cascade.svg +1 -0
  100. package/svg/fill/case.svg +1 -0
  101. package/svg/fill/cauri.svg +1 -0
  102. package/svg/fill/chevre.svg +1 -0
  103. package/svg/fill/coco.svg +1 -0
  104. package/svg/fill/cocoouverte.svg +1 -0
  105. package/svg/fill/collierperles.svg +1 -0
  106. package/svg/fill/couturier.svg +1 -0
  107. package/svg/fill/crocodile.svg +1 -0
  108. package/svg/fill/croixagadez.svg +1 -0
  109. package/svg/fill/djembe.svg +1 -0
  110. package/svg/fill/djenne.svg +1 -0
  111. package/svg/fill/drapeau-afrique-du-sud.svg +1 -0
  112. package/svg/fill/drapeau-algerie.svg +1 -0
  113. package/svg/fill/drapeau-angola.svg +1 -0
  114. package/svg/fill/drapeau-benin.svg +1 -0
  115. package/svg/fill/drapeau-botswana.svg +1 -0
  116. package/svg/fill/drapeau-burkina-faso.svg +1 -0
  117. package/svg/fill/drapeau-burundi.svg +1 -0
  118. package/svg/fill/drapeau-cameroun.svg +1 -0
  119. package/svg/fill/drapeau-cap-vert.svg +1 -0
  120. package/svg/fill/drapeau-centrafrique.svg +1 -0
  121. package/svg/fill/drapeau-comores.svg +1 -0
  122. package/svg/fill/drapeau-congo.svg +1 -0
  123. package/svg/fill/drapeau-cote-d-ivoire.svg +1 -0
  124. package/svg/fill/drapeau-djibouti.svg +1 -0
  125. package/svg/fill/drapeau-egypte.svg +1 -0
  126. package/svg/fill/drapeau-erythree.svg +1 -0
  127. package/svg/fill/drapeau-eswatini.svg +1 -0
  128. package/svg/fill/drapeau-ethiopie.svg +1 -0
  129. package/svg/fill/drapeau-gabon.svg +1 -0
  130. package/svg/fill/drapeau-gambie.svg +1 -0
  131. package/svg/fill/drapeau-ghana.svg +1 -0
  132. package/svg/fill/drapeau-guinee-bissau.svg +1 -0
  133. package/svg/fill/drapeau-guinee-equatoriale.svg +1 -0
  134. package/svg/fill/drapeau-guinee.svg +1 -0
  135. package/svg/fill/drapeau-kenya.svg +1 -0
  136. package/svg/fill/drapeau-lesotho.svg +1 -0
  137. package/svg/fill/drapeau-liberia.svg +1 -0
  138. package/svg/fill/drapeau-libye.svg +1 -0
  139. package/svg/fill/drapeau-madagascar.svg +1 -0
  140. package/svg/fill/drapeau-malawi.svg +1 -0
  141. package/svg/fill/drapeau-mali.svg +1 -0
  142. package/svg/fill/drapeau-maroc.svg +1 -0
  143. package/svg/fill/drapeau-maurice.svg +1 -0
  144. package/svg/fill/drapeau-mauritanie.svg +1 -0
  145. package/svg/fill/drapeau-mozambique.svg +1 -0
  146. package/svg/fill/drapeau-namibie.svg +1 -0
  147. package/svg/fill/drapeau-niger.svg +1 -0
  148. package/svg/fill/drapeau-nigeria.svg +1 -0
  149. package/svg/fill/drapeau-ouganda.svg +1 -0
  150. package/svg/fill/drapeau-rd-congo.svg +1 -0
  151. package/svg/fill/drapeau-rwanda.svg +1 -0
  152. package/svg/fill/drapeau-sao-tome-et-principe.svg +1 -0
  153. package/svg/fill/drapeau-senegal.svg +1 -0
  154. package/svg/fill/drapeau-seychelles.svg +1 -0
  155. package/svg/fill/drapeau-sierra-leone.svg +1 -0
  156. package/svg/fill/drapeau-somalie.svg +1 -0
  157. package/svg/fill/drapeau-soudan-du-sud.svg +1 -0
  158. package/svg/fill/drapeau-soudan.svg +1 -0
  159. package/svg/fill/drapeau-tanzanie.svg +1 -0
  160. package/svg/fill/drapeau-tchad.svg +1 -0
  161. package/svg/fill/drapeau-togo.svg +1 -0
  162. package/svg/fill/drapeau-tunisie.svg +1 -0
  163. package/svg/fill/drapeau-zambie.svg +1 -0
  164. package/svg/fill/drapeau-zimbabwe.svg +1 -0
  165. package/svg/fill/dromadaire.svg +1 -0
  166. package/svg/fill/dunes.svg +1 -0
  167. package/svg/fill/dwennimmen.svg +1 -0
  168. package/svg/fill/eban.svg +1 -0
  169. package/svg/fill/elephant.svg +1 -0
  170. package/svg/fill/epimil.svg +1 -0
  171. package/svg/fill/etal.svg +1 -0
  172. package/svg/fill/euphorbe.svg +1 -0
  173. package/svg/fill/eventail.svg +1 -0
  174. package/svg/fill/fercharbon.svg +1 -0
  175. package/svg/fill/feuillebananier.svg +1 -0
  176. package/svg/fill/filet.svg +1 -0
  177. package/svg/fill/fleuve.svg +1 -0
  178. package/svg/fill/flute.svg +1 -0
  179. package/svg/fill/foufou.svg +1 -0
  180. package/svg/fill/gazelle.svg +1 -0
  181. package/svg/fill/gele.svg +1 -0
  182. package/svg/fill/ghanamustgo.svg +1 -0
  183. package/svg/fill/girafe.svg +1 -0
  184. package/svg/fill/gombo.svg +1 -0
  185. package/svg/fill/gorille.svg +1 -0
  186. package/svg/fill/grenier.svg +1 -0
  187. package/svg/fill/grill.svg +1 -0
  188. package/svg/fill/guitare.svg +1 -0
  189. package/svg/fill/harmattan.svg +1 -0
  190. package/svg/fill/hippopotame.svg +1 -0
  191. package/svg/fill/houe.svg +1 -0
  192. package/svg/fill/igname.svg +1 -0
  193. package/svg/fill/ignamecoupee.svg +1 -0
  194. package/svg/fill/jebena.svg +1 -0
  195. package/svg/fill/jerrycan.svg +1 -0
  196. package/svg/fill/kanaga.svg +1 -0
  197. package/svg/fill/keke.svg +1 -0
  198. package/svg/fill/kente.svg +1 -0
  199. package/svg/fill/khamsa.svg +1 -0
  200. package/svg/fill/kilimandjaro.svg +1 -0
  201. package/svg/fill/kola.svg +1 -0
  202. package/svg/fill/kolaouverte.svg +1 -0
  203. package/svg/fill/kora.svg +1 -0
  204. package/svg/fill/ksar.svg +1 -0
  205. package/svg/fill/lalibela.svg +1 -0
  206. package/svg/fill/lampe.svg +1 -0
  207. package/svg/fill/lion.svg +1 -0
  208. package/svg/fill/luneetoiles.svg +1 -0
  209. package/svg/fill/machette.svg +1 -0
  210. package/svg/fill/mangue.svg +1 -0
  211. package/svg/fill/mangueherisson.svg +1 -0
  212. package/svg/fill/manioc.svg +1 -0
  213. package/svg/fill/marmite.svg +1 -0
  214. package/svg/fill/marmitecouverte.svg +1 -0
  215. package/svg/fill/masque.svg +1 -0
  216. package/svg/fill/minaret.svg +1 -0
  217. package/svg/fill/mobilemoney.svg +1 -0
  218. package/svg/fill/mototaxi.svg +1 -0
  219. package/svg/fill/moustiquaire.svg +1 -0
  220. package/svg/fill/moustique.svg +1 -0
  221. package/svg/fill/mpatapo.svg +1 -0
  222. package/svg/fill/musgum.svg +1 -0
  223. package/svg/fill/natte.svg +1 -0
  224. package/svg/fill/ndebele.svg +1 -0
  225. package/svg/fill/ngongi.svg +1 -0
  226. package/svg/fill/ngoni.svg +1 -0
  227. package/svg/fill/nkyinkyim.svg +1 -0
  228. package/svg/fill/noixpalme.svg +1 -0
  229. package/svg/fill/nsoromma.svg +1 -0
  230. package/svg/fill/oasis.svg +1 -0
  231. package/svg/fill/okapi.svg +1 -0
  232. package/svg/fill/palmier.svg +1 -0
  233. package/svg/fill/pangolin.svg +1 -0
  234. package/svg/fill/panier.svg +1 -0
  235. package/svg/fill/panneausolaire.svg +1 -0
  236. package/svg/fill/peigneafro.svg +1 -0
  237. package/svg/fill/perroquet.svg +1 -0
  238. package/svg/fill/pilon.svg +1 -0
  239. package/svg/fill/piment.svg +1 -0
  240. package/svg/fill/pirogue.svg +1 -0
  241. package/svg/fill/plantain.svg +1 -0
  242. package/svg/fill/plantainepluche.svg +1 -0
  243. package/svg/fill/pluie.svg +1 -0
  244. package/svg/fill/poisson.svg +1 -0
  245. package/svg/fill/portebebe.svg +1 -0
  246. package/svg/fill/porteuse.svg +1 -0
  247. package/svg/fill/poterie.svg +1 -0
  248. package/svg/fill/poulet.svg +1 -0
  249. package/svg/fill/poussepousse.svg +1 -0
  250. package/svg/fill/puits.svg +1 -0
  251. package/svg/fill/pyramides.svg +1 -0
  252. package/svg/fill/radio.svg +1 -0
  253. package/svg/fill/rhinoceros.svg +1 -0
  254. package/svg/fill/riad.svg +1 -0
  255. package/svg/fill/safou.svg +1 -0
  256. package/svg/fill/sandales.svg +1 -0
  257. package/svg/fill/sankofa.svg +1 -0
  258. package/svg/fill/sanza.svg +1 -0
  259. package/svg/fill/savane.svg +1 -0
  260. package/svg/fill/scarabee.svg +1 -0
  261. package/svg/fill/sechecheveux.svg +1 -0
  262. package/svg/fill/shekere.svg +1 -0
  263. package/svg/fill/statuette.svg +1 -0
  264. package/svg/fill/tabouret.svg +1 -0
  265. package/svg/fill/tajine.svg +1 -0
  266. package/svg/fill/tamaparleur.svg +1 -0
  267. package/svg/fill/tatasomba.svg +1 -0
  268. package/svg/fill/taxibrousse.svg +1 -0
  269. package/svg/fill/termitiere.svg +1 -0
  270. package/svg/fill/theiere.svg +1 -0
  271. package/svg/fill/toghu.svg +1 -0
  272. package/svg/fill/tondeuse.svg +1 -0
  273. package/svg/fill/tontine.svg +1 -0
  274. package/svg/fill/tortue.svg +1 -0
  275. package/svg/fill/tresses.svg +1 -0
  276. package/svg/fill/ville.svg +1 -0
  277. package/svg/fill/vindepalme.svg +1 -0
  278. package/svg/fill/volcan.svg +1 -0
  279. package/svg/fill/vuvuzela.svg +1 -0
  280. package/svg/fill/wax.svg +1 -0
  281. package/svg/fill/zebre.svg +1 -0
  282. package/svg/fill/zebu.svg +1 -0
  283. package/svg/fill/zimbabwe.svg +1 -0
  284. package/svg/ignamecoupee.svg +1 -0
  285. package/svg/kolaouverte.svg +1 -0
  286. package/svg/mangueherisson.svg +1 -0
  287. package/svg/marmitecouverte.svg +1 -0
  288. 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
- export type AfroiconCategory = "nature" | "faune" | "musique" | "symboles" | "cuisine" | "vie" | "architecture";
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 interface ToSvgOptions { size?: number | string; color?: string; strokeWidth?: number | string; className?: string; }
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 };