@nervure/icons 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (561) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +21 -0
  3. package/README.md +50 -2
  4. package/cdn/nervure-icons.min.js +2 -0
  5. package/dist/cdn.d.ts +1 -0
  6. package/dist/cdn.js +14 -0
  7. package/dist/core.d.ts +18 -0
  8. package/dist/core.js +62 -0
  9. package/dist/element.d.ts +21 -0
  10. package/dist/element.js +68 -0
  11. package/dist/icons/activity.d.ts +2 -0
  12. package/dist/icons/activity.js +7 -0
  13. package/dist/icons/arrow-down.d.ts +2 -0
  14. package/dist/icons/arrow-down.js +8 -0
  15. package/dist/icons/arrow-left.d.ts +2 -0
  16. package/dist/icons/arrow-left.js +8 -0
  17. package/dist/icons/arrow-right.d.ts +2 -0
  18. package/dist/icons/arrow-right.js +8 -0
  19. package/dist/icons/arrow-up.d.ts +2 -0
  20. package/dist/icons/arrow-up.js +8 -0
  21. package/dist/icons/atom.d.ts +2 -0
  22. package/dist/icons/atom.js +12 -0
  23. package/dist/icons/ban.d.ts +2 -0
  24. package/dist/icons/ban.js +7 -0
  25. package/dist/icons/bank.d.ts +2 -0
  26. package/dist/icons/bank.js +7 -0
  27. package/dist/icons/battery.d.ts +2 -0
  28. package/dist/icons/battery.js +7 -0
  29. package/dist/icons/bell.d.ts +2 -0
  30. package/dist/icons/bell.js +8 -0
  31. package/dist/icons/bike.d.ts +2 -0
  32. package/dist/icons/bike.js +15 -0
  33. package/dist/icons/bolt.d.ts +2 -0
  34. package/dist/icons/bolt.js +7 -0
  35. package/dist/icons/bookmark.d.ts +2 -0
  36. package/dist/icons/bookmark.js +7 -0
  37. package/dist/icons/briefcase.d.ts +2 -0
  38. package/dist/icons/briefcase.js +12 -0
  39. package/dist/icons/building.d.ts +2 -0
  40. package/dist/icons/building.js +14 -0
  41. package/dist/icons/bus.d.ts +2 -0
  42. package/dist/icons/bus.js +15 -0
  43. package/dist/icons/calculator.d.ts +2 -0
  44. package/dist/icons/calculator.js +16 -0
  45. package/dist/icons/calendar.d.ts +2 -0
  46. package/dist/icons/calendar.js +7 -0
  47. package/dist/icons/car.d.ts +2 -0
  48. package/dist/icons/car.js +14 -0
  49. package/dist/icons/card.d.ts +2 -0
  50. package/dist/icons/card.js +7 -0
  51. package/dist/icons/cart.d.ts +2 -0
  52. package/dist/icons/cart.js +12 -0
  53. package/dist/icons/chart-area.d.ts +2 -0
  54. package/dist/icons/chart-area.js +7 -0
  55. package/dist/icons/chart-bar.d.ts +2 -0
  56. package/dist/icons/chart-bar.js +7 -0
  57. package/dist/icons/chart-donut.d.ts +2 -0
  58. package/dist/icons/chart-donut.js +7 -0
  59. package/dist/icons/chart-funnel.d.ts +2 -0
  60. package/dist/icons/chart-funnel.js +7 -0
  61. package/dist/icons/chart-line.d.ts +2 -0
  62. package/dist/icons/chart-line.js +7 -0
  63. package/dist/icons/chart-pie.d.ts +2 -0
  64. package/dist/icons/chart-pie.js +8 -0
  65. package/dist/icons/chart-scatter.d.ts +2 -0
  66. package/dist/icons/chart-scatter.js +7 -0
  67. package/dist/icons/chat.d.ts +2 -0
  68. package/dist/icons/chat.js +12 -0
  69. package/dist/icons/check.d.ts +2 -0
  70. package/dist/icons/check.js +7 -0
  71. package/dist/icons/chevron-down.d.ts +2 -0
  72. package/dist/icons/chevron-down.js +8 -0
  73. package/dist/icons/chevron-left.d.ts +2 -0
  74. package/dist/icons/chevron-left.js +8 -0
  75. package/dist/icons/chevron-right.d.ts +2 -0
  76. package/dist/icons/chevron-right.js +8 -0
  77. package/dist/icons/chevron-up.d.ts +2 -0
  78. package/dist/icons/chevron-up.js +8 -0
  79. package/dist/icons/clock.d.ts +2 -0
  80. package/dist/icons/clock.js +7 -0
  81. package/dist/icons/close.d.ts +2 -0
  82. package/dist/icons/close.js +7 -0
  83. package/dist/icons/cloud-sun.d.ts +2 -0
  84. package/dist/icons/cloud-sun.js +14 -0
  85. package/dist/icons/cloud.d.ts +2 -0
  86. package/dist/icons/cloud.js +7 -0
  87. package/dist/icons/coins.d.ts +2 -0
  88. package/dist/icons/coins.js +7 -0
  89. package/dist/icons/compass.d.ts +2 -0
  90. package/dist/icons/compass.js +8 -0
  91. package/dist/icons/contract.d.ts +2 -0
  92. package/dist/icons/contract.js +13 -0
  93. package/dist/icons/copy.d.ts +2 -0
  94. package/dist/icons/copy.js +8 -0
  95. package/dist/icons/dashboard.d.ts +2 -0
  96. package/dist/icons/dashboard.js +7 -0
  97. package/dist/icons/database.d.ts +2 -0
  98. package/dist/icons/database.js +11 -0
  99. package/dist/icons/dollar.d.ts +2 -0
  100. package/dist/icons/dollar.js +10 -0
  101. package/dist/icons/download.d.ts +2 -0
  102. package/dist/icons/download.js +7 -0
  103. package/dist/icons/drop.d.ts +2 -0
  104. package/dist/icons/drop.js +7 -0
  105. package/dist/icons/edit.d.ts +2 -0
  106. package/dist/icons/edit.js +8 -0
  107. package/dist/icons/error.d.ts +2 -0
  108. package/dist/icons/error.js +7 -0
  109. package/dist/icons/euro.d.ts +2 -0
  110. package/dist/icons/euro.js +7 -0
  111. package/dist/icons/expand.d.ts +2 -0
  112. package/dist/icons/expand.js +7 -0
  113. package/dist/icons/external-link.d.ts +2 -0
  114. package/dist/icons/external-link.js +12 -0
  115. package/dist/icons/eye-off.d.ts +2 -0
  116. package/dist/icons/eye-off.js +12 -0
  117. package/dist/icons/eye.d.ts +2 -0
  118. package/dist/icons/eye.js +7 -0
  119. package/dist/icons/file.d.ts +2 -0
  120. package/dist/icons/file.js +12 -0
  121. package/dist/icons/filter.d.ts +2 -0
  122. package/dist/icons/filter.js +8 -0
  123. package/dist/icons/flag.d.ts +2 -0
  124. package/dist/icons/flag.js +8 -0
  125. package/dist/icons/flame.d.ts +2 -0
  126. package/dist/icons/flame.js +10 -0
  127. package/dist/icons/folder.d.ts +2 -0
  128. package/dist/icons/folder.js +9 -0
  129. package/dist/icons/fuel.d.ts +2 -0
  130. package/dist/icons/fuel.js +13 -0
  131. package/dist/icons/gauge.d.ts +2 -0
  132. package/dist/icons/gauge.js +8 -0
  133. package/dist/icons/globe.d.ts +2 -0
  134. package/dist/icons/globe.js +7 -0
  135. package/dist/icons/grid.d.ts +2 -0
  136. package/dist/icons/grid.js +7 -0
  137. package/dist/icons/heart.d.ts +2 -0
  138. package/dist/icons/heart.js +9 -0
  139. package/dist/icons/help.d.ts +2 -0
  140. package/dist/icons/help.js +8 -0
  141. package/dist/icons/house.d.ts +2 -0
  142. package/dist/icons/house.js +7 -0
  143. package/dist/icons/image.d.ts +2 -0
  144. package/dist/icons/image.js +7 -0
  145. package/dist/icons/inbox.d.ts +2 -0
  146. package/dist/icons/inbox.js +12 -0
  147. package/dist/icons/index.d.ts +273 -0
  148. package/dist/icons/index.js +406 -0
  149. package/dist/icons/info.d.ts +2 -0
  150. package/dist/icons/info.js +7 -0
  151. package/dist/icons/key.d.ts +2 -0
  152. package/dist/icons/key.js +8 -0
  153. package/dist/icons/layers.d.ts +2 -0
  154. package/dist/icons/layers.js +7 -0
  155. package/dist/icons/leaf.d.ts +2 -0
  156. package/dist/icons/leaf.js +8 -0
  157. package/dist/icons/link.d.ts +2 -0
  158. package/dist/icons/link.js +7 -0
  159. package/dist/icons/list.d.ts +2 -0
  160. package/dist/icons/list.js +7 -0
  161. package/dist/icons/loader.d.ts +2 -0
  162. package/dist/icons/loader.js +7 -0
  163. package/dist/icons/lock.d.ts +2 -0
  164. package/dist/icons/lock.js +7 -0
  165. package/dist/icons/login.d.ts +2 -0
  166. package/dist/icons/login.js +8 -0
  167. package/dist/icons/logout.d.ts +2 -0
  168. package/dist/icons/logout.js +8 -0
  169. package/dist/icons/mail.d.ts +2 -0
  170. package/dist/icons/mail.js +7 -0
  171. package/dist/icons/map.d.ts +2 -0
  172. package/dist/icons/map.js +7 -0
  173. package/dist/icons/megaphone.d.ts +2 -0
  174. package/dist/icons/megaphone.js +11 -0
  175. package/dist/icons/menu.d.ts +2 -0
  176. package/dist/icons/menu.js +7 -0
  177. package/dist/icons/mic.d.ts +2 -0
  178. package/dist/icons/mic.js +7 -0
  179. package/dist/icons/minus.d.ts +2 -0
  180. package/dist/icons/minus.js +7 -0
  181. package/dist/icons/moon.d.ts +2 -0
  182. package/dist/icons/moon.js +8 -0
  183. package/dist/icons/more.d.ts +2 -0
  184. package/dist/icons/more.js +7 -0
  185. package/dist/icons/navigation.d.ts +2 -0
  186. package/dist/icons/navigation.js +8 -0
  187. package/dist/icons/percent.d.ts +2 -0
  188. package/dist/icons/percent.js +7 -0
  189. package/dist/icons/phone.d.ts +2 -0
  190. package/dist/icons/phone.js +10 -0
  191. package/dist/icons/pin.d.ts +2 -0
  192. package/dist/icons/pin.js +7 -0
  193. package/dist/icons/plane.d.ts +2 -0
  194. package/dist/icons/plane.js +10 -0
  195. package/dist/icons/plug.d.ts +2 -0
  196. package/dist/icons/plug.js +8 -0
  197. package/dist/icons/plus.d.ts +2 -0
  198. package/dist/icons/plus.js +7 -0
  199. package/dist/icons/power.d.ts +2 -0
  200. package/dist/icons/power.js +7 -0
  201. package/dist/icons/rain.d.ts +2 -0
  202. package/dist/icons/rain.js +12 -0
  203. package/dist/icons/receipt.d.ts +2 -0
  204. package/dist/icons/receipt.js +7 -0
  205. package/dist/icons/redo.d.ts +2 -0
  206. package/dist/icons/redo.js +8 -0
  207. package/dist/icons/refresh.d.ts +2 -0
  208. package/dist/icons/refresh.js +7 -0
  209. package/dist/icons/route.d.ts +2 -0
  210. package/dist/icons/route.js +7 -0
  211. package/dist/icons/search.d.ts +2 -0
  212. package/dist/icons/search.js +7 -0
  213. package/dist/icons/send.d.ts +2 -0
  214. package/dist/icons/send.js +8 -0
  215. package/dist/icons/settings.d.ts +2 -0
  216. package/dist/icons/settings.js +10 -0
  217. package/dist/icons/share.d.ts +2 -0
  218. package/dist/icons/share.js +7 -0
  219. package/dist/icons/shield-check.d.ts +2 -0
  220. package/dist/icons/shield-check.js +7 -0
  221. package/dist/icons/ship.d.ts +2 -0
  222. package/dist/icons/ship.js +7 -0
  223. package/dist/icons/sliders.d.ts +2 -0
  224. package/dist/icons/sliders.js +7 -0
  225. package/dist/icons/snow.d.ts +2 -0
  226. package/dist/icons/snow.js +12 -0
  227. package/dist/icons/sort.d.ts +2 -0
  228. package/dist/icons/sort.js +7 -0
  229. package/dist/icons/spinner.d.ts +2 -0
  230. package/dist/icons/spinner.js +16 -0
  231. package/dist/icons/star.d.ts +2 -0
  232. package/dist/icons/star.js +7 -0
  233. package/dist/icons/store.d.ts +2 -0
  234. package/dist/icons/store.js +12 -0
  235. package/dist/icons/success.d.ts +2 -0
  236. package/dist/icons/success.js +7 -0
  237. package/dist/icons/sun.d.ts +2 -0
  238. package/dist/icons/sun.js +17 -0
  239. package/dist/icons/table.d.ts +2 -0
  240. package/dist/icons/table.js +7 -0
  241. package/dist/icons/tag.d.ts +2 -0
  242. package/dist/icons/tag.js +11 -0
  243. package/dist/icons/target.d.ts +2 -0
  244. package/dist/icons/target.js +7 -0
  245. package/dist/icons/thermometer.d.ts +2 -0
  246. package/dist/icons/thermometer.js +7 -0
  247. package/dist/icons/thunder.d.ts +2 -0
  248. package/dist/icons/thunder.js +10 -0
  249. package/dist/icons/train.d.ts +2 -0
  250. package/dist/icons/train.js +14 -0
  251. package/dist/icons/trash.d.ts +2 -0
  252. package/dist/icons/trash.js +14 -0
  253. package/dist/icons/trend-down.d.ts +2 -0
  254. package/dist/icons/trend-down.js +8 -0
  255. package/dist/icons/trend-up.d.ts +2 -0
  256. package/dist/icons/trend-up.js +8 -0
  257. package/dist/icons/truck.d.ts +2 -0
  258. package/dist/icons/truck.js +8 -0
  259. package/dist/icons/umbrella.d.ts +2 -0
  260. package/dist/icons/umbrella.js +8 -0
  261. package/dist/icons/undo.d.ts +2 -0
  262. package/dist/icons/undo.js +8 -0
  263. package/dist/icons/unlock.d.ts +2 -0
  264. package/dist/icons/unlock.js +7 -0
  265. package/dist/icons/upload.d.ts +2 -0
  266. package/dist/icons/upload.js +7 -0
  267. package/dist/icons/user.d.ts +2 -0
  268. package/dist/icons/user.js +7 -0
  269. package/dist/icons/users.d.ts +2 -0
  270. package/dist/icons/users.js +12 -0
  271. package/dist/icons/video.d.ts +2 -0
  272. package/dist/icons/video.js +7 -0
  273. package/dist/icons/wallet.d.ts +2 -0
  274. package/dist/icons/wallet.js +8 -0
  275. package/dist/icons/warning.d.ts +2 -0
  276. package/dist/icons/warning.js +11 -0
  277. package/dist/icons/wifi.d.ts +2 -0
  278. package/dist/icons/wifi.js +12 -0
  279. package/dist/icons/wind.d.ts +2 -0
  280. package/dist/icons/wind.js +7 -0
  281. package/dist/index.d.ts +19 -0
  282. package/dist/index.js +29 -0
  283. package/dist/react.d.ts +11 -0
  284. package/dist/react.js +54 -0
  285. package/dist/render.d.ts +19 -0
  286. package/dist/render.js +208 -0
  287. package/dist/styles.d.ts +22 -0
  288. package/dist/styles.js +124 -0
  289. package/dist/types.d.ts +55 -0
  290. package/dist/types.js +1 -0
  291. package/dist/vue.d.ts +93 -0
  292. package/dist/vue.js +41 -0
  293. package/package.json +90 -4
  294. package/svg/activity.svg +1 -0
  295. package/svg/arrow-down.svg +1 -0
  296. package/svg/arrow-left.svg +1 -0
  297. package/svg/arrow-right.svg +1 -0
  298. package/svg/arrow-up.svg +1 -0
  299. package/svg/atom.svg +1 -0
  300. package/svg/ban.svg +1 -0
  301. package/svg/bank.svg +1 -0
  302. package/svg/battery.svg +1 -0
  303. package/svg/bell.svg +1 -0
  304. package/svg/bike.svg +1 -0
  305. package/svg/bolt.svg +1 -0
  306. package/svg/bookmark.svg +1 -0
  307. package/svg/briefcase.svg +1 -0
  308. package/svg/building.svg +1 -0
  309. package/svg/bus.svg +1 -0
  310. package/svg/calculator.svg +1 -0
  311. package/svg/calendar.svg +1 -0
  312. package/svg/car.svg +1 -0
  313. package/svg/card.svg +1 -0
  314. package/svg/cart.svg +1 -0
  315. package/svg/chart-area.svg +1 -0
  316. package/svg/chart-bar.svg +1 -0
  317. package/svg/chart-donut.svg +1 -0
  318. package/svg/chart-funnel.svg +1 -0
  319. package/svg/chart-line.svg +1 -0
  320. package/svg/chart-pie.svg +1 -0
  321. package/svg/chart-scatter.svg +1 -0
  322. package/svg/chat.svg +1 -0
  323. package/svg/check.svg +1 -0
  324. package/svg/chevron-down.svg +1 -0
  325. package/svg/chevron-left.svg +1 -0
  326. package/svg/chevron-right.svg +1 -0
  327. package/svg/chevron-up.svg +1 -0
  328. package/svg/clock.svg +1 -0
  329. package/svg/close.svg +1 -0
  330. package/svg/cloud-sun.svg +1 -0
  331. package/svg/cloud.svg +1 -0
  332. package/svg/coins.svg +1 -0
  333. package/svg/compass.svg +1 -0
  334. package/svg/contract.svg +1 -0
  335. package/svg/copy.svg +1 -0
  336. package/svg/dashboard.svg +1 -0
  337. package/svg/database.svg +1 -0
  338. package/svg/dollar.svg +1 -0
  339. package/svg/download.svg +1 -0
  340. package/svg/drop.svg +1 -0
  341. package/svg/duo/activity.svg +1 -0
  342. package/svg/duo/arrow-down.svg +1 -0
  343. package/svg/duo/arrow-left.svg +1 -0
  344. package/svg/duo/arrow-right.svg +1 -0
  345. package/svg/duo/arrow-up.svg +1 -0
  346. package/svg/duo/atom.svg +1 -0
  347. package/svg/duo/ban.svg +1 -0
  348. package/svg/duo/bank.svg +1 -0
  349. package/svg/duo/battery.svg +1 -0
  350. package/svg/duo/bell.svg +1 -0
  351. package/svg/duo/bike.svg +1 -0
  352. package/svg/duo/bolt.svg +1 -0
  353. package/svg/duo/bookmark.svg +1 -0
  354. package/svg/duo/briefcase.svg +1 -0
  355. package/svg/duo/building.svg +1 -0
  356. package/svg/duo/bus.svg +1 -0
  357. package/svg/duo/calculator.svg +1 -0
  358. package/svg/duo/calendar.svg +1 -0
  359. package/svg/duo/car.svg +1 -0
  360. package/svg/duo/card.svg +1 -0
  361. package/svg/duo/cart.svg +1 -0
  362. package/svg/duo/chart-area.svg +1 -0
  363. package/svg/duo/chart-bar.svg +1 -0
  364. package/svg/duo/chart-donut.svg +1 -0
  365. package/svg/duo/chart-funnel.svg +1 -0
  366. package/svg/duo/chart-line.svg +1 -0
  367. package/svg/duo/chart-pie.svg +1 -0
  368. package/svg/duo/chart-scatter.svg +1 -0
  369. package/svg/duo/chat.svg +1 -0
  370. package/svg/duo/check.svg +1 -0
  371. package/svg/duo/chevron-down.svg +1 -0
  372. package/svg/duo/chevron-left.svg +1 -0
  373. package/svg/duo/chevron-right.svg +1 -0
  374. package/svg/duo/chevron-up.svg +1 -0
  375. package/svg/duo/clock.svg +1 -0
  376. package/svg/duo/close.svg +1 -0
  377. package/svg/duo/cloud-sun.svg +1 -0
  378. package/svg/duo/cloud.svg +1 -0
  379. package/svg/duo/coins.svg +1 -0
  380. package/svg/duo/compass.svg +1 -0
  381. package/svg/duo/contract.svg +1 -0
  382. package/svg/duo/copy.svg +1 -0
  383. package/svg/duo/dashboard.svg +1 -0
  384. package/svg/duo/database.svg +1 -0
  385. package/svg/duo/dollar.svg +1 -0
  386. package/svg/duo/download.svg +1 -0
  387. package/svg/duo/drop.svg +1 -0
  388. package/svg/duo/edit.svg +1 -0
  389. package/svg/duo/error.svg +1 -0
  390. package/svg/duo/euro.svg +1 -0
  391. package/svg/duo/expand.svg +1 -0
  392. package/svg/duo/external-link.svg +1 -0
  393. package/svg/duo/eye-off.svg +1 -0
  394. package/svg/duo/eye.svg +1 -0
  395. package/svg/duo/file.svg +1 -0
  396. package/svg/duo/filter.svg +1 -0
  397. package/svg/duo/flag.svg +1 -0
  398. package/svg/duo/flame.svg +1 -0
  399. package/svg/duo/folder.svg +1 -0
  400. package/svg/duo/fuel.svg +1 -0
  401. package/svg/duo/gauge.svg +1 -0
  402. package/svg/duo/globe.svg +1 -0
  403. package/svg/duo/grid.svg +1 -0
  404. package/svg/duo/heart.svg +1 -0
  405. package/svg/duo/help.svg +1 -0
  406. package/svg/duo/house.svg +1 -0
  407. package/svg/duo/image.svg +1 -0
  408. package/svg/duo/inbox.svg +1 -0
  409. package/svg/duo/info.svg +1 -0
  410. package/svg/duo/key.svg +1 -0
  411. package/svg/duo/layers.svg +1 -0
  412. package/svg/duo/leaf.svg +1 -0
  413. package/svg/duo/link.svg +1 -0
  414. package/svg/duo/list.svg +1 -0
  415. package/svg/duo/loader.svg +1 -0
  416. package/svg/duo/lock.svg +1 -0
  417. package/svg/duo/login.svg +1 -0
  418. package/svg/duo/logout.svg +1 -0
  419. package/svg/duo/mail.svg +1 -0
  420. package/svg/duo/map.svg +1 -0
  421. package/svg/duo/megaphone.svg +1 -0
  422. package/svg/duo/menu.svg +1 -0
  423. package/svg/duo/mic.svg +1 -0
  424. package/svg/duo/minus.svg +1 -0
  425. package/svg/duo/moon.svg +1 -0
  426. package/svg/duo/more.svg +1 -0
  427. package/svg/duo/navigation.svg +1 -0
  428. package/svg/duo/percent.svg +1 -0
  429. package/svg/duo/phone.svg +1 -0
  430. package/svg/duo/pin.svg +1 -0
  431. package/svg/duo/plane.svg +1 -0
  432. package/svg/duo/plug.svg +1 -0
  433. package/svg/duo/plus.svg +1 -0
  434. package/svg/duo/power.svg +1 -0
  435. package/svg/duo/rain.svg +1 -0
  436. package/svg/duo/receipt.svg +1 -0
  437. package/svg/duo/redo.svg +1 -0
  438. package/svg/duo/refresh.svg +1 -0
  439. package/svg/duo/route.svg +1 -0
  440. package/svg/duo/search.svg +1 -0
  441. package/svg/duo/send.svg +1 -0
  442. package/svg/duo/settings.svg +1 -0
  443. package/svg/duo/share.svg +1 -0
  444. package/svg/duo/shield-check.svg +1 -0
  445. package/svg/duo/ship.svg +1 -0
  446. package/svg/duo/sliders.svg +1 -0
  447. package/svg/duo/snow.svg +1 -0
  448. package/svg/duo/sort.svg +1 -0
  449. package/svg/duo/spinner.svg +1 -0
  450. package/svg/duo/star.svg +1 -0
  451. package/svg/duo/store.svg +1 -0
  452. package/svg/duo/success.svg +1 -0
  453. package/svg/duo/sun.svg +1 -0
  454. package/svg/duo/table.svg +1 -0
  455. package/svg/duo/tag.svg +1 -0
  456. package/svg/duo/target.svg +1 -0
  457. package/svg/duo/thermometer.svg +1 -0
  458. package/svg/duo/thunder.svg +1 -0
  459. package/svg/duo/train.svg +1 -0
  460. package/svg/duo/trash.svg +1 -0
  461. package/svg/duo/trend-down.svg +1 -0
  462. package/svg/duo/trend-up.svg +1 -0
  463. package/svg/duo/truck.svg +1 -0
  464. package/svg/duo/umbrella.svg +1 -0
  465. package/svg/duo/undo.svg +1 -0
  466. package/svg/duo/unlock.svg +1 -0
  467. package/svg/duo/upload.svg +1 -0
  468. package/svg/duo/user.svg +1 -0
  469. package/svg/duo/users.svg +1 -0
  470. package/svg/duo/video.svg +1 -0
  471. package/svg/duo/wallet.svg +1 -0
  472. package/svg/duo/warning.svg +1 -0
  473. package/svg/duo/wifi.svg +1 -0
  474. package/svg/duo/wind.svg +1 -0
  475. package/svg/edit.svg +1 -0
  476. package/svg/error.svg +1 -0
  477. package/svg/euro.svg +1 -0
  478. package/svg/expand.svg +1 -0
  479. package/svg/external-link.svg +1 -0
  480. package/svg/eye-off.svg +1 -0
  481. package/svg/eye.svg +1 -0
  482. package/svg/file.svg +1 -0
  483. package/svg/filter.svg +1 -0
  484. package/svg/flag.svg +1 -0
  485. package/svg/flame.svg +1 -0
  486. package/svg/folder.svg +1 -0
  487. package/svg/fuel.svg +1 -0
  488. package/svg/gauge.svg +1 -0
  489. package/svg/globe.svg +1 -0
  490. package/svg/grid.svg +1 -0
  491. package/svg/heart.svg +1 -0
  492. package/svg/help.svg +1 -0
  493. package/svg/house.svg +1 -0
  494. package/svg/image.svg +1 -0
  495. package/svg/inbox.svg +1 -0
  496. package/svg/info.svg +1 -0
  497. package/svg/key.svg +1 -0
  498. package/svg/layers.svg +1 -0
  499. package/svg/leaf.svg +1 -0
  500. package/svg/link.svg +1 -0
  501. package/svg/list.svg +1 -0
  502. package/svg/loader.svg +1 -0
  503. package/svg/lock.svg +1 -0
  504. package/svg/login.svg +1 -0
  505. package/svg/logout.svg +1 -0
  506. package/svg/mail.svg +1 -0
  507. package/svg/map.svg +1 -0
  508. package/svg/megaphone.svg +1 -0
  509. package/svg/menu.svg +1 -0
  510. package/svg/mic.svg +1 -0
  511. package/svg/minus.svg +1 -0
  512. package/svg/moon.svg +1 -0
  513. package/svg/more.svg +1 -0
  514. package/svg/navigation.svg +1 -0
  515. package/svg/percent.svg +1 -0
  516. package/svg/phone.svg +1 -0
  517. package/svg/pin.svg +1 -0
  518. package/svg/plane.svg +1 -0
  519. package/svg/plug.svg +1 -0
  520. package/svg/plus.svg +1 -0
  521. package/svg/power.svg +1 -0
  522. package/svg/rain.svg +1 -0
  523. package/svg/receipt.svg +1 -0
  524. package/svg/redo.svg +1 -0
  525. package/svg/refresh.svg +1 -0
  526. package/svg/route.svg +1 -0
  527. package/svg/search.svg +1 -0
  528. package/svg/send.svg +1 -0
  529. package/svg/settings.svg +1 -0
  530. package/svg/share.svg +1 -0
  531. package/svg/shield-check.svg +1 -0
  532. package/svg/ship.svg +1 -0
  533. package/svg/sliders.svg +1 -0
  534. package/svg/snow.svg +1 -0
  535. package/svg/sort.svg +1 -0
  536. package/svg/spinner.svg +1 -0
  537. package/svg/star.svg +1 -0
  538. package/svg/store.svg +1 -0
  539. package/svg/success.svg +1 -0
  540. package/svg/sun.svg +1 -0
  541. package/svg/table.svg +1 -0
  542. package/svg/tag.svg +1 -0
  543. package/svg/target.svg +1 -0
  544. package/svg/thermometer.svg +1 -0
  545. package/svg/thunder.svg +1 -0
  546. package/svg/train.svg +1 -0
  547. package/svg/trash.svg +1 -0
  548. package/svg/trend-down.svg +1 -0
  549. package/svg/trend-up.svg +1 -0
  550. package/svg/truck.svg +1 -0
  551. package/svg/umbrella.svg +1 -0
  552. package/svg/undo.svg +1 -0
  553. package/svg/unlock.svg +1 -0
  554. package/svg/upload.svg +1 -0
  555. package/svg/user.svg +1 -0
  556. package/svg/users.svg +1 -0
  557. package/svg/video.svg +1 -0
  558. package/svg/wallet.svg +1 -0
  559. package/svg/warning.svg +1 -0
  560. package/svg/wifi.svg +1 -0
  561. package/svg/wind.svg +1 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog of @nervure/icons
