@buoy-gg/floating-tools-core 7.0.38 → 7.0.39

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 (371) hide show
  1. package/lib/commonjs/FloatingToolsStore.js +512 -1
  2. package/lib/commonjs/colors.js +54 -1
  3. package/lib/commonjs/constants.js +31 -1
  4. package/lib/commonjs/devToolsState.js +325 -1
  5. package/lib/commonjs/dial.js +639 -1
  6. package/lib/commonjs/dialUsage.js +130 -1
  7. package/lib/commonjs/easing.js +69 -1
  8. package/lib/commonjs/floating.js +75 -1
  9. package/lib/commonjs/fonts.js +31 -1
  10. package/lib/commonjs/fonts.web.js +8 -1
  11. package/lib/commonjs/icons/ask-buoy-icon.js +17 -1
  12. package/lib/commonjs/icons/ask-buoy-icon.native.js +32 -1
  13. package/lib/commonjs/icons/assets-icon.js +19 -1
  14. package/lib/commonjs/icons/assets-icon.native.js +17 -1
  15. package/lib/commonjs/icons/benchmark-icon.js +19 -1
  16. package/lib/commonjs/icons/benchmark-icon.native.js +17 -1
  17. package/lib/commonjs/icons/bif-raster-icon.js +49 -1
  18. package/lib/commonjs/icons/bif-raster-icon.native.js +47 -1
  19. package/lib/commonjs/icons/camera-icon.js +19 -1
  20. package/lib/commonjs/icons/camera-icon.native.js +17 -1
  21. package/lib/commonjs/icons/console-icon.js +17 -1
  22. package/lib/commonjs/icons/console-icon.native.js +32 -1
  23. package/lib/commonjs/icons/env-icon.js +19 -1
  24. package/lib/commonjs/icons/env-icon.native.js +17 -1
  25. package/lib/commonjs/icons/events-icon.js +19 -1
  26. package/lib/commonjs/icons/events-icon.native.js +17 -1
  27. package/lib/commonjs/icons/generated/assets-raster.g.js +8 -1
  28. package/lib/commonjs/icons/generated/benchmark-raster.g.js +8 -1
  29. package/lib/commonjs/icons/generated/camera-raster.g.js +8 -1
  30. package/lib/commonjs/icons/generated/env-raster.g.js +8 -1
  31. package/lib/commonjs/icons/generated/events-raster.g.js +8 -1
  32. package/lib/commonjs/icons/generated/glyph-icons.g.js +299 -1
  33. package/lib/commonjs/icons/generated/highlight-raster.g.js +8 -1
  34. package/lib/commonjs/icons/generated/highlighter-raster.g.js +8 -1
  35. package/lib/commonjs/icons/generated/icon-data.g.js +33855 -1
  36. package/lib/commonjs/icons/generated/image-overlay-raster.g.js +8 -1
  37. package/lib/commonjs/icons/generated/images-raster.g.js +8 -1
  38. package/lib/commonjs/icons/generated/network-raster.g.js +8 -1
  39. package/lib/commonjs/icons/generated/raster-icons.g.js +19 -1
  40. package/lib/commonjs/icons/generated/riverpod-raster.g.js +8 -1
  41. package/lib/commonjs/icons/generated/routes-raster.g.js +8 -1
  42. package/lib/commonjs/icons/generated/settings-raster.g.js +8 -1
  43. package/lib/commonjs/icons/generated/storage-raster.g.js +8 -1
  44. package/lib/commonjs/icons/generated/wifi-raster.g.js +8 -1
  45. package/lib/commonjs/icons/highlight-icon.js +19 -1
  46. package/lib/commonjs/icons/highlight-icon.native.js +17 -1
  47. package/lib/commonjs/icons/highlighter-icon.js +27 -1
  48. package/lib/commonjs/icons/highlighter-icon.native.js +25 -1
  49. package/lib/commonjs/icons/icon-factories.js +173 -1
  50. package/lib/commonjs/icons/icon-primitives.js +676 -1
  51. package/lib/commonjs/icons/icon-primitives.native.js +904 -1
  52. package/lib/commonjs/icons/icon-renderer.js +307 -1
  53. package/lib/commonjs/icons/iconGlow.js +32 -1
  54. package/lib/commonjs/icons/image-overlay-icon.js +19 -1
  55. package/lib/commonjs/icons/image-overlay-icon.native.js +17 -1
  56. package/lib/commonjs/icons/images-icon.js +19 -1
  57. package/lib/commonjs/icons/images-icon.native.js +17 -1
  58. package/lib/commonjs/icons/impersonate-icon.js +17 -1
  59. package/lib/commonjs/icons/impersonate-icon.native.js +32 -1
  60. package/lib/commonjs/icons/jotai-icon.js +17 -1
  61. package/lib/commonjs/icons/jotai-icon.native.js +34 -1
  62. package/lib/commonjs/icons/network-icon.js +19 -1
  63. package/lib/commonjs/icons/network-icon.native.js +17 -1
  64. package/lib/commonjs/icons/query-icon.js +17 -1
  65. package/lib/commonjs/icons/query-icon.native.js +34 -1
  66. package/lib/commonjs/icons/raster-icon.js +51 -1
  67. package/lib/commonjs/icons/redux-icon.js +17 -1
  68. package/lib/commonjs/icons/redux-icon.native.js +35 -1
  69. package/lib/commonjs/icons/renders-icon.js +30 -1
  70. package/lib/commonjs/icons/renders-icon.native.js +30 -1
  71. package/lib/commonjs/icons/riverpod-icon.js +19 -1
  72. package/lib/commonjs/icons/riverpod-icon.native.js +17 -1
  73. package/lib/commonjs/icons/routes-icon.js +35 -1
  74. package/lib/commonjs/icons/routes-icon.native.js +33 -1
  75. package/lib/commonjs/icons/routes-parts.js +47 -1
  76. package/lib/commonjs/icons/scenarios-icon.js +17 -1
  77. package/lib/commonjs/icons/scenarios-icon.native.js +32 -1
  78. package/lib/commonjs/icons/sentry-icon.js +17 -1
  79. package/lib/commonjs/icons/sentry-icon.native.js +36 -1
  80. package/lib/commonjs/icons/settings-icon.js +13 -1
  81. package/lib/commonjs/icons/settings-icon.native.js +11 -1
  82. package/lib/commonjs/icons/storage-icon.js +19 -1
  83. package/lib/commonjs/icons/storage-icon.native.js +17 -1
  84. package/lib/commonjs/icons/time-machine-icon.js +17 -1
  85. package/lib/commonjs/icons/time-machine-icon.native.js +32 -1
  86. package/lib/commonjs/icons/wifi-icon.js +19 -1
  87. package/lib/commonjs/icons/wifi-icon.native.js +17 -1
  88. package/lib/commonjs/icons/zustand-icon.js +17 -1
  89. package/lib/commonjs/icons/zustand-icon.native.js +34 -1
  90. package/lib/commonjs/index.js +1099 -1
  91. package/lib/commonjs/settings.js +601 -1
  92. package/lib/commonjs/utils.js +72 -1
  93. package/lib/module/FloatingToolsStore.js +507 -1
  94. package/lib/module/colors.js +49 -1
  95. package/lib/module/constants.js +27 -1
  96. package/lib/module/devToolsState.js +318 -1
  97. package/lib/module/dial.js +624 -1
  98. package/lib/module/dialUsage.js +122 -1
  99. package/lib/module/easing.js +62 -1
  100. package/lib/module/floating.js +9 -1
  101. package/lib/module/fonts.js +28 -1
  102. package/lib/module/fonts.web.js +4 -1
  103. package/lib/module/icons/ask-buoy-icon.js +6 -1
  104. package/lib/module/icons/ask-buoy-icon.native.js +23 -1
  105. package/lib/module/icons/assets-icon.js +8 -1
  106. package/lib/module/icons/assets-icon.native.js +7 -1
  107. package/lib/module/icons/benchmark-icon.js +8 -1
  108. package/lib/module/icons/benchmark-icon.native.js +7 -1
  109. package/lib/module/icons/bif-raster-icon.js +46 -1
  110. package/lib/module/icons/bif-raster-icon.native.js +44 -1
  111. package/lib/module/icons/camera-icon.js +8 -1
  112. package/lib/module/icons/camera-icon.native.js +7 -1
  113. package/lib/module/icons/console-icon.js +6 -1
  114. package/lib/module/icons/console-icon.native.js +23 -1
  115. package/lib/module/icons/env-icon.js +8 -1
  116. package/lib/module/icons/env-icon.native.js +7 -1
  117. package/lib/module/icons/events-icon.js +8 -1
  118. package/lib/module/icons/events-icon.native.js +7 -1
  119. package/lib/module/icons/generated/assets-raster.g.js +4 -1
  120. package/lib/module/icons/generated/benchmark-raster.g.js +4 -1
  121. package/lib/module/icons/generated/camera-raster.g.js +4 -1
  122. package/lib/module/icons/generated/env-raster.g.js +4 -1
  123. package/lib/module/icons/generated/events-raster.g.js +4 -1
  124. package/lib/module/icons/generated/glyph-icons.g.js +296 -1
  125. package/lib/module/icons/generated/highlight-raster.g.js +4 -1
  126. package/lib/module/icons/generated/highlighter-raster.g.js +4 -1
  127. package/lib/module/icons/generated/icon-data.g.js +33850 -1
  128. package/lib/module/icons/generated/image-overlay-raster.g.js +4 -1
  129. package/lib/module/icons/generated/images-raster.g.js +4 -1
  130. package/lib/module/icons/generated/network-raster.g.js +4 -1
  131. package/lib/module/icons/generated/raster-icons.g.js +15 -1
  132. package/lib/module/icons/generated/riverpod-raster.g.js +4 -1
  133. package/lib/module/icons/generated/routes-raster.g.js +4 -1
  134. package/lib/module/icons/generated/settings-raster.g.js +4 -1
  135. package/lib/module/icons/generated/storage-raster.g.js +4 -1
  136. package/lib/module/icons/generated/wifi-raster.g.js +4 -1
  137. package/lib/module/icons/highlight-icon.js +8 -1
  138. package/lib/module/icons/highlight-icon.native.js +7 -1
  139. package/lib/module/icons/highlighter-icon.js +10 -1
  140. package/lib/module/icons/highlighter-icon.native.js +9 -1
  141. package/lib/module/icons/icon-factories.js +163 -1
  142. package/lib/module/icons/icon-primitives.js +673 -1
  143. package/lib/module/icons/icon-primitives.native.js +899 -1
  144. package/lib/module/icons/icon-renderer.js +302 -1
  145. package/lib/module/icons/iconGlow.js +28 -1
  146. package/lib/module/icons/image-overlay-icon.js +8 -1
  147. package/lib/module/icons/image-overlay-icon.native.js +7 -1
  148. package/lib/module/icons/images-icon.js +8 -1
  149. package/lib/module/icons/images-icon.native.js +7 -1
  150. package/lib/module/icons/impersonate-icon.js +6 -1
  151. package/lib/module/icons/impersonate-icon.native.js +23 -1
  152. package/lib/module/icons/jotai-icon.js +6 -1
  153. package/lib/module/icons/jotai-icon.native.js +25 -1
  154. package/lib/module/icons/network-icon.js +8 -1
  155. package/lib/module/icons/network-icon.native.js +7 -1
  156. package/lib/module/icons/query-icon.js +6 -1
  157. package/lib/module/icons/query-icon.native.js +25 -1
  158. package/lib/module/icons/raster-icon.js +48 -1
  159. package/lib/module/icons/redux-icon.js +6 -1
  160. package/lib/module/icons/redux-icon.native.js +26 -1
  161. package/lib/module/icons/renders-icon.js +3 -1
  162. package/lib/module/icons/renders-icon.native.js +3 -1
  163. package/lib/module/icons/riverpod-icon.js +8 -1
  164. package/lib/module/icons/riverpod-icon.native.js +7 -1
  165. package/lib/module/icons/routes-icon.js +9 -1
  166. package/lib/module/icons/routes-icon.native.js +8 -1
  167. package/lib/module/icons/routes-parts.js +40 -1
  168. package/lib/module/icons/scenarios-icon.js +6 -1
  169. package/lib/module/icons/scenarios-icon.native.js +23 -1
  170. package/lib/module/icons/sentry-icon.js +6 -1
  171. package/lib/module/icons/sentry-icon.native.js +27 -1
  172. package/lib/module/icons/settings-icon.js +7 -1
  173. package/lib/module/icons/settings-icon.native.js +6 -1
  174. package/lib/module/icons/storage-icon.js +8 -1
  175. package/lib/module/icons/storage-icon.native.js +7 -1
  176. package/lib/module/icons/time-machine-icon.js +6 -1
  177. package/lib/module/icons/time-machine-icon.native.js +23 -1
  178. package/lib/module/icons/wifi-icon.js +8 -1
  179. package/lib/module/icons/wifi-icon.native.js +7 -1
  180. package/lib/module/icons/zustand-icon.js +6 -1
  181. package/lib/module/icons/zustand-icon.native.js +25 -1
  182. package/lib/module/index.js +128 -1
  183. package/lib/module/settings.js +589 -1
  184. package/lib/module/utils.js +66 -1
  185. package/lib/typescript/commonjs/FloatingToolsStore.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/colors.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/constants.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/devToolsState.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/dial.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/dialUsage.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/easing.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/floating.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/fonts.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/fonts.web.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/icons/ask-buoy-icon.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/icons/ask-buoy-icon.native.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/icons/assets-icon.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/icons/assets-icon.native.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/icons/benchmark-icon.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/icons/benchmark-icon.native.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/icons/bif-raster-icon.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/icons/bif-raster-icon.native.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/icons/camera-icon.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/icons/camera-icon.native.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/icons/console-icon.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/icons/console-icon.native.d.ts.map +1 -0
  207. package/lib/typescript/commonjs/icons/env-icon.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/icons/env-icon.native.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/icons/events-icon.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/icons/events-icon.native.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/icons/generated/assets-raster.g.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/icons/generated/benchmark-raster.g.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/icons/generated/camera-raster.g.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/icons/generated/env-raster.g.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/icons/generated/events-raster.g.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/icons/generated/glyph-icons.g.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/icons/generated/highlight-raster.g.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/icons/generated/highlighter-raster.g.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/icons/generated/image-overlay-raster.g.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/icons/generated/images-raster.g.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/icons/generated/network-raster.g.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/icons/generated/raster-icons.g.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/icons/generated/riverpod-raster.g.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/icons/generated/routes-raster.g.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/icons/generated/settings-raster.g.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/icons/generated/storage-raster.g.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/icons/generated/wifi-raster.g.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/icons/highlight-icon.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/icons/highlight-icon.native.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/icons/highlighter-icon.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/icons/highlighter-icon.native.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/icons/icon-factories.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/icons/icon-primitives.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/icons/icon-primitives.native.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/icons/icon-renderer.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/icons/iconGlow.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/icons/image-overlay-icon.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/icons/image-overlay-icon.native.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/icons/images-icon.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/icons/images-icon.native.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/icons/impersonate-icon.d.ts.map +1 -0
  243. package/lib/typescript/commonjs/icons/impersonate-icon.native.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/icons/jotai-icon.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/icons/jotai-icon.native.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/icons/network-icon.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/icons/network-icon.native.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/icons/query-icon.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/icons/query-icon.native.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/icons/raster-icon.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/icons/redux-icon.d.ts.map +1 -0
  252. package/lib/typescript/commonjs/icons/redux-icon.native.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/icons/renders-icon.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/icons/renders-icon.native.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/icons/riverpod-icon.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/icons/riverpod-icon.native.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/icons/routes-icon.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/icons/routes-icon.native.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/icons/routes-parts.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/icons/scenarios-icon.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/icons/scenarios-icon.native.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/icons/sentry-icon.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/icons/sentry-icon.native.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/icons/settings-icon.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/icons/settings-icon.native.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/icons/storage-icon.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/icons/storage-icon.native.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/icons/time-machine-icon.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/icons/time-machine-icon.native.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/icons/wifi-icon.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/icons/wifi-icon.native.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/icons/zustand-icon.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/icons/zustand-icon.native.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/settings.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/utils.d.ts.map +1 -0
  278. package/lib/typescript/module/FloatingToolsStore.d.ts.map +1 -0
  279. package/lib/typescript/module/colors.d.ts.map +1 -0
  280. package/lib/typescript/module/constants.d.ts.map +1 -0
  281. package/lib/typescript/module/devToolsState.d.ts.map +1 -0
  282. package/lib/typescript/module/dial.d.ts.map +1 -0
  283. package/lib/typescript/module/dialUsage.d.ts.map +1 -0
  284. package/lib/typescript/module/easing.d.ts.map +1 -0
  285. package/lib/typescript/module/floating.d.ts.map +1 -0
  286. package/lib/typescript/module/fonts.d.ts.map +1 -0
  287. package/lib/typescript/module/fonts.web.d.ts.map +1 -0
  288. package/lib/typescript/module/icons/ask-buoy-icon.d.ts.map +1 -0
  289. package/lib/typescript/module/icons/ask-buoy-icon.native.d.ts.map +1 -0
  290. package/lib/typescript/module/icons/assets-icon.d.ts.map +1 -0
  291. package/lib/typescript/module/icons/assets-icon.native.d.ts.map +1 -0
  292. package/lib/typescript/module/icons/benchmark-icon.d.ts.map +1 -0
  293. package/lib/typescript/module/icons/benchmark-icon.native.d.ts.map +1 -0
  294. package/lib/typescript/module/icons/bif-raster-icon.d.ts.map +1 -0
  295. package/lib/typescript/module/icons/bif-raster-icon.native.d.ts.map +1 -0
  296. package/lib/typescript/module/icons/camera-icon.d.ts.map +1 -0
  297. package/lib/typescript/module/icons/camera-icon.native.d.ts.map +1 -0
  298. package/lib/typescript/module/icons/console-icon.d.ts.map +1 -0
  299. package/lib/typescript/module/icons/console-icon.native.d.ts.map +1 -0
  300. package/lib/typescript/module/icons/env-icon.d.ts.map +1 -0
  301. package/lib/typescript/module/icons/env-icon.native.d.ts.map +1 -0
  302. package/lib/typescript/module/icons/events-icon.d.ts.map +1 -0
  303. package/lib/typescript/module/icons/events-icon.native.d.ts.map +1 -0
  304. package/lib/typescript/module/icons/generated/assets-raster.g.d.ts.map +1 -0
  305. package/lib/typescript/module/icons/generated/benchmark-raster.g.d.ts.map +1 -0
  306. package/lib/typescript/module/icons/generated/camera-raster.g.d.ts.map +1 -0
  307. package/lib/typescript/module/icons/generated/env-raster.g.d.ts.map +1 -0
  308. package/lib/typescript/module/icons/generated/events-raster.g.d.ts.map +1 -0
  309. package/lib/typescript/module/icons/generated/glyph-icons.g.d.ts.map +1 -0
  310. package/lib/typescript/module/icons/generated/highlight-raster.g.d.ts.map +1 -0
  311. package/lib/typescript/module/icons/generated/highlighter-raster.g.d.ts.map +1 -0
  312. package/lib/typescript/module/icons/generated/icon-data.g.d.ts.map +1 -0
  313. package/lib/typescript/module/icons/generated/image-overlay-raster.g.d.ts.map +1 -0
  314. package/lib/typescript/module/icons/generated/images-raster.g.d.ts.map +1 -0
  315. package/lib/typescript/module/icons/generated/network-raster.g.d.ts.map +1 -0
  316. package/lib/typescript/module/icons/generated/raster-icons.g.d.ts.map +1 -0
  317. package/lib/typescript/module/icons/generated/riverpod-raster.g.d.ts.map +1 -0
  318. package/lib/typescript/module/icons/generated/routes-raster.g.d.ts.map +1 -0
  319. package/lib/typescript/module/icons/generated/settings-raster.g.d.ts.map +1 -0
  320. package/lib/typescript/module/icons/generated/storage-raster.g.d.ts.map +1 -0
  321. package/lib/typescript/module/icons/generated/wifi-raster.g.d.ts.map +1 -0
  322. package/lib/typescript/module/icons/highlight-icon.d.ts.map +1 -0
  323. package/lib/typescript/module/icons/highlight-icon.native.d.ts.map +1 -0
  324. package/lib/typescript/module/icons/highlighter-icon.d.ts.map +1 -0
  325. package/lib/typescript/module/icons/highlighter-icon.native.d.ts.map +1 -0
  326. package/lib/typescript/module/icons/icon-factories.d.ts.map +1 -0
  327. package/lib/typescript/module/icons/icon-primitives.d.ts.map +1 -0
  328. package/lib/typescript/module/icons/icon-primitives.native.d.ts.map +1 -0
  329. package/lib/typescript/module/icons/icon-renderer.d.ts.map +1 -0
  330. package/lib/typescript/module/icons/iconGlow.d.ts.map +1 -0
  331. package/lib/typescript/module/icons/image-overlay-icon.d.ts.map +1 -0
  332. package/lib/typescript/module/icons/image-overlay-icon.native.d.ts.map +1 -0
  333. package/lib/typescript/module/icons/images-icon.d.ts.map +1 -0
  334. package/lib/typescript/module/icons/images-icon.native.d.ts.map +1 -0
  335. package/lib/typescript/module/icons/impersonate-icon.d.ts.map +1 -0
  336. package/lib/typescript/module/icons/impersonate-icon.native.d.ts.map +1 -0
  337. package/lib/typescript/module/icons/jotai-icon.d.ts.map +1 -0
  338. package/lib/typescript/module/icons/jotai-icon.native.d.ts.map +1 -0
  339. package/lib/typescript/module/icons/network-icon.d.ts.map +1 -0
  340. package/lib/typescript/module/icons/network-icon.native.d.ts.map +1 -0
  341. package/lib/typescript/module/icons/query-icon.d.ts.map +1 -0
  342. package/lib/typescript/module/icons/query-icon.native.d.ts.map +1 -0
  343. package/lib/typescript/module/icons/raster-icon.d.ts.map +1 -0
  344. package/lib/typescript/module/icons/redux-icon.d.ts.map +1 -0
  345. package/lib/typescript/module/icons/redux-icon.native.d.ts.map +1 -0
  346. package/lib/typescript/module/icons/renders-icon.d.ts.map +1 -0
  347. package/lib/typescript/module/icons/renders-icon.native.d.ts.map +1 -0
  348. package/lib/typescript/module/icons/riverpod-icon.d.ts.map +1 -0
  349. package/lib/typescript/module/icons/riverpod-icon.native.d.ts.map +1 -0
  350. package/lib/typescript/module/icons/routes-icon.d.ts.map +1 -0
  351. package/lib/typescript/module/icons/routes-icon.native.d.ts.map +1 -0
  352. package/lib/typescript/module/icons/routes-parts.d.ts.map +1 -0
  353. package/lib/typescript/module/icons/scenarios-icon.d.ts.map +1 -0
  354. package/lib/typescript/module/icons/scenarios-icon.native.d.ts.map +1 -0
  355. package/lib/typescript/module/icons/sentry-icon.d.ts.map +1 -0
  356. package/lib/typescript/module/icons/sentry-icon.native.d.ts.map +1 -0
  357. package/lib/typescript/module/icons/settings-icon.d.ts.map +1 -0
  358. package/lib/typescript/module/icons/settings-icon.native.d.ts.map +1 -0
  359. package/lib/typescript/module/icons/storage-icon.d.ts.map +1 -0
  360. package/lib/typescript/module/icons/storage-icon.native.d.ts.map +1 -0
  361. package/lib/typescript/module/icons/time-machine-icon.d.ts.map +1 -0
  362. package/lib/typescript/module/icons/time-machine-icon.native.d.ts.map +1 -0
  363. package/lib/typescript/module/icons/wifi-icon.d.ts.map +1 -0
  364. package/lib/typescript/module/icons/wifi-icon.native.d.ts.map +1 -0
  365. package/lib/typescript/module/icons/zustand-icon.d.ts.map +1 -0
  366. package/lib/typescript/module/icons/zustand-icon.native.d.ts.map +1 -0
  367. package/lib/typescript/module/index.d.ts.map +1 -0
  368. package/lib/typescript/module/settings.d.ts.map +1 -0
  369. package/lib/typescript/module/types.d.ts.map +1 -0
  370. package/lib/typescript/module/utils.d.ts.map +1 -0
  371. package/package.json +1 -1
