rn-iconify 1.0.0 → 2.0.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 (657) hide show
  1. package/README.md +47 -235
  2. package/babel.js +14 -0
  3. package/lib/commonjs/IconRenderer.js +91 -4
  4. package/lib/commonjs/IconRenderer.js.map +1 -1
  5. package/lib/commonjs/accessibility/AccessibilityProvider.js +189 -0
  6. package/lib/commonjs/accessibility/AccessibilityProvider.js.map +1 -0
  7. package/lib/commonjs/accessibility/index.js +87 -0
  8. package/lib/commonjs/accessibility/index.js.map +1 -0
  9. package/lib/commonjs/accessibility/types.js +6 -0
  10. package/lib/commonjs/accessibility/types.js.map +1 -0
  11. package/lib/commonjs/accessibility/useAccessibleIcon.js +119 -0
  12. package/lib/commonjs/accessibility/useAccessibleIcon.js.map +1 -0
  13. package/lib/commonjs/accessibility/utils.js +231 -0
  14. package/lib/commonjs/accessibility/utils.js.map +1 -0
  15. package/lib/commonjs/alias/Icon.js +113 -0
  16. package/lib/commonjs/alias/Icon.js.map +1 -0
  17. package/lib/commonjs/alias/IconAliasContext.js +177 -0
  18. package/lib/commonjs/alias/IconAliasContext.js.map +1 -0
  19. package/lib/commonjs/alias/createIconAliases.js +222 -0
  20. package/lib/commonjs/alias/createIconAliases.js.map +1 -0
  21. package/lib/commonjs/alias/index.js +57 -0
  22. package/lib/commonjs/alias/index.js.map +1 -0
  23. package/lib/commonjs/alias/types.js +6 -0
  24. package/lib/commonjs/alias/types.js.map +1 -0
  25. package/lib/commonjs/animated/AnimatedIcon.js +116 -0
  26. package/lib/commonjs/animated/AnimatedIcon.js.map +1 -0
  27. package/lib/commonjs/animated/index.js +76 -0
  28. package/lib/commonjs/animated/index.js.map +1 -0
  29. package/lib/commonjs/animated/presets.js +220 -0
  30. package/lib/commonjs/animated/presets.js.map +1 -0
  31. package/lib/commonjs/animated/types.js +71 -0
  32. package/lib/commonjs/animated/types.js.map +1 -0
  33. package/lib/commonjs/animated/useIconAnimation.js +313 -0
  34. package/lib/commonjs/animated/useIconAnimation.js.map +1 -0
  35. package/lib/commonjs/babel/ast-utils.js +214 -0
  36. package/lib/commonjs/babel/ast-utils.js.map +1 -0
  37. package/lib/commonjs/babel/cache-writer.js +281 -0
  38. package/lib/commonjs/babel/cache-writer.js.map +1 -0
  39. package/lib/commonjs/babel/collector.js +219 -0
  40. package/lib/commonjs/babel/collector.js.map +1 -0
  41. package/lib/commonjs/babel/index.js +104 -0
  42. package/lib/commonjs/babel/index.js.map +1 -0
  43. package/lib/commonjs/babel/plugin.js +226 -0
  44. package/lib/commonjs/babel/plugin.js.map +1 -0
  45. package/lib/commonjs/babel/types.js +485 -0
  46. package/lib/commonjs/babel/types.js.map +1 -0
  47. package/lib/commonjs/bundle/index.js +213 -0
  48. package/lib/commonjs/bundle/index.js.map +1 -0
  49. package/lib/commonjs/cache/CacheManager.js +105 -6
  50. package/lib/commonjs/cache/CacheManager.js.map +1 -1
  51. package/lib/commonjs/cli/commands/analyze.js +171 -0
  52. package/lib/commonjs/cli/commands/analyze.js.map +1 -0
  53. package/lib/commonjs/cli/commands/bundle.js +214 -0
  54. package/lib/commonjs/cli/commands/bundle.js.map +1 -0
  55. package/lib/commonjs/cli/index.js +142 -0
  56. package/lib/commonjs/cli/index.js.map +1 -0
  57. package/lib/commonjs/cli/parser.js +260 -0
  58. package/lib/commonjs/cli/parser.js.map +1 -0
  59. package/lib/commonjs/cli/types.js +42 -0
  60. package/lib/commonjs/cli/types.js.map +1 -0
  61. package/lib/commonjs/config/ConfigManager.js +182 -0
  62. package/lib/commonjs/config/ConfigManager.js.map +1 -0
  63. package/lib/commonjs/config/index.js +44 -0
  64. package/lib/commonjs/config/index.js.map +1 -0
  65. package/lib/commonjs/config/types.js +55 -0
  66. package/lib/commonjs/config/types.js.map +1 -0
  67. package/lib/commonjs/createIconSet.js +49 -11
  68. package/lib/commonjs/createIconSet.js.map +1 -1
  69. package/lib/commonjs/explorer/IconExplorer.js +827 -0
  70. package/lib/commonjs/explorer/IconExplorer.js.map +1 -0
  71. package/lib/commonjs/explorer/iconSets.js +303 -0
  72. package/lib/commonjs/explorer/iconSets.js.map +1 -0
  73. package/lib/commonjs/explorer/index.js +93 -0
  74. package/lib/commonjs/explorer/index.js.map +1 -0
  75. package/lib/commonjs/explorer/types.js +6 -0
  76. package/lib/commonjs/explorer/types.js.map +1 -0
  77. package/lib/commonjs/explorer/useExplorer.js +359 -0
  78. package/lib/commonjs/explorer/useExplorer.js.map +1 -0
  79. package/lib/commonjs/index.js +618 -12
  80. package/lib/commonjs/index.js.map +1 -1
  81. package/lib/commonjs/navigation/createDrawerIcon.js +129 -0
  82. package/lib/commonjs/navigation/createDrawerIcon.js.map +1 -0
  83. package/lib/commonjs/navigation/createHeaderIcon.js +185 -0
  84. package/lib/commonjs/navigation/createHeaderIcon.js.map +1 -0
  85. package/lib/commonjs/navigation/createTabBarIcon.js +178 -0
  86. package/lib/commonjs/navigation/createTabBarIcon.js.map +1 -0
  87. package/lib/commonjs/navigation/index.js +83 -0
  88. package/lib/commonjs/navigation/index.js.map +1 -0
  89. package/lib/commonjs/navigation/types.js +94 -0
  90. package/lib/commonjs/navigation/types.js.map +1 -0
  91. package/lib/commonjs/navigation/useNavigationIcon.js +128 -0
  92. package/lib/commonjs/navigation/useNavigationIcon.js.map +1 -0
  93. package/lib/commonjs/network/IconifyAPI.js +154 -14
  94. package/lib/commonjs/network/IconifyAPI.js.map +1 -1
  95. package/lib/commonjs/network/index.js +18 -0
  96. package/lib/commonjs/network/index.js.map +1 -1
  97. package/lib/commonjs/performance/PerformanceMonitor.js +327 -0
  98. package/lib/commonjs/performance/PerformanceMonitor.js.map +1 -0
  99. package/lib/commonjs/performance/index.js +43 -0
  100. package/lib/commonjs/performance/index.js.map +1 -0
  101. package/lib/commonjs/performance/types.js +2 -0
  102. package/lib/commonjs/performance/types.js.map +1 -0
  103. package/lib/commonjs/placeholder/PlaceholderFactory.js +111 -0
  104. package/lib/commonjs/placeholder/PlaceholderFactory.js.map +1 -0
  105. package/lib/commonjs/placeholder/Pulse.js +77 -0
  106. package/lib/commonjs/placeholder/Pulse.js.map +1 -0
  107. package/lib/commonjs/placeholder/Shimmer.js +95 -0
  108. package/lib/commonjs/placeholder/Shimmer.js.map +1 -0
  109. package/lib/commonjs/placeholder/Skeleton.js +52 -0
  110. package/lib/commonjs/placeholder/Skeleton.js.map +1 -0
  111. package/lib/commonjs/placeholder/index.js +41 -0
  112. package/lib/commonjs/placeholder/index.js.map +1 -0
  113. package/lib/commonjs/placeholder/types.js +40 -0
  114. package/lib/commonjs/placeholder/types.js.map +1 -0
  115. package/lib/commonjs/theme/IconThemeProvider.js +96 -0
  116. package/lib/commonjs/theme/IconThemeProvider.js.map +1 -0
  117. package/lib/commonjs/theme/context.js +53 -0
  118. package/lib/commonjs/theme/context.js.map +1 -0
  119. package/lib/commonjs/theme/index.js +52 -0
  120. package/lib/commonjs/theme/index.js.map +1 -0
  121. package/lib/commonjs/theme/types.js +39 -0
  122. package/lib/commonjs/theme/types.js.map +1 -0
  123. package/lib/commonjs/theme/useIconTheme.js +121 -0
  124. package/lib/commonjs/theme/useIconTheme.js.map +1 -0
  125. package/lib/module/IconRenderer.js +92 -5
  126. package/lib/module/IconRenderer.js.map +1 -1
  127. package/lib/module/accessibility/AccessibilityProvider.js +179 -0
  128. package/lib/module/accessibility/AccessibilityProvider.js.map +1 -0
  129. package/lib/module/accessibility/index.js +42 -0
  130. package/lib/module/accessibility/index.js.map +1 -0
  131. package/lib/module/accessibility/types.js +2 -0
  132. package/lib/module/accessibility/types.js.map +1 -0
  133. package/lib/module/accessibility/useAccessibleIcon.js +112 -0
  134. package/lib/module/accessibility/useAccessibleIcon.js.map +1 -0
  135. package/lib/module/accessibility/utils.js +221 -0
  136. package/lib/module/accessibility/utils.js.map +1 -0
  137. package/lib/module/alias/Icon.js +105 -0
  138. package/lib/module/alias/Icon.js.map +1 -0
  139. package/lib/module/alias/IconAliasContext.js +166 -0
  140. package/lib/module/alias/IconAliasContext.js.map +1 -0
  141. package/lib/module/alias/createIconAliases.js +213 -0
  142. package/lib/module/alias/createIconAliases.js.map +1 -0
  143. package/lib/module/alias/index.js +45 -0
  144. package/lib/module/alias/index.js.map +1 -0
  145. package/lib/module/alias/types.js +2 -0
  146. package/lib/module/alias/types.js.map +1 -0
  147. package/lib/module/animated/AnimatedIcon.js +109 -0
  148. package/lib/module/animated/AnimatedIcon.js.map +1 -0
  149. package/lib/module/animated/index.js +80 -0
  150. package/lib/module/animated/index.js.map +1 -0
  151. package/lib/module/animated/presets.js +209 -0
  152. package/lib/module/animated/presets.js.map +1 -0
  153. package/lib/module/animated/types.js +65 -0
  154. package/lib/module/animated/types.js.map +1 -0
  155. package/lib/module/animated/useIconAnimation.js +306 -0
  156. package/lib/module/animated/useIconAnimation.js.map +1 -0
  157. package/lib/module/babel/ast-utils.js +201 -0
  158. package/lib/module/babel/ast-utils.js.map +1 -0
  159. package/lib/module/babel/cache-writer.js +269 -0
  160. package/lib/module/babel/cache-writer.js.map +1 -0
  161. package/lib/module/babel/collector.js +214 -0
  162. package/lib/module/babel/collector.js.map +1 -0
  163. package/lib/module/babel/index.js +51 -0
  164. package/lib/module/babel/index.js.map +1 -0
  165. package/lib/module/babel/plugin.js +220 -0
  166. package/lib/module/babel/plugin.js.map +1 -0
  167. package/lib/module/babel/types.js +476 -0
  168. package/lib/module/babel/types.js.map +1 -0
  169. package/lib/module/bundle/index.js +205 -0
  170. package/lib/module/bundle/index.js.map +1 -0
  171. package/lib/module/cache/CacheManager.js +106 -6
  172. package/lib/module/cache/CacheManager.js.map +1 -1
  173. package/lib/module/cli/commands/analyze.js +166 -0
  174. package/lib/module/cli/commands/analyze.js.map +1 -0
  175. package/lib/module/cli/commands/bundle.js +208 -0
  176. package/lib/module/cli/commands/bundle.js.map +1 -0
  177. package/lib/module/cli/index.js +140 -0
  178. package/lib/module/cli/index.js.map +1 -0
  179. package/lib/module/cli/parser.js +251 -0
  180. package/lib/module/cli/parser.js.map +1 -0
  181. package/lib/module/cli/types.js +36 -0
  182. package/lib/module/cli/types.js.map +1 -0
  183. package/lib/module/components/index.js +27 -1
  184. package/lib/module/components/index.js.map +1 -1
  185. package/lib/module/config/ConfigManager.js +173 -0
  186. package/lib/module/config/ConfigManager.js.map +1 -0
  187. package/lib/module/config/index.js +28 -0
  188. package/lib/module/config/index.js.map +1 -0
  189. package/lib/module/config/types.js +49 -0
  190. package/lib/module/config/types.js.map +1 -0
  191. package/lib/module/createIconSet.js +49 -11
  192. package/lib/module/createIconSet.js.map +1 -1
  193. package/lib/module/explorer/IconExplorer.js +817 -0
  194. package/lib/module/explorer/IconExplorer.js.map +1 -0
  195. package/lib/module/explorer/iconSets.js +291 -0
  196. package/lib/module/explorer/iconSets.js.map +1 -0
  197. package/lib/module/explorer/index.js +42 -0
  198. package/lib/module/explorer/index.js.map +1 -0
  199. package/lib/module/explorer/types.js +2 -0
  200. package/lib/module/explorer/types.js.map +1 -0
  201. package/lib/module/explorer/useExplorer.js +353 -0
  202. package/lib/module/explorer/useExplorer.js.map +1 -0
  203. package/lib/module/index.js +26 -11
  204. package/lib/module/index.js.map +1 -1
  205. package/lib/module/navigation/createDrawerIcon.js +121 -0
  206. package/lib/module/navigation/createDrawerIcon.js.map +1 -0
  207. package/lib/module/navigation/createHeaderIcon.js +175 -0
  208. package/lib/module/navigation/createHeaderIcon.js.map +1 -0
  209. package/lib/module/navigation/createTabBarIcon.js +168 -0
  210. package/lib/module/navigation/createTabBarIcon.js.map +1 -0
  211. package/lib/module/navigation/index.js +59 -0
  212. package/lib/module/navigation/index.js.map +1 -0
  213. package/lib/module/navigation/types.js +88 -0
  214. package/lib/module/navigation/types.js.map +1 -0
  215. package/lib/module/navigation/useNavigationIcon.js +121 -0
  216. package/lib/module/navigation/useNavigationIcon.js.map +1 -0
  217. package/lib/module/network/IconifyAPI.js +152 -14
  218. package/lib/module/network/IconifyAPI.js.map +1 -1
  219. package/lib/module/network/index.js +1 -1
  220. package/lib/module/network/index.js.map +1 -1
  221. package/lib/module/performance/PerformanceMonitor.js +317 -0
  222. package/lib/module/performance/PerformanceMonitor.js.map +1 -0
  223. package/lib/module/performance/index.js +26 -0
  224. package/lib/module/performance/index.js.map +1 -0
  225. package/lib/module/performance/types.js +2 -0
  226. package/lib/module/performance/types.js.map +1 -0
  227. package/lib/module/placeholder/PlaceholderFactory.js +105 -0
  228. package/lib/module/placeholder/PlaceholderFactory.js.map +1 -0
  229. package/lib/module/placeholder/Pulse.js +70 -0
  230. package/lib/module/placeholder/Pulse.js.map +1 -0
  231. package/lib/module/placeholder/Shimmer.js +88 -0
  232. package/lib/module/placeholder/Shimmer.js.map +1 -0
  233. package/lib/module/placeholder/Skeleton.js +45 -0
  234. package/lib/module/placeholder/Skeleton.js.map +1 -0
  235. package/lib/module/placeholder/index.js +15 -0
  236. package/lib/module/placeholder/index.js.map +1 -0
  237. package/lib/module/placeholder/types.js +34 -0
  238. package/lib/module/placeholder/types.js.map +1 -0
  239. package/lib/module/theme/IconThemeProvider.js +89 -0
  240. package/lib/module/theme/IconThemeProvider.js.map +1 -0
  241. package/lib/module/theme/context.js +47 -0
  242. package/lib/module/theme/context.js.map +1 -0
  243. package/lib/module/theme/index.js +19 -0
  244. package/lib/module/theme/index.js.map +1 -0
  245. package/lib/module/theme/types.js +33 -0
  246. package/lib/module/theme/types.js.map +1 -0
  247. package/lib/module/theme/useIconTheme.js +114 -0
  248. package/lib/module/theme/useIconTheme.js.map +1 -0
  249. package/lib/typescript/IconRenderer.d.ts +1 -1
  250. package/lib/typescript/IconRenderer.d.ts.map +1 -1
  251. package/lib/typescript/accessibility/AccessibilityProvider.d.ts +57 -0
  252. package/lib/typescript/accessibility/AccessibilityProvider.d.ts.map +1 -0
  253. package/lib/typescript/accessibility/index.d.ts +37 -0
  254. package/lib/typescript/accessibility/index.d.ts.map +1 -0
  255. package/lib/typescript/accessibility/types.d.ts +130 -0
  256. package/lib/typescript/accessibility/types.d.ts.map +1 -0
  257. package/lib/typescript/accessibility/useAccessibleIcon.d.ts +111 -0
  258. package/lib/typescript/accessibility/useAccessibleIcon.d.ts.map +1 -0
  259. package/lib/typescript/accessibility/utils.d.ts +29 -0
  260. package/lib/typescript/accessibility/utils.d.ts.map +1 -0
  261. package/lib/typescript/alias/Icon.d.ts +38 -0
  262. package/lib/typescript/alias/Icon.d.ts.map +1 -0
  263. package/lib/typescript/alias/IconAliasContext.d.ts +52 -0
  264. package/lib/typescript/alias/IconAliasContext.d.ts.map +1 -0
  265. package/lib/typescript/alias/createIconAliases.d.ts +77 -0
  266. package/lib/typescript/alias/createIconAliases.d.ts.map +1 -0
  267. package/lib/typescript/alias/index.d.ts +36 -0
  268. package/lib/typescript/alias/index.d.ts.map +1 -0
  269. package/lib/typescript/alias/types.d.ts +115 -0
  270. package/lib/typescript/alias/types.d.ts.map +1 -0
  271. package/lib/typescript/animated/AnimatedIcon.d.ts +45 -0
  272. package/lib/typescript/animated/AnimatedIcon.d.ts.map +1 -0
  273. package/lib/typescript/animated/index.d.ts +70 -0
  274. package/lib/typescript/animated/index.d.ts.map +1 -0
  275. package/lib/typescript/animated/presets.d.ts +35 -0
  276. package/lib/typescript/animated/presets.d.ts.map +1 -0
  277. package/lib/typescript/animated/types.d.ts +196 -0
  278. package/lib/typescript/animated/types.d.ts.map +1 -0
  279. package/lib/typescript/animated/useIconAnimation.d.ts +64 -0
  280. package/lib/typescript/animated/useIconAnimation.d.ts.map +1 -0
  281. package/lib/typescript/babel/ast-utils.d.ts +52 -0
  282. package/lib/typescript/babel/ast-utils.d.ts.map +1 -0
  283. package/lib/typescript/babel/cache-writer.d.ts +56 -0
  284. package/lib/typescript/babel/cache-writer.d.ts.map +1 -0
  285. package/lib/typescript/babel/collector.d.ts +107 -0
  286. package/lib/typescript/babel/collector.d.ts.map +1 -0
  287. package/lib/typescript/babel/index.d.ts +47 -0
  288. package/lib/typescript/babel/index.d.ts.map +1 -0
  289. package/lib/typescript/babel/plugin.d.ts +17 -0
  290. package/lib/typescript/babel/plugin.d.ts.map +1 -0
  291. package/lib/typescript/babel/types.d.ts +129 -0
  292. package/lib/typescript/babel/types.d.ts.map +1 -0
  293. package/lib/typescript/bundle/index.d.ts +161 -0
  294. package/lib/typescript/bundle/index.d.ts.map +1 -0
  295. package/lib/typescript/cache/CacheManager.d.ts +52 -4
  296. package/lib/typescript/cache/CacheManager.d.ts.map +1 -1
  297. package/lib/typescript/cli/commands/analyze.d.ts +10 -0
  298. package/lib/typescript/cli/commands/analyze.d.ts.map +1 -0
  299. package/lib/typescript/cli/commands/bundle.d.ts +10 -0
  300. package/lib/typescript/cli/commands/bundle.d.ts.map +1 -0
  301. package/lib/typescript/cli/index.d.ts +7 -0
  302. package/lib/typescript/cli/index.d.ts.map +1 -0
  303. package/lib/typescript/cli/parser.d.ts +18 -0
  304. package/lib/typescript/cli/parser.d.ts.map +1 -0
  305. package/lib/typescript/cli/types.d.ts +157 -0
  306. package/lib/typescript/cli/types.d.ts.map +1 -0
  307. package/lib/typescript/components/Academicons.d.ts +1 -1
  308. package/lib/typescript/components/AkarIcons.d.ts +1 -1
  309. package/lib/typescript/components/AntDesign.d.ts +1 -1
  310. package/lib/typescript/components/Arcticons.d.ts +1 -1
  311. package/lib/typescript/components/Basil.d.ts +1 -1
  312. package/lib/typescript/components/Bi.d.ts +1 -1
  313. package/lib/typescript/components/BitcoinIcons.d.ts +1 -1
  314. package/lib/typescript/components/Bpmn.d.ts +1 -1
  315. package/lib/typescript/components/Brandico.d.ts +1 -1
  316. package/lib/typescript/components/Bx.d.ts +1 -1
  317. package/lib/typescript/components/Bxl.d.ts +1 -1
  318. package/lib/typescript/components/Bxs.d.ts +1 -1
  319. package/lib/typescript/components/Bytesize.d.ts +1 -1
  320. package/lib/typescript/components/Carbon.d.ts +1 -1
  321. package/lib/typescript/components/Catppuccin.d.ts +1 -1
  322. package/lib/typescript/components/Cbi.d.ts +1 -1
  323. package/lib/typescript/components/Charm.d.ts +1 -1
  324. package/lib/typescript/components/Ci.d.ts +1 -1
  325. package/lib/typescript/components/Cib.d.ts +1 -1
  326. package/lib/typescript/components/Cif.d.ts +1 -1
  327. package/lib/typescript/components/Cil.d.ts +1 -1
  328. package/lib/typescript/components/CircleFlags.d.ts +1 -1
  329. package/lib/typescript/components/Circum.d.ts +1 -1
  330. package/lib/typescript/components/Clarity.d.ts +1 -1
  331. package/lib/typescript/components/Codex.d.ts +1 -1
  332. package/lib/typescript/components/Codicon.d.ts +1 -1
  333. package/lib/typescript/components/Covid.d.ts +1 -1
  334. package/lib/typescript/components/Cryptocurrency.d.ts +1 -1
  335. package/lib/typescript/components/CryptocurrencyColor.d.ts +1 -1
  336. package/lib/typescript/components/Cuida.d.ts +1 -1
  337. package/lib/typescript/components/Dashicons.d.ts +1 -1
  338. package/lib/typescript/components/Devicon.d.ts +1 -1
  339. package/lib/typescript/components/DeviconPlain.d.ts +1 -1
  340. package/lib/typescript/components/DinkieIcons.d.ts +1 -1
  341. package/lib/typescript/components/DuoIcons.d.ts +1 -1
  342. package/lib/typescript/components/Ei.d.ts +1 -1
  343. package/lib/typescript/components/El.d.ts +1 -1
  344. package/lib/typescript/components/EmojioneMonotone.d.ts +1 -1
  345. package/lib/typescript/components/Entypo.d.ts +1 -1
  346. package/lib/typescript/components/EntypoSocial.d.ts +1 -1
  347. package/lib/typescript/components/EosIcons.d.ts +1 -1
  348. package/lib/typescript/components/Ep.d.ts +1 -1
  349. package/lib/typescript/components/Et.d.ts +1 -1
  350. package/lib/typescript/components/Eva.d.ts +1 -1
  351. package/lib/typescript/components/F7.d.ts +1 -1
  352. package/lib/typescript/components/Fa.d.ts +1 -1
  353. package/lib/typescript/components/Fa6Brands.d.ts +1 -1
  354. package/lib/typescript/components/Fa6Regular.d.ts +1 -1
  355. package/lib/typescript/components/Fa6Solid.d.ts +1 -1
  356. package/lib/typescript/components/Fa7Brands.d.ts +1 -1
  357. package/lib/typescript/components/Fa7Regular.d.ts +1 -1
  358. package/lib/typescript/components/Fa7Solid.d.ts +1 -1
  359. package/lib/typescript/components/FaBrands.d.ts +1 -1
  360. package/lib/typescript/components/FaRegular.d.ts +1 -1
  361. package/lib/typescript/components/FaSolid.d.ts +1 -1
  362. package/lib/typescript/components/Fad.d.ts +1 -1
  363. package/lib/typescript/components/Famicons.d.ts +1 -1
  364. package/lib/typescript/components/Fe.d.ts +1 -1
  365. package/lib/typescript/components/Feather.d.ts +1 -1
  366. package/lib/typescript/components/FileIcons.d.ts +1 -1
  367. package/lib/typescript/components/Flag.d.ts +1 -1
  368. package/lib/typescript/components/Flagpack.d.ts +1 -1
  369. package/lib/typescript/components/FlatUi.d.ts +1 -1
  370. package/lib/typescript/components/Flowbite.d.ts +1 -1
  371. package/lib/typescript/components/Fluent.d.ts +1 -1
  372. package/lib/typescript/components/FluentColor.d.ts +1 -1
  373. package/lib/typescript/components/FluentEmoji.d.ts +1 -1
  374. package/lib/typescript/components/FluentEmojiFlat.d.ts +1 -1
  375. package/lib/typescript/components/FluentEmojiHighContrast.d.ts +1 -1
  376. package/lib/typescript/components/FluentMdl2.d.ts +1 -1
  377. package/lib/typescript/components/Fontelico.d.ts +1 -1
  378. package/lib/typescript/components/Fontisto.d.ts +1 -1
  379. package/lib/typescript/components/Formkit.d.ts +1 -1
  380. package/lib/typescript/components/Foundation.d.ts +1 -1
  381. package/lib/typescript/components/Gala.d.ts +1 -1
  382. package/lib/typescript/components/GameIcons.d.ts +1 -1
  383. package/lib/typescript/components/Garden.d.ts +1 -1
  384. package/lib/typescript/components/Geo.d.ts +1 -1
  385. package/lib/typescript/components/Gg.d.ts +1 -1
  386. package/lib/typescript/components/Gis.d.ts +1 -1
  387. package/lib/typescript/components/GravityUi.d.ts +1 -1
  388. package/lib/typescript/components/Gridicons.d.ts +1 -1
  389. package/lib/typescript/components/GrommetIcons.d.ts +1 -1
  390. package/lib/typescript/components/Guidance.d.ts +1 -1
  391. package/lib/typescript/components/Healthicons.d.ts +1 -1
  392. package/lib/typescript/components/Heroicons.d.ts +1 -1
  393. package/lib/typescript/components/HeroiconsOutline.d.ts +1 -1
  394. package/lib/typescript/components/HeroiconsSolid.d.ts +1 -1
  395. package/lib/typescript/components/Hugeicons.d.ts +1 -1
  396. package/lib/typescript/components/Humbleicons.d.ts +1 -1
  397. package/lib/typescript/components/Ic.d.ts +1 -1
  398. package/lib/typescript/components/IcomoonFree.d.ts +1 -1
  399. package/lib/typescript/components/IconPark.d.ts +1 -1
  400. package/lib/typescript/components/IconParkOutline.d.ts +1 -1
  401. package/lib/typescript/components/IconParkSolid.d.ts +1 -1
  402. package/lib/typescript/components/IconParkTwotone.d.ts +1 -1
  403. package/lib/typescript/components/Iconamoon.d.ts +1 -1
  404. package/lib/typescript/components/Iconoir.d.ts +1 -1
  405. package/lib/typescript/components/Icons8.d.ts +1 -1
  406. package/lib/typescript/components/Il.d.ts +1 -1
  407. package/lib/typescript/components/Ion.d.ts +1 -1
  408. package/lib/typescript/components/Iwwa.d.ts +1 -1
  409. package/lib/typescript/components/Ix.d.ts +1 -1
  410. package/lib/typescript/components/Jam.d.ts +1 -1
  411. package/lib/typescript/components/La.d.ts +1 -1
  412. package/lib/typescript/components/LetsIcons.d.ts +1 -1
  413. package/lib/typescript/components/LineMd.d.ts +1 -1
  414. package/lib/typescript/components/Lineicons.d.ts +1 -1
  415. package/lib/typescript/components/Logos.d.ts +1 -1
  416. package/lib/typescript/components/Ls.d.ts +1 -1
  417. package/lib/typescript/components/Lsicon.d.ts +1 -1
  418. package/lib/typescript/components/Lucide.d.ts +1 -1
  419. package/lib/typescript/components/LucideLab.d.ts +1 -1
  420. package/lib/typescript/components/Mage.d.ts +1 -1
  421. package/lib/typescript/components/Majesticons.d.ts +1 -1
  422. package/lib/typescript/components/Maki.d.ts +1 -1
  423. package/lib/typescript/components/Map.d.ts +1 -1
  424. package/lib/typescript/components/Marketeq.d.ts +1 -1
  425. package/lib/typescript/components/MaterialIconTheme.d.ts +1 -1
  426. package/lib/typescript/components/MaterialSymbols.d.ts +1 -1
  427. package/lib/typescript/components/MaterialSymbolsLight.d.ts +1 -1
  428. package/lib/typescript/components/Mdi.d.ts +1 -1
  429. package/lib/typescript/components/MdiLight.d.ts +1 -1
  430. package/lib/typescript/components/MedicalIcon.d.ts +1 -1
  431. package/lib/typescript/components/Memory.d.ts +1 -1
  432. package/lib/typescript/components/Meteocons.d.ts +1 -1
  433. package/lib/typescript/components/MeteorIcons.d.ts +1 -1
  434. package/lib/typescript/components/Mi.d.ts +1 -1
  435. package/lib/typescript/components/Mingcute.d.ts +1 -1
  436. package/lib/typescript/components/MonoIcons.d.ts +1 -1
  437. package/lib/typescript/components/Mynaui.d.ts +1 -1
  438. package/lib/typescript/components/Nimbus.d.ts +1 -1
  439. package/lib/typescript/components/Nonicons.d.ts +1 -1
  440. package/lib/typescript/components/Nrk.d.ts +1 -1
  441. package/lib/typescript/components/Octicon.d.ts +1 -1
  442. package/lib/typescript/components/Oi.d.ts +1 -1
  443. package/lib/typescript/components/Ooui.d.ts +1 -1
  444. package/lib/typescript/components/Oui.d.ts +1 -1
  445. package/lib/typescript/components/Pajamas.d.ts +1 -1
  446. package/lib/typescript/components/Pepicons.d.ts +1 -1
  447. package/lib/typescript/components/PepiconsPencil.d.ts +1 -1
  448. package/lib/typescript/components/PepiconsPop.d.ts +1 -1
  449. package/lib/typescript/components/PepiconsPrint.d.ts +1 -1
  450. package/lib/typescript/components/Ph.d.ts +1 -1
  451. package/lib/typescript/components/Picon.d.ts +1 -1
  452. package/lib/typescript/components/Pixel.d.ts +1 -1
  453. package/lib/typescript/components/Pixelarticons.d.ts +1 -1
  454. package/lib/typescript/components/Prime.d.ts +1 -1
  455. package/lib/typescript/components/Proicons.d.ts +1 -1
  456. package/lib/typescript/components/Ps.d.ts +1 -1
  457. package/lib/typescript/components/QlementineIcons.d.ts +1 -1
  458. package/lib/typescript/components/Quill.d.ts +1 -1
  459. package/lib/typescript/components/RadixIcons.d.ts +1 -1
  460. package/lib/typescript/components/Raphael.d.ts +1 -1
  461. package/lib/typescript/components/Ri.d.ts +1 -1
  462. package/lib/typescript/components/RivetIcons.d.ts +1 -1
  463. package/lib/typescript/components/Roentgen.d.ts +1 -1
  464. package/lib/typescript/components/Si.d.ts +1 -1
  465. package/lib/typescript/components/SiGlyph.d.ts +1 -1
  466. package/lib/typescript/components/Sidekickicons.d.ts +1 -1
  467. package/lib/typescript/components/SimpleIcons.d.ts +1 -1
  468. package/lib/typescript/components/SimpleLineIcons.d.ts +1 -1
  469. package/lib/typescript/components/SkillIcons.d.ts +1 -1
  470. package/lib/typescript/components/Solar.d.ts +1 -1
  471. package/lib/typescript/components/Stash.d.ts +1 -1
  472. package/lib/typescript/components/Streamline.d.ts +1 -1
  473. package/lib/typescript/components/StreamlineBlock.d.ts +1 -1
  474. package/lib/typescript/components/StreamlineColor.d.ts +1 -1
  475. package/lib/typescript/components/StreamlineCyber.d.ts +1 -1
  476. package/lib/typescript/components/StreamlineCyberColor.d.ts +1 -1
  477. package/lib/typescript/components/StreamlineEmojis.d.ts +1 -1
  478. package/lib/typescript/components/StreamlineFlex.d.ts +1 -1
  479. package/lib/typescript/components/StreamlineFlexColor.d.ts +1 -1
  480. package/lib/typescript/components/StreamlineFreehand.d.ts +1 -1
  481. package/lib/typescript/components/StreamlineFreehandColor.d.ts +1 -1
  482. package/lib/typescript/components/StreamlineKameleonColor.d.ts +1 -1
  483. package/lib/typescript/components/StreamlineLogos.d.ts +1 -1
  484. package/lib/typescript/components/StreamlinePixel.d.ts +1 -1
  485. package/lib/typescript/components/StreamlinePlump.d.ts +1 -1
  486. package/lib/typescript/components/StreamlinePlumpColor.d.ts +1 -1
  487. package/lib/typescript/components/StreamlineSharp.d.ts +1 -1
  488. package/lib/typescript/components/StreamlineSharpColor.d.ts +1 -1
  489. package/lib/typescript/components/StreamlineStickiesColor.d.ts +1 -1
  490. package/lib/typescript/components/StreamlineUltimate.d.ts +1 -1
  491. package/lib/typescript/components/StreamlineUltimateColor.d.ts +1 -1
  492. package/lib/typescript/components/Subway.d.ts +1 -1
  493. package/lib/typescript/components/SvgSpinners.d.ts +1 -1
  494. package/lib/typescript/components/SystemUicons.d.ts +1 -1
  495. package/lib/typescript/components/Tabler.d.ts +1 -1
  496. package/lib/typescript/components/Tdesign.d.ts +1 -1
  497. package/lib/typescript/components/Teenyicons.d.ts +1 -1
  498. package/lib/typescript/components/Temaki.d.ts +1 -1
  499. package/lib/typescript/components/Token.d.ts +1 -1
  500. package/lib/typescript/components/TokenBranded.d.ts +1 -1
  501. package/lib/typescript/components/Topcoat.d.ts +1 -1
  502. package/lib/typescript/components/Typcn.d.ts +1 -1
  503. package/lib/typescript/components/Uil.d.ts +1 -1
  504. package/lib/typescript/components/Uim.d.ts +1 -1
  505. package/lib/typescript/components/Uis.d.ts +1 -1
  506. package/lib/typescript/components/Uit.d.ts +1 -1
  507. package/lib/typescript/components/Uiw.d.ts +1 -1
  508. package/lib/typescript/components/Unjs.d.ts +1 -1
  509. package/lib/typescript/components/Vaadin.d.ts +1 -1
  510. package/lib/typescript/components/Vs.d.ts +1 -1
  511. package/lib/typescript/components/VscodeIcons.d.ts +1 -1
  512. package/lib/typescript/components/Websymbol.d.ts +1 -1
  513. package/lib/typescript/components/Weui.d.ts +1 -1
  514. package/lib/typescript/components/Whh.d.ts +1 -1
  515. package/lib/typescript/components/Wi.d.ts +1 -1
  516. package/lib/typescript/components/Wpf.d.ts +1 -1
  517. package/lib/typescript/components/Zmdi.d.ts +1 -1
  518. package/lib/typescript/components/Zondicons.d.ts +1 -1
  519. package/lib/typescript/components/index.d.ts +38 -1
  520. package/lib/typescript/components/index.d.ts.map +1 -1
  521. package/lib/typescript/config/ConfigManager.d.ts +102 -0
  522. package/lib/typescript/config/ConfigManager.d.ts.map +1 -0
  523. package/lib/typescript/config/index.d.ts +22 -0
  524. package/lib/typescript/config/index.d.ts.map +1 -0
  525. package/lib/typescript/config/types.d.ts +112 -0
  526. package/lib/typescript/config/types.d.ts.map +1 -0
  527. package/lib/typescript/createIconSet.d.ts +1 -1
  528. package/lib/typescript/createIconSet.d.ts.map +1 -1
  529. package/lib/typescript/explorer/IconExplorer.d.ts +54 -0
  530. package/lib/typescript/explorer/IconExplorer.d.ts.map +1 -0
  531. package/lib/typescript/explorer/iconSets.d.ts +35 -0
  532. package/lib/typescript/explorer/iconSets.d.ts.map +1 -0
  533. package/lib/typescript/explorer/index.d.ts +33 -0
  534. package/lib/typescript/explorer/index.d.ts.map +1 -0
  535. package/lib/typescript/explorer/types.d.ts +329 -0
  536. package/lib/typescript/explorer/types.d.ts.map +1 -0
  537. package/lib/typescript/explorer/useExplorer.d.ts +18 -0
  538. package/lib/typescript/explorer/useExplorer.d.ts.map +1 -0
  539. package/lib/typescript/index.d.ts +25 -4
  540. package/lib/typescript/index.d.ts.map +1 -1
  541. package/lib/typescript/navigation/createDrawerIcon.d.ts +74 -0
  542. package/lib/typescript/navigation/createDrawerIcon.d.ts.map +1 -0
  543. package/lib/typescript/navigation/createHeaderIcon.d.ts +145 -0
  544. package/lib/typescript/navigation/createHeaderIcon.d.ts.map +1 -0
  545. package/lib/typescript/navigation/createTabBarIcon.d.ts +99 -0
  546. package/lib/typescript/navigation/createTabBarIcon.d.ts.map +1 -0
  547. package/lib/typescript/navigation/index.d.ts +51 -0
  548. package/lib/typescript/navigation/index.d.ts.map +1 -0
  549. package/lib/typescript/navigation/types.d.ts +149 -0
  550. package/lib/typescript/navigation/types.d.ts.map +1 -0
  551. package/lib/typescript/navigation/useNavigationIcon.d.ts +91 -0
  552. package/lib/typescript/navigation/useNavigationIcon.d.ts.map +1 -0
  553. package/lib/typescript/network/IconifyAPI.d.ts +32 -0
  554. package/lib/typescript/network/IconifyAPI.d.ts.map +1 -1
  555. package/lib/typescript/network/index.d.ts +2 -1
  556. package/lib/typescript/network/index.d.ts.map +1 -1
  557. package/lib/typescript/performance/PerformanceMonitor.d.ts +76 -0
  558. package/lib/typescript/performance/PerformanceMonitor.d.ts.map +1 -0
  559. package/lib/typescript/performance/index.d.ts +21 -0
  560. package/lib/typescript/performance/index.d.ts.map +1 -0
  561. package/lib/typescript/performance/types.d.ts +156 -0
  562. package/lib/typescript/performance/types.d.ts.map +1 -0
  563. package/lib/typescript/placeholder/PlaceholderFactory.d.ts +44 -0
  564. package/lib/typescript/placeholder/PlaceholderFactory.d.ts.map +1 -0
  565. package/lib/typescript/placeholder/Pulse.d.ts +18 -0
  566. package/lib/typescript/placeholder/Pulse.d.ts.map +1 -0
  567. package/lib/typescript/placeholder/Shimmer.d.ts +19 -0
  568. package/lib/typescript/placeholder/Shimmer.d.ts.map +1 -0
  569. package/lib/typescript/placeholder/Skeleton.d.ts +18 -0
  570. package/lib/typescript/placeholder/Skeleton.d.ts.map +1 -0
  571. package/lib/typescript/placeholder/index.d.ts +12 -0
  572. package/lib/typescript/placeholder/index.d.ts.map +1 -0
  573. package/lib/typescript/placeholder/types.d.ts +63 -0
  574. package/lib/typescript/placeholder/types.d.ts.map +1 -0
  575. package/lib/typescript/theme/IconThemeProvider.d.ts +64 -0
  576. package/lib/typescript/theme/IconThemeProvider.d.ts.map +1 -0
  577. package/lib/typescript/theme/context.d.ts +24 -0
  578. package/lib/typescript/theme/context.d.ts.map +1 -0
  579. package/lib/typescript/theme/index.d.ts +10 -0
  580. package/lib/typescript/theme/index.d.ts.map +1 -0
  581. package/lib/typescript/theme/types.d.ts +85 -0
  582. package/lib/typescript/theme/types.d.ts.map +1 -0
  583. package/lib/typescript/theme/useIconTheme.d.ts +78 -0
  584. package/lib/typescript/theme/useIconTheme.d.ts.map +1 -0
  585. package/lib/typescript/types/index.d.ts +58 -1
  586. package/lib/typescript/types/index.d.ts.map +1 -1
  587. package/package.json +41 -3
  588. package/src/IconRenderer.tsx +91 -4
  589. package/src/accessibility/AccessibilityProvider.tsx +220 -0
  590. package/src/accessibility/index.ts +63 -0
  591. package/src/accessibility/types.ts +152 -0
  592. package/src/accessibility/useAccessibleIcon.ts +220 -0
  593. package/src/accessibility/utils.ts +180 -0
  594. package/src/alias/Icon.tsx +113 -0
  595. package/src/alias/IconAliasContext.tsx +180 -0
  596. package/src/alias/createIconAliases.tsx +233 -0
  597. package/src/alias/index.ts +59 -0
  598. package/src/alias/types.ts +132 -0
  599. package/src/animated/AnimatedIcon.tsx +116 -0
  600. package/src/animated/index.ts +97 -0
  601. package/src/animated/presets.ts +211 -0
  602. package/src/animated/types.ts +239 -0
  603. package/src/animated/useIconAnimation.ts +383 -0
  604. package/src/babel/ast-utils.ts +219 -0
  605. package/src/babel/cache-writer.ts +323 -0
  606. package/src/babel/collector.ts +224 -0
  607. package/src/babel/index.ts +60 -0
  608. package/src/babel/plugin.ts +254 -0
  609. package/src/babel/types.ts +717 -0
  610. package/src/bundle/index.ts +313 -0
  611. package/src/cache/CacheManager.ts +123 -6
  612. package/src/cli/commands/analyze.ts +195 -0
  613. package/src/cli/commands/bundle.ts +231 -0
  614. package/src/cli/index.ts +153 -0
  615. package/src/cli/parser.ts +275 -0
  616. package/src/cli/types.ts +187 -0
  617. package/src/components/index.ts +52 -1
  618. package/src/config/ConfigManager.ts +196 -0
  619. package/src/config/index.ts +34 -0
  620. package/src/config/types.ts +149 -0
  621. package/src/createIconSet.tsx +48 -9
  622. package/src/explorer/IconExplorer.tsx +844 -0
  623. package/src/explorer/iconSets.ts +334 -0
  624. package/src/explorer/index.ts +64 -0
  625. package/src/explorer/types.ts +392 -0
  626. package/src/explorer/useExplorer.ts +390 -0
  627. package/src/index.ts +218 -9
  628. package/src/navigation/createDrawerIcon.tsx +113 -0
  629. package/src/navigation/createHeaderIcon.tsx +213 -0
  630. package/src/navigation/createTabBarIcon.tsx +180 -0
  631. package/src/navigation/index.ts +80 -0
  632. package/src/navigation/types.ts +155 -0
  633. package/src/navigation/useNavigationIcon.tsx +156 -0
  634. package/src/network/IconifyAPI.ts +182 -14
  635. package/src/network/index.ts +11 -1
  636. package/src/performance/PerformanceMonitor.ts +367 -0
  637. package/src/performance/index.ts +39 -0
  638. package/src/performance/types.ts +185 -0
  639. package/src/placeholder/PlaceholderFactory.tsx +133 -0
  640. package/src/placeholder/Pulse.tsx +86 -0
  641. package/src/placeholder/Shimmer.tsx +104 -0
  642. package/src/placeholder/Skeleton.tsx +52 -0
  643. package/src/placeholder/index.ts +21 -0
  644. package/src/placeholder/types.ts +78 -0
  645. package/src/theme/IconThemeProvider.tsx +94 -0
  646. package/src/theme/context.ts +51 -0
  647. package/src/theme/index.ts +19 -0
  648. package/src/theme/types.ts +108 -0
  649. package/src/theme/useIconTheme.ts +119 -0
  650. package/src/types/index.ts +78 -1
  651. package/lib/commonjs/components/Phosphor.js +0 -493
  652. package/lib/commonjs/components/Phosphor.js.map +0 -1
  653. package/lib/module/components/Phosphor.js +0 -488
  654. package/lib/module/components/Phosphor.js.map +0 -1
  655. package/lib/typescript/components/Phosphor.d.ts +0 -472
  656. package/lib/typescript/components/Phosphor.d.ts.map +0 -1
  657. package/src/components/Phosphor.tsx +0 -506
