react-native-nano-icons 0.2.1 → 1.0.0-beta.1

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 (325) hide show
  1. package/LICENSES.md +40 -0
  2. package/README.md +41 -10
  3. package/android/src/main/java/com/nanoicons/NanoIconFonts.kt +31 -0
  4. package/android/src/main/java/com/nanoicons/NanoIconView.kt +50 -15
  5. package/android/src/main/java/com/nanoicons/NanoIconsFontLoaderModule.kt +72 -11
  6. package/ios/NanoIconFontResolver.h +5 -0
  7. package/ios/NanoIconFontResolver.mm +32 -0
  8. package/ios/NanoIconView.h +0 -4
  9. package/ios/NanoIconView.mm +62 -57
  10. package/ios/NanoIconsFontLoader.mm +10 -32
  11. package/lib/commonjs/cli/build.d.ts +11 -3
  12. package/lib/commonjs/cli/build.js +86 -25
  13. package/lib/commonjs/cli/config.d.ts +1 -1
  14. package/lib/commonjs/cli/config.js +1 -1
  15. package/lib/commonjs/cli/expoConfig.d.ts +3 -2
  16. package/lib/commonjs/cli/expoConfig.js +22 -9
  17. package/lib/commonjs/cli/index.d.ts +5 -5
  18. package/lib/commonjs/cli/index.js +16 -14
  19. package/lib/commonjs/cli/link.d.ts +4 -3
  20. package/lib/commonjs/cli/link.js +127 -45
  21. package/lib/commonjs/cli/logger.js +9 -7
  22. package/lib/commonjs/plugin/src/buildFonts.d.ts +3 -3
  23. package/lib/commonjs/plugin/src/buildFonts.js +5 -15
  24. package/lib/commonjs/plugin/src/index.d.ts +2 -2
  25. package/lib/commonjs/plugin/src/index.js +2 -2
  26. package/lib/commonjs/plugin/src/types.d.ts +10 -1
  27. package/lib/commonjs/plugin/src/withNanoIconsFontLinking.d.ts +1 -1
  28. package/lib/commonjs/plugin/src/withNanoIconsFontLinking.js +6 -13
  29. package/lib/commonjs/scripts/cli.js +46 -23
  30. package/lib/commonjs/src/core/flatten/arcs.d.ts +2 -0
  31. package/lib/commonjs/src/core/flatten/arcs.js +136 -0
  32. package/lib/commonjs/src/core/flatten/document.d.ts +35 -0
  33. package/lib/commonjs/src/core/flatten/document.js +164 -0
  34. package/lib/commonjs/src/core/flatten/dom.d.ts +24 -0
  35. package/lib/commonjs/src/core/flatten/dom.js +221 -0
  36. package/lib/commonjs/src/core/flatten/element.d.ts +12 -0
  37. package/lib/commonjs/src/core/flatten/element.js +97 -0
  38. package/lib/commonjs/src/core/flatten/geometry.d.ts +21 -0
  39. package/lib/commonjs/src/core/flatten/geometry.js +85 -0
  40. package/lib/commonjs/src/core/flatten/index.d.ts +2 -0
  41. package/lib/commonjs/src/core/flatten/index.js +11 -0
  42. package/lib/commonjs/src/core/flatten/inherit.d.ts +13 -0
  43. package/lib/commonjs/src/core/flatten/inherit.js +249 -0
  44. package/lib/commonjs/src/core/flatten/path.d.ts +19 -0
  45. package/lib/commonjs/src/core/flatten/path.js +439 -0
  46. package/lib/commonjs/src/core/flatten/pathops.d.ts +14 -0
  47. package/lib/commonjs/src/core/flatten/pathops.js +236 -0
  48. package/lib/commonjs/src/core/flatten/shape.d.ts +29 -0
  49. package/lib/commonjs/src/core/flatten/shape.js +415 -0
  50. package/lib/commonjs/src/core/flatten/stages/clip-path.d.ts +4 -0
  51. package/lib/commonjs/src/core/flatten/stages/clip-path.js +20 -0
  52. package/lib/commonjs/src/core/flatten/stages/collapse.d.ts +2 -0
  53. package/lib/commonjs/src/core/flatten/stages/collapse.js +86 -0
  54. package/lib/commonjs/src/core/flatten/stages/defs.d.ts +4 -0
  55. package/lib/commonjs/src/core/flatten/stages/defs.js +49 -0
  56. package/lib/commonjs/src/core/flatten/stages/discard.d.ts +4 -0
  57. package/lib/commonjs/src/core/flatten/stages/discard.js +50 -0
  58. package/lib/commonjs/src/core/flatten/stages/fill-rule.d.ts +2 -0
  59. package/lib/commonjs/src/core/flatten/stages/fill-rule.js +7 -0
  60. package/lib/commonjs/src/core/flatten/stages/nested-svg.d.ts +2 -0
  61. package/lib/commonjs/src/core/flatten/stages/nested-svg.js +131 -0
  62. package/lib/commonjs/src/core/flatten/stages/opacity.d.ts +2 -0
  63. package/lib/commonjs/src/core/flatten/stages/opacity.js +7 -0
  64. package/lib/commonjs/src/core/flatten/stages/shapes.d.ts +7 -0
  65. package/lib/commonjs/src/core/flatten/stages/shapes.js +37 -0
  66. package/lib/commonjs/src/core/flatten/stages/stroke.d.ts +3 -0
  67. package/lib/commonjs/src/core/flatten/stages/stroke.js +34 -0
  68. package/lib/commonjs/src/core/flatten/stages/styles.d.ts +2 -0
  69. package/lib/commonjs/src/core/flatten/stages/styles.js +29 -0
  70. package/lib/commonjs/src/core/flatten/stages/use.d.ts +4 -0
  71. package/lib/commonjs/src/core/flatten/stages/use.js +80 -0
  72. package/lib/commonjs/src/core/flatten/stages/validate.d.ts +2 -0
  73. package/lib/commonjs/src/core/flatten/stages/validate.js +39 -0
  74. package/lib/commonjs/src/core/flatten/stages.d.ts +2 -0
  75. package/lib/commonjs/src/core/flatten/stages.js +40 -0
  76. package/lib/commonjs/src/core/flatten/transform.d.ts +35 -0
  77. package/lib/commonjs/src/core/flatten/transform.js +221 -0
  78. package/lib/commonjs/src/core/font/compile.d.ts +2 -1
  79. package/lib/commonjs/src/core/font/compile.js +21 -7
  80. package/lib/commonjs/src/core/font/metrics.js +7 -0
  81. package/lib/commonjs/src/core/font/quadratic.d.ts +1 -0
  82. package/lib/commonjs/src/core/font/quadratic.js +31 -0
  83. package/lib/commonjs/src/core/glyph/merge.d.ts +7 -0
  84. package/lib/commonjs/src/core/glyph/merge.js +57 -0
  85. package/lib/commonjs/src/core/glyph/parse.d.ts +26 -0
  86. package/lib/commonjs/src/core/{svg/svg_dom.js → glyph/parse.js} +21 -77
  87. package/lib/commonjs/src/core/{svg/layers.d.ts → glyph/placement.d.ts} +1 -13
  88. package/lib/commonjs/src/core/{svg/layers.js → glyph/placement.js} +0 -17
  89. package/lib/commonjs/src/core/glyph/validate.d.ts +8 -0
  90. package/lib/commonjs/src/core/glyph/validate.js +33 -0
  91. package/lib/commonjs/src/core/pathkit/contours.d.ts +74 -0
  92. package/lib/commonjs/src/core/{svg/svg_pathops.js → pathkit/contours.js} +72 -312
  93. package/lib/commonjs/src/core/pathkit/evenodd.d.ts +12 -0
  94. package/lib/commonjs/src/core/pathkit/evenodd.js +51 -0
  95. package/lib/commonjs/src/core/pathkit/load.d.ts +2 -0
  96. package/lib/commonjs/src/core/pathkit/load.js +26 -0
  97. package/lib/commonjs/src/core/pathkit/types.d.ts +69 -0
  98. package/lib/commonjs/src/core/pathkit/types.js +2 -0
  99. package/lib/commonjs/src/core/pipeline/config.d.ts +1 -0
  100. package/lib/commonjs/src/core/pipeline/iconPool.d.ts +3 -0
  101. package/lib/commonjs/src/core/pipeline/iconPool.js +51 -0
  102. package/lib/commonjs/src/core/pipeline/index.d.ts +3 -3
  103. package/lib/commonjs/src/core/pipeline/index.js +6 -5
  104. package/lib/commonjs/src/core/pipeline/prepare.d.ts +19 -0
  105. package/lib/commonjs/src/core/pipeline/prepare.js +56 -0
  106. package/lib/commonjs/src/core/pipeline/prepareIcon.d.ts +22 -0
  107. package/lib/commonjs/src/core/pipeline/prepareIcon.js +78 -0
  108. package/lib/commonjs/src/core/pipeline/prepareWorker.d.ts +1 -0
  109. package/lib/commonjs/src/core/pipeline/prepareWorker.js +12 -0
  110. package/lib/commonjs/src/core/pipeline/{run.d.ts → runFontPipeline.d.ts} +7 -4
  111. package/lib/commonjs/src/core/pipeline/runFontPipeline.js +109 -0
  112. package/lib/commonjs/src/core/types.d.ts +3 -92
  113. package/lib/commonjs/src/utils/fingerPrint.d.ts +8 -1
  114. package/lib/commonjs/src/utils/fingerPrint.js +8 -1
  115. package/lib/commonjs/src/utils/fontIdentity.d.ts +4 -0
  116. package/lib/commonjs/src/utils/fontIdentity.js +24 -0
  117. package/lib/commonjs/src/utils/packageVersion.d.ts +2 -0
  118. package/lib/commonjs/src/utils/packageVersion.js +37 -0
  119. package/lib/commonjs/src/utils/parse.d.ts +0 -1
  120. package/lib/commonjs/src/utils/parse.js +0 -8
  121. package/lib/commonjs/src/utils/svgPatterns.d.ts +38 -0
  122. package/lib/commonjs/src/utils/svgPatterns.js +46 -0
  123. package/lib/module/const/codegenPrimitives.js +1 -2
  124. package/lib/module/const/colors.js +1 -2
  125. package/lib/module/createNanoIconsSet.js +1 -2
  126. package/lib/module/createNanoIconsSet.native.js +11 -4
  127. package/lib/module/createNanoIconsSet.shared.js +12 -7
  128. package/lib/module/createNanoIconsSet.web.js +7 -5
  129. package/lib/module/fontIntegrity.js +99 -0
  130. package/lib/module/index.js +1 -1
  131. package/lib/module/index.node.js +1 -2
  132. package/lib/module/loadDynamicFont.js +14 -7
  133. package/lib/module/nativeFontLoader.js +3 -0
  134. package/lib/module/nativeFontLoader.web.js +3 -0
  135. package/lib/module/specs/NativeNanoIconsFontLoader.js +1 -2
  136. package/lib/module/types.js +1 -2
  137. package/lib/module/utils/fingerPrint.js +3 -3
  138. package/lib/module/utils/fontIdentity.js +20 -0
  139. package/lib/module/utils/glyphRuntime.js +1 -2
  140. package/lib/module/utils/packageVersion.js +29 -0
  141. package/lib/module/utils/parse.js +1 -9
  142. package/lib/module/utils/runtimeLog.js +12 -0
  143. package/lib/module/utils/shallowEqualColor.js +1 -2
  144. package/lib/module/utils/svgPatterns.js +49 -0
  145. package/lib/typescript/src/core/flatten/arcs.d.ts +3 -0
  146. package/lib/typescript/src/core/flatten/document.d.ts +36 -0
  147. package/lib/typescript/src/core/flatten/dom.d.ts +25 -0
  148. package/lib/typescript/src/core/flatten/element.d.ts +13 -0
  149. package/lib/typescript/src/core/flatten/geometry.d.ts +22 -0
  150. package/lib/typescript/src/core/flatten/index.d.ts +3 -0
  151. package/lib/typescript/src/core/flatten/inherit.d.ts +14 -0
  152. package/lib/typescript/src/core/flatten/path.d.ts +20 -0
  153. package/lib/typescript/src/core/flatten/pathops.d.ts +15 -0
  154. package/lib/typescript/src/core/flatten/shape.d.ts +30 -0
  155. package/lib/typescript/src/core/flatten/stages/clip-path.d.ts +5 -0
  156. package/lib/typescript/src/core/flatten/stages/collapse.d.ts +3 -0
  157. package/lib/typescript/src/core/flatten/stages/defs.d.ts +5 -0
  158. package/lib/typescript/src/core/flatten/stages/discard.d.ts +5 -0
  159. package/lib/typescript/src/core/flatten/stages/fill-rule.d.ts +3 -0
  160. package/lib/typescript/src/core/flatten/stages/nested-svg.d.ts +3 -0
  161. package/lib/typescript/src/core/flatten/stages/opacity.d.ts +3 -0
  162. package/lib/typescript/src/core/flatten/stages/shapes.d.ts +8 -0
  163. package/lib/typescript/src/core/flatten/stages/stroke.d.ts +4 -0
  164. package/lib/typescript/src/core/flatten/stages/styles.d.ts +3 -0
  165. package/lib/typescript/src/core/flatten/stages/use.d.ts +5 -0
  166. package/lib/typescript/src/core/flatten/stages/validate.d.ts +3 -0
  167. package/lib/typescript/src/core/flatten/stages.d.ts +3 -0
  168. package/lib/typescript/src/core/flatten/transform.d.ts +36 -0
  169. package/lib/typescript/src/core/glyph/merge.d.ts +8 -0
  170. package/lib/typescript/src/core/glyph/parse.d.ts +27 -0
  171. package/lib/typescript/src/core/{svg/layers.d.ts → glyph/placement.d.ts} +2 -14
  172. package/lib/typescript/src/core/glyph/validate.d.ts +9 -0
  173. package/lib/typescript/src/core/pathkit/contours.d.ts +75 -0
  174. package/lib/typescript/src/core/pathkit/evenodd.d.ts +13 -0
  175. package/lib/typescript/src/core/pathkit/load.d.ts +3 -0
  176. package/lib/typescript/src/core/pathkit/types.d.ts +70 -0
  177. package/lib/typescript/src/core/types.d.ts +3 -92
  178. package/lib/typescript/src/fontIntegrity.d.ts +24 -0
  179. package/lib/typescript/src/index.d.ts +1 -0
  180. package/lib/typescript/src/nativeFontLoader.d.ts +2 -0
  181. package/lib/typescript/src/nativeFontLoader.web.d.ts +3 -0
  182. package/lib/typescript/src/specs/NativeNanoIconsFontLoader.d.ts +1 -0
  183. package/lib/typescript/src/types.d.ts +5 -0
  184. package/lib/typescript/src/utils/fingerPrint.d.ts +8 -1
  185. package/lib/typescript/src/utils/fontIdentity.d.ts +5 -0
  186. package/lib/typescript/src/utils/packageVersion.d.ts +3 -0
  187. package/lib/typescript/src/utils/parse.d.ts +0 -1
  188. package/lib/typescript/src/utils/runtimeLog.d.ts +5 -0
  189. package/lib/typescript/src/utils/svgPatterns.d.ts +39 -0
  190. package/package.json +13 -11
  191. package/src/specs/NativeNanoIconsFontLoader.ts +1 -0
  192. package/lib/commonjs/src/core/pipeline/managers.d.ts +0 -11
  193. package/lib/commonjs/src/core/pipeline/managers.js +0 -104
  194. package/lib/commonjs/src/core/pipeline/run.js +0 -189
  195. package/lib/commonjs/src/core/svg/svg_dom.d.ts +0 -51
  196. package/lib/commonjs/src/core/svg/svg_pathops.d.ts +0 -32
  197. package/lib/module/const/codegenPrimitives.js.map +0 -1
  198. package/lib/module/const/colors.js.map +0 -1
  199. package/lib/module/core/font/compile.js +0 -81
  200. package/lib/module/core/font/compile.js.map +0 -1
  201. package/lib/module/core/font/metrics.js +0 -37
  202. package/lib/module/core/font/metrics.js.map +0 -1
  203. package/lib/module/core/pipeline/config.js +0 -20
  204. package/lib/module/core/pipeline/config.js.map +0 -1
  205. package/lib/module/core/pipeline/index.js +0 -5
  206. package/lib/module/core/pipeline/index.js.map +0 -1
  207. package/lib/module/core/pipeline/managers.js +0 -94
  208. package/lib/module/core/pipeline/managers.js.map +0 -1
  209. package/lib/module/core/pipeline/run.js +0 -204
  210. package/lib/module/core/pipeline/run.js.map +0 -1
  211. package/lib/module/core/shims/pathops.py +0 -181
  212. package/lib/module/core/shims/picosvg-0.22.3-py3-none-any.whl +0 -0
  213. package/lib/module/core/svg/layers.js +0 -85
  214. package/lib/module/core/svg/layers.js.map +0 -1
  215. package/lib/module/core/svg/svg_dom.js +0 -170
  216. package/lib/module/core/svg/svg_dom.js.map +0 -1
  217. package/lib/module/core/svg/svg_pathops.js +0 -750
  218. package/lib/module/core/svg/svg_pathops.js.map +0 -1
  219. package/lib/module/core/tsconfig.json +0 -32
  220. package/lib/module/core/types.js +0 -2
  221. package/lib/module/core/types.js.map +0 -1
  222. package/lib/module/createNanoIconsSet.js.map +0 -1
  223. package/lib/module/createNanoIconsSet.native.js.map +0 -1
  224. package/lib/module/createNanoIconsSet.shared.js.map +0 -1
  225. package/lib/module/createNanoIconsSet.web.js.map +0 -1
  226. package/lib/module/index.js.map +0 -1
  227. package/lib/module/index.node.js.map +0 -1
  228. package/lib/module/loadDynamicFont.js.map +0 -1
  229. package/lib/module/specs/NativeNanoIconsFontLoader.js.map +0 -1
  230. package/lib/module/types.js.map +0 -1
  231. package/lib/module/utils/fingerPrint.js.map +0 -1
  232. package/lib/module/utils/glyphRuntime.js.map +0 -1
  233. package/lib/module/utils/parse.js.map +0 -1
  234. package/lib/module/utils/shallowEqualColor.js.map +0 -1
  235. package/lib/typescript/__tests__/build.unit.test.d.ts +0 -3
  236. package/lib/typescript/__tests__/build.unit.test.d.ts.map +0 -1
  237. package/lib/typescript/__tests__/clippath.e2e.test.d.ts +0 -3
  238. package/lib/typescript/__tests__/clippath.e2e.test.d.ts.map +0 -1
  239. package/lib/typescript/__tests__/fingerprint.unit.test.d.ts +0 -3
  240. package/lib/typescript/__tests__/fingerprint.unit.test.d.ts.map +0 -1
  241. package/lib/typescript/__tests__/glyphRuntime.unit.test.d.ts +0 -2
  242. package/lib/typescript/__tests__/glyphRuntime.unit.test.d.ts.map +0 -1
  243. package/lib/typescript/__tests__/link.unit.test.d.ts +0 -3
  244. package/lib/typescript/__tests__/link.unit.test.d.ts.map +0 -1
  245. package/lib/typescript/__tests__/loadDynamicFont.unit.test.d.ts +0 -2
  246. package/lib/typescript/__tests__/loadDynamicFont.unit.test.d.ts.map +0 -1
  247. package/lib/typescript/__tests__/pipeline.e2e.test.d.ts +0 -3
  248. package/lib/typescript/__tests__/pipeline.e2e.test.d.ts.map +0 -1
  249. package/lib/typescript/__tests__/placement.unit.test.d.ts +0 -3
  250. package/lib/typescript/__tests__/placement.unit.test.d.ts.map +0 -1
  251. package/lib/typescript/__tests__/svg_dom.unit.test.d.ts +0 -3
  252. package/lib/typescript/__tests__/svg_dom.unit.test.d.ts.map +0 -1
  253. package/lib/typescript/cli/build.d.ts +0 -32
  254. package/lib/typescript/cli/build.d.ts.map +0 -1
  255. package/lib/typescript/cli/link.d.ts +0 -12
  256. package/lib/typescript/cli/link.d.ts.map +0 -1
  257. package/lib/typescript/cli/logger.d.ts +0 -28
  258. package/lib/typescript/cli/logger.d.ts.map +0 -1
  259. package/lib/typescript/src/const/codegenPrimitives.d.ts.map +0 -1
  260. package/lib/typescript/src/const/colors.d.ts.map +0 -1
  261. package/lib/typescript/src/core/font/compile.d.ts +0 -21
  262. package/lib/typescript/src/core/font/compile.d.ts.map +0 -1
  263. package/lib/typescript/src/core/font/metrics.d.ts +0 -2
  264. package/lib/typescript/src/core/font/metrics.d.ts.map +0 -1
  265. package/lib/typescript/src/core/pipeline/config.d.ts +0 -16
  266. package/lib/typescript/src/core/pipeline/config.d.ts.map +0 -1
  267. package/lib/typescript/src/core/pipeline/index.d.ts +0 -4
  268. package/lib/typescript/src/core/pipeline/index.d.ts.map +0 -1
  269. package/lib/typescript/src/core/pipeline/managers.d.ts +0 -12
  270. package/lib/typescript/src/core/pipeline/managers.d.ts.map +0 -1
  271. package/lib/typescript/src/core/pipeline/run.d.ts +0 -15
  272. package/lib/typescript/src/core/pipeline/run.d.ts.map +0 -1
  273. package/lib/typescript/src/core/svg/layers.d.ts.map +0 -1
  274. package/lib/typescript/src/core/svg/svg_dom.d.ts +0 -52
  275. package/lib/typescript/src/core/svg/svg_dom.d.ts.map +0 -1
  276. package/lib/typescript/src/core/svg/svg_pathops.d.ts +0 -33
  277. package/lib/typescript/src/core/svg/svg_pathops.d.ts.map +0 -1
  278. package/lib/typescript/src/core/types.d.ts.map +0 -1
  279. package/lib/typescript/src/createNanoIconsSet.d.ts.map +0 -1
  280. package/lib/typescript/src/createNanoIconsSet.native.d.ts.map +0 -1
  281. package/lib/typescript/src/createNanoIconsSet.shared.d.ts.map +0 -1
  282. package/lib/typescript/src/createNanoIconsSet.web.d.ts.map +0 -1
  283. package/lib/typescript/src/index.d.ts.map +0 -1
  284. package/lib/typescript/src/index.node.d.ts.map +0 -1
  285. package/lib/typescript/src/loadDynamicFont.d.ts.map +0 -1
  286. package/lib/typescript/src/specs/NanoIconViewNativeComponent.d.ts.map +0 -1
  287. package/lib/typescript/src/specs/NativeNanoIconsFontLoader.d.ts.map +0 -1
  288. package/lib/typescript/src/types.d.ts.map +0 -1
  289. package/lib/typescript/src/utils/fingerPrint.d.ts.map +0 -1
  290. package/lib/typescript/src/utils/glyphRuntime.d.ts.map +0 -1
  291. package/lib/typescript/src/utils/parse.d.ts.map +0 -1
  292. package/lib/typescript/src/utils/shallowEqualColor.d.ts.map +0 -1
  293. package/plugin/src/buildFonts.ts +0 -42
  294. package/plugin/src/index.ts +0 -21
  295. package/plugin/src/types.ts +0 -42
  296. package/plugin/src/withNanoIconsFontLinking.ts +0 -136
  297. package/plugin/tsconfig.json +0 -9
  298. package/scripts/cli.ts +0 -63
  299. package/scripts/tsconfig.json +0 -25
  300. package/src/const/colors.ts +0 -150
  301. package/src/core/font/compile.ts +0 -99
  302. package/src/core/font/metrics.ts +0 -44
  303. package/src/core/pipeline/config.ts +0 -25
  304. package/src/core/pipeline/index.ts +0 -3
  305. package/src/core/pipeline/managers.ts +0 -132
  306. package/src/core/pipeline/run.ts +0 -274
  307. package/src/core/shims/pathops.py +0 -181
  308. package/src/core/shims/picosvg-0.22.3-py3-none-any.whl +0 -0
  309. package/src/core/svg/layers.ts +0 -110
  310. package/src/core/svg/svg_dom.ts +0 -194
  311. package/src/core/svg/svg_pathops.ts +0 -1040
  312. package/src/core/tsconfig.json +0 -32
  313. package/src/core/types.ts +0 -157
  314. package/src/createNanoIconsSet.native.tsx +0 -192
  315. package/src/createNanoIconsSet.shared.tsx +0 -174
  316. package/src/createNanoIconsSet.tsx +0 -20
  317. package/src/createNanoIconsSet.web.tsx +0 -109
  318. package/src/index.node.ts +0 -14
  319. package/src/index.ts +0 -6
  320. package/src/loadDynamicFont.ts +0 -162
  321. package/src/types.ts +0 -31
  322. package/src/utils/fingerPrint.ts +0 -20
  323. package/src/utils/glyphRuntime.ts +0 -46
  324. package/src/utils/parse.ts +0 -67
  325. package/src/utils/shallowEqualColor.ts +0 -17