@@ -1 +1,673 @@
1
- "use strict";import{memo}from"react";import{jsx as _jsx,Fragment as _Fragment}from"react/jsx-runtime";const r2=r=>Math.round(100*r)/100;export const IconContainer=({size:r,children:t,style:o})=>{const e={position:"relative",width:r2(r),height:r2(r)};return _jsx("div",{style:{...e,...o},children:t})};function createNeonGlow(r,t){return[`0 0 ${r2(.15*t)}px ${r}`,`0 0 ${r2(.3*t)}px ${r}`,`0 0 ${r2(.6*t)}px ${r}cc`,`0 0 ${r2(t)}px ${r}80`,`0 0 ${r2(1.5*t)}px ${r}40`].join(", ")}const IconCircleImpl=({cx:r,cy:t,r:o,fill:e,borderColor:i,borderWidth:n=0,opacity:a=1,scaleX:s=1,scaleY:c=1,glowColor:l,glowRadius:d=0,rotation:p=0})=>{const h=2*o,x=[];1!==s&&x.push(`scaleX(${r2(s)})`),1!==c&&x.push(`scaleY(${r2(c)})`),0!==p&&x.push(`rotate(${r2(p)}deg)`);const b={position:"absolute",left:r2(r-o),top:r2(t-o),width:r2(h),height:r2(h),borderRadius:r2(o),backgroundColor:e,border:i?`${r2(n)}px solid ${i}`:void 0,opacity:a,transform:x.length>0?x.join(" "):void 0,transformOrigin:"50% 50%",boxShadow:l&&d>0?createNeonGlow(l,d):void 0,boxSizing:"border-box"};return _jsx("div",{style:b})},IconRectImpl=({x:r,y:t,width:o,height:e,fill:i,borderColor:n,borderWidth:a=0,borderRadius:s=0,opacity:c=1,glowColor:l,glowRadius:d=0,rotation:p,originX:h=0,originY:x=.5})=>{const b={position:"absolute",left:r2(r),top:r2(t),width:r2(o),height:r2(e),borderRadius:r2(s),backgroundColor:i,border:n?`${r2(a)}px solid ${n}`:void 0,opacity:c,boxShadow:l&&d>0?createNeonGlow(l,d):void 0,boxSizing:"border-box",transform:void 0!==p?`rotate(${r2(p)}deg)`:void 0,transformOrigin:void 0!==p?`${r2(100*h)}% ${r2(100*x)}%`:void 0};return _jsx("div",{style:b})},IconTextImpl=({x:r,y:t,text:o,fontSize:e,fontWeight:i=700,align:n="center",fill:a,opacity:s=1,rotation:c,letterSpacing:l=0})=>{const d="left"===n?"0%":"right"===n?"-100%":"-50%",p={position:"absolute",left:r2(r),top:r2(t),transform:`translate(${d}, -50%)${void 0!==c?` rotate(${r2(c)}deg)`:""}`,color:a,fontSize:r2(e),fontWeight:i,lineHeight:1,whiteSpace:"nowrap",fontFamily:"'Helvetica Neue', Arial, sans-serif",letterSpacing:l,opacity:s,userSelect:"none"};return _jsx("div",{style:p,children:o})},CURVE_FLATTEN_TOLERANCE=.08,CURVE_FLATTEN_SAFETY=1.5,CURVE_MAX_SEGMENTS=48;function bezierSegmentCount(r,t,o,e,i,n,a,s,c,l){let d;if(c){const c=r-2*o+i,l=t-2*e+n,p=o-2*i+a,h=e-2*n+s;d=3*Math.max(Math.hypot(c,l),Math.hypot(p,h))}else d=Math.hypot(r-2*o+a,t-2*e+s);if(!(d>0))return 2;const p=Math.ceil(1.5*Math.sqrt(d/(8*l)));return Math.max(2,Math.min(48,p))}function getQuadraticBezierPoint(r,t,o,e,i,n,a){const s=1-r;return{x:s*s*t+2*s*r*e+r*r*n,y:s*s*o+2*s*r*i+r*r*a}}function getCubicBezierPoint(r,t,o,e,i,n,a,s,c){const l=1-r,d=l*l,p=d*l,h=r*r,x=h*r;return{x:p*t+3*d*r*e+3*l*h*n+x*s,y:p*o+3*d*r*i+3*l*h*a+x*c}}const IconLineImpl=({x1:r,y1:t,x2:o,y2:e,stroke:i,strokeWidth:n=1,opacity:a=1,glowColor:s,glowRadius:c=0,rotation:l=0,curveX:d,curveY:p,curve2X:h,curve2Y:x})=>{const b=void 0!==d&&0!==d||void 0!==p&&0!==p,m=void 0!==h&&0!==h||void 0!==x&&0!==x;if(b||m){const s=(r+o)/2,c=(t+e)/2,l=s+(d??0),g=c+(p??0),u=s+(h??0),$=c+(x??0),f=b&&m,y=b?l:u,I=b?g:$,v=i=>f?getCubicBezierPoint(i,r,t,l,g,u,$,o,e):getQuadraticBezierPoint(i,r,t,y,I,o,e),w=bezierSegmentCount(r,t,f?l:y,f?g:I,u,$,o,e,f,.08),C=[];let M={x:r,y:t};for(let r=1;r<=w;r++){const t=v(r/w),o=t.x-M.x,e=t.y-M.y,s=Math.sqrt(o*o+e*e),c=Math.atan2(e,o)*(180/Math.PI),l=r>1?n/2:0,d=r<w?n/2:0,p=s+l+d,h=(M.x+t.x)/2+(s>0?o/s:0)*(d-l)/2,x=(M.y+t.y)/2+(s>0?e/s:0)*(d-l)/2;C.push(_jsx("div",{style:{position:"absolute",left:r2(h-p/2),top:r2(x-n/2),width:r2(p),height:r2(n),borderRadius:r2(n/2),backgroundColor:i,opacity:a,transform:`rotate(${r2(c)}deg)`,transformOrigin:"50% 50%"}},`s${r}`)),M=t}return _jsx(_Fragment,{children:C})}const g=o-r,u=e-t,$=Math.sqrt(g*g+u*u),f=Math.atan2(u,g)*(180/Math.PI),y=(t+e)/2,I=f+l,v={position:"absolute",left:r2((r+o)/2-$/2),top:r2(y-n/2),width:r2($),height:r2(n),backgroundColor:i,opacity:a,transform:`rotate(${r2(I)}deg)`,transformOrigin:"50% 50%",borderRadius:r2(n/2),boxShadow:s&&c>0?createNeonGlow(s,c):void 0};return _jsx("div",{style:v})},IconTriangleImpl=({x:r,y:t,size:o,direction:e,fill:i,opacity:n=1,rotation:a})=>{const s=r2(.577*o);let c={},l=0,d=0;switch(e){case"down":c={borderLeft:`${s}px solid transparent`,borderRight:`${s}px solid transparent`,borderTop:`${r2(o)}px solid ${i}`},l=-s,d=0;break;case"up":c={borderLeft:`${s}px solid transparent`,borderRight:`${s}px solid transparent`,borderBottom:`${r2(o)}px solid ${i}`},l=-s,d=-o;break;case"left":c={borderTop:`${s}px solid transparent`,borderBottom:`${s}px solid transparent`,borderRight:`${r2(o)}px solid ${i}`},l=-o,d=-s;break;case"right":c={borderTop:`${s}px solid transparent`,borderBottom:`${s}px solid transparent`,borderLeft:`${r2(o)}px solid ${i}`},l=0,d=-s}const p=[];void 0!==a&&p.push(`rotate(${r2(a)}deg)`);const h={position:"absolute",left:r2(r+l),top:r2(t+d),width:0,height:0,opacity:n,...c,transform:p.length>0?p.join(" "):void 0,transformOrigin:"50% 50%"};return _jsx("div",{style:h})},IconArcImpl=({cx:r,cy:t,r:o,startAngle:e,endAngle:i,stroke:n,strokeWidth:a=1.5,opacity:s=1,segments:c})=>{const l=Math.abs(i-e),d=Math.max(8,Math.ceil(l/10)),p=c??d,h=[],x=(i-e)/p;for(let i=0;i<p;i++){const c=e+(i+1)*x,l=(e+i*x)*Math.PI/180,d=c*Math.PI/180,b=r+o*Math.cos(l),m=t+o*Math.sin(l),g=r+o*Math.cos(d),u=t+o*Math.sin(d),$=g-b,f=u-m,y=Math.sqrt($*$+f*f),I=Math.atan2(f,$)*(180/Math.PI),v=i>0?a/2:0,w=i<p-1?a/2:0,C=y+v+w,M=(m+u)/2+(y>0?f/y:0)*(w-v)/2,S={position:"absolute",left:r2((b+g)/2+(y>0?$/y:0)*(w-v)/2-C/2),top:r2(M-a/2),width:r2(C),height:r2(a),backgroundColor:n,opacity:s,transform:`rotate(${r2(I)}deg)`,transformOrigin:"50% 50%",borderRadius:r2(a/2)};h.push(_jsx("div",{style:S},i))}return _jsx(_Fragment,{children:h})},IconSemicircleImpl=({cx:r,cy:t,r:o,half:e,fill:i,borderColor:n,borderWidth:a=0,opacity:s=1,glowColor:c,glowRadius:l=0})=>{const d=2*o;let p,h,x,b,m;switch(e){case"top":p=r2(r-o),h=r2(t-o),x=r2(d),b=r2(o),m=`${r2(o)}px ${r2(o)}px 0 0`;break;case"bottom":p=r2(r-o),h=r2(t),x=r2(d),b=r2(o),m=`0 0 ${r2(o)}px ${r2(o)}px`;break;case"left":p=r2(r-o),h=r2(t-o),x=r2(o),b=r2(d),m=`${r2(o)}px 0 0 ${r2(o)}px`;break;case"right":p=r2(r),h=r2(t-o),x=r2(o),b=r2(d),m=`0 ${r2(o)}px ${r2(o)}px 0`}const g={position:"absolute",left:p,top:h,width:x,height:b,borderRadius:m,backgroundColor:i,border:n?`${r2(a)}px solid ${n}`:void 0,opacity:s,boxShadow:c&&l>0?createNeonGlow(c,l):void 0,boxSizing:"border-box"};return _jsx("div",{style:g})},IconSmoothArcImpl=({cx:r,cy:t,r:o,stroke:e,strokeWidth:i=2,opacity:n=1,portion:a="bottom"})=>{const s=2*o;let c=e,l=e,d=e,p=e;switch(a){case"bottom":c="transparent",d="transparent",p="transparent";break;case"top":l="transparent",d="transparent",p="transparent";break;case"left":c="transparent",l="transparent",p="transparent";break;case"right":c="transparent",l="transparent",d="transparent"}const h={position:"absolute",left:r2(r-o),top:r2(t-o),width:r2(s),height:r2(s),borderRadius:r2(o),borderWidth:r2(i),borderStyle:"solid",borderTopColor:c,borderBottomColor:l,borderLeftColor:d,borderRightColor:p,opacity:n,boxSizing:"border-box"};return _jsx("div",{style:h})};export const IconCircle=memo(IconCircleImpl);export const IconRect=memo(IconRectImpl);export const IconText=memo(IconTextImpl);export const IconLine=memo(IconLineImpl);export const IconTriangle=memo(IconTriangleImpl);export const IconArc=memo(IconArcImpl);export const IconSemicircle=memo(IconSemicircleImpl);export const IconSmoothArc=memo(IconSmoothArcImpl);
1
+ "use strict";
2
+
3
+ /**
4
+ * Icon Primitives - WEB
5
+ *
6
+ * This file is auto-picked by web bundlers (Vite, webpack).
7
+ * Mobile bundlers (Metro) pick icon-primitives.native.tsx instead.
8
+ */
9
+
10
+ import { memo } from 'react';
11
+
12
+ /**
13
+ * Round to 2 decimals. Computed geometry must not carry full float precision
14
+ * into inline styles: the browser's CSSOM re-serializes numbers to ~6
15
+ * significant digits (e.g. rotate(117.64597536373869deg) -> "117.646deg"), so
16
+ * on server-rendered pages (buoy.gg docs) every full-precision value becomes a
17
+ * React hydration mismatch. Two decimals round-trip exactly and are far below
18
+ * visual tolerance at icon sizes.
19
+ */
20
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
21
+ const r2 = n => Math.round(n * 100) / 100;
22
+
23
+ // ===========================================
24
+ // Types
25
+ // ===========================================
26
+
27
+ // ===========================================
28
+ // Web Primitives (CSS/divs)
29
+ // ===========================================
30
+
31
+ export const IconContainer = ({
32
+ size,
33
+ children,
34
+ style
35
+ }) => {
36
+ const box = {
37
+ position: 'relative',
38
+ width: r2(size),
39
+ height: r2(size)
40
+ };
41
+ return /*#__PURE__*/_jsx("div", {
42
+ style: {
43
+ ...box,
44
+ ...style
45
+ },
46
+ children: children
47
+ });
48
+ };
49
+
50
+ /**
51
+ * Creates a neon glow box-shadow string with multiple layers
52
+ * This mimics SVG Gaussian blur filter effects
53
+ */
54
+ function createNeonGlow(color, radius) {
55
+ // Layer 1: Tight bright core
56
+ // Layer 2: Medium spread
57
+ // Layer 3: Wide soft outer glow
58
+ // Layer 4: Very wide ambient glow
59
+ return [`0 0 ${r2(radius * 0.15)}px ${color}`,
60
+ // Bright core
61
+ `0 0 ${r2(radius * 0.3)}px ${color}`,
62
+ // Inner glow
63
+ `0 0 ${r2(radius * 0.6)}px ${color}cc`,
64
+ // Medium glow (80% opacity)
65
+ `0 0 ${r2(radius)}px ${color}80`,
66
+ // Outer glow (50% opacity)
67
+ `0 0 ${r2(radius * 1.5)}px ${color}40` // Ambient glow (25% opacity)
68
+ ].join(', ');
69
+ }
70
+ const IconCircleImpl = ({
71
+ cx,
72
+ cy,
73
+ r,
74
+ fill,
75
+ borderColor,
76
+ borderWidth = 0,
77
+ opacity = 1,
78
+ scaleX = 1,
79
+ scaleY = 1,
80
+ glowColor,
81
+ glowRadius = 0,
82
+ rotation = 0
83
+ }) => {
84
+ const diameter = r * 2;
85
+ const transforms = [];
86
+ if (scaleX !== 1) transforms.push(`scaleX(${r2(scaleX)})`);
87
+ if (scaleY !== 1) transforms.push(`scaleY(${r2(scaleY)})`);
88
+ if (rotation !== 0) transforms.push(`rotate(${r2(rotation)}deg)`);
89
+ const style = {
90
+ position: 'absolute',
91
+ left: r2(cx - r),
92
+ top: r2(cy - r),
93
+ width: r2(diameter),
94
+ height: r2(diameter),
95
+ borderRadius: r2(r),
96
+ backgroundColor: fill,
97
+ border: borderColor ? `${r2(borderWidth)}px solid ${borderColor}` : undefined,
98
+ opacity,
99
+ transform: transforms.length > 0 ? transforms.join(' ') : undefined,
100
+ transformOrigin: '50% 50%',
101
+ boxShadow: glowColor && glowRadius > 0 ? createNeonGlow(glowColor, glowRadius) : undefined,
102
+ boxSizing: 'border-box'
103
+ };
104
+ return /*#__PURE__*/_jsx("div", {
105
+ style: style
106
+ });
107
+ };
108
+ const IconRectImpl = ({
109
+ x,
110
+ y,
111
+ width,
112
+ height,
113
+ fill,
114
+ borderColor,
115
+ borderWidth = 0,
116
+ borderRadius = 0,
117
+ opacity = 1,
118
+ glowColor,
119
+ glowRadius = 0,
120
+ rotation,
121
+ originX = 0,
122
+ originY = 0.5
123
+ }) => {
124
+ const style = {
125
+ position: 'absolute',
126
+ left: r2(x),
127
+ top: r2(y),
128
+ width: r2(width),
129
+ height: r2(height),
130
+ borderRadius: r2(borderRadius),
131
+ backgroundColor: fill,
132
+ border: borderColor ? `${r2(borderWidth)}px solid ${borderColor}` : undefined,
133
+ opacity,
134
+ boxShadow: glowColor && glowRadius > 0 ? createNeonGlow(glowColor, glowRadius) : undefined,
135
+ boxSizing: 'border-box',
136
+ transform: rotation !== undefined ? `rotate(${r2(rotation)}deg)` : undefined,
137
+ transformOrigin: rotation !== undefined ? `${r2(originX * 100)}% ${r2(originY * 100)}%` : undefined
138
+ };
139
+ return /*#__PURE__*/_jsx("div", {
140
+ style: style
141
+ });
142
+ };
143
+ const IconTextImpl = ({
144
+ x,
145
+ y,
146
+ text,
147
+ fontSize,
148
+ fontWeight = 700,
149
+ align = 'center',
150
+ fill,
151
+ opacity = 1,
152
+ rotation,
153
+ letterSpacing = 0
154
+ }) => {
155
+ const translateX = align === 'left' ? '0%' : align === 'right' ? '-100%' : '-50%';
156
+ const style = {
157
+ position: 'absolute',
158
+ left: r2(x),
159
+ top: r2(y),
160
+ transform: `translate(${translateX}, -50%)${rotation !== undefined ? ` rotate(${r2(rotation)}deg)` : ''}`,
161
+ color: fill,
162
+ fontSize: r2(fontSize),
163
+ fontWeight,
164
+ lineHeight: 1,
165
+ whiteSpace: 'nowrap',
166
+ fontFamily: "'Helvetica Neue', Arial, sans-serif",
167
+ letterSpacing,
168
+ opacity,
169
+ userSelect: 'none'
170
+ };
171
+ return /*#__PURE__*/_jsx("div", {
172
+ style: style,
173
+ children: text
174
+ });
175
+ };
176
+
177
+ /**
178
+ * Curve flattening budget, in px. A curved line is drawn as a polyline of
179
+ * straight capsule segments (the same primitive the straight-line path below
180
+ * uses); the segment count is derived from the standard Bezier flattening
181
+ * bound so the polyline never strays further than this from the true curve,
182
+ * however the curve was authored.
183
+ */
184
+ const CURVE_FLATTEN_TOLERANCE = 0.08;
185
+ /**
186
+ * The analytic bound is derived for a slightly different error metric than the
187
+ * one that matters here (distance from the curve to the *nearest* segment), so
188
+ * the segment count is padded. 1.5 was the smallest factor that satisfied every
189
+ * curve in shared/icons when checked against an exact numeric search.
190
+ */
191
+ const CURVE_FLATTEN_SAFETY = 1.5;
192
+ /** Hard ceiling, so a pathologically authored curve can never explode the tree. */
193
+ const CURVE_MAX_SEGMENTS = 48;
194
+
195
+ /**
196
+ * How many straight segments a Bezier needs to stay within `tolerance` of the
197
+ * true curve, via the second-difference flattening bound.
198
+ */
199
+ function bezierSegmentCount(p0x, p0y, c1x, c1y, c2x, c2y, p1x, p1y, isCubic, tolerance) {
200
+ let secondDiff;
201
+ if (isCubic) {
202
+ const ax = p0x - 2 * c1x + c2x;
203
+ const ay = p0y - 2 * c1y + c2y;
204
+ const bx = c1x - 2 * c2x + p1x;
205
+ const by = c1y - 2 * c2y + p1y;
206
+ secondDiff = 3 * Math.max(Math.hypot(ax, ay), Math.hypot(bx, by));
207
+ } else {
208
+ secondDiff = Math.hypot(p0x - 2 * c1x + p1x, p0y - 2 * c1y + p1y);
209
+ }
210
+ if (!(secondDiff > 0)) return 2;
211
+ const n = Math.ceil(CURVE_FLATTEN_SAFETY * Math.sqrt(secondDiff / (8 * tolerance)));
212
+ return Math.max(2, Math.min(CURVE_MAX_SEGMENTS, n));
213
+ }
214
+
215
+ /**
216
+ * Calculates a point on a quadratic Bezier curve (1 control point)
217
+ * B(t) = (1-t)²P0 + 2(1-t)tP1 + t²P2
218
+ */
219
+ function getQuadraticBezierPoint(t, p0x, p0y, p1x, p1y, p2x, p2y) {
220
+ const mt = 1 - t;
221
+ return {
222
+ x: mt * mt * p0x + 2 * mt * t * p1x + t * t * p2x,
223
+ y: mt * mt * p0y + 2 * mt * t * p1y + t * t * p2y
224
+ };
225
+ }
226
+
227
+ /**
228
+ * Calculates a point on a cubic Bezier curve (2 control points)
229
+ * B(t) = (1-t)³P0 + 3(1-t)²tP1 + 3(1-t)t²P2 + t³P3
230
+ */
231
+ function getCubicBezierPoint(t, p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y) {
232
+ const mt = 1 - t;
233
+ const mt2 = mt * mt;
234
+ const mt3 = mt2 * mt;
235
+ const t2 = t * t;
236
+ const t3 = t2 * t;
237
+ return {
238
+ x: mt3 * p0x + 3 * mt2 * t * p1x + 3 * mt * t2 * p2x + t3 * p3x,
239
+ y: mt3 * p0y + 3 * mt2 * t * p1y + 3 * mt * t2 * p2y + t3 * p3y
240
+ };
241
+ }
242
+
243
+ /**
244
+ * IconLine - draws a line between two points
245
+ * Auto-calculates length and rotation from coordinates!
246
+ * Supports curved lines via cubic Bezier (2 control points) or quadratic (1 control point).
247
+ */
248
+ const IconLineImpl = ({
249
+ x1,
250
+ y1,
251
+ x2,
252
+ y2,
253
+ stroke,
254
+ strokeWidth = 1,
255
+ opacity = 1,
256
+ glowColor,
257
+ glowRadius = 0,
258
+ rotation = 0,
259
+ curveX,
260
+ curveY,
261
+ curve2X,
262
+ curve2Y
263
+ }) => {
264
+ // Check if this is a curved line (either control point set)
265
+ const hasCurve1 = curveX !== undefined && curveX !== 0 || curveY !== undefined && curveY !== 0;
266
+ const hasCurve2 = curve2X !== undefined && curve2X !== 0 || curve2Y !== undefined && curve2Y !== 0;
267
+ const isCurved = hasCurve1 || hasCurve2;
268
+ if (isCurved) {
269
+ const midX = (x1 + x2) / 2;
270
+ const midY = (y1 + y2) / 2;
271
+
272
+ // Control points: offset from line midpoint
273
+ const control1X = midX + (curveX ?? 0);
274
+ const control1Y = midY + (curveY ?? 0);
275
+ const control2X = midX + (curve2X ?? 0);
276
+ const control2Y = midY + (curve2Y ?? 0);
277
+
278
+ // Determine if cubic (2 distinct control points) or quadratic (1 control point)
279
+ const isCubic = hasCurve1 && hasCurve2;
280
+ const soleControlX = hasCurve1 ? control1X : control2X;
281
+ const soleControlY = hasCurve1 ? control1Y : control2Y;
282
+ const pointAt = t => isCubic ? getCubicBezierPoint(t, x1, y1, control1X, control1Y, control2X, control2Y, x2, y2) : getQuadraticBezierPoint(t, x1, y1, soleControlX, soleControlY, x2, y2);
283
+ const segments = bezierSegmentCount(x1, y1, isCubic ? control1X : soleControlX, isCubic ? control1Y : soleControlY, control2X, control2Y, x2, y2, isCubic, CURVE_FLATTEN_TOLERANCE);
284
+ const elements = [];
285
+ let prev = {
286
+ x: x1,
287
+ y: y1
288
+ };
289
+ for (let i = 1; i <= segments; i++) {
290
+ const pt = pointAt(i / segments);
291
+ const segDx = pt.x - prev.x;
292
+ const segDy = pt.y - prev.y;
293
+ const segLength = Math.sqrt(segDx * segDx + segDy * segDy);
294
+ const segAngle = Math.atan2(segDy, segDx) * (180 / Math.PI);
295
+ const segCenterX = (prev.x + pt.x) / 2;
296
+ const segCenterY = (prev.y + pt.y) / 2;
297
+
298
+ // A capsule per segment. Interior joints OVERLAP by half a stroke on each side (a
299
+ // capsule exactly segLength long shrinks to a blob when the segment is shorter than
300
+ // the stroke, and neighbouring round ends leave notches on the outside of a turn —
301
+ // the route-path icon rendered as dashes). The chain's two ends stay exactly at the
302
+ // authored endpoints so a curve is the same length as a straight line.
303
+ const extS = i > 1 ? strokeWidth / 2 : 0;
304
+ const extE = i < segments ? strokeWidth / 2 : 0;
305
+ const ux = segLength > 0 ? segDx / segLength : 0;
306
+ const uy = segLength > 0 ? segDy / segLength : 0;
307
+ const capLength = segLength + extS + extE;
308
+ const capCenterX = segCenterX + ux * (extE - extS) / 2;
309
+ const capCenterY = segCenterY + uy * (extE - extS) / 2;
310
+ elements.push(/*#__PURE__*/_jsx("div", {
311
+ style: {
312
+ position: 'absolute',
313
+ left: r2(capCenterX - capLength / 2),
314
+ top: r2(capCenterY - strokeWidth / 2),
315
+ width: r2(capLength),
316
+ height: r2(strokeWidth),
317
+ borderRadius: r2(strokeWidth / 2),
318
+ backgroundColor: stroke,
319
+ opacity,
320
+ transform: `rotate(${r2(segAngle)}deg)`,
321
+ transformOrigin: '50% 50%'
322
+ }
323
+ }, `s${i}`));
324
+ prev = pt;
325
+ }
326
+ return /*#__PURE__*/_jsx(_Fragment, {
327
+ children: elements
328
+ });
329
+ }
330
+
331
+ // Straight line (original logic)
332
+ const dx = x2 - x1;
333
+ const dy = y2 - y1;
334
+ const length = Math.sqrt(dx * dx + dy * dy);
335
+ const angle = Math.atan2(dy, dx) * (180 / Math.PI);
336
+
337
+ // Position at midpoint of line
338
+ const centerX = (x1 + x2) / 2;
339
+ const centerY = (y1 + y2) / 2;
340
+
341
+ // Total rotation = line angle + additional rotation
342
+ const totalRotation = angle + rotation;
343
+ const style = {
344
+ position: 'absolute',
345
+ left: r2(centerX - length / 2),
346
+ top: r2(centerY - strokeWidth / 2),
347
+ width: r2(length),
348
+ height: r2(strokeWidth),
349
+ backgroundColor: stroke,
350
+ opacity,
351
+ transform: `rotate(${r2(totalRotation)}deg)`,
352
+ transformOrigin: '50% 50%',
353
+ borderRadius: r2(strokeWidth / 2),
354
+ boxShadow: glowColor && glowRadius > 0 ? createNeonGlow(glowColor, glowRadius) : undefined
355
+ };
356
+ return /*#__PURE__*/_jsx("div", {
357
+ style: style
358
+ });
359
+ };
360
+
361
+ /**
362
+ * IconTriangle - creates triangles using CSS border trick
363
+ * Works without SVG!
364
+ */
365
+ const IconTriangleImpl = ({
366
+ x,
367
+ y,
368
+ size,
369
+ direction,
370
+ fill,
371
+ opacity = 1,
372
+ rotation
373
+ }) => {
374
+ // CSS border trick: use transparent borders to create triangle
375
+ // The size is the height of the triangle, width is size * 2 / sqrt(3) for equilateral
376
+ const halfWidth = r2(size * 0.577); // size / sqrt(3) for equilateral-ish triangle
377
+
378
+ // Build border styles based on direction
379
+ let borderStyles = {};
380
+ let offsetX = 0;
381
+ let offsetY = 0;
382
+ switch (direction) {
383
+ case 'down':
384
+ borderStyles = {
385
+ borderLeft: `${halfWidth}px solid transparent`,
386
+ borderRight: `${halfWidth}px solid transparent`,
387
+ borderTop: `${r2(size)}px solid ${fill}`
388
+ };
389
+ offsetX = -halfWidth;
390
+ offsetY = 0;
391
+ break;
392
+ case 'up':
393
+ borderStyles = {
394
+ borderLeft: `${halfWidth}px solid transparent`,
395
+ borderRight: `${halfWidth}px solid transparent`,
396
+ borderBottom: `${r2(size)}px solid ${fill}`
397
+ };
398
+ offsetX = -halfWidth;
399
+ offsetY = -size;
400
+ break;
401
+ case 'left':
402
+ borderStyles = {
403
+ borderTop: `${halfWidth}px solid transparent`,
404
+ borderBottom: `${halfWidth}px solid transparent`,
405
+ borderRight: `${r2(size)}px solid ${fill}`
406
+ };
407
+ offsetX = -size;
408
+ offsetY = -halfWidth;
409
+ break;
410
+ case 'right':
411
+ borderStyles = {
412
+ borderTop: `${halfWidth}px solid transparent`,
413
+ borderBottom: `${halfWidth}px solid transparent`,
414
+ borderLeft: `${r2(size)}px solid ${fill}`
415
+ };
416
+ offsetX = 0;
417
+ offsetY = -halfWidth;
418
+ break;
419
+ }
420
+ const transforms = [];
421
+ if (rotation !== undefined) {
422
+ transforms.push(`rotate(${r2(rotation)}deg)`);
423
+ }
424
+ const style = {
425
+ position: 'absolute',
426
+ left: r2(x + offsetX),
427
+ top: r2(y + offsetY),
428
+ width: 0,
429
+ height: 0,
430
+ opacity,
431
+ ...borderStyles,
432
+ transform: transforms.length > 0 ? transforms.join(' ') : undefined,
433
+ transformOrigin: '50% 50%'
434
+ };
435
+ return /*#__PURE__*/_jsx("div", {
436
+ style: style
437
+ });
438
+ };
439
+
440
+ /**
441
+ * IconArc - draws an arc using multiple line segments
442
+ * Creates smooth curves without SVG!
443
+ */
444
+ const IconArcImpl = ({
445
+ cx,
446
+ cy,
447
+ r,
448
+ startAngle,
449
+ endAngle,
450
+ stroke,
451
+ strokeWidth = 1.5,
452
+ opacity = 1,
453
+ segments
454
+ }) => {
455
+ // Calculate number of segments based on arc length
456
+ const arcLength = Math.abs(endAngle - startAngle);
457
+ const autoSegments = Math.max(8, Math.ceil(arcLength / 10)); // ~10 degrees per segment
458
+ const numSegments = segments ?? autoSegments;
459
+
460
+ // Generate line segments
461
+ const lines = [];
462
+ const angleStep = (endAngle - startAngle) / numSegments;
463
+ for (let i = 0; i < numSegments; i++) {
464
+ const angle1 = startAngle + i * angleStep;
465
+ const angle2 = startAngle + (i + 1) * angleStep;
466
+
467
+ // Convert to radians
468
+ const rad1 = angle1 * Math.PI / 180;
469
+ const rad2 = angle2 * Math.PI / 180;
470
+
471
+ // Calculate segment endpoints
472
+ const x1 = cx + r * Math.cos(rad1);
473
+ const y1 = cy + r * Math.sin(rad1);
474
+ const x2 = cx + r * Math.cos(rad2);
475
+ const y2 = cy + r * Math.sin(rad2);
476
+
477
+ // Calculate segment geometry. Interior joints overlap by half a stroke (same reason
478
+ // as the curved-line chain above); the arc's two ends stay at the authored angles.
479
+ const dx = x2 - x1;
480
+ const dy = y2 - y1;
481
+ const segLen = Math.sqrt(dx * dx + dy * dy);
482
+ const angle = Math.atan2(dy, dx) * (180 / Math.PI);
483
+ const extS = i > 0 ? strokeWidth / 2 : 0;
484
+ const extE = i < numSegments - 1 ? strokeWidth / 2 : 0;
485
+ const ux = segLen > 0 ? dx / segLen : 0;
486
+ const uy = segLen > 0 ? dy / segLen : 0;
487
+ const length = segLen + extS + extE;
488
+ const midX = (x1 + x2) / 2 + ux * (extE - extS) / 2;
489
+ const midY = (y1 + y2) / 2 + uy * (extE - extS) / 2;
490
+ const style = {
491
+ position: 'absolute',
492
+ left: r2(midX - length / 2),
493
+ top: r2(midY - strokeWidth / 2),
494
+ width: r2(length),
495
+ height: r2(strokeWidth),
496
+ backgroundColor: stroke,
497
+ opacity,
498
+ transform: `rotate(${r2(angle)}deg)`,
499
+ transformOrigin: '50% 50%',
500
+ borderRadius: r2(strokeWidth / 2)
501
+ };
502
+ lines.push(/*#__PURE__*/_jsx("div", {
503
+ style: style
504
+ }, i));
505
+ }
506
+ return /*#__PURE__*/_jsx(_Fragment, {
507
+ children: lines
508
+ });
509
+ };
510
+
511
+ /**
512
+ * IconSemicircle - creates a half circle (filled)
513
+ * Perfect for pokeball-style split designs!
514
+ */
515
+ const IconSemicircleImpl = ({
516
+ cx,
517
+ cy,
518
+ r,
519
+ half,
520
+ fill,
521
+ borderColor,
522
+ borderWidth = 0,
523
+ opacity = 1,
524
+ glowColor,
525
+ glowRadius = 0
526
+ }) => {
527
+ const diameter = r * 2;
528
+
529
+ // Calculate position and border radii based on which half
530
+ let left;
531
+ let top;
532
+ let width;
533
+ let height;
534
+ let borderRadius;
535
+ switch (half) {
536
+ case 'top':
537
+ left = r2(cx - r);
538
+ top = r2(cy - r);
539
+ width = r2(diameter);
540
+ height = r2(r);
541
+ borderRadius = `${r2(r)}px ${r2(r)}px 0 0`;
542
+ break;
543
+ case 'bottom':
544
+ left = r2(cx - r);
545
+ top = r2(cy);
546
+ width = r2(diameter);
547
+ height = r2(r);
548
+ borderRadius = `0 0 ${r2(r)}px ${r2(r)}px`;
549
+ break;
550
+ case 'left':
551
+ left = r2(cx - r);
552
+ top = r2(cy - r);
553
+ width = r2(r);
554
+ height = r2(diameter);
555
+ borderRadius = `${r2(r)}px 0 0 ${r2(r)}px`;
556
+ break;
557
+ case 'right':
558
+ left = r2(cx);
559
+ top = r2(cy - r);
560
+ width = r2(r);
561
+ height = r2(diameter);
562
+ borderRadius = `0 ${r2(r)}px ${r2(r)}px 0`;
563
+ break;
564
+ }
565
+ const style = {
566
+ position: 'absolute',
567
+ left,
568
+ top,
569
+ width,
570
+ height,
571
+ borderRadius,
572
+ backgroundColor: fill,
573
+ border: borderColor ? `${r2(borderWidth)}px solid ${borderColor}` : undefined,
574
+ opacity,
575
+ boxShadow: glowColor && glowRadius > 0 ? createNeonGlow(glowColor, glowRadius) : undefined,
576
+ boxSizing: 'border-box'
577
+ };
578
+ return /*#__PURE__*/_jsx("div", {
579
+ style: style
580
+ });
581
+ };
582
+
583
+ /**
584
+ * IconSmoothArc - creates a smooth arc using the border trick
585
+ * Uses bordered circles with partial borders hidden - gives perfect anti-aliased curves!
586
+ * This is how the WiFi icon achieves smooth lines without dots.
587
+ */
588
+ const IconSmoothArcImpl = ({
589
+ cx,
590
+ cy,
591
+ r,
592
+ stroke,
593
+ strokeWidth = 2,
594
+ opacity = 1,
595
+ portion = 'bottom'
596
+ }) => {
597
+ const diameter = r * 2;
598
+
599
+ // Build border colors based on which portion to show
600
+ let borderTopColor = stroke;
601
+ let borderBottomColor = stroke;
602
+ let borderLeftColor = stroke;
603
+ let borderRightColor = stroke;
604
+ switch (portion) {
605
+ case 'bottom':
606
+ // Show bottom arc (hide top, left, right)
607
+ borderTopColor = 'transparent';
608
+ borderLeftColor = 'transparent';
609
+ borderRightColor = 'transparent';
610
+ break;
611
+ case 'top':
612
+ // Show top arc (hide bottom, left, right)
613
+ borderBottomColor = 'transparent';
614
+ borderLeftColor = 'transparent';
615
+ borderRightColor = 'transparent';
616
+ break;
617
+ case 'left':
618
+ // Show left arc (hide top, bottom, right)
619
+ borderTopColor = 'transparent';
620
+ borderBottomColor = 'transparent';
621
+ borderRightColor = 'transparent';
622
+ break;
623
+ case 'right':
624
+ // Show right arc (hide top, bottom, left)
625
+ borderTopColor = 'transparent';
626
+ borderBottomColor = 'transparent';
627
+ borderLeftColor = 'transparent';
628
+ break;
629
+ }
630
+ const style = {
631
+ position: 'absolute',
632
+ left: r2(cx - r),
633
+ top: r2(cy - r),
634
+ width: r2(diameter),
635
+ height: r2(diameter),
636
+ borderRadius: r2(r),
637
+ borderWidth: r2(strokeWidth),
638
+ borderStyle: 'solid',
639
+ borderTopColor,
640
+ borderBottomColor,
641
+ borderLeftColor,
642
+ borderRightColor,
643
+ opacity,
644
+ boxSizing: 'border-box'
645
+ };
646
+ return /*#__PURE__*/_jsx("div", {
647
+ style: style
648
+ });
649
+ };
650
+
651
+ // ===========================================
652
+ // Memoized leaf exports
653
+ // ===========================================
654
+
655
+ /**
656
+ * These primitives are LEAF nodes with measured render cost, so they are the
657
+ * one place rule2 sanctions React.memo. Every prop is a scalar, so a shallow
658
+ * compare is exact — an icon whose geometry did not change cannot re-render.
659
+ *
660
+ * Evidence (iOS sim, reopening the Time Machine tool, measure_renders):
661
+ * IconLine alone burned 58.3ms across 103 renders, 100% attributed to
662
+ * `parent` — a pure cascade from IconContainer with identical props. A curved
663
+ * IconLine expands to 100+ absolutely-positioned Views, so each of those
664
+ * cascaded renders rebuilt hundreds of style objects for an unchanged glyph.
665
+ */
666
+ export const IconCircle = /*#__PURE__*/memo(IconCircleImpl);
667
+ export const IconRect = /*#__PURE__*/memo(IconRectImpl);
668
+ export const IconText = /*#__PURE__*/memo(IconTextImpl);
669
+ export const IconLine = /*#__PURE__*/memo(IconLineImpl);
670
+ export const IconTriangle = /*#__PURE__*/memo(IconTriangleImpl);
671
+ export const IconArc = /*#__PURE__*/memo(IconArcImpl);
672
+ export const IconSemicircle = /*#__PURE__*/memo(IconSemicircleImpl);
673
+ export const IconSmoothArc = /*#__PURE__*/memo(IconSmoothArcImpl);