2
+
3
+ Versions follow [semantic versioning](https://semver.org). Before 1.0, a minor version may rename an icon or an option.
4
+
5
+ ## 0.1.0 - 2026-12-02
6
+
7
+ ### Added
8
+ - **134 animated SVG icons**, drawn by hand on a 24 × 24 grid with a 2 px round stroke, in seven families: interface (52), charts and data (17), business and real estate (17), weather and energy (18), transport (11), communication (9) and status (10).
9
+ - **Two colourings**: `mono` (`currentColor`) and `duo`, which tints the areas (`--nv-icon-fill`) and draws marks in an accent colour (`--nv-icon-accent`, nervure green by default).
10
+ - **Animations in CSS only** (`stroke-dashoffset`, `transform`, `opacity`): every icon draws itself in, then plays a motion of its own among 26 (the bell rings, the heart beats, refresh turns, download drops, wind blows, the battery fills, search scans, the check draws, the spinner turns…). Triggers `none`, `load`, `hover` (also from a parent with `nv-icon-trigger`), `click` and `loop`. Nothing moves for readers who ask for less motion.
11
+ - `icon()` (an `<svg>` element), `iconSvg()` (markup, for the server), `iconCss`, `injectStyles()`, `play()`; options `size`, `color`, `accent`, `fill`, `variant`, `animate`, `strokeWidth`, `title` and `class`.
12
+ - One module per icon (`@nervure/icons/icons/bell`) with `@nervure/icons/core`, for the smallest bundles.
13
+ - The `<nv-icon>` web component (`@nervure/icons/element`), `<Icon>` for React (`@nervure/icons/react`), `<NvIcon>` for Vue (`@nervure/icons/vue`), and the one-file build `cdn/nervure-icons.min.js` (13.3 kB gzipped with every icon).
14
+ - Static files for design tools: `svg/<name>.svg` and `svg/duo/<name>.svg`.
15
+ - Decorative by default (`aria-hidden`); a `title` gives `role="img"`, an `aria-label` and a `<title>`.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ali Ben Macha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,51 @@
1
- # Temporary Holding Version
1
+ # @nervure/icons
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Animated SVG icons from the [nervure](https://nervurejs.github.io) family: 134 icons drawn by hand on a 24 grid, one colour or two, that draw themselves in and move: the bell rings, the heart beats, the download drops. Plain JavaScript, web component, React and Vue. MIT, no dependency.
4
+
5
+ **[See every icon](https://nervurejs.github.io/icons/)** · [Guide](https://nervurejs.github.io/icons/guide)
6
+
7
+ ```bash
8
+ npm install @nervure/icons
9
+ ```
10
+
11
+ ```js
12
+ import { icon, iconSvg } from '@nervure/icons';
13
+
14
+ document.body.append(icon('bell', { animate: 'hover' }));
15
+ const markup = iconSvg('heart', { variant: 'duo', title: 'Like' }); // on the server
16
+ ```
17
+
18
+ ```html
19
+ <script type="module">import '@nervure/icons/element';</script>
20
+ <nv-icon name="download" animate="hover" variant="duo"></nv-icon>
21
+ ```
22
+
23
+ ```jsx
24
+ import { Icon } from '@nervure/icons/react';
25
+ <Icon name="refresh" animate="click" />;
26
+ ```
27
+
28
+ ```vue
29
+ <script setup>import { NvIcon } from '@nervure/icons/vue';</script>
30
+ <NvIcon name="sun" animate="loop" />
31
+ ```
32
+
33
+ Options: `size`, `color`, `accent`, `fill`, `variant` (`mono`, `duo`), `animate` (`none`, `load`, `hover`, `click`, `loop`), `strokeWidth`, `title`. Without a `title`, an icon is decorative (`aria-hidden`). Readers who ask for less motion get still icons.
34
+
35
+ Static files for design tools are in `svg/` and `svg/duo/`.
36
+
37
+ ## Develop
38
+
39
+ From the root of the repository, after `npm ci`:
40
+
41
+ ```bash
42
+ cd packages/icons
43
+ npm run check # types, build, tests, size budgets
44
+ npm run generate # after adding or removing a file in src/icons
45
+ ```
46
+
47
+ Each icon is one file of `src/icons`. Draw new ones by hand: no path is copied from another icon set.
48
+
49
+ ## Publish
50
+
51
+ A tag `icons-v0.1.0` runs `.github/workflows/icons.yml`, which tests the package, makes a GitHub release and publishes to npm with provenance. Once: create the `@nervure` organisation on npmjs.com, publish a first version by hand or add the package, then add a trusted publisher for `BenMacha/nervure`, workflow `icons.yml`.
@@ -0,0 +1,2 @@
1
+ /*! @nervure/icons | MIT | https://nervurejs.github.io/icons */
2
+ "use strict";(()=>{var je=Object.defineProperty;var Ye=(o,t,e)=>t in o?je(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var J=(o,t,e)=>Ye(o,typeof t!="symbol"?t+"":t,e);var n="transform:none",Q={ring:{k:`0%,100%{${n}}10%{transform:rotate(14deg)}25%{transform:rotate(-12deg)}40%{transform:rotate(8deg)}55%{transform:rotate(-5deg)}70%{transform:rotate(2deg)}`,t:1e3},beat:{k:`0%,100%{${n}}15%{transform:scale(1.16)}30%{transform:scale(.96)}45%{transform:scale(1.1)}65%{${n}}`,t:900,box:"50% 55%"},spin:{k:`0%{${n}}100%{transform:rotate(360deg)}`,t:1e3,steady:!0},drop:{k:`0%{transform:translateY(-6px);opacity:0}40%{opacity:1}62%{transform:translateY(1.2px)}80%{transform:translateY(-.4px)}100%{${n}}`,t:750,enter:!0},rise:{k:`0%{transform:translateY(6px);opacity:0}40%{opacity:1}62%{transform:translateY(-1.2px)}80%{transform:translateY(.4px)}100%{${n}}`,t:750,enter:!0},grow:{k:`0%{transform:scaleY(0)}70%{transform:scaleY(1.08)}100%{${n}}`,t:650,box:"50% 100%",enter:!0},fall:{k:`0%{transform:translateY(-4px);opacity:0}50%{opacity:1}100%{${n}}`,t:650,enter:!0},flow:{k:`0%{transform:translateX(-5px);opacity:0}60%{opacity:1}100%{${n}}`,t:700,enter:!0},fill:{k:`0%{transform:scaleX(0)}100%{${n}}`,t:900,box:"0 50%",enter:!0},scan:{k:`0%,100%{${n}}25%{transform:translate(-2px,-1.5px)}60%{transform:translate(2px,1px)}`,t:1100},pulse:{k:`0%,100%{${n};opacity:1}40%{transform:scale(1.18);opacity:.75}`,t:750,box:"50% 50%"},swing:{k:`0%,100%{${n}}20%{transform:rotate(-11deg)}45%{transform:rotate(8deg)}70%{transform:rotate(-3deg)}`,t:1e3},shake:{k:`0%,100%{${n}}15%,55%{transform:translateX(-1.5px)}35%,75%{transform:translateX(1.5px)}`,t:600},blink:{k:`0%,100%{${n}}35%,50%{transform:scaleY(.08)}`,t:600},float:{k:`0%,100%{${n}}35%{transform:translate(1.5px,-1px)}70%{transform:translate(-1px,.5px)}`,t:1600},flicker:{k:`0%,100%{${n}}20%{transform:scale(.93,1.08)}45%{transform:scale(1.05,.95)}70%{transform:scale(.97,1.04)}`,t:1e3,box:"50% 100%"},flash:{k:"0%,100%{opacity:1}15%,45%{opacity:.15}30%{opacity:1}",t:800},flip:{k:`0%,100%{${n}}25%,75%{transform:scaleX(.08)}50%{transform:scaleX(-1)}`,t:1e3,box:"50% 50%"},send:{k:`0%,100%{${n};opacity:1}40%{transform:translate(calc(var(--dx)*7px),calc(var(--dy)*7px));opacity:0}41%{transform:translate(calc(var(--dx)*-7px),calc(var(--dy)*-7px));opacity:0}`,t:950,vars:"--dx:1;--dy:-1;"},nudge:{k:`0%,100%{${n}}40%{transform:translate(calc(var(--dx)*3px),calc(var(--dy)*3px))}`,t:650,vars:"--dx:1;--dy:0;"},pop:{k:`0%{transform:scale(0);opacity:0}60%{transform:scale(1.18);opacity:1}100%{${n}}`,t:520,box:"50% 50%",enter:!0},bounce:{k:`0%,100%{${n}}30%{transform:translateY(-3.5px)}55%{${n}}72%{transform:translateY(-1.2px)}`,t:900},tilt:{k:`0%,100%{${n}}35%,65%{transform:rotate(var(--r,-30deg))}`,t:1100},lid:{k:`0%,100%{${n}}30%,60%{transform:translateY(-1.5px) rotate(-14deg)}`,t:950}},Z=o=>o==="write"||o!=="draw"&&Q[o].enter===!0,b="cubic-bezier(.34,.7,.3,1)",oo=.6,qe=o=>o.replace(/(\d+(?:\.\d+)?)%/g,(t,e)=>`${Math.round(Number(e)*oo*10)/10}%`),w=".nvi[data-animate=load]",k=".nvi[data-animate=loop]",Ge=[".nvi[data-animate=hover]:hover",".nv-icon-trigger:hover .nvi[data-animate=hover]"],Ue=".nvi.nvi-on[data-animate=click]",O=[...Ge,Ue],l=(o,t)=>o.map(e=>`${e} ${t}`).join(","),Be=`@keyframes nvi-draw{0%{stroke-dasharray:1 2;stroke-dashoffset:1.001;fill-opacity:0;stroke-opacity:0}10%{stroke-opacity:1}55%{fill-opacity:0}100%{stroke-dasharray:1 2;stroke-dashoffset:0;fill-opacity:1}}@keyframes nvi-draw-l{0%{stroke-dasharray:1 2;stroke-dashoffset:1.001;fill-opacity:0;stroke-opacity:0;opacity:1}4%{stroke-opacity:1}30%{stroke-dasharray:1 2;stroke-dashoffset:0;fill-opacity:1}88%{opacity:1}100%{opacity:0}}@keyframes nvi-dot{0%{transform:scale(0);opacity:0}100%{${n}}}`,Xe=()=>{let o=["nv-icon{display:inline-block;line-height:0;vertical-align:middle}",".nvi{flex-shrink:0}",".nvi-m{transform-box:view-box;transform-origin:12px 12px}",".nvi-p{transform-box:fill-box;transform-origin:50% 50%}",Be,`${l([w,k],".nvi-d")}{animation:nvi-draw .7s cubic-bezier(.45,0,.2,1) calc(var(--i,0)*60ms) backwards}`,`${l([w,k],".nvi-p")}{animation:nvi-dot .4s ${b} calc(var(--i,0)*60ms + .25s) backwards}`,`${l(O.map(t=>t.replace(".nvi",".nvi.nvi-x")),".nvi-d")}{animation:nvi-draw .7s cubic-bezier(.45,0,.2,1) calc(var(--i,0)*60ms) backwards}`,".nvi.nvi-x[data-animate=loop] .nvi-d{animation:nvi-draw-l 2.6s cubic-bezier(.45,0,.2,1) calc(var(--i,0)*60ms) infinite backwards}",`${l([w],".nvi-write>*")}{animation:nvi-draw .8s cubic-bezier(.45,0,.2,1) calc(var(--nvi-w,0s) + var(--n,0)*110ms) backwards}`,`${l(O,".nvi-write>*")}{animation:nvi-draw .8s cubic-bezier(.45,0,.2,1) calc(var(--n,0)*110ms) backwards}`,`${k} .nvi-write>*{animation:nvi-draw-l 2.6s cubic-bezier(.45,0,.2,1) calc(var(--nvi-w,0s) + var(--n,0)*110ms) infinite backwards}`];for(let[t,e]of Object.entries(Q)){o.push(`@keyframes nvi-${t}{${e.k}}`),e.steady||o.push(`@keyframes nvi-${t}-l{${qe(e.k)}}`);let r=e.box?`transform-box:fill-box;transform-origin:${e.box};`:"",a=e.steady?`nvi-${t} ${e.t*1.2}ms linear`:`nvi-${t}-l ${Math.round(e.t/oo)}ms ${b}`,s=e.enter?"both":"none";o.push(`.nvi-${t}{${r}${e.vars??""}--nvi-k:nvi-${t};--nvi-t:${e.t}ms;--nvi-l:${a};--nvi-f:${s}}`)}return o.push(`${l([w],".nvi-m")}{animation:var(--nvi-k) var(--nvi-t) ${b} calc(var(--nvi-w,0s) + var(--n,0)*110ms) var(--nvi-f)}`,`${l(O,".nvi-m")}{animation:var(--nvi-k) var(--nvi-t) ${b} calc(var(--n,0)*110ms) var(--nvi-f)}`,`${k} .nvi-m{animation:var(--nvi-l) calc(var(--nvi-w,0s) + var(--n,0)*110ms) infinite var(--nvi-f)}`,".nvi .nvi-write{animation:none!important}","@media (prefers-reduced-motion:reduce){.nvi,.nvi *{animation:none!important}}"),o.join("")},g=Xe();var d="#2a9d8f",eo=`var(--nv-icon-accent,${d})`,Pe=`var(--nv-icon-fill,color-mix(in srgb,${eo} 28%,transparent))`,We={u:[0,-1],d:[0,1],l:[-1,0],r:[1,0],ur:[.7,-.7],ul:[-.7,-.7],dr:[.7,.7],dl:[-.7,.7]},Fe="*!#%~^",L=o=>o.replace(/[;{}<>"\\]/g,""),_e=o=>{let t=0;for(;t<o.length&&Fe.includes(o.charAt(t));)t++;let e=o.slice(0,t),r=o.slice(t),a=r.charAt(0),s=r.slice(1).trim().split(/[\s,]+/);if(a==="o")return{flags:e,tag:"circle",attrs:{cx:s[0],cy:s[1],r:s[2]}};if(a==="e")return{flags:e,tag:"ellipse",attrs:{cx:s[0],cy:s[1],rx:s[2],ry:s[3]}};if(a==="r"){let m={x:s[0],y:s[1],width:s[2],height:s[3]};return s[4]&&(m.rx=s[4]),{flags:e,tag:"rect",attrs:m}}return{flags:e,tag:"path",attrs:{d:r}}};function $(o,t={},e={}){let r=t.variant==="duo",a=t.animate??"none",s=a!=="none",m=Z(o.motion),M=e.fixed?d:eo,I=[],C=null,q=0,Oe=0,G=[],U=o.origin?o.origin.split(/\s+/).map(f=>`${f}px`).join(" "):"",N=o.dir?We[o.dir]:null,Re=f=>{let i=[];return U&&i.push(`transform-origin:${U}`),N&&i.push(`--dx:${N[0]};--dy:${N[1]}`),f&&i.push(`--n:${f}`),i.join(";")},B=(f,i)=>{let D={class:`nvi-m nvi-${o.motion}`},c=Re(i);return c&&(D.style=c),{tag:"g",attrs:D,children:f}};for(let f of o.shapes){let{flags:i,tag:D,attrs:c}=_e(f),W=i.includes("~")||i.includes("^"),E=i.includes("#"),F=r&&i.includes("!"),y=[];if(E?(c.stroke="none",F?e.fixed?c.fill=d:y.push(`fill:${M}`):c.fill="currentColor"):(r&&i.includes("*")&&(e.fixed?(c.fill=d,c["fill-opacity"]="0.28"):y.push(`fill:${Pe}`)),F&&(e.fixed?c.stroke=d:y.push(`stroke:${M}`))),i.includes("%")&&(c.opacity="0.3"),s){let _=W&&m;if(!E&&(!_||o.motion==="write")&&(c.pathLength="1"),!_){c.class=E?"nvi-p":"nvi-d";let K=Math.min(q++,8);K&&y.push(`--i:${K}`)}}y.length&&(c.style=y.join(";"));let T={tag:D,attrs:c,children:[]};if(!s||!W){I.push(T);continue}if(i.includes("^")){I.push(B([T],++Oe));continue}C||(C=G,I.push(B(G,0))),C.push(T)}let H=["nvi",`nvi-${o.name}`];s&&o.motion==="draw"&&H.push("nvi-x"),t.class&&H.push(L(t.class));let X=t.size??24,p={xmlns:"http://www.w3.org/2000/svg",width:String(X),height:String(X),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":String(t.strokeWidth??2),"stroke-linecap":"round","stroke-linejoin":"round",class:H.join(" ")};s&&(p["data-animate"]=a,p.overflow="visible"),r&&(p["data-variant"]="duo");let h=[];t.color&&h.push(`color:${L(t.color)}`),t.accent&&h.push(`--nv-icon-accent:${L(t.accent)}`),t.fill&&h.push(`--nv-icon-fill:${L(t.fill)}`),s&&(a==="load"||a==="loop")&&h.push(`--nvi-w:${m?250:Math.min(q,8)*60+450}ms`),h.length&&(p.style=h.join(";"));let P=[];return t.title?(p.role="img",p["aria-label"]=t.title,P.push({tag:"title",attrs:{},children:[t.title]})):p["aria-hidden"]="true",s||(p.focusable="false"),{tag:"svg",attrs:p,children:[...P,...I]}}var to=o=>o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");function A(o){if(typeof o=="string")return to(o);let t=Object.entries(o.attrs).map(([e,r])=>` ${e}="${to(r)}"`).join("");return`<${o.tag}${t}>${o.children.map(A).join("")}</${o.tag}>`}var Ke="http://www.w3.org/2000/svg";function R(o,t){let e=t.createElementNS(Ke,o.tag);for(let[r,a]of Object.entries(o.attrs))r!=="xmlns"&&e.setAttribute(r,a);for(let r of o.children)e.append(typeof r=="string"?t.createTextNode(r):R(r,t));return e}var ro="nv-icons-style",no=new WeakSet,j=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function u(o){j()||(o.classList.remove("nvi-on"),o.getBoundingClientRect(),o.classList.add("nvi-on"))}var Je=o=>{let t=o.target;if(!(t instanceof Element))return;let e=t.closest(".nvi[data-animate=click]");if(e){u(e);return}let r=t.closest(".nv-icon-trigger");if(r)for(let a of r.querySelectorAll(".nvi[data-animate=click]"))u(a)};function z(o=globalThis.document){if(!o||no.has(o))return;no.add(o);let t=o instanceof Document?o:o.ownerDocument;if(!o.querySelector(`#${ro}`)){let e=t.createElement("style");e.id=ro,e.textContent=g,(o instanceof Document?o.head??o.documentElement:o).append(e)}o.addEventListener("click",Je)}function so(o,t={}){let e=A($(o,t));if(!t.css||(t.animate??"none")==="none")return e;let r=e.indexOf(">")+1;return`${e.slice(0,r)}<style>${g}</style>${e.slice(r)}`}function ao(o,t={},e=globalThis.document){let r=j()?"none":t.animate??"none";return r!=="none"&&z(e),R($(o,{...t,animate:r}),e)}var io={name:"activity",category:"charts",tags:["pulse","heartbeat","monitor","live"],motion:"draw",shapes:["M3 12h4l2.5-6 5 12 2.5-6H21"]};var co={name:"arrow-down",category:"ui",tags:["down","bottom"],motion:"nudge",dir:"d",shapes:["~M12 4v16","~M6 14l6 6 6-6"]};var po={name:"arrow-left",category:"ui",tags:["left","back","previous"],motion:"nudge",dir:"l",shapes:["~M20 12H4","~M10 6l-6 6 6 6"]};var mo={name:"arrow-right",category:"ui",tags:["right","next","forward"],motion:"nudge",dir:"r",shapes:["~M4 12h16","~M14 6l6 6-6 6"]};var fo={name:"arrow-up",category:"ui",tags:["up","top"],motion:"nudge",dir:"u",shapes:["~M12 20V4","~M6 10l6-6 6 6"]};var lo={name:"atom",category:"weather",tags:["science","nuclear","physics","energy"],motion:"spin",shapes:["!#o12 12 1.8","~M21.3 12A9.3 3.6 0 1 1 2.7 12A9.3 3.6 0 1 1 21.3 12z","~M16.65 20.05A9.3 3.6 60 1 1 7.35 3.95A9.3 3.6 60 1 1 16.65 20.05z","~M7.35 20.05A9.3 3.6 120 1 1 16.65 3.95A9.3 3.6 120 1 1 7.35 20.05z"]};var go={name:"ban",category:"status",tags:["forbidden","blocked","stop","prohibited"],motion:"shake",shapes:["*~o12 12 9","!~M5.6 5.6l12.8 12.8"]};var ho={name:"bank",category:"business",tags:["finance","institution","loan"],motion:"grow",shapes:["*M3.5 9L12 4l8.5 5z","^M6 11.5v6","^M10 11.5v6","^M14 11.5v6","^M18 11.5v6","M3 20.5h18"]};var yo={name:"battery",category:"weather",tags:["charge","power","energy","level"],motion:"fill",shapes:["r2.5 7 16.5 10 2","M21.5 10.5v3","!#~r5 9.5 8 5 .6"]};var uo={name:"bell",category:"ui",tags:["notification","alert","alarm"],motion:"ring",origin:"12 4",shapes:["*~M5.5 17.5h13l-1.5-2.5v-4.5a5 5 0 0 0-10 0V15z","~M12 3.5v2","!~M10.2 20.5h3.6"]};var xo={name:"bike",category:"transport",tags:["bicycle","cycle","ride"],motion:"nudge",dir:"r",shapes:["o6 16 3.5","o18 16 3.5","!~M6 16l3.8-6.5h6.4L18 16","!~M6 16h5.5l4.7-6.5","~M9.8 9.5L8.8 7.5H7","~M16.2 9.5L15.4 6.5h2"]};var vo={name:"bolt",category:"weather",tags:["lightning","energy","power","electric"],motion:"flash",shapes:["*!~M13 2.5L5 13.5h6l-1 8 8-11h-6z"]};var Mo={name:"bookmark",category:"ui",tags:["save","favourite","read later"],motion:"bounce",shapes:["*~M6.5 3.5h11v17l-5.5-4-5.5 4z"]};var Io={name:"briefcase",category:"business",tags:["work","job","business","portfolio"],motion:"bounce",shapes:["*~r3.5 7.5 17 12 2","~M9 7.5v-2A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5v2","~M3.5 12.5h17","!~M12 11.5v2"]};var Do={name:"building",category:"business",tags:["office","apartment","company","real estate"],motion:"pop",shapes:["*M5 20.5V5A1.5 1.5 0 0 1 6.5 3.5h7A1.5 1.5 0 0 1 15 5v15.5","M15 9.5h3.5A1.5 1.5 0 0 1 20 11v9.5","M3 20.5h18","!^M8.5 7.5h3","!^M8.5 11h3","!^M8.5 14.5h3"]};var bo={name:"bus",category:"transport",tags:["coach","public transport"],motion:"bounce",shapes:["*~r5 3.5 14 15 2.5","~M5 11h14","~M5 7h14","!#~o8.5 14.5 1.1","!#~o15.5 14.5 1.1","M8 18.5v2","M16 18.5v2"]};var wo={name:"calculator",category:"business",tags:["math","budget","accounting"],motion:"pop",shapes:["*r5 3 14 18 2","!r8 6 8 3.5 .8","#^o9 13.5 1","#^o12 13.5 1","#^o15 13.5 1","#^o9 17 1","#^o12 17 1","#^o15 17 1"]};var ko={name:"calendar",category:"ui",tags:["date","day","schedule","event"],motion:"pop",shapes:["*r3.5 5 17 15.5 2","M3.5 10h17","M8 3v4","M16 3v4","!#^r7 13 3.5 3.5 .8"]};var Lo={name:"car",category:"transport",tags:["vehicle","drive","auto"],motion:"bounce",shapes:["*~M3.5 12.5l1.8-5A1.5 1.5 0 0 1 6.7 6.5h10.6a1.5 1.5 0 0 1 1.4 1l1.8 5V17a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z","~M3.5 12.5h17","!#~o7.5 15 1.1","!#~o16.5 15 1.1","M6 18v2","M18 18v2"]};var $o={name:"card",category:"business",tags:["credit card","payment","debit"],motion:"flow",shapes:["*r3 5.5 18 13 2","M3 10h18","!~M7 14.5h4"]};var Ao={name:"cart",category:"business",tags:["shopping","basket","buy","checkout"],motion:"nudge",dir:"r",shapes:["~M3 4h2.5l2.2 10.5a1.5 1.5 0 0 0 1.5 1.2h8.3a1.5 1.5 0 0 0 1.5-1.1L20.5 8H6.6","#~o9.5 19.5 1.5","#~o17 19.5 1.5"]};var zo={name:"chart-area",category:"charts",tags:["area","volume","trend"],motion:"grow",shapes:["M4 3.5V20h16.5","*!^M4 20v-4.5l4.5-5.5 4 3.5 4.5-7 3.5 3.5V20z"]};var Vo={name:"chart-bar",category:"charts",tags:["bars","columns","histogram","statistics"],motion:"grow",shapes:["M4 3.5V20h16.5","*^r7 11 3 6 .8","*!^r11.5 6.5 3 10.5 .8","*^r16 9 3 8 .8"]};var So={name:"chart-donut",category:"charts",tags:["donut","ring","share"],motion:"spin",shapes:["*o12 12 8.5","~o12 12 4","~M12 8L12 3.5","~M15.46 14L19.36 16.25","~M8.54 14L4.64 16.25"]};var Co={name:"chart-funnel",category:"charts",tags:["funnel","conversion","pipeline"],motion:"pop",shapes:["*^M4 4.5h16l-1.8 4H5.8z","*^M7 11h10l-1.8 4H8.8z","*!^M10 17.5h4l-.9 2.5h-2.2z"]};var No={name:"chart-line",category:"charts",tags:["line","graph","series","statistics"],motion:"write",shapes:["M4 3.5V20h16.5","!~M7.5 15l3.5-4.5 3 2.5 5-6.5"]};var Ho={name:"chart-pie",category:"charts",tags:["pie","share","proportion"],motion:"nudge",dir:"ur",shapes:["*M11 4.5a8.5 8.5 0 1 0 8.5 8.5H11z","*!~M14.5 2.5a7 7 0 0 1 7 7h-7z"]};var Eo={name:"chart-scatter",category:"charts",tags:["scatter","points","correlation"],motion:"pop",shapes:["M4 3.5V20h16.5","#^o8.5 15 1.5","#^o9.5 9 1.5","#^o13 12 1.5","#^o16 15 1.5","!#^o18 7.5 1.5"]};var To={name:"chat",category:"communication",tags:["message","conversation","comment","bubble"],motion:"pop",shapes:["*M5 4.5h14A1.5 1.5 0 0 1 20.5 6v9a1.5 1.5 0 0 1-1.5 1.5h-7l-4.5 3.5v-3.5H5A1.5 1.5 0 0 1 3.5 15V6A1.5 1.5 0 0 1 5 4.5z","!#^o8.5 10.5 1.1","!#^o12 10.5 1.1","!#^o15.5 10.5 1.1"]};var Oo={name:"check",category:"ui",tags:["done","ok","tick","valid"],motion:"draw",shapes:["M4.5 12.5l5 5L19.5 7"]};var Ro={name:"chevron-down",category:"ui",tags:["down","expand","dropdown"],motion:"nudge",dir:"d",shapes:["~M5.5 9l6.5 6.5L18.5 9"]};var jo={name:"chevron-left",category:"ui",tags:["left","back","previous"],motion:"nudge",dir:"l",shapes:["~M15 5.5L8.5 12l6.5 6.5"]};var Yo={name:"chevron-right",category:"ui",tags:["right","next","forward"],motion:"nudge",dir:"r",shapes:["~M9 5.5l6.5 6.5L9 18.5"]};var qo={name:"chevron-up",category:"ui",tags:["up","collapse"],motion:"nudge",dir:"u",shapes:["~M5.5 15L12 8.5l6.5 6.5"]};var Go={name:"clock",category:"ui",tags:["time","hour","watch"],motion:"spin",shapes:["*o12 12 9","~M12 7v5l3.5 2"]};var Uo={name:"close",category:"ui",tags:["x","cancel","dismiss"],motion:"draw",shapes:["M6.5 6.5l11 11","M17.5 6.5l-11 11"]};var Bo={name:"cloud-sun",category:"weather",tags:["partly cloudy","weather","mild"],motion:"float",shapes:["!M7.32 12.61A3.8 3.8 0 1 1 12.94 7.89","!M3.5 9.5L2.3 9.5","!M5.26 5.26L4.41 4.41","!M9.5 3.5L9.5 2.3","!M13.74 5.26L14.59 4.41","*~M10.05 20.5h7.63a3.49 3.49 0 0 0 .66 -6.89A4.92 4.92 0 0 0 8.98 14.43 3.12 3.12 0 0 0 10.05 20.5z"]};var Xo={name:"cloud",category:"weather",tags:["overcast","weather","sky"],motion:"float",shapes:["*~M7.5 19h9.3a4.25 4.25 0 0 0 .8-8.4A6 6 0 0 0 6.2 11.6 3.8 3.8 0 0 0 7.5 19z"]};var Po={name:"coins",category:"business",tags:["money","savings","cash"],motion:"flip",shapes:["M14.98 9.02A5.5 5.5 0 1 1 9.02 14.98","*~o9.5 9.5 5.5","!~M9.5 7.2v4.6"]};var Wo={name:"compass",category:"transport",tags:["direction","navigate","explore"],motion:"swing",origin:"12 12",shapes:["*o12 12 9","*!~M15.5 8.5l-2 5-5 2 2-5z"]};var Fo={name:"contract",category:"business",tags:["agreement","signature","deal","document"],motion:"write",shapes:["*M14 3.5H6.5A1.5 1.5 0 0 0 5 5v14.5A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8.5z","M14 3.5v5h5","M8.5 9h3","M8.5 12.5h7","!~M8.5 17.5c1-1.5 1.8-1.6 2 0s1.2 1.4 2.2-.3c.5-.8 1.3-.9 1.8 0h1.5"]};var _o={name:"copy",category:"ui",tags:["duplicate","clipboard"],motion:"nudge",dir:"dr",shapes:["M15 8.5v-3A1.5 1.5 0 0 0 13.5 4h-8A1.5 1.5 0 0 0 4 5.5v8A1.5 1.5 0 0 0 5.5 15h3","*~r9 9 11 11 2"]};var Ko={name:"dashboard",category:"charts",tags:["panels","overview","widgets"],motion:"pop",shapes:["*^r3.5 3.5 7.5 9 1.5","^r13 3.5 7.5 5 1.5","^r3.5 14.5 7.5 6 1.5","*!^r13 10.5 7.5 10 1.5"]};var Jo={name:"database",category:"charts",tags:["storage","data","server","sql"],motion:"bounce",shapes:["*~e12 6 7.5 2.8","M4.5 6v12c0 1.6 3.4 2.8 7.5 2.8s7.5-1.2 7.5-2.8V6","M4.5 12c0 1.6 3.4 2.8 7.5 2.8s7.5-1.2 7.5-2.8"]};var Qo={name:"dollar",category:"business",tags:["money","currency","price","usd"],motion:"flip",shapes:["~M12 3v18","~M16.5 7.5c-.6-1.6-2.3-2.5-4.5-2.5-2.6 0-4.5 1.3-4.5 3.3 0 4.4 9 2.2 9 7 0 2-1.9 3.4-4.5 3.4-2.4 0-4.1-1-4.7-2.7"]};var Zo={name:"download",category:"ui",tags:["save","get","arrow"],motion:"drop",shapes:["M4 15v3.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V15","~M12 3.5v11","!~M7.5 10l4.5 4.5 4.5-4.5"]};var ot={name:"drop",category:"weather",tags:["water","liquid","humidity","rain"],motion:"drop",shapes:["*~M12 3.5c3.6 4.4 6 7.8 6 11a6 6 0 0 1-12 0c0-3.2 2.4-6.6 6-11z","!~M9.2 15a3 3 0 0 0 2.3 2.6"]};var tt={name:"edit",category:"ui",tags:["pencil","write","change"],motion:"swing",origin:"4.5 19.5",shapes:["*~M15.5 4.5l4 4L9 19l-5 1 1-5z","~M13 7l4 4","!M13.5 20H20"]};var et={name:"error",category:"status",tags:["failure","wrong","cancel","danger"],motion:"shake",shapes:["*~o12 12 9","!~M9 9l6 6","!~M15 9l-6 6"]};var rt={name:"euro",category:"business",tags:["money","currency","price","eur"],motion:"flip",shapes:["~M17.5 6.2A7 7 0 1 0 17.5 17.8","~M4.5 10.5h9","~M4.5 13.5h8"]};var nt={name:"expand",category:"ui",tags:["maximize","fullscreen"],motion:"pulse",shapes:["~M4 9V4h5","~M20 9V4h-5","~M4 15v5h5","~M20 15v5h-5"]};var st={name:"external-link",category:"ui",tags:["open","new window","outside"],motion:"nudge",dir:"ur",shapes:["M18.5 13.5v5a1.5 1.5 0 0 1-1.5 1.5H5.5A1.5 1.5 0 0 1 4 18.5V7a1.5 1.5 0 0 1 1.5-1.5h5","!~M14 4h6v6","!~M20 4l-9 9"]};var at={name:"eye-off",category:"ui",tags:["hide","hidden","invisible"],motion:"draw",shapes:["M5.2 8.2A13 13 0 0 0 2.5 12c2.1 4.2 5.5 6.5 9.5 6.5 1.5 0 2.9-.3 4.1-.9","M9.3 5.8A9 9 0 0 1 12 5.5c4 0 7.4 2.3 9.5 6.5a14 14 0 0 1-2.3 3.3","M9.9 9.9a3 3 0 0 0 4.2 4.2","!M3.5 3.5l17 17"]};var it={name:"eye",category:"ui",tags:["view","show","visible","see"],motion:"blink",shapes:["*~M2.5 12C4.6 7.8 8 5.5 12 5.5s7.4 2.3 9.5 6.5c-2.1 4.2-5.5 6.5-9.5 6.5S4.6 16.2 2.5 12z","!~o12 12 3"]};var ct={name:"file",category:"ui",tags:["document","page","paper"],motion:"flow",shapes:["*M14 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8z","M13.5 3.5v5h5","!^M9 13h6","!^M9 16.5h4"]};var pt={name:"filter",category:"ui",tags:["funnel","refine"],motion:"nudge",dir:"d",shapes:["*~M3.5 5h17l-6.5 8v5.5l-4 2V13z"]};var mt={name:"flag",category:"status",tags:["report","milestone","mark"],motion:"swing",origin:"5 8",shapes:["M5 21V4","*~M5 4.5c2.5-1.3 4.8-1.3 7 0s4.5 1.3 7 0V13c-2.5 1.3-4.8 1.3-7 0s-4.5-1.3-7 0"]};var ft={name:"flame",category:"weather",tags:["fire","heat","gas","hot"],motion:"flicker",shapes:["*~M12 21c-3.9 0-6.5-2.6-6.5-6.2 0-3.4 2.5-5.2 3.4-8.3.4 1.9 1.4 2.9 2.4 3.4.2-3 1.3-5.5 3.2-7.4.4 3 1.6 4.4 2.8 6 1 1.4 1.7 3 1.7 4.9C19 18.4 16 21 12 21z","!~M12 18.5c-1.4 0-2.4-.9-2.4-2.3 0-1.5 1.2-2.3 1.7-3.7.9 1.1 3.1 2 3.1 3.9 0 1.3-1 2.1-2.4 2.1z"]};var lt={name:"folder",category:"ui",tags:["directory","files"],motion:"bounce",shapes:["*~M3.5 7A1.5 1.5 0 0 1 5 5.5h4.5l2 2.5H19a1.5 1.5 0 0 1 1.5 1.5v8.5A1.5 1.5 0 0 1 19 19.5H5A1.5 1.5 0 0 1 3.5 18z"]};var gt={name:"fuel",category:"weather",tags:["gas","petrol","station","energy"],motion:"fill",shapes:["*M4.5 20.5V5A1.5 1.5 0 0 1 6 3.5h6A1.5 1.5 0 0 1 13.5 5v15.5","M3 20.5h12","M4.5 10.5h9","M13.5 8.5h2A1.5 1.5 0 0 1 17 10v6a1.5 1.5 0 0 0 3 0V8.2L17.5 5.5","!#~r7 6 4 2.5 .5"]};var ht={name:"gauge",category:"charts",tags:["speed","meter","performance","kpi"],motion:"swing",origin:"12 14",shapes:["M4.6 17.5a8.5 8.5 0 1 1 14.8 0","!~M12 14l3.8-4.8","#o12 14 1.6"]};var yt={name:"globe",category:"ui",tags:["world","language","web","internet"],motion:"draw",shapes:["*o12 12 9","M3 12h18","!M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z"]};var dt={name:"grid",category:"ui",tags:["tiles","apps","layout"],motion:"pop",shapes:["*^r4 4 6.5 6.5 1.5","^r13.5 4 6.5 6.5 1.5","^r4 13.5 6.5 6.5 1.5","*^r13.5 13.5 6.5 6.5 1.5"]};var ut={name:"heart",category:"ui",tags:["like","love","favourite"],motion:"beat",shapes:["*~M12 20C8.5 17.8 4.4 14.6 3.5 10.8 2.8 7.7 5 5 7.9 5c1.8 0 3.2 1 4.1 2.5C12.9 6 14.3 5 16.1 5 19 5 21.2 7.7 20.5 10.8 19.6 14.6 15.5 17.8 12 20z"]};var xt={name:"help",category:"status",tags:["question","support","faq"],motion:"swing",origin:"12 12",shapes:["*o12 12 9","!~M9.5 9.5a2.5 2.5 0 1 1 3.6 2.2c-.7.4-1.1 1-1.1 1.8v.5","!#~o12 17 1.3"]};var vt={name:"house",category:"business",tags:["home","property","real estate"],motion:"drop",shapes:["*M5 10.5v8A1.5 1.5 0 0 0 6.5 20h11a1.5 1.5 0 0 0 1.5-1.5v-8","!~M2.5 11.5L12 4l9.5 7.5","M10 20v-5h4v5"]};var Mt={name:"image",category:"ui",tags:["picture","photo","media"],motion:"pop",shapes:["*r3.5 4.5 17 15 2","!#^o9 9.5 1.8","M4 17.5l5-5 4.5 4.5 2.5-2.5 4 4"]};var It={name:"inbox",category:"communication",tags:["tray","mailbox","received"],motion:"drop",shapes:["*M3.5 13.5l2.6-7.8A1.5 1.5 0 0 1 7.5 4.7h9a1.5 1.5 0 0 1 1.4 1l2.6 7.8V18a1.5 1.5 0 0 1-1.5 1.5h-14A1.5 1.5 0 0 1 3.5 18z","M3.5 13.5H8l1.5 2.5h5l1.5-2.5h4.5","!~M12 6.5v5","!~M9.5 9.5L12 12l2.5-2.5"]};var Dt={name:"info",category:"status",tags:["information","about","details"],motion:"bounce",shapes:["*o12 12 9","!~M12 11v5.5","!#~o12 7.8 1.3"]};var bt={name:"key",category:"business",tags:["access","password","rental"],motion:"tilt",origin:"8 15.5",shapes:["*~o8 15.5 4","~M10.9 12.6L19.5 4","!~M16.5 7l2.5 2.5","!~M14 9.5l2 2"]};var wt={name:"layers",category:"charts",tags:["stack","levels","overlay"],motion:"drop",shapes:["*!^M12 3.5l8.5 4.5L12 12.5 3.5 8z","^M3.5 12L12 16.5l8.5-4.5","^M3.5 16L12 20.5l8.5-4.5"]};var kt={name:"leaf",category:"weather",tags:["eco","nature","green","plant"],motion:"swing",origin:"5 19.5",shapes:["*~M6 18.5C5.3 10.5 10.3 5 19.5 4.5 19.6 13.6 14.6 19 6.5 19","!~M4 20.5c3-4.2 6.5-7.8 11-10.5"]};var Lt={name:"link",category:"ui",tags:["chain","url","hyperlink"],motion:"pop",shapes:["M8.5 11.5l-2 2a3.5 3.5 0 0 0 5 5l2-2","M15.5 12.5l2-2a3.5 3.5 0 0 0-5-5l-2 2","!^M10 14l4-4"]};var $t={name:"list",category:"ui",tags:["items","lines","rows"],motion:"flow",shapes:["#o5 6.5 1.3","#o5 12 1.3","#o5 17.5 1.3","^M9 6.5h11","^M9 12h11","^M9 17.5h11"]};var At={name:"loader",category:"status",tags:["loading","progress","wait","busy"],motion:"spin",shapes:["%o12 12 9","!~M12 3a9 9 0 0 1 9 9"]};var zt={name:"lock",category:"ui",tags:["secure","private","closed"],motion:"bounce",shapes:["*r5 10.5 14 10 2","~M8 10.5v-3a4 4 0 0 1 8 0v3","!M12 14.5v2.5"]};var Vt={name:"login",category:"ui",tags:["sign in","enter"],motion:"nudge",dir:"r",shapes:["M14 4h3.5A1.5 1.5 0 0 1 19 5.5v13a1.5 1.5 0 0 1-1.5 1.5H14","!~M4 12h10","!~M10 8l4 4-4 4"]};var St={name:"logout",category:"ui",tags:["sign out","exit","leave"],motion:"nudge",dir:"r",shapes:["M10 20H6.5A1.5 1.5 0 0 1 5 18.5v-13A1.5 1.5 0 0 1 6.5 4H10","!~M10.5 12H20","!~M16 8l4 4-4 4"]};var Ct={name:"mail",category:"communication",tags:["email","envelope","message","letter"],motion:"write",shapes:["*r3 5.5 18 13 2","!~M3.5 7l8.5 6 8.5-6"]};var Nt={name:"map",category:"charts",tags:["atlas","location","geography"],motion:"float",shapes:["*~M3.5 6.5L8.5 4l7 2.5 5-2.5v13.5l-5 2.5-7-2.5-5 2.5z","~M8.5 4v13.5","~M15.5 6.5V20"]};var Ht={name:"megaphone",category:"communication",tags:["announcement","marketing","campaign","loudspeaker"],motion:"shake",shapes:["*~M4 9.5h3.5l9-5v15l-9-5H4a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1z","~M7.5 14.5l1.5 5h2.5L10 14.5","!~M19.5 9.5a3.5 3.5 0 0 1 0 5"]};var Et={name:"menu",category:"ui",tags:["hamburger","navigation","bars"],motion:"flow",shapes:["^M4 6.5h16","^M4 12h16","^M4 17.5h10"]};var Tt={name:"mic",category:"communication",tags:["microphone","voice","record","audio"],motion:"pulse",shapes:["*~r9 3 6 11 3","M5.5 11.5a6.5 6.5 0 0 0 13 0","M12 18v3"]};var Ot={name:"minus",category:"ui",tags:["remove","subtract"],motion:"draw",shapes:["M5 12h14"]};var Rt={name:"moon",category:"weather",tags:["night","dark","sleep"],motion:"swing",origin:"12 12",shapes:["*~M19.5 14.5A8 8 0 1 1 9.5 4.5a6.5 6.5 0 0 0 10 10z"]};var jt={name:"more",category:"ui",tags:["dots","ellipsis","menu","options"],motion:"pop",shapes:["#^o5.5 12 1.7","#^o12 12 1.7","#^o18.5 12 1.7"]};var Yt={name:"navigation",category:"transport",tags:["direction","gps","arrow","heading"],motion:"nudge",dir:"u",shapes:["*!~M12 3l7 17-7-4-7 4z"]};var qt={name:"percent",category:"business",tags:["discount","rate","commission"],motion:"pop",shapes:["M18.5 5.5l-13 13","*!^o7.5 7.5 2.3","*!^o16.5 16.5 2.3"]};var Gt={name:"phone",category:"communication",tags:["call","telephone","contact"],motion:"ring",origin:"12 12",shapes:["*~M8 3.5H5.5a2 2 0 0 0-2 2.1c.5 8 6.9 14.4 14.9 14.9a2 2 0 0 0 2.1-2V16l-4.3-1.6-2.1 2.1a12 12 0 0 1-5.6-5.6l2.1-2.1z"]};var Ut={name:"pin",category:"transport",tags:["location","place","marker","address"],motion:"bounce",shapes:["*~M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z","!~o12 10 2.4"]};var Bt={name:"plane",category:"transport",tags:["flight","airplane","travel","airport"],motion:"send",dir:"u",shapes:["*~M12 2.5c.9 0 1.5 1 1.5 2.5v4.2l7 4.3v2l-7-2.2v4.4l2.2 1.8v1.7L12 20.4l-3.7.8v-1.7l2.2-1.8v-4.4l-7 2.2v-2l7-4.3V5c0-1.5.6-2.5 1.5-2.5z"]};var Xt={name:"plug",category:"weather",tags:["power","electric","socket","connect"],motion:"nudge",dir:"u",shapes:["~M9 3v4.5","~M15 3v4.5","*~M6.5 7.5h11V11a5.5 5.5 0 0 1-11 0z","!M12 16.5V21"]};var Pt={name:"plus",category:"ui",tags:["add","new","create"],motion:"pop",shapes:["^M12 5v14","^M5 12h14"]};var Wt={name:"power",category:"ui",tags:["on","off","shutdown"],motion:"pulse",shapes:["!~M12 3.5v8","~M7 6.2a7.5 7.5 0 1 0 10 0"]};var Ft={name:"rain",category:"weather",tags:["shower","weather","wet"],motion:"fall",shapes:["*M7.5 14.5h9.3a4.25 4.25 0 0 0 .8-8.4A6 6 0 0 0 6.2 7.1 3.8 3.8 0 0 0 7.5 14.5z","!^M8.5 17.5l-1 3","!^M12.5 17.5l-1 3","!^M16.5 17.5l-1 3"]};var _t={name:"receipt",category:"business",tags:["invoice","bill","ticket"],motion:"flow",shapes:["*M6 3.5h12v17l-2-1.3-2 1.3-2-1.3-2 1.3-2-1.3-2 1.3z","^M9 8h6","^M9 11.5h6","!^M9 15h3.5"]};var Kt={name:"redo",category:"ui",tags:["forward","again"],motion:"nudge",dir:"r",shapes:["~M15 14.5l5-5-5-5","M20 9.5H9.5a5.5 5.5 0 0 0 0 11H13"]};var Jt={name:"refresh",category:"ui",tags:["reload","sync","update","repeat"],motion:"spin",shapes:["~M19.5 12a7.5 7.5 0 0 1-13 5.1","~M4.5 12a7.5 7.5 0 0 1 13-5.1","!~M17.5 3.5V7H14","!~M6.5 20.5V17H10"]};var Qt={name:"route",category:"transport",tags:["path","directions","journey","way"],motion:"write",shapes:["o6 18.5 2","*!o18 5.5 2","~M8 18.5h7.5a3 3 0 0 0 0-6h-7a3 3 0 0 1 0-6H16"]};var Zt={name:"search",category:"ui",tags:["find","magnifier","lookup"],motion:"scan",shapes:["*~o10.5 10.5 6.5","~M15.3 15.3L20 20"]};var oe={name:"send",category:"communication",tags:["paper plane","submit","message"],motion:"send",dir:"ur",shapes:["*~M20.5 3.5L3.5 10.5l6.8 3.2 3.2 6.8z","!~M10.3 13.7l4.2-4.2"]};var te={name:"settings",category:"ui",tags:["gear","cog","preferences","options"],motion:"spin",shapes:["*~M10.18 5.34L10.45 3.13L13.55 3.13L13.82 5.34A6.9 6.9 0 0 1 15.42 6.01L17.18 4.64L19.36 6.82L17.99 8.58A6.9 6.9 0 0 1 18.66 10.18L20.87 10.45L20.87 13.55L18.66 13.82A6.9 6.9 0 0 1 17.99 15.42L19.36 17.18L17.18 19.36L15.42 17.99A6.9 6.9 0 0 1 13.82 18.66L13.55 20.87L10.45 20.87L10.18 18.66A6.9 6.9 0 0 1 8.58 17.99L6.82 19.36L4.64 17.18L6.01 15.42A6.9 6.9 0 0 1 5.34 13.82L3.13 13.55L3.13 10.45L5.34 10.18A6.9 6.9 0 0 1 6.01 8.58L4.64 6.82L6.82 4.64L8.58 6.01A6.9 6.9 0 0 1 10.18 5.34z","~o12 12 2.8"]};var ee={name:"share",category:"ui",tags:["network","send","social"],motion:"pop",shapes:["M8.2 10.8l7.6-4.1","M8.2 13.2l7.6 4.1","*^o6 12 2.5","*^o18 5.5 2.5","*^o18 18.5 2.5"]};var re={name:"shield-check",category:"status",tags:["security","protected","safe","verified"],motion:"write",shapes:["*M12 3l7.5 3v5.5c0 4.5-3.1 8.2-7.5 9.5-4.4-1.3-7.5-5-7.5-9.5V6z","!~M8.8 12l2.2 2.2 4.4-4.4"]};var ne={name:"ship",category:"transport",tags:["boat","ferry","sea","cargo"],motion:"float",shapes:["*~M3 15.5h18l-2.5 4.5h-13z","~M6 15.5V10h12v5.5","~M12 10V4","!~M12 4.5l4 2.5-4 1.5"]};var se={name:"sliders",category:"ui",tags:["controls","adjust","equalizer","settings"],motion:"draw",shapes:["M4 7h2.2","M11.8 7H20","*!o9 7 2.4","M4 17h8.2","M17.8 17H20","*!o15 17 2.4"]};var ae={name:"snow",category:"weather",tags:["winter","weather","cold"],motion:"fall",shapes:["*M7.5 14.5h9.3a4.25 4.25 0 0 0 .8-8.4A6 6 0 0 0 6.2 7.1 3.8 3.8 0 0 0 7.5 14.5z","!#^o8.5 18.5 1.1","!#^o12.5 20 1.1","!#^o16.5 18.5 1.1"]};var ie={name:"sort",category:"ui",tags:["order","arrange"],motion:"draw",shapes:["M7 4v16","M3.5 16.5L7 20l3.5-3.5","!M17 20V4","!M13.5 7.5L17 4l3.5 3.5"]};var ce={name:"spinner",category:"status",tags:["loading","progress","wait"],motion:"spin",shapes:["~M12 7.5L12 3","~M15.18 8.82L18.36 5.64","~M16.5 12L21 12","~M15.18 15.18L18.36 18.36","~%M12 16.5L12 21","~%M8.82 15.18L5.64 18.36","~%M7.5 12L3 12","~%M8.82 8.82L5.64 5.64"]};var pe={name:"star",category:"ui",tags:["favourite","rating","bookmark"],motion:"pop",shapes:["*^M12 3.3L14.41 9.28L20.84 9.73L15.9 13.87L17.47 20.12L12 16.7L6.53 20.12L8.1 13.87L3.16 9.73L9.59 9.28z"]};var me={name:"store",category:"business",tags:["shop","agency","market"],motion:"bounce",origin:"12 12",shapes:["*~M4 4.5h16l1 4.5a2.5 2.5 0 0 1-4.5 1.5 2.5 2.5 0 0 1-4.5 0 2.5 2.5 0 0 1-4.5 0A2.5 2.5 0 0 1 3 9z","M5 11.5V19a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 19v-7.5","!M10 20.5V16h4v4.5"]};var fe={name:"success",category:"status",tags:["done","valid","complete","check"],motion:"write",shapes:["*o12 12 9","!~M8 12.3l2.8 2.7 5.2-5.5"]};var le={name:"sun",category:"weather",tags:["day","bright","clear","light"],motion:"spin",shapes:["*!o12 12 4","~M12 5L12 3","~M16.95 7.05L18.36 5.64","~M19 12L21 12","~M16.95 16.95L18.36 18.36","~M12 19L12 21","~M7.05 16.95L5.64 18.36","~M5 12L3 12","~M7.05 7.05L5.64 5.64"]};var ge={name:"table",category:"charts",tags:["grid","spreadsheet","rows","data"],motion:"flow",shapes:["*r3.5 4.5 17 15 2","M3.5 9.5h17","^M3.5 14.5h17","M9.5 9.5v10"]};var he={name:"tag",category:"business",tags:["price","label","sale"],motion:"swing",origin:"8 8",shapes:["*~M3.5 5A1.5 1.5 0 0 1 5 3.5h6.3a1.5 1.5 0 0 1 1 .4l8.3 8.3a1.5 1.5 0 0 1 0 2.1l-6.3 6.3a1.5 1.5 0 0 1-2.1 0L3.9 12.3a1.5 1.5 0 0 1-.4-1z","!#~o8 8 1.5"]};var ye={name:"target",category:"charts",tags:["goal","objective","aim","kpi"],motion:"pulse",shapes:["*o12 12 9","o12 12 5","!#~o12 12 1.8"]};var de={name:"thermometer",category:"weather",tags:["temperature","heat","weather"],motion:"grow",shapes:["*M14.5 14.3V5.5a2.5 2.5 0 0 0-5 0v8.8a4.2 4.2 0 1 0 5 0z","!~M12 16V8.5","!#o12 17.6 1.6"]};var ue={name:"thunder",category:"weather",tags:["storm","lightning","weather"],motion:"flash",shapes:["*M7.5 14.5h9.3a4.25 4.25 0 0 0 .8-8.4A6 6 0 0 0 6.2 7.1 3.8 3.8 0 0 0 7.5 14.5z","!~M13 15.5l-2.5 3h3.2l-1.7 3"]};var xe={name:"train",category:"transport",tags:["rail","metro","tram","subway"],motion:"bounce",shapes:["*~r6 3.5 12 14 3","~M6 10h12","!#~o9.5 13.8 1.1","!#~o14.5 13.8 1.1","M8.5 21l2-3.5","M15.5 21l-2-3.5"]};var ve={name:"trash",category:"ui",tags:["delete","remove","bin"],motion:"lid",origin:"4 6.5",shapes:["~M4 6.5h16","~M9.5 6.5v-2h5v2","*M6 6.5l1 13a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5l1-13","M10 10.5v6","M14 10.5v6"]};var Me={name:"trend-down",category:"charts",tags:["decline","decrease","fall"],motion:"nudge",dir:"dr",shapes:["~M3.5 7l6 6 3.5-3.5 7.5 7.5","!~M15 17h5.5v-5.5"]};var Ie={name:"trend-up",category:"charts",tags:["growth","increase","rise"],motion:"nudge",dir:"ur",shapes:["~M3.5 17l6-6 3.5 3.5 7.5-7.5","!~M15 7h5.5v5.5"]};var De={name:"truck",category:"transport",tags:["delivery","lorry","shipping","moving"],motion:"nudge",dir:"r",shapes:["*~r2.5 6 11 9.5 1.5","~M13.5 9.5h4l3 3.5v2.5h-7","~o7 17.5 2","~o17 17.5 2"]};var be={name:"umbrella",category:"weather",tags:["rain","protection","insurance"],motion:"swing",origin:"12 4",shapes:["*~M3 12.5a9 8.5 0 0 1 18 0z","~M12 3v1","M12 12.5v6a2 2 0 0 1-4 0"]};var we={name:"undo",category:"ui",tags:["back","revert"],motion:"nudge",dir:"l",shapes:["~M9 14.5l-5-5 5-5","M4 9.5h10.5a5.5 5.5 0 0 1 0 11H11"]};var ke={name:"unlock",category:"ui",tags:["open","unsecure"],motion:"bounce",shapes:["*r5 10.5 14 10 2","~M8 10.5v-3a4 4 0 0 1 7.8-1.3","!M12 14.5v2.5"]};var Le={name:"upload",category:"ui",tags:["send","put","arrow"],motion:"rise",shapes:["M4 15v3.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V15","~M12 15V4","!~M7.5 8.5L12 4l4.5 4.5"]};var $e={name:"user",category:"ui",tags:["person","account","profile"],motion:"bounce",shapes:["*~o12 8 4","M4.5 20.5c.8-3.6 3.8-6 7.5-6s6.7 2.4 7.5 6"]};var Ae={name:"users",category:"ui",tags:["people","team","group"],motion:"bounce",shapes:["*~o9 8.5 3.5","M2.8 20c.6-3.3 3-5.4 6.2-5.4s5.6 2.1 6.2 5.4","!~M15.2 5.3a3.5 3.5 0 0 1 0 6.4","!M17.6 14.9c2 .7 3.3 2.5 3.6 5.1"]};var ze={name:"video",category:"communication",tags:["camera","meeting","film","record"],motion:"pulse",shapes:["*r3 6 12.5 12 2","!~M15.5 10.5l5.5-3v9l-5.5-3z"]};var Ve={name:"wallet",category:"business",tags:["money","payment","purse"],motion:"nudge",dir:"l",shapes:["*r3.5 6.5 17 13 2","M6 6.5l9.5-3 1 3","!~M20.5 10.5h-4a2.5 2.5 0 0 0 0 5h4","!#~o16.5 13 1"]};var Se={name:"warning",category:"status",tags:["alert","caution","attention"],motion:"shake",shapes:["*~M10.3 4.2a2 2 0 0 1 3.4 0l7.7 13.3a2 2 0 0 1-1.7 3H4.3a2 2 0 0 1-1.7-3z","!~M12 9.5V14","!#~o12 17 1.3"]};var Ce={name:"wifi",category:"communication",tags:["wireless","network","signal","internet"],motion:"pop",shapes:["!#^o12 19 1.3","^M8.5 15.5a5 5 0 0 1 7 0","^M5.5 12.3a9.3 9.3 0 0 1 13 0","^M2.5 9a13.8 13.8 0 0 1 19 0"]};var Ne={name:"wind",category:"weather",tags:["breeze","air","weather"],motion:"flow",shapes:["^M3 9h11a2.5 2.5 0 1 0-2.5-2.5","!^M3 13h15.5a2.5 2.5 0 1 1-2.5 2.5","^M3 17h7"]};var x={activity:io,"arrow-down":co,"arrow-left":po,"arrow-right":mo,"arrow-up":fo,atom:lo,ban:go,bank:ho,battery:yo,bell:uo,bike:xo,bolt:vo,bookmark:Mo,briefcase:Io,building:Do,bus:bo,calculator:wo,calendar:ko,car:Lo,card:$o,cart:Ao,"chart-area":zo,"chart-bar":Vo,"chart-donut":So,"chart-funnel":Co,"chart-line":No,"chart-pie":Ho,"chart-scatter":Eo,chat:To,check:Oo,"chevron-down":Ro,"chevron-left":jo,"chevron-right":Yo,"chevron-up":qo,clock:Go,close:Uo,"cloud-sun":Bo,cloud:Xo,coins:Po,compass:Wo,contract:Fo,copy:_o,dashboard:Ko,database:Jo,dollar:Qo,download:Zo,drop:ot,edit:tt,error:et,euro:rt,expand:nt,"external-link":st,"eye-off":at,eye:it,file:ct,filter:pt,flag:mt,flame:ft,folder:lt,fuel:gt,gauge:ht,globe:yt,grid:dt,heart:ut,help:xt,house:vt,image:Mt,inbox:It,info:Dt,key:bt,layers:wt,leaf:kt,link:Lt,list:$t,loader:At,lock:zt,login:Vt,logout:St,mail:Ct,map:Nt,megaphone:Ht,menu:Et,mic:Tt,minus:Ot,moon:Rt,more:jt,navigation:Yt,percent:qt,phone:Gt,pin:Ut,plane:Bt,plug:Xt,plus:Pt,power:Wt,rain:Ft,receipt:_t,redo:Kt,refresh:Jt,route:Qt,search:Zt,send:oe,settings:te,share:ee,"shield-check":re,ship:ne,sliders:se,snow:ae,sort:ie,spinner:ce,star:pe,store:me,success:fe,sun:le,table:ge,tag:he,target:ye,thermometer:de,thunder:ue,train:xe,trash:ve,"trend-down":Me,"trend-up":Ie,truck:De,umbrella:be,undo:we,unlock:ke,upload:Le,user:$e,users:Ae,video:ze,wallet:Ve,warning:Se,wifi:Ce,wind:Ne};var He=[{id:"ui",name:"Interface"},{id:"charts",name:"Charts and data"},{id:"business",name:"Business and real estate"},{id:"weather",name:"Weather and energy"},{id:"transport",name:"Transport"},{id:"communication",name:"Communication"},{id:"status",name:"Status"}],Ee=Object.keys(x);function V(o){if(typeof o!="string")return o;let t=x[o];if(!t)throw new Error(`nervure icons: no icon named "${o}"`);return t}var S=(o,t,e)=>ao(V(o),t,e),Te=(o,t)=>so(V(o),t);var Qe=["name","size","color","accent","fill","variant","animate","stroke-width","label"],Ze=typeof HTMLElement>"u"?Object:HTMLElement,v=class extends Ze{connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}play(){let t=this.querySelector("svg");t&&(t.classList.remove("nvi-on"),t.getBoundingClientRect(),t.classList.add("nvi-on"))}render(){let t=this.getAttribute("name");if(!t){this.replaceChildren();return}let e;try{e=V(t)}catch{this.replaceChildren();return}let r=M=>this.getAttribute(M)??void 0,a=r("size"),s=r("stroke-width"),m={size:a&&/^\d+(\.\d+)?$/.test(a)?Number(a):a??24,color:r("color"),accent:r("accent"),fill:r("fill"),variant:r("variant")??"mono",animate:r("animate")??"none",strokeWidth:s?Number(s):void 0,title:r("label")};m.animate==="hover"?this.classList.add("nv-icon-trigger"):this.classList.remove("nv-icon-trigger"),this.replaceChildren(S(e,m,this.ownerDocument))}};J(v,"observedAttributes",Qe);function Y(o="nv-icon"){typeof customElements>"u"||customElements.get(o)||customElements.define(o,o==="nv-icon"?v:class extends v{})}Y();Y();globalThis.nervureIcons={icon:S,iconSvg:Te,icons:x,iconNames:Ee,categories:He,iconCss:g,injectStyles:z,play:u};})();
package/dist/cdn.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/dist/cdn.js ADDED
@@ -0,0 +1,14 @@
1
+ // The one-file build: registers <nv-icon> and exposes window.nervureIcons.
2
+ import { defineIconElement } from "./element.js";
3
+ import { categories, icon, iconCss, iconNames, icons, iconSvg, injectStyles, play } from "./index.js";
4
+ defineIconElement();
5
+ globalThis.nervureIcons = {
6
+ icon,
7
+ iconSvg,
8
+ icons,
9
+ iconNames,
10
+ categories,
11
+ iconCss,
12
+ injectStyles,
13
+ play,
14
+ };
package/dist/core.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import type { IconDef, IconOptions } from './types.ts';
2
+ export { iconCss } from './styles.ts';
3
+ export { iconTree, toMarkup, ACCENT } from './render.ts';
4
+ export type { IconNode } from './render.ts';
5
+ export type * from './types.ts';
6
+ /** True when the reader asked for less motion. */
7
+ export declare const reducedMotion: () => boolean;
8
+ /** Plays the animation of an icon again (the `click` trigger does it on each click). */
9
+ export declare function play(svg: Element): void;
10
+ /**
11
+ * Adds the animation stylesheet to a document or a shadow root, once, and listens to clicks
12
+ * for the `click` trigger. `icon()`, the web component, React and Vue call it for you.
13
+ */
14
+ export declare function injectStyles(root?: Document | ShadowRoot | undefined): void;
15
+ /** The icon as markup, for the server and for strings. Add `iconCss` once to the page for animations. */
16
+ export declare function iconSvg(def: IconDef, options?: IconOptions): string;
17
+ /** The icon as an `<svg>` element. Readers who ask for less motion get it still. */
18
+ export declare function icon(def: IconDef, options?: IconOptions, doc?: Document): SVGSVGElement;
package/dist/core.js ADDED
@@ -0,0 +1,62 @@
1
+ import { iconTree, toDom, toMarkup } from "./render.js";
2
+ import { iconCss } from "./styles.js";
3
+ export { iconCss } from "./styles.js";
4
+ export { iconTree, toMarkup, ACCENT } from "./render.js";
5
+ const STYLE_ID = 'nv-icons-style';
6
+ const ready = new WeakSet();
7
+ /** True when the reader asked for less motion. */
8
+ export const reducedMotion = () => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;
9
+ /** Plays the animation of an icon again (the `click` trigger does it on each click). */
10
+ export function play(svg) {
11
+ if (reducedMotion())
12
+ return;
13
+ svg.classList.remove('nvi-on');
14
+ void svg.getBoundingClientRect();
15
+ svg.classList.add('nvi-on');
16
+ }
17
+ const onClick = (event) => {
18
+ const target = event.target;
19
+ if (!(target instanceof Element))
20
+ return;
21
+ const own = target.closest('.nvi[data-animate=click]');
22
+ if (own) {
23
+ play(own);
24
+ return;
25
+ }
26
+ const trigger = target.closest('.nv-icon-trigger');
27
+ if (trigger)
28
+ for (const svg of trigger.querySelectorAll('.nvi[data-animate=click]'))
29
+ play(svg);
30
+ };
31
+ /**
32
+ * Adds the animation stylesheet to a document or a shadow root, once, and listens to clicks
33
+ * for the `click` trigger. `icon()`, the web component, React and Vue call it for you.
34
+ */
35
+ export function injectStyles(root = globalThis.document) {
36
+ if (!root || ready.has(root))
37
+ return;
38
+ ready.add(root);
39
+ const doc = root instanceof Document ? root : root.ownerDocument;
40
+ if (!root.querySelector(`#${STYLE_ID}`)) {
41
+ const style = doc.createElement('style');
42
+ style.id = STYLE_ID;
43
+ style.textContent = iconCss;
44
+ (root instanceof Document ? (root.head ?? root.documentElement) : root).append(style);
45
+ }
46
+ root.addEventListener('click', onClick);
47
+ }
48
+ /** The icon as markup, for the server and for strings. Add `iconCss` once to the page for animations. */
49
+ export function iconSvg(def, options = {}) {
50
+ const svg = toMarkup(iconTree(def, options));
51
+ if (!options.css || (options.animate ?? 'none') === 'none')
52
+ return svg;
53
+ const at = svg.indexOf('>') + 1;
54
+ return `${svg.slice(0, at)}<style>${iconCss}</style>${svg.slice(at)}`;
55
+ }
56
+ /** The icon as an `<svg>` element. Readers who ask for less motion get it still. */
57
+ export function icon(def, options = {}, doc = globalThis.document) {
58
+ const animate = reducedMotion() ? 'none' : (options.animate ?? 'none');
59
+ if (animate !== 'none')
60
+ injectStyles(doc);
61
+ return toDom(iconTree(def, { ...options, animate }), doc);
62
+ }
@@ -0,0 +1,21 @@
1
+ declare const Base: typeof HTMLElement;
2
+ /**
3
+ * `<nv-icon name="bell" animate="hover" variant="duo" label="Notifications">`.
4
+ * Draws in the light DOM, so the colours and the CSS custom properties of the page apply.
5
+ */
6
+ export declare class NvIcon extends Base {
7
+ static readonly observedAttributes: readonly ["name", "size", "color", "accent", "fill", "variant", "animate", "stroke-width", "label"];
8
+ connectedCallback(): void;
9
+ attributeChangedCallback(): void;
10
+ /** Plays the animation again. */
11
+ play(): void;
12
+ private render;
13
+ }
14
+ /** Registers `<nv-icon>` (or another tag name), once. */
15
+ export declare function defineIconElement(tag?: string): void;
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ 'nv-icon': NvIcon;
19
+ }
20
+ }
21
+ export {};
@@ -0,0 +1,68 @@
1
+ import { icon, resolveIcon } from "./index.js";
2
+ const ATTRS = ['name', 'size', 'color', 'accent', 'fill', 'variant', 'animate', 'stroke-width', 'label'];
3
+ // On the server there is no HTMLElement: the class is defined but never registered.
4
+ const Base = typeof HTMLElement === 'undefined' ? Object : HTMLElement;
5
+ /**
6
+ * `<nv-icon name="bell" animate="hover" variant="duo" label="Notifications">`.
7
+ * Draws in the light DOM, so the colours and the CSS custom properties of the page apply.
8
+ */
9
+ export class NvIcon extends Base {
10
+ static observedAttributes = ATTRS;
11
+ connectedCallback() {
12
+ this.render();
13
+ }
14
+ attributeChangedCallback() {
15
+ if (this.isConnected)
16
+ this.render();
17
+ }
18
+ /** Plays the animation again. */
19
+ play() {
20
+ const svg = this.querySelector('svg');
21
+ if (!svg)
22
+ return;
23
+ svg.classList.remove('nvi-on');
24
+ void svg.getBoundingClientRect();
25
+ svg.classList.add('nvi-on');
26
+ }
27
+ render() {
28
+ const name = this.getAttribute('name');
29
+ if (!name) {
30
+ this.replaceChildren();
31
+ return;
32
+ }
33
+ let def;
34
+ try {
35
+ def = resolveIcon(name);
36
+ }
37
+ catch {
38
+ this.replaceChildren();
39
+ return;
40
+ }
41
+ const get = (key) => this.getAttribute(key) ?? undefined;
42
+ const size = get('size');
43
+ const stroke = get('stroke-width');
44
+ const options = {
45
+ size: size && /^\d+(\.\d+)?$/.test(size) ? Number(size) : (size ?? 24),
46
+ color: get('color'),
47
+ accent: get('accent'),
48
+ fill: get('fill'),
49
+ variant: get('variant') ?? 'mono',
50
+ animate: get('animate') ?? 'none',
51
+ strokeWidth: stroke ? Number(stroke) : undefined,
52
+ title: get('label'),
53
+ };
54
+ if (options.animate === 'hover')
55
+ this.classList.add('nv-icon-trigger');
56
+ else
57
+ this.classList.remove('nv-icon-trigger');
58
+ this.replaceChildren(icon(def, options, this.ownerDocument));
59
+ }
60
+ }
61
+ /** Registers `<nv-icon>` (or another tag name), once. */
62
+ export function defineIconElement(tag = 'nv-icon') {
63
+ if (typeof customElements === 'undefined' || customElements.get(tag))
64
+ return;
65
+ customElements.define(tag, tag === 'nv-icon' ? NvIcon : class extends NvIcon {
66
+ });
67
+ }
68
+ defineIconElement();
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const activity: IconDef;
@@ -0,0 +1,7 @@
1
+ export const activity = {
2
+ name: 'activity',
3
+ category: 'charts',
4
+ tags: ['pulse', 'heartbeat', 'monitor', 'live'],
5
+ motion: 'draw',
6
+ shapes: ['M3 12h4l2.5-6 5 12 2.5-6H21'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const arrowDown: IconDef;
@@ -0,0 +1,8 @@
1
+ export const arrowDown = {
2
+ name: 'arrow-down',
3
+ category: 'ui',
4
+ tags: ['down', 'bottom'],
5
+ motion: 'nudge',
6
+ dir: 'd',
7
+ shapes: ['~M12 4v16', '~M6 14l6 6 6-6'],
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const arrowLeft: IconDef;
@@ -0,0 +1,8 @@
1
+ export const arrowLeft = {
2
+ name: 'arrow-left',
3
+ category: 'ui',
4
+ tags: ['left', 'back', 'previous'],
5
+ motion: 'nudge',
6
+ dir: 'l',
7
+ shapes: ['~M20 12H4', '~M10 6l-6 6 6 6'],
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const arrowRight: IconDef;
@@ -0,0 +1,8 @@
1
+ export const arrowRight = {
2
+ name: 'arrow-right',
3
+ category: 'ui',
4
+ tags: ['right', 'next', 'forward'],
5
+ motion: 'nudge',
6
+ dir: 'r',
7
+ shapes: ['~M4 12h16', '~M14 6l6 6-6 6'],
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const arrowUp: IconDef;
@@ -0,0 +1,8 @@
1
+ export const arrowUp = {
2
+ name: 'arrow-up',
3
+ category: 'ui',
4
+ tags: ['up', 'top'],
5
+ motion: 'nudge',
6
+ dir: 'u',
7
+ shapes: ['~M12 20V4', '~M6 10l6-6 6 6'],
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const atom: IconDef;
@@ -0,0 +1,12 @@
1
+ export const atom = {
2
+ name: 'atom',
3
+ category: 'weather',
4
+ tags: ['science', 'nuclear', 'physics', 'energy'],
5
+ motion: 'spin',
6
+ shapes: [
7
+ '!#o12 12 1.8',
8
+ '~M21.3 12A9.3 3.6 0 1 1 2.7 12A9.3 3.6 0 1 1 21.3 12z',
9
+ '~M16.65 20.05A9.3 3.6 60 1 1 7.35 3.95A9.3 3.6 60 1 1 16.65 20.05z',
10
+ '~M7.35 20.05A9.3 3.6 120 1 1 16.65 3.95A9.3 3.6 120 1 1 7.35 20.05z',
11
+ ],
12
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const ban: IconDef;
@@ -0,0 +1,7 @@
1
+ export const ban = {
2
+ name: 'ban',
3
+ category: 'status',
4
+ tags: ['forbidden', 'blocked', 'stop', 'prohibited'],
5
+ motion: 'shake',
6
+ shapes: ['*~o12 12 9', '!~M5.6 5.6l12.8 12.8'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const bank: IconDef;
@@ -0,0 +1,7 @@
1
+ export const bank = {
2
+ name: 'bank',
3
+ category: 'business',
4
+ tags: ['finance', 'institution', 'loan'],
5
+ motion: 'grow',
6
+ shapes: ['*M3.5 9L12 4l8.5 5z', '^M6 11.5v6', '^M10 11.5v6', '^M14 11.5v6', '^M18 11.5v6', 'M3 20.5h18'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const battery: IconDef;
@@ -0,0 +1,7 @@
1
+ export const battery = {
2
+ name: 'battery',
3
+ category: 'weather',
4
+ tags: ['charge', 'power', 'energy', 'level'],
5
+ motion: 'fill',
6
+ shapes: ['r2.5 7 16.5 10 2', 'M21.5 10.5v3', '!#~r5 9.5 8 5 .6'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const bell: IconDef;
@@ -0,0 +1,8 @@
1
+ export const bell = {
2
+ name: 'bell',
3
+ category: 'ui',
4
+ tags: ['notification', 'alert', 'alarm'],
5
+ motion: 'ring',
6
+ origin: '12 4',
7
+ shapes: ['*~M5.5 17.5h13l-1.5-2.5v-4.5a5 5 0 0 0-10 0V15z', '~M12 3.5v2', '!~M10.2 20.5h3.6'],
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const bike: IconDef;
@@ -0,0 +1,15 @@
1
+ export const bike = {
2
+ name: 'bike',
3
+ category: 'transport',
4
+ tags: ['bicycle', 'cycle', 'ride'],
5
+ motion: 'nudge',
6
+ dir: 'r',
7
+ shapes: [
8
+ 'o6 16 3.5',
9
+ 'o18 16 3.5',
10
+ '!~M6 16l3.8-6.5h6.4L18 16',
11
+ '!~M6 16h5.5l4.7-6.5',
12
+ '~M9.8 9.5L8.8 7.5H7',
13
+ '~M16.2 9.5L15.4 6.5h2',
14
+ ],
15
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const bolt: IconDef;
@@ -0,0 +1,7 @@
1
+ export const bolt = {
2
+ name: 'bolt',
3
+ category: 'weather',
4
+ tags: ['lightning', 'energy', 'power', 'electric'],
5
+ motion: 'flash',
6
+ shapes: ['*!~M13 2.5L5 13.5h6l-1 8 8-11h-6z'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const bookmark: IconDef;
@@ -0,0 +1,7 @@
1
+ export const bookmark = {
2
+ name: 'bookmark',
3
+ category: 'ui',
4
+ tags: ['save', 'favourite', 'read later'],
5
+ motion: 'bounce',
6
+ shapes: ['*~M6.5 3.5h11v17l-5.5-4-5.5 4z'],
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const briefcase: IconDef;
@@ -0,0 +1,12 @@
1
+ export const briefcase = {
2
+ name: 'briefcase',
3
+ category: 'business',
4
+ tags: ['work', 'job', 'business', 'portfolio'],
5
+ motion: 'bounce',
6
+ shapes: [
7
+ '*~r3.5 7.5 17 12 2',
8
+ '~M9 7.5v-2A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5v2',
9
+ '~M3.5 12.5h17',
10
+ '!~M12 11.5v2',
11
+ ],
12
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconDef } from '../types.ts';
2
+ export declare const building: IconDef;