@@ -1,33 +0,0 @@
1
- import type { PathKitModule, WrappedPath, Point } from '../types.js';
2
- /**
3
- * Convert a path `d` string with evenodd fill semantics to an equivalent
4
- * path that renders identically under nonzero winding.
5
- *
6
- * Steps:
7
- * 1. Parse via PathKit, set fill type to EVENODD, simplify (resolve topology)
8
- * 2. Split into contours, compute containment depths
9
- * 3. Fix winding: even depth = CCW (outer), odd depth = CW (hole)
10
- * 4. Reconstruct d string
11
- */
12
- export declare function convertEvenoddToWinding(PathKit: PathKitModule, d: string): string;
13
- export declare function buildPathopsBackend(PathKit: PathKitModule): {
14
- create_path(fillTypeInt: number): WrappedPath;
15
- clone_path(h: WrappedPath): WrappedPath;
16
- delete_path(h: WrappedPath): void;
17
- get_fill_type(h: WrappedPath): number;
18
- set_fill_type(h: WrappedPath, fillTypeInt: number): true;
19
- move_to(h: WrappedPath, x: number, y: number): void;
20
- line_to(h: WrappedPath, x: number, y: number): void;
21
- quad_to(h: WrappedPath, x1: number, y1: number, x2: number, y2: number): void;
22
- cubic_to(h: WrappedPath, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void;
23
- close(h: WrappedPath): void;
24
- simplify(h: WrappedPath, fixWinding?: boolean): boolean;
25
- stroke(h: WrappedPath, width: number, capInt: number, joinInt: number, miterLimit: number, dashArray: unknown, dashOffset: number): WrappedPath;
26
- convert_conics_to_quads(_h: WrappedPath, _tol: number): void;
27
- transform(h: WrappedPath, a: number, b: number, c: number, d: number, e: number, f: number): WrappedPath;
28
- op(aHandle: WrappedPath, bHandle: WrappedPath, opInt: number): WrappedPath | null;
29
- bounds(h: WrappedPath): [number, number, number, number];
30
- area(h: WrappedPath): number;
31
- iter_segments(h: WrappedPath): Array<[number, Point[]]>;
32
- };
33
- //# sourceMappingURL=svg_pathops.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg_pathops.d.ts","sourceRoot":"","sources":["../../../../../src/core/svg/svg_pathops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EAEb,WAAW,EACX,KAAK,EACN,MAAM,aAAa,CAAC;AA8oBrB;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,aAAa,EACtB,CAAC,EAAE,MAAM,GACR,MAAM,CAwDR;AAGD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa;6BAoF7B,MAAM,GAAG,WAAW;kBAM/B,WAAW,GAAG,WAAW;mBAIxB,WAAW,GAAG,IAAI;qBAIhB,WAAW,GAAG,MAAM;qBAKpB,WAAW,eAAe,MAAM,GAAG,IAAI;eAK7C,WAAW,KAAK,MAAM,KAAK,MAAM,GAAG,IAAI;eAKxC,WAAW,KAAK,MAAM,KAAK,MAAM,GAAG,IAAI;eAK9C,WAAW,MACV,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,GACT,IAAI;gBAKF,WAAW,MACV,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,GACT,IAAI;aAIE,WAAW,GAAG,IAAI;gBAIf,WAAW,yBAAuB,OAAO;cAsBhD,WAAW,SACP,MAAM,UACL,MAAM,WACL,MAAM,cACH,MAAM,aACP,OAAO,cACN,MAAM,GACjB,WAAW;gCAqDc,WAAW,QAAQ,MAAM,GAAG,IAAI;iBAKvD,WAAW,KACX,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,GACR,WAAW;gBAYH,WAAW,WACX,WAAW,SACb,MAAM,GACZ,WAAW,GAAG,IAAI;cAwBX,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAKhD,WAAW,GAAG,MAAM;qBAeX,WAAW,GAAG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anoIconsSet.native.d.ts","sourceRoot":"","sources":["../../../src/createNanoIconsSet.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAc,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAa9D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAgB7B,wBAAgB,aAAa,CAAC,EAAE,SAAS,iBAAiB,EACxD,QAAQ,EAAE,EAAE,GACX,aAAa,CAAC,EAAE,CAAC,CAAC;AACrB,wBAAgB,aAAa,CAAC,EAAE,SAAS,iBAAiB,EACxD,QAAQ,EAAE,EAAE,EACZ,IAAI,EAAE,OAAO,GACZ,aAAa,CAAC,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createNanoIconsSet.shared.d.ts","sourceRoot":"","sources":["../../../src/createNanoIconsSet.shared.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAS9D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,OAAO,GACZ,IAAI,CAmBN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,EAAE,GACX,aAAa,CAAC,EAAE,CAAC,CAAC;AACrB,wBAAgB,eAAe,CAAC,EAAE,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,EAAE,EACZ,IAAI,EAAE,OAAO,GACZ,aAAa,CAAC,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createNanoIconsSet.web.d.ts","sourceRoot":"","sources":["../../../src/createNanoIconsSet.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAQ9D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAG7B,wBAAgB,aAAa,CAAC,EAAE,SAAS,iBAAiB,EACxD,QAAQ,EAAE,EAAE,GACX,aAAa,CAAC,EAAE,CAAC,CA2FnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,KAAK,aAAa,EAClB,KAAK,SAAS,GACf,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../../src/index.node.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadDynamicFont.d.ts","sourceRoot":"","sources":["../../../src/loadDynamicFont.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,KAAK,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAehD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAEpE;AAED,6EAA6E;AAC7E,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAqBpD;AAmCD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GACzB,OAAO,CAAC,IAAI,CAAC,CAuCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAUT;AAED,mDAAmD;AACnD,wBAAgB,2BAA2B,IAAI,IAAI,CAIlD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NanoIconViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/NanoIconViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;IACpB,UAAU,EAAE,KAAK,CAAC;IAClB,SAAS,EAAE,KAAK,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;CACnB;;AAED,wBAAmE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeNanoIconsFontLoader.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeNanoIconsFontLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AA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ACzB,GAAG;IACF,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fingerPrint.d.ts","sourceRoot":"","sources":["../../../../src/utils/fingerPrint.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAetD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"glyphRuntime.d.ts","sourceRoot":"","sources":["../../../../src/utils/glyphRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEnE,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,iBAAiB,EAC5D,QAAQ,EAAE,EAAE,EACZ,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAClB,UAAU,CAKZ;AAED,qEAAqE;AACrE,wBAAgB,eAAe,IAAI,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAU/D;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,SAAS,GAC3C,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,UAAU,CAK7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../src/utils/parse.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAInE;AAGD,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,GACZ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAsD9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shallowEqualColor.d.ts","sourceRoot":"","sources":["../../../../src/utils/shallowEqualColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oGAAoG;AACpG,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,SAAS,EACxC,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,SAAS,GACvC,OAAO,CAUT"}
@@ -1,42 +0,0 @@
1
- import {
2
- buildAllFonts as coreBuildAllFonts,
3
- createQuietLogger,
4
- detectExpoLogLevel,
5
- } from '../../cli/index.js';
6
- import type { IconSetConfig, BuiltFont } from './types.js';
7
-
8
- /**
9
- * Build TTF + glyphmap for all icon sets.
10
- * Shows an ora spinner per font set; catches errors and displays a friendly message
11
- * unless EXPO_DEBUG is set, in which case the full error is re-thrown.
12
- */
13
- export async function buildAllFonts(
14
- iconSets: IconSetConfig[],
15
- projectRoot: string
16
- ): Promise<BuiltFont[]> {
17
- const level = detectExpoLogLevel();
18
- const logger = await createQuietLogger(level);
19
-
20
- try {
21
- return await coreBuildAllFonts(iconSets, projectRoot, { logger });
22
- } catch (err: unknown) {
23
- if (level === 'verbose') {
24
- throw err;
25
- }
26
- logger.fail('Error optimizing icons. Run with EXPO_DEBUG=1 for more logs.');
27
- return [];
28
- }
29
- }
30
-
31
- // Single build run per process; reused across ios/android mods.
32
- let _buildPromise: Promise<BuiltFont[]> | null = null;
33
-
34
- export function getOrBuildFonts(
35
- projectRoot: string,
36
- iconSets: IconSetConfig[]
37
- ): Promise<BuiltFont[]> {
38
- if (!_buildPromise) {
39
- _buildPromise = buildAllFonts(iconSets, projectRoot);
40
- }
41
- return _buildPromise;
42
- }
@@ -1,21 +0,0 @@
1
- import type { ConfigPlugin } from '@expo/config-plugins';
2
- import { withNanoIconsFontLinking } from './withNanoIconsFontLinking.js';
3
- import type { NanoIconsPluginOptions } from './types.js';
4
-
5
- const withNanoIcons: ConfigPlugin<NanoIconsPluginOptions> = (
6
- config,
7
- options
8
- ) => {
9
- if (!options?.iconSets?.length) return config;
10
-
11
- config = withNanoIconsFontLinking(config, options.iconSets);
12
-
13
- return config;
14
- };
15
-
16
- export default withNanoIcons;
17
- export type {
18
- NanoIconsPluginOptions,
19
- IconSetConfig,
20
- BuiltFont,
21
- } from './types.js';
@@ -1,42 +0,0 @@
1
- /**
2
- * Config for one icon set: input SVGs → one TTF + glyphmap.
3
- */
4
- export interface IconSetConfig {
5
- /** Path to folder of SVG files (relative to project root). */
6
- inputDir: string;
7
- /** Font family name (used for TTF and glyphmap filenames). */
8
- fontFamily: string;
9
- /** Path where .ttf and .glyphmap.json will be saved. Defaults to a sibling nanoicons folder relative to inputDir. */
10
- outputDir?: string;
11
- /** Units per em (default 1024). */
12
- upm?: number;
13
- /** Safe zone inside UPM for glyphs (default 1020). */
14
- safeZone?: number;
15
- /** First Unicode codepoint for glyphs (default 0xe900). Hex string or number. */
16
- startUnicode?: number | string;
17
- /**
18
- * Delivery mode for the generated TTF. Defaults to `'static'`.
19
- *
20
- * - `'static'`: TTF is bundled into the native app.
21
- * - `'dynamic'`: TTF is excluded from native bundling - the host app is responsible for
22
- * delivering it (e.g. via OTA) and registering it under the same font family name.
23
- */
24
- linking?: 'static' | 'dynamic';
25
- }
26
-
27
- /**
28
- * plugins: [ [ "react-native-nano-icons", { iconSets: [...] } ] ]
29
- */
30
- export interface NanoIconsPluginOptions {
31
- iconSets: IconSetConfig[];
32
- }
33
-
34
- /**
35
- * Result of building one icon set.
36
- */
37
- export interface BuiltFont {
38
- fontFamily: string;
39
- ttfPath: string;
40
- glyphmapPath: string;
41
- linking: 'static' | 'dynamic';
42
- }
@@ -1,136 +0,0 @@
1
- import {
2
- IOSConfig,
3
- withInfoPlist,
4
- withXcodeProject,
5
- withDangerousMod,
6
- } from '@expo/config-plugins';
7
- import type { InfoPlist } from '@expo/config-plugins';
8
- import fs from 'fs/promises';
9
- import path from 'path';
10
- import { getOrBuildFonts } from './buildFonts.js';
11
- import type { IconSetConfig } from './types.js';
12
-
13
- const ANDROID_ASSETS_FONTS_DIR = 'app/src/main/assets/fonts';
14
- const IOS_FONTS_GROUP = 'Resources';
15
-
16
- /**
17
- * Add TTFs to the iOS project (Resources group + UIAppFonts in Info.plist).
18
- *
19
- * Copies each .ttf into ios/<projectName>/Resources/ on every prebuild so that
20
- * Xcode's incremental build reliably picks up updated glyph data. Referencing
21
- * the .ttf via a relative path outside ios/ leaves stale fonts in the .app
22
- * bundle when only the file contents change.
23
- */
24
- export function withNanoIconsIos(
25
- config: Parameters<typeof withXcodeProject>[0],
26
- iconSets: IconSetConfig[]
27
- ): ReturnType<typeof withXcodeProject> {
28
- config = withXcodeProject(config, async (config) => {
29
- const built = await getOrBuildFonts(
30
- config.modRequest.projectRoot,
31
- iconSets
32
- );
33
- const bundled = built?.filter((b) => b.linking !== 'dynamic') ?? [];
34
- if (!bundled.length) return config;
35
- const project = config.modResults;
36
- const platformProjectRoot = config.modRequest.platformProjectRoot;
37
- const projectName =
38
- config.modRequest.projectName ??
39
- IOSConfig.XcodeUtils.getProjectName(config.modRequest.projectRoot);
40
- const fontsDir = path.join(
41
- platformProjectRoot,
42
- projectName,
43
- IOS_FONTS_GROUP
44
- );
45
- await fs.mkdir(fontsDir, { recursive: true });
46
- IOSConfig.XcodeUtils.ensureGroupRecursively(project, IOS_FONTS_GROUP);
47
- for (const { ttfPath } of bundled) {
48
- const dest = path.join(fontsDir, path.basename(ttfPath));
49
- await fs.copyFile(ttfPath, dest);
50
- const relativePath = path.relative(platformProjectRoot, dest);
51
- IOSConfig.XcodeUtils.addResourceFileToGroup({
52
- filepath: relativePath,
53
- groupName: IOS_FONTS_GROUP,
54
- project,
55
- isBuildFile: true,
56
- verbose: true,
57
- });
58
- }
59
- return config;
60
- });
61
-
62
- config = withInfoPlist(
63
- config as Parameters<typeof withInfoPlist>[0],
64
- async (config) => {
65
- const built = await getOrBuildFonts(
66
- config.modRequest.projectRoot,
67
- iconSets
68
- );
69
- const bundled = built?.filter((b) => b.linking !== 'dynamic') ?? [];
70
- if (!bundled.length) return config;
71
- const ttfPaths = bundled.map((b) => b.ttfPath);
72
- const existingFonts = getUIAppFonts(config.modResults);
73
- const fontList = ttfPaths.map((f) => path.basename(f));
74
- const allFonts = [...existingFonts, ...fontList];
75
- config.modResults.UIAppFonts = Array.from(new Set(allFonts));
76
- return config;
77
- }
78
- );
79
-
80
- return config;
81
- }
82
-
83
- function getUIAppFonts(infoPlist: InfoPlist): string[] {
84
- const fonts = infoPlist['UIAppFonts'];
85
- if (
86
- fonts != null &&
87
- Array.isArray(fonts) &&
88
- fonts.every((font) => typeof font === 'string')
89
- ) {
90
- return fonts as string[];
91
- }
92
- return [];
93
- }
94
-
95
- /**
96
- * Copy TTFs to Android assets/fonts.
97
- */
98
- export function withNanoIconsAndroid(
99
- config: Parameters<typeof withDangerousMod>[0],
100
- iconSets: IconSetConfig[]
101
- ): ReturnType<typeof withDangerousMod> {
102
- return withDangerousMod(config, [
103
- 'android',
104
- async (config) => {
105
- const built = await getOrBuildFonts(
106
- config.modRequest.projectRoot,
107
- iconSets
108
- );
109
- const bundled = built?.filter((b) => b.linking !== 'dynamic') ?? [];
110
- if (!bundled.length) return config;
111
- const fontsDir = path.join(
112
- config.modRequest.platformProjectRoot,
113
- ANDROID_ASSETS_FONTS_DIR
114
- );
115
- await fs.mkdir(fontsDir, { recursive: true });
116
- for (const b of bundled) {
117
- const filename = path.basename(b.ttfPath);
118
- const dest = path.join(fontsDir, filename);
119
- await fs.copyFile(b.ttfPath, dest);
120
- }
121
- return config;
122
- },
123
- ]);
124
- }
125
-
126
- /**
127
- * Apply iOS and Android font linking.
128
- */
129
- export function withNanoIconsFontLinking(
130
- config: Parameters<typeof withNanoIconsIos>[0],
131
- iconSets: IconSetConfig[]
132
- ): ReturnType<typeof withNanoIconsAndroid> {
133
- config = withNanoIconsIos(config, iconSets);
134
- config = withNanoIconsAndroid(config, iconSets);
135
- return config;
136
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "expo-module-scripts/tsconfig.plugin",
3
- "compilerOptions": {
4
- "outDir": "../lib/commonjs",
5
- "rootDir": ".."
6
- },
7
- "include": ["./src/**/*"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
9
- }
package/scripts/cli.ts DELETED
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Run from your app root: npx react-native-nano-icons [--verbose] [--path <dir>] [--dynamic] [--app-config]
4
- *
5
- * Flags:
6
- * --verbose Show per-SVG processing details and pipeline timing
7
- * --path <dir> Directory containing .nanoicons.json (default: cwd)
8
- * --dynamic Rebuild only icon sets with linking: 'dynamic'. Skips native linking —
9
- * use this for OTA font regeneration without running expo prebuild.
10
- * --app-config Read config from Expo app config (app.json / app.config.js / app.config.ts)
11
- * instead of .nanoicons.json. Must be combined with --dynamic.
12
- */
13
- import path from 'node:path';
14
- import {
15
- createOraLogger,
16
- loadNanoIconsConfig,
17
- loadDynamicIconSets,
18
- loadDynamicSetsFromAppConfig,
19
- buildAllFonts,
20
- linkBare,
21
- } from '../cli/index.js';
22
-
23
- async function main(): Promise<void> {
24
- const verbose = process.argv.includes('--verbose');
25
- const dynamic = process.argv.includes('--dynamic');
26
- const appConfig = process.argv.includes('--app-config');
27
- const level = verbose ? 'verbose' : 'normal';
28
-
29
- const pathIdx = process.argv.indexOf('--path');
30
- const projectRoot = process.cwd();
31
- const configRoot =
32
- pathIdx !== -1 && process.argv[pathIdx + 1]
33
- ? path.resolve(projectRoot, process.argv[pathIdx + 1]!)
34
- : projectRoot;
35
-
36
- const logger = await createOraLogger(level);
37
-
38
- if (dynamic) {
39
- const source = appConfig ? 'Expo app config' : '.nanoicons.json';
40
- logger.start(`Reading dynamic icon sets from ${source}...`);
41
-
42
- const dynamicIconSets = appConfig
43
- ? loadDynamicSetsFromAppConfig(projectRoot)
44
- : loadDynamicIconSets(configRoot);
45
-
46
- logger.succeed(
47
- `Found ${dynamicIconSets.length} dynamic icon set(s) — skipping native linking.`
48
- );
49
-
50
- await buildAllFonts(dynamicIconSets, projectRoot, { logger });
51
- } else {
52
- const config = loadNanoIconsConfig(configRoot);
53
- const built = await buildAllFonts(config.iconSets, projectRoot, { logger });
54
-
55
- await linkBare(projectRoot, built, logger);
56
- }
57
- }
58
-
59
- main().catch((err: unknown) => {
60
- const message = err instanceof Error ? err.message : String(err);
61
- console.error(message);
62
- process.exit(1);
63
- });
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": "..",
4
- "outDir": "../lib/commonjs",
5
-
6
- "target": "ES2022",
7
- "module": "NodeNext",
8
- "moduleResolution": "NodeNext",
9
-
10
- "lib": ["ES2022"],
11
- "types": ["node"],
12
-
13
- "esModuleInterop": true,
14
- "resolveJsonModule": true,
15
- "skipLibCheck": true,
16
-
17
- "noEmit": false,
18
- "declaration": false,
19
-
20
- "sourceMap": false,
21
- "inlineSources": false
22
- },
23
- "include": ["./**/*.ts"],
24
- "exclude": ["**/*.test.ts", "**/__tests__/**"]
25
- }
@@ -1,150 +0,0 @@
1
- export const CSS_NAMED_COLORS: Record<string, [number, number, number]> = {
2
- aliceblue: [240, 248, 255],
3
- antiquewhite: [250, 235, 215],
4
- aqua: [0, 255, 255],
5
- aquamarine: [127, 255, 212],
6
- azure: [240, 255, 255],
7
- beige: [245, 245, 220],
8
- bisque: [255, 228, 196],
9
- black: [0, 0, 0],
10
- blanchedalmond: [255, 235, 205],
11
- blue: [0, 0, 255],
12
- blueviolet: [138, 43, 226],
13
- brown: [165, 42, 42],
14
- burlywood: [222, 184, 135],
15
- cadetblue: [95, 158, 160],
16
- chartreuse: [127, 255, 0],
17
- chocolate: [210, 105, 30],
18
- coral: [255, 127, 80],
19
- cornflowerblue: [100, 149, 237],
20
- cornsilk: [255, 248, 220],
21
- crimson: [220, 20, 60],
22
- cyan: [0, 255, 255],
23
- darkblue: [0, 0, 139],
24
- darkcyan: [0, 139, 139],
25
- darkgoldenrod: [184, 134, 11],
26
- darkgray: [169, 169, 169],
27
- darkgreen: [0, 100, 0],
28
- darkgrey: [169, 169, 169],
29
- darkkhaki: [189, 183, 107],
30
- darkmagenta: [139, 0, 139],
31
- darkolivegreen: [85, 107, 47],
32
- darkorange: [255, 140, 0],
33
- darkorchid: [153, 50, 204],
34
- darkred: [139, 0, 0],
35
- darksalmon: [233, 150, 122],
36
- darkseagreen: [143, 188, 143],
37
- darkslateblue: [72, 61, 139],
38
- darkslategray: [47, 79, 79],
39
- darkslategrey: [47, 79, 79],
40
- darkturquoise: [0, 206, 209],
41
- darkviolet: [148, 0, 211],
42
- deeppink: [255, 20, 147],
43
- deepskyblue: [0, 191, 255],
44
- dimgray: [105, 105, 105],
45
- dimgrey: [105, 105, 105],
46
- dodgerblue: [30, 144, 255],
47
- firebrick: [178, 34, 34],
48
- floralwhite: [255, 250, 240],
49
- forestgreen: [34, 139, 34],
50
- fuchsia: [255, 0, 255],
51
- gainsboro: [220, 220, 220],
52
- ghostwhite: [248, 248, 255],
53
- gold: [255, 215, 0],
54
- goldenrod: [218, 165, 32],
55
- gray: [128, 128, 128],
56
- green: [0, 128, 0],
57
- greenyellow: [173, 255, 47],
58
- grey: [128, 128, 128],
59
- honeydew: [240, 255, 240],
60
- hotpink: [255, 105, 180],
61
- indianred: [205, 92, 92],
62
- indigo: [75, 0, 130],
63
- ivory: [255, 255, 240],
64
- khaki: [240, 230, 140],
65
- lavender: [230, 230, 250],
66
- lavenderblush: [255, 240, 245],
67
- lawngreen: [124, 252, 0],
68
- lemonchiffon: [255, 250, 205],
69
- lightblue: [173, 216, 230],
70
- lightcoral: [240, 128, 128],
71
- lightcyan: [224, 255, 255],
72
- lightgoldenrodyellow: [250, 250, 210],
73
- lightgray: [211, 211, 211],
74
- lightgreen: [144, 238, 144],
75
- lightgrey: [211, 211, 211],
76
- lightpink: [255, 182, 193],
77
- lightsalmon: [255, 160, 122],
78
- lightseagreen: [32, 178, 170],
79
- lightskyblue: [135, 206, 250],
80
- lightslategray: [119, 136, 153],
81
- lightslategrey: [119, 136, 153],
82
- lightsteelblue: [176, 196, 222],
83
- lightyellow: [255, 255, 224],
84
- lime: [0, 255, 0],
85
- limegreen: [50, 205, 50],
86
- linen: [250, 240, 230],
87
- magenta: [255, 0, 255],
88
- maroon: [128, 0, 0],
89
- mediumaquamarine: [102, 205, 170],
90
- mediumblue: [0, 0, 205],
91
- mediumorchid: [186, 85, 211],
92
- mediumpurple: [147, 112, 219],
93
- mediumseagreen: [60, 179, 113],
94
- mediumslateblue: [123, 104, 238],
95
- mediumspringgreen: [0, 250, 154],
96
- mediumturquoise: [72, 209, 204],
97
- mediumvioletred: [199, 21, 133],
98
- midnightblue: [25, 25, 112],
99
- mintcream: [245, 255, 250],
100
- mistyrose: [255, 228, 225],
101
- moccasin: [255, 228, 181],
102
- navajowhite: [255, 222, 173],
103
- navy: [0, 0, 128],
104
- oldlace: [253, 245, 230],
105
- olive: [128, 128, 0],
106
- olivedrab: [107, 142, 35],
107
- orange: [255, 165, 0],
108
- orangered: [255, 69, 0],
109
- orchid: [218, 112, 214],
110
- palegoldenrod: [238, 232, 170],
111
- palegreen: [152, 251, 152],
112
- paleturquoise: [175, 238, 238],
113
- palevioletred: [219, 112, 147],
114
- papayawhip: [255, 239, 213],
115
- peachpuff: [255, 218, 185],
116
- peru: [205, 133, 63],
117
- pink: [255, 192, 203],
118
- plum: [221, 160, 221],
119
- powderblue: [176, 224, 230],
120
- purple: [128, 0, 128],
121
- rebeccapurple: [102, 51, 153],
122
- red: [255, 0, 0],
123
- rosybrown: [188, 143, 143],
124
- royalblue: [65, 105, 225],
125
- saddlebrown: [139, 69, 19],
126
- salmon: [250, 128, 114],
127
- sandybrown: [244, 164, 96],
128
- seagreen: [46, 139, 87],
129
- seashell: [255, 245, 238],
130
- sienna: [160, 82, 45],
131
- silver: [192, 192, 192],
132
- skyblue: [135, 206, 235],
133
- slateblue: [106, 90, 205],
134
- slategray: [112, 128, 144],
135
- slategrey: [112, 128, 144],
136
- snow: [255, 250, 250],
137
- springgreen: [0, 255, 127],
138
- steelblue: [70, 130, 180],
139
- tan: [210, 180, 140],
140
- teal: [0, 128, 128],
141
- thistle: [216, 191, 216],
142
- tomato: [255, 99, 71],
143
- turquoise: [64, 224, 208],
144
- violet: [238, 130, 238],
145
- wheat: [245, 222, 179],
146
- white: [255, 255, 255],
147
- whitesmoke: [245, 245, 245],
148
- yellow: [255, 255, 0],
149
- yellowgreen: [154, 205, 50],
150
- };