@@ -0,0 +1,281 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.buildSvg = buildSvg;
7
+ exports.fetchAndCreateBundle = fetchAndCreateBundle;
8
+ exports.generateBundle = generateBundle;
9
+ exports.groupIconsByPrefix = groupIconsByPrefix;
10
+ exports.isBundleValid = isBundleValid;
11
+ exports.writeBundleToFile = writeBundleToFile;
12
+ var fs = _interopRequireWildcard(require("fs"));
13
+ var path = _interopRequireWildcard(require("path"));
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ /**
16
+ * Cache Writer
17
+ * Fetches collected icons from Iconify API and writes them to a cache file
18
+ * Runs in Node.js environment during build time
19
+ */
20
+
21
+ /**
22
+ * Iconify API configuration
23
+ */
24
+ const ICONIFY_API_BASE = 'https://api.iconify.design';
25
+ const DEFAULT_TIMEOUT_MS = 30000;
26
+ const MAX_RETRIES = 2;
27
+ const RETRY_DELAY_MS = 1000;
28
+ const BATCH_SIZE = 50;
29
+
30
+ /**
31
+ * Iconify API response structure
32
+ */
33
+
34
+ /**
35
+ * Fetch with timeout (Node.js compatible)
36
+ */
37
+ async function fetchWithTimeout(url, timeoutMs = DEFAULT_TIMEOUT_MS) {
38
+ const controller = new AbortController();
39
+ const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
40
+ try {
41
+ const response = await fetch(url, {
42
+ signal: controller.signal
43
+ });
44
+ return response;
45
+ } finally {
46
+ clearTimeout(timeoutId);
47
+ }
48
+ }
49
+
50
+ /**
51
+ * Build SVG string from Iconify icon data
52
+ * @internal Exported for testing
53
+ */
54
+ function buildSvg(data, defaultWidth = 24, defaultHeight = 24) {
55
+ const width = data.width ?? defaultWidth;
56
+ const height = data.height ?? defaultHeight;
57
+ const left = data.left ?? 0;
58
+ const top = data.top ?? 0;
59
+ const viewBox = `${left} ${top} ${width} ${height}`;
60
+
61
+ // Apply transformations
62
+ let transform = '';
63
+ const transforms = [];
64
+ if (data.rotate) {
65
+ const rotation = data.rotate * 90;
66
+ transforms.push(`rotate(${rotation} ${width / 2} ${height / 2})`);
67
+ }
68
+ if (data.hFlip || data.vFlip) {
69
+ const scaleX = data.hFlip ? -1 : 1;
70
+ const scaleY = data.vFlip ? -1 : 1;
71
+ const translateX = data.hFlip ? width : 0;
72
+ const translateY = data.vFlip ? height : 0;
73
+ transforms.push(`translate(${translateX} ${translateY}) scale(${scaleX} ${scaleY})`);
74
+ }
75
+ if (transforms.length > 0) {
76
+ transform = ` transform="${transforms.join(' ')}"`;
77
+ }
78
+ const body = transform ? `<g${transform}>${data.body}</g>` : data.body;
79
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}" width="${width}" height="${height}">${body}</svg>`;
80
+ return {
81
+ svg,
82
+ width,
83
+ height
84
+ };
85
+ }
86
+
87
+ /**
88
+ * Fetch a batch of icons with the same prefix
89
+ */
90
+ async function fetchIconBatch(prefix, iconNames, verbose) {
91
+ const results = new Map();
92
+
93
+ // Sort icon names alphabetically (Iconify best practice)
94
+ const sortedNames = [...iconNames].sort();
95
+ const namesString = sortedNames.join(',');
96
+ let lastError = null;
97
+ for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
98
+ try {
99
+ const url = `${ICONIFY_API_BASE}/${prefix}.json?icons=${namesString}`;
100
+ if (verbose) {
101
+ console.log(`[rn-iconify] Fetching ${prefix} icons (attempt ${attempt + 1})...`);
102
+ }
103
+ const response = await fetchWithTimeout(url);
104
+ if (!response.ok) {
105
+ throw new Error(`HTTP ${response.status}: Failed to fetch ${prefix} icons`);
106
+ }
107
+ const data = await response.json();
108
+ if (!data || typeof data !== 'object' || !data.icons) {
109
+ throw new Error(`Invalid API response for ${prefix} icons`);
110
+ }
111
+
112
+ // Process each icon
113
+ for (const name of sortedNames) {
114
+ const iconData = data.icons[name];
115
+ if (iconData) {
116
+ const {
117
+ svg,
118
+ width,
119
+ height
120
+ } = buildSvg(iconData, data.width, data.height);
121
+ results.set(`${prefix}:${name}`, {
122
+ svg,
123
+ width,
124
+ height
125
+ });
126
+ } else if (verbose) {
127
+ console.warn(`[rn-iconify] Icon not found: ${prefix}:${name}`);
128
+ }
129
+ }
130
+ return results;
131
+ } catch (error) {
132
+ lastError = error instanceof Error ? error : new Error(String(error));
133
+ if (attempt < MAX_RETRIES) {
134
+ await new Promise(resolve => setTimeout(resolve, RETRY_DELAY_MS * (attempt + 1)));
135
+ }
136
+ }
137
+ }
138
+
139
+ // Log error but don't fail the build
140
+ console.error(`[rn-iconify] Failed to fetch ${prefix} icons after ${MAX_RETRIES + 1} attempts:`, lastError?.message);
141
+ return results;
142
+ }
143
+
144
+ /**
145
+ * Group icons by prefix
146
+ * @internal Exported for testing
147
+ */
148
+ function groupIconsByPrefix(iconNames) {
149
+ const grouped = new Map();
150
+ for (const iconName of iconNames) {
151
+ const [prefix, name] = iconName.split(':');
152
+ if (prefix && name) {
153
+ if (!grouped.has(prefix)) {
154
+ grouped.set(prefix, []);
155
+ }
156
+ grouped.get(prefix).push(name);
157
+ }
158
+ }
159
+ return grouped;
160
+ }
161
+
162
+ /**
163
+ * Fetch all icons and create bundle
164
+ */
165
+ async function fetchAndCreateBundle(iconNames, options) {
166
+ const {
167
+ verbose = false
168
+ } = options;
169
+ const startTime = Date.now();
170
+ if (verbose) {
171
+ console.log(`[rn-iconify] Fetching ${iconNames.length} icons...`);
172
+ }
173
+
174
+ // Group icons by prefix
175
+ const grouped = groupIconsByPrefix(iconNames);
176
+ const allIcons = {};
177
+ let fetchedCount = 0;
178
+
179
+ // Fetch each prefix group
180
+ for (const [prefix, names] of grouped) {
181
+ // Split into batches if too many icons
182
+ for (let i = 0; i < names.length; i += BATCH_SIZE) {
183
+ const batch = names.slice(i, i + BATCH_SIZE);
184
+ const results = await fetchIconBatch(prefix, batch, verbose);
185
+ for (const [iconName, data] of results) {
186
+ allIcons[iconName] = data;
187
+ fetchedCount++;
188
+ }
189
+ }
190
+ }
191
+ const bundle = {
192
+ version: '1.0.0',
193
+ generatedAt: new Date().toISOString(),
194
+ icons: allIcons,
195
+ count: fetchedCount
196
+ };
197
+ if (verbose) {
198
+ const elapsed = Date.now() - startTime;
199
+ console.log(`[rn-iconify] Fetched ${fetchedCount}/${iconNames.length} icons in ${elapsed}ms`);
200
+ }
201
+ return bundle;
202
+ }
203
+
204
+ /**
205
+ * Write bundle to file
206
+ */
207
+ function writeBundleToFile(bundle, outputPath, verbose) {
208
+ // Ensure directory exists
209
+ const dir = path.dirname(outputPath);
210
+ if (!fs.existsSync(dir)) {
211
+ fs.mkdirSync(dir, {
212
+ recursive: true
213
+ });
214
+ }
215
+
216
+ // Write bundle
217
+ const content = JSON.stringify(bundle);
218
+ fs.writeFileSync(outputPath, content, 'utf-8');
219
+ if (verbose) {
220
+ const sizeKB = (content.length / 1024).toFixed(2);
221
+ console.log(`[rn-iconify] Bundle written to ${outputPath} (${sizeKB} KB)`);
222
+ }
223
+ }
224
+
225
+ /**
226
+ * Generate icon bundle from collected icons
227
+ */
228
+ async function generateBundle(iconNames, options, projectRoot) {
229
+ const {
230
+ outputPath = '.rn-iconify-cache',
231
+ verbose = false
232
+ } = options;
233
+ if (iconNames.length === 0) {
234
+ if (verbose) {
235
+ console.log('[rn-iconify] No icons to bundle');
236
+ }
237
+ return;
238
+ }
239
+ try {
240
+ // Fetch all icons
241
+ const bundle = await fetchAndCreateBundle(iconNames, options);
242
+
243
+ // Determine output file path
244
+ const bundleFile = path.isAbsolute(outputPath) ? path.join(outputPath, 'icons.json') : path.join(projectRoot, outputPath, 'icons.json');
245
+
246
+ // Write bundle to file
247
+ writeBundleToFile(bundle, bundleFile, verbose);
248
+
249
+ // Also write a JS module for easy importing
250
+ const jsContent = `// Auto-generated by rn-iconify babel plugin
251
+ // Do not edit manually
252
+ module.exports = ${JSON.stringify(bundle)};
253
+ `;
254
+ const jsFile = bundleFile.replace('.json', '.js');
255
+ fs.writeFileSync(jsFile, jsContent, 'utf-8');
256
+ if (verbose) {
257
+ console.log(`[rn-iconify] Bundle generation complete!`);
258
+ }
259
+ } catch (error) {
260
+ // Don't fail the build on bundle generation error
261
+ console.error('[rn-iconify] Bundle generation failed:', error instanceof Error ? error.message : error);
262
+ }
263
+ }
264
+
265
+ /**
266
+ * Check if bundle file exists and is valid
267
+ */
268
+ function isBundleValid(outputPath, projectRoot) {
269
+ const bundleFile = path.isAbsolute(outputPath) ? path.join(outputPath, 'icons.json') : path.join(projectRoot, outputPath, 'icons.json');
270
+ if (!fs.existsSync(bundleFile)) {
271
+ return false;
272
+ }
273
+ try {
274
+ const content = fs.readFileSync(bundleFile, 'utf-8');
275
+ const bundle = JSON.parse(content);
276
+ return bundle.version === '1.0.0' && typeof bundle.count === 'number';
277
+ } catch {
278
+ return false;
279
+ }
280
+ }
281
+ //# sourceMappingURL=cache-writer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fs","_interopRequireWildcard","require","path","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ICONIFY_API_BASE","DEFAULT_TIMEOUT_MS","MAX_RETRIES","RETRY_DELAY_MS","BATCH_SIZE","fetchWithTimeout","url","timeoutMs","controller","AbortController","timeoutId","setTimeout","abort","response","fetch","signal","clearTimeout","buildSvg","data","defaultWidth","defaultHeight","width","height","left","top","viewBox","transform","transforms","rotate","rotation","push","hFlip","vFlip","scaleX","scaleY","translateX","translateY","length","join","body","svg","fetchIconBatch","prefix","iconNames","verbose","results","Map","sortedNames","sort","namesString","lastError","attempt","console","log","ok","Error","status","json","icons","name","iconData","warn","error","String","Promise","resolve","message","groupIconsByPrefix","grouped","iconName","split","fetchAndCreateBundle","options","startTime","Date","now","allIcons","fetchedCount","names","batch","slice","bundle","version","generatedAt","toISOString","count","elapsed","writeBundleToFile","outputPath","dir","dirname","existsSync","mkdirSync","recursive","content","JSON","stringify","writeFileSync","sizeKB","toFixed","generateBundle","projectRoot","bundleFile","isAbsolute","jsContent","jsFile","replace","isBundleValid","readFileSync","parse"],"sourceRoot":"../../../src","sources":["babel/cache-writer.ts"],"mappings":";;;;;;;;;;;AAMA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,uBAAA,CAAAC,OAAA;AAA6B,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SA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AAG,CAAC,0CAA0C,CAAC;IACzD;EACF,CAAC,CAAC,OAAOS,KAAK,EAAE;IACd;IACAV,OAAO,CAACU,KAAK,CACX,wCAAwC,EACxCA,KAAK,YAAYP,KAAK,GAAGO,KAAK,CAACI,OAAO,GAAGJ,KAC3C,CAAC;EACH;AACF;;AAEA;AACA;AACA;AACO,SAAS6C,aAAaA,CAACnB,UAAkB,EAAEa,WAAmB,EAAW;EAC9E,MAAMC,UAAU,GAAG1H,IAAI,CAAC2H,UAAU,CAACf,UAAU,CAAC,GAC1C5G,IAAI,CAAC0D,IAAI,CAACkD,UAAU,EAAE,YAAY,CAAC,GACnC5G,IAAI,CAAC0D,IAAI,CAAC+D,WAAW,EAAEb,UAAU,EAAE,YAAY,CAAC;EAEpD,IAAI,CAAC/G,EAAE,CAACkH,UAAU,CAACW,UAAU,CAAC,EAAE;IAC9B,OAAO,KAAK;EACd;EAEA,IAAI;IACF,MAAMR,OAAO,GAAGrH,EAAE,CAACmI,YAAY,CAACN,UAAU,EAAE,OAAO,CAAC;IACpD,MAAMrB,MAAM,GAAGc,IAAI,CAACc,KAAK,CAACf,OAAO,CAAe;IAChD,OAAOb,MAAM,CAACC,OAAO,KAAK,OAAO,IAAI,OAAOD,MAAM,CAACI,KAAK,KAAK,QAAQ;EACvE,CAAC,CAAC,MAAM;IACN,OAAO,KAAK;EACd;AACF","ignoreList":[]}
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.collector = exports.IconCollector = void 0;
7
+ var _astUtils = require("./ast-utils");
8
+ /**
9
+ * Icon Collector
10
+ * Singleton that collects icons across all files during the build process
11
+ */
12
+
13
+ /**
14
+ * Icon collection state
15
+ * Uses a singleton pattern since Babel plugin runs in a single process
16
+ */
17
+ class IconCollector {
18
+ /**
19
+ * Map of icon name -> collection info
20
+ * Using Map to track first occurrence location
21
+ */
22
+ icons = new Map();
23
+
24
+ /**
25
+ * Set of processed files to track progress
26
+ */
27
+ processedFiles = new Set();
28
+
29
+ /**
30
+ * Options from plugin configuration
31
+ */
32
+ options = {};
33
+
34
+ /**
35
+ * Whether bundle generation has been triggered
36
+ */
37
+ bundleGenerated = false;
38
+
39
+ /**
40
+ * Start time for performance tracking
41
+ */
42
+ startTime = 0;
43
+
44
+ /**
45
+ * Initialize the collector with options
46
+ * Called at the start of each build
47
+ */
48
+ initialize(options) {
49
+ this.options = options;
50
+ this.startTime = Date.now();
51
+ if (options.verbose) {
52
+ console.log('[rn-iconify] Babel plugin initialized');
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Reset collector state
58
+ * Should be called at the start of each build
59
+ */
60
+ reset() {
61
+ this.icons.clear();
62
+ this.processedFiles.clear();
63
+ this.bundleGenerated = false;
64
+ this.startTime = Date.now();
65
+ }
66
+
67
+ /**
68
+ * Add an icon to the collection
69
+ */
70
+ add(iconName, file, line, column) {
71
+ // Validate icon name format
72
+ if (!(0, _astUtils.isValidIconName)(iconName)) {
73
+ if (this.options.verbose) {
74
+ console.log(`[rn-iconify] Skipping invalid icon name: ${iconName}`);
75
+ }
76
+ return false;
77
+ }
78
+
79
+ // Check include/exclude patterns
80
+ if (!(0, _astUtils.shouldIncludeIcon)(iconName, this.options.include, this.options.exclude)) {
81
+ if (this.options.verbose) {
82
+ console.log(`[rn-iconify] Excluded icon: ${iconName}`);
83
+ }
84
+ return false;
85
+ }
86
+
87
+ // Only track first occurrence
88
+ if (!this.icons.has(iconName)) {
89
+ this.icons.set(iconName, {
90
+ name: iconName,
91
+ file,
92
+ line,
93
+ column
94
+ });
95
+ if (this.options.verbose) {
96
+ console.log(`[rn-iconify] Found icon: ${iconName} in ${file}:${line}`);
97
+ }
98
+ return true;
99
+ }
100
+ return false;
101
+ }
102
+
103
+ /**
104
+ * Mark a file as processed
105
+ */
106
+ markFileProcessed(filename) {
107
+ this.processedFiles.add(filename);
108
+ }
109
+
110
+ /**
111
+ * Check if a file has been processed
112
+ */
113
+ isFileProcessed(filename) {
114
+ return this.processedFiles.has(filename);
115
+ }
116
+
117
+ /**
118
+ * Check if there are any collected icons
119
+ */
120
+ hasIcons() {
121
+ return this.icons.size > 0;
122
+ }
123
+
124
+ /**
125
+ * Get all collected icon names
126
+ */
127
+ getIconNames() {
128
+ return Array.from(this.icons.keys());
129
+ }
130
+
131
+ /**
132
+ * Get all collected icons with their metadata
133
+ */
134
+ getAllIcons() {
135
+ return Array.from(this.icons.values());
136
+ }
137
+
138
+ /**
139
+ * Get icon count
140
+ */
141
+ getCount() {
142
+ return this.icons.size;
143
+ }
144
+
145
+ /**
146
+ * Get processed file count
147
+ */
148
+ getProcessedFileCount() {
149
+ return this.processedFiles.size;
150
+ }
151
+
152
+ /**
153
+ * Get icons grouped by prefix
154
+ */
155
+ getIconsByPrefix() {
156
+ const byPrefix = new Map();
157
+ for (const iconName of this.icons.keys()) {
158
+ const [prefix] = iconName.split(':');
159
+ if (!byPrefix.has(prefix)) {
160
+ byPrefix.set(prefix, []);
161
+ }
162
+ byPrefix.get(prefix).push(iconName);
163
+ }
164
+ return byPrefix;
165
+ }
166
+
167
+ /**
168
+ * Mark bundle as generated
169
+ */
170
+ markBundleGenerated() {
171
+ this.bundleGenerated = true;
172
+ }
173
+
174
+ /**
175
+ * Check if bundle has been generated
176
+ */
177
+ isBundleGenerated() {
178
+ return this.bundleGenerated;
179
+ }
180
+
181
+ /**
182
+ * Get elapsed time since initialization
183
+ */
184
+ getElapsedTime() {
185
+ return Date.now() - this.startTime;
186
+ }
187
+
188
+ /**
189
+ * Get current options
190
+ */
191
+ getOptions() {
192
+ return this.options;
193
+ }
194
+
195
+ /**
196
+ * Print summary (for verbose mode)
197
+ */
198
+ printSummary() {
199
+ if (!this.options.verbose) return;
200
+ const byPrefix = this.getIconsByPrefix();
201
+ const prefixSummary = Array.from(byPrefix.entries()).map(([prefix, icons]) => `${prefix}: ${icons.length}`).join(', ');
202
+ console.log(`[rn-iconify] Collection summary:`);
203
+ console.log(` Total icons: ${this.icons.size}`);
204
+ console.log(` Files processed: ${this.processedFiles.size}`);
205
+ console.log(` By prefix: ${prefixSummary}`);
206
+ console.log(` Time elapsed: ${this.getElapsedTime()}ms`);
207
+ }
208
+ }
209
+
210
+ /**
211
+ * Singleton instance
212
+ */
213
+ exports.IconCollector = IconCollector;
214
+ const collector = exports.collector = new IconCollector();
215
+
216
+ /**
217
+ * Export class for testing
218
+ */
219
+ //# sourceMappingURL=collector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_astUtils","require","IconCollector","icons","Map","processedFiles","Set","options","bundleGenerated","startTime","initialize","Date","now","verbose","console","log","reset","clear","add","iconName","file","line","column","isValidIconName","shouldIncludeIcon","include","exclude","has","set","name","markFileProcessed","filename","isFileProcessed","hasIcons","size","getIconNames","Array","from","keys","getAllIcons","values","getCount","getProcessedFileCount","getIconsByPrefix","byPrefix","prefix","split","get","push","markBundleGenerated","isBundleGenerated","getElapsedTime","getOptions","printSummary","prefixSummary","entries","map","length","join","exports","collector"],"sourceRoot":"../../../src","sources":["babel/collector.ts"],"mappings":";;;;;;AAMA,IAAAA,SAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA,MAAMC,aAAa,CAAC;EAClB;AACF;AACA;AACA;EACUC,KAAK,GAA+B,IAAIC,GAAG,CAAC,CAAC;;EAErD;AACF;AACA;EACUC,cAAc,GAAgB,IAAIC,GAAG,CAAC,CAAC;;EAE/C;AACF;AACA;EACUC,OAAO,GAAuB,CAAC,CAAC;;EAExC;AACF;AACA;EACUC,eAAe,GAAY,KAAK;;EAExC;AACF;AACA;EACUC,SAAS,GAAW,CAAC;;EAE7B;AACF;AACA;AACA;EACEC,UAAUA,CAACH,OAA2B,EAAQ;IAC5C,IAAI,CAACA,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACE,SAAS,GAAGE,IAAI,CAACC,GAAG,CAAC,CAAC;IAE3B,IAAIL,OAAO,CAACM,OAAO,EAAE;MACnBC,OAAO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oC,cAAc,CAAC,CAAC,IAAI,CAAC;EAC3D;AACF;;AAEA;AACA;AACA;AAFAQ,OAAA,CAAAzD,aAAA,GAAAA,aAAA;AAGO,MAAM0D,SAAS,GAAAD,OAAA,CAAAC,SAAA,GAAG,IAAI1D,aAAa,CAAC,CAAC;;AAE5C;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "COMPONENT_PREFIX_MAP", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _types.COMPONENT_PREFIX_MAP;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "PREFIX_COMPONENT_MAP", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _types.PREFIX_COMPONENT_MAP;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "VALID_COMPONENTS", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _types.VALID_COMPONENTS;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "VALID_PREFIXES", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _types.VALID_PREFIXES;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "collector", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _collector.collector;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "createRnIconifyPlugin", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _plugin.createRnIconifyPlugin;
40
+ }
41
+ });
42
+ exports.default = void 0;
43
+ Object.defineProperty(exports, "getFilenameFromFile", {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _types.getFilenameFromFile;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, "getFilenameFromState", {
50
+ enumerable: true,
51
+ get: function () {
52
+ return _types.getFilenameFromState;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "resetPluginState", {
56
+ enumerable: true,
57
+ get: function () {
58
+ return _plugin.resetPluginState;
59
+ }
60
+ });
61
+ var _plugin = require("./plugin");
62
+ var _collector = require("./collector");
63
+ var _types = require("./types");
64
+ /**
65
+ * rn-iconify Babel Plugin
66
+ *
67
+ * Build-time icon bundling for 0ms first render.
68
+ *
69
+ * @example
70
+ * ```js
71
+ * // babel.config.js
72
+ * module.exports = {
73
+ * presets: ['module:@react-native/babel-preset'],
74
+ * plugins: ['rn-iconify/babel'],
75
+ * };
76
+ * ```
77
+ *
78
+ * @example With options
79
+ * ```js
80
+ * // babel.config.js
81
+ * module.exports = {
82
+ * presets: ['module:@react-native/babel-preset'],
83
+ * plugins: [
84
+ * ['rn-iconify/babel', {
85
+ * include: ['mdi:*', 'heroicons:*'],
86
+ * exclude: ['mdi:test-*'],
87
+ * outputPath: '.rn-iconify-cache',
88
+ * verbose: true,
89
+ * }]
90
+ * ],
91
+ * };
92
+ * ```
93
+ */
94
+ // Export types
95
+ // Export utilities for testing
96
+ /**
97
+ * Default export for Babel plugin
98
+ * This is what Babel will import when you add 'rn-iconify/babel' to your config
99
+ */
100
+ var _default = exports.default = _plugin.createRnIconifyPlugin;
101
+ /**
102
+ * Named export for explicit importing
103
+ */
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_plugin","require","_collector","_types","_default","exports","default","createRnIconifyPlugin"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,IAAAA,OAAA,GAAAC,OAAA;AAQA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AAIA;AAYA;AACA;AACA;AACA;AAHA,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAIeC,6BAAqB;AAEpC;AACA;AACA","ignoreList":[]}