@italia/icon 0.0.1-alpha.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 (376) hide show
  1. package/AUTHORS +3 -0
  2. package/LICENSE +11 -0
  3. package/README.md +67 -0
  4. package/custom-elements.json +4312 -0
  5. package/dist/src/icon-registry.d.ts +190 -0
  6. package/dist/src/icon-registry.d.ts.map +1 -0
  7. package/dist/src/icons/it-android-square.d.ts +3 -0
  8. package/dist/src/icons/it-android-square.d.ts.map +1 -0
  9. package/dist/src/icons/it-android.d.ts +3 -0
  10. package/dist/src/icons/it-android.d.ts.map +1 -0
  11. package/dist/src/icons/it-apple-square.d.ts +3 -0
  12. package/dist/src/icons/it-apple-square.d.ts.map +1 -0
  13. package/dist/src/icons/it-apple.d.ts +3 -0
  14. package/dist/src/icons/it-apple.d.ts.map +1 -0
  15. package/dist/src/icons/it-arrow-down-circle.d.ts +3 -0
  16. package/dist/src/icons/it-arrow-down-circle.d.ts.map +1 -0
  17. package/dist/src/icons/it-arrow-down-triangle.d.ts +3 -0
  18. package/dist/src/icons/it-arrow-down-triangle.d.ts.map +1 -0
  19. package/dist/src/icons/it-arrow-down.d.ts +3 -0
  20. package/dist/src/icons/it-arrow-down.d.ts.map +1 -0
  21. package/dist/src/icons/it-arrow-left-circle.d.ts +3 -0
  22. package/dist/src/icons/it-arrow-left-circle.d.ts.map +1 -0
  23. package/dist/src/icons/it-arrow-left-triangle.d.ts +3 -0
  24. package/dist/src/icons/it-arrow-left-triangle.d.ts.map +1 -0
  25. package/dist/src/icons/it-arrow-left.d.ts +3 -0
  26. package/dist/src/icons/it-arrow-left.d.ts.map +1 -0
  27. package/dist/src/icons/it-arrow-right-circle.d.ts +3 -0
  28. package/dist/src/icons/it-arrow-right-circle.d.ts.map +1 -0
  29. package/dist/src/icons/it-arrow-right-triangle.d.ts +3 -0
  30. package/dist/src/icons/it-arrow-right-triangle.d.ts.map +1 -0
  31. package/dist/src/icons/it-arrow-right.d.ts +3 -0
  32. package/dist/src/icons/it-arrow-right.d.ts.map +1 -0
  33. package/dist/src/icons/it-arrow-up-circle.d.ts +3 -0
  34. package/dist/src/icons/it-arrow-up-circle.d.ts.map +1 -0
  35. package/dist/src/icons/it-arrow-up-triangle.d.ts +3 -0
  36. package/dist/src/icons/it-arrow-up-triangle.d.ts.map +1 -0
  37. package/dist/src/icons/it-arrow-up.d.ts +3 -0
  38. package/dist/src/icons/it-arrow-up.d.ts.map +1 -0
  39. package/dist/src/icons/it-ban.d.ts +3 -0
  40. package/dist/src/icons/it-ban.d.ts.map +1 -0
  41. package/dist/src/icons/it-behance.d.ts +3 -0
  42. package/dist/src/icons/it-behance.d.ts.map +1 -0
  43. package/dist/src/icons/it-bluesky.d.ts +3 -0
  44. package/dist/src/icons/it-bluesky.d.ts.map +1 -0
  45. package/dist/src/icons/it-bookmark.d.ts +3 -0
  46. package/dist/src/icons/it-bookmark.d.ts.map +1 -0
  47. package/dist/src/icons/it-box.d.ts +3 -0
  48. package/dist/src/icons/it-box.d.ts.map +1 -0
  49. package/dist/src/icons/it-burger.d.ts +3 -0
  50. package/dist/src/icons/it-burger.d.ts.map +1 -0
  51. package/dist/src/icons/it-calendar.d.ts +3 -0
  52. package/dist/src/icons/it-calendar.d.ts.map +1 -0
  53. package/dist/src/icons/it-camera.d.ts +3 -0
  54. package/dist/src/icons/it-camera.d.ts.map +1 -0
  55. package/dist/src/icons/it-car.d.ts +3 -0
  56. package/dist/src/icons/it-car.d.ts.map +1 -0
  57. package/dist/src/icons/it-card.d.ts +3 -0
  58. package/dist/src/icons/it-card.d.ts.map +1 -0
  59. package/dist/src/icons/it-cart.d.ts +3 -0
  60. package/dist/src/icons/it-cart.d.ts.map +1 -0
  61. package/dist/src/icons/it-chart-line.d.ts +3 -0
  62. package/dist/src/icons/it-chart-line.d.ts.map +1 -0
  63. package/dist/src/icons/it-check-circle.d.ts +3 -0
  64. package/dist/src/icons/it-check-circle.d.ts.map +1 -0
  65. package/dist/src/icons/it-check.d.ts +3 -0
  66. package/dist/src/icons/it-check.d.ts.map +1 -0
  67. package/dist/src/icons/it-chevron-left.d.ts +3 -0
  68. package/dist/src/icons/it-chevron-left.d.ts.map +1 -0
  69. package/dist/src/icons/it-chevron-right.d.ts +3 -0
  70. package/dist/src/icons/it-chevron-right.d.ts.map +1 -0
  71. package/dist/src/icons/it-clip.d.ts +3 -0
  72. package/dist/src/icons/it-clip.d.ts.map +1 -0
  73. package/dist/src/icons/it-clock.d.ts +3 -0
  74. package/dist/src/icons/it-clock.d.ts.map +1 -0
  75. package/dist/src/icons/it-close-big.d.ts +3 -0
  76. package/dist/src/icons/it-close-big.d.ts.map +1 -0
  77. package/dist/src/icons/it-close-circle.d.ts +3 -0
  78. package/dist/src/icons/it-close-circle.d.ts.map +1 -0
  79. package/dist/src/icons/it-close.d.ts +3 -0
  80. package/dist/src/icons/it-close.d.ts.map +1 -0
  81. package/dist/src/icons/it-code-circle.d.ts +3 -0
  82. package/dist/src/icons/it-code-circle.d.ts.map +1 -0
  83. package/dist/src/icons/it-collapse.d.ts +3 -0
  84. package/dist/src/icons/it-collapse.d.ts.map +1 -0
  85. package/dist/src/icons/it-comment.d.ts +3 -0
  86. package/dist/src/icons/it-comment.d.ts.map +1 -0
  87. package/dist/src/icons/it-copy.d.ts +3 -0
  88. package/dist/src/icons/it-copy.d.ts.map +1 -0
  89. package/dist/src/icons/it-delete.d.ts +3 -0
  90. package/dist/src/icons/it-delete.d.ts.map +1 -0
  91. package/dist/src/icons/it-designers-italia.d.ts +3 -0
  92. package/dist/src/icons/it-designers-italia.d.ts.map +1 -0
  93. package/dist/src/icons/it-download.d.ts +3 -0
  94. package/dist/src/icons/it-download.d.ts.map +1 -0
  95. package/dist/src/icons/it-error.d.ts +3 -0
  96. package/dist/src/icons/it-error.d.ts.map +1 -0
  97. package/dist/src/icons/it-exchange-circle.d.ts +3 -0
  98. package/dist/src/icons/it-exchange-circle.d.ts.map +1 -0
  99. package/dist/src/icons/it-expand.d.ts +3 -0
  100. package/dist/src/icons/it-expand.d.ts.map +1 -0
  101. package/dist/src/icons/it-external-link.d.ts +3 -0
  102. package/dist/src/icons/it-external-link.d.ts.map +1 -0
  103. package/dist/src/icons/it-facebook-square.d.ts +3 -0
  104. package/dist/src/icons/it-facebook-square.d.ts.map +1 -0
  105. package/dist/src/icons/it-facebook.d.ts +3 -0
  106. package/dist/src/icons/it-facebook.d.ts.map +1 -0
  107. package/dist/src/icons/it-figma-square.d.ts +3 -0
  108. package/dist/src/icons/it-figma-square.d.ts.map +1 -0
  109. package/dist/src/icons/it-figma.d.ts +3 -0
  110. package/dist/src/icons/it-figma.d.ts.map +1 -0
  111. package/dist/src/icons/it-file-audio.d.ts +3 -0
  112. package/dist/src/icons/it-file-audio.d.ts.map +1 -0
  113. package/dist/src/icons/it-file-compressed.d.ts +3 -0
  114. package/dist/src/icons/it-file-compressed.d.ts.map +1 -0
  115. package/dist/src/icons/it-file-csv.d.ts +3 -0
  116. package/dist/src/icons/it-file-csv.d.ts.map +1 -0
  117. package/dist/src/icons/it-file-docx.d.ts +3 -0
  118. package/dist/src/icons/it-file-docx.d.ts.map +1 -0
  119. package/dist/src/icons/it-file-image.d.ts +3 -0
  120. package/dist/src/icons/it-file-image.d.ts.map +1 -0
  121. package/dist/src/icons/it-file-json.d.ts +3 -0
  122. package/dist/src/icons/it-file-json.d.ts.map +1 -0
  123. package/dist/src/icons/it-file-odp.d.ts +3 -0
  124. package/dist/src/icons/it-file-odp.d.ts.map +1 -0
  125. package/dist/src/icons/it-file-ods.d.ts +3 -0
  126. package/dist/src/icons/it-file-ods.d.ts.map +1 -0
  127. package/dist/src/icons/it-file-odt.d.ts +3 -0
  128. package/dist/src/icons/it-file-odt.d.ts.map +1 -0
  129. package/dist/src/icons/it-file-pdf-ext.d.ts +3 -0
  130. package/dist/src/icons/it-file-pdf-ext.d.ts.map +1 -0
  131. package/dist/src/icons/it-file-pdf.d.ts +3 -0
  132. package/dist/src/icons/it-file-pdf.d.ts.map +1 -0
  133. package/dist/src/icons/it-file-ppt.d.ts +3 -0
  134. package/dist/src/icons/it-file-ppt.d.ts.map +1 -0
  135. package/dist/src/icons/it-file-sheet.d.ts +3 -0
  136. package/dist/src/icons/it-file-sheet.d.ts.map +1 -0
  137. package/dist/src/icons/it-file-signed.d.ts +3 -0
  138. package/dist/src/icons/it-file-signed.d.ts.map +1 -0
  139. package/dist/src/icons/it-file-slides.d.ts +3 -0
  140. package/dist/src/icons/it-file-slides.d.ts.map +1 -0
  141. package/dist/src/icons/it-file-txt.d.ts +3 -0
  142. package/dist/src/icons/it-file-txt.d.ts.map +1 -0
  143. package/dist/src/icons/it-file-video.d.ts +3 -0
  144. package/dist/src/icons/it-file-video.d.ts.map +1 -0
  145. package/dist/src/icons/it-file-xlsx.d.ts +3 -0
  146. package/dist/src/icons/it-file-xlsx.d.ts.map +1 -0
  147. package/dist/src/icons/it-file-xml.d.ts +3 -0
  148. package/dist/src/icons/it-file-xml.d.ts.map +1 -0
  149. package/dist/src/icons/it-file.d.ts +3 -0
  150. package/dist/src/icons/it-file.d.ts.map +1 -0
  151. package/dist/src/icons/it-files.d.ts +3 -0
  152. package/dist/src/icons/it-files.d.ts.map +1 -0
  153. package/dist/src/icons/it-flag.d.ts +3 -0
  154. package/dist/src/icons/it-flag.d.ts.map +1 -0
  155. package/dist/src/icons/it-flickr-square.d.ts +3 -0
  156. package/dist/src/icons/it-flickr-square.d.ts.map +1 -0
  157. package/dist/src/icons/it-flickr.d.ts +3 -0
  158. package/dist/src/icons/it-flickr.d.ts.map +1 -0
  159. package/dist/src/icons/it-folder.d.ts +3 -0
  160. package/dist/src/icons/it-folder.d.ts.map +1 -0
  161. package/dist/src/icons/it-fullscreen.d.ts +3 -0
  162. package/dist/src/icons/it-fullscreen.d.ts.map +1 -0
  163. package/dist/src/icons/it-funnel.d.ts +3 -0
  164. package/dist/src/icons/it-funnel.d.ts.map +1 -0
  165. package/dist/src/icons/it-github.d.ts +3 -0
  166. package/dist/src/icons/it-github.d.ts.map +1 -0
  167. package/dist/src/icons/it-google.d.ts +3 -0
  168. package/dist/src/icons/it-google.d.ts.map +1 -0
  169. package/dist/src/icons/it-hearing.d.ts +3 -0
  170. package/dist/src/icons/it-hearing.d.ts.map +1 -0
  171. package/dist/src/icons/it-help-circle.d.ts +3 -0
  172. package/dist/src/icons/it-help-circle.d.ts.map +1 -0
  173. package/dist/src/icons/it-help.d.ts +3 -0
  174. package/dist/src/icons/it-help.d.ts.map +1 -0
  175. package/dist/src/icons/it-horn.d.ts +3 -0
  176. package/dist/src/icons/it-horn.d.ts.map +1 -0
  177. package/dist/src/icons/it-inbox.d.ts +3 -0
  178. package/dist/src/icons/it-inbox.d.ts.map +1 -0
  179. package/dist/src/icons/it-info-circle.d.ts +3 -0
  180. package/dist/src/icons/it-info-circle.d.ts.map +1 -0
  181. package/dist/src/icons/it-instagram.d.ts +3 -0
  182. package/dist/src/icons/it-instagram.d.ts.map +1 -0
  183. package/dist/src/icons/it-key.d.ts +3 -0
  184. package/dist/src/icons/it-key.d.ts.map +1 -0
  185. package/dist/src/icons/it-less-circle.d.ts +3 -0
  186. package/dist/src/icons/it-less-circle.d.ts.map +1 -0
  187. package/dist/src/icons/it-link.d.ts +3 -0
  188. package/dist/src/icons/it-link.d.ts.map +1 -0
  189. package/dist/src/icons/it-linkedin-square.d.ts +3 -0
  190. package/dist/src/icons/it-linkedin-square.d.ts.map +1 -0
  191. package/dist/src/icons/it-linkedin.d.ts +3 -0
  192. package/dist/src/icons/it-linkedin.d.ts.map +1 -0
  193. package/dist/src/icons/it-list.d.ts +3 -0
  194. package/dist/src/icons/it-list.d.ts.map +1 -0
  195. package/dist/src/icons/it-lock.d.ts +3 -0
  196. package/dist/src/icons/it-lock.d.ts.map +1 -0
  197. package/dist/src/icons/it-locked.d.ts +3 -0
  198. package/dist/src/icons/it-locked.d.ts.map +1 -0
  199. package/dist/src/icons/it-logout.d.ts +3 -0
  200. package/dist/src/icons/it-logout.d.ts.map +1 -0
  201. package/dist/src/icons/it-mail-open.d.ts +3 -0
  202. package/dist/src/icons/it-mail-open.d.ts.map +1 -0
  203. package/dist/src/icons/it-mail.d.ts +3 -0
  204. package/dist/src/icons/it-mail.d.ts.map +1 -0
  205. package/dist/src/icons/it-map-marker-circle.d.ts +3 -0
  206. package/dist/src/icons/it-map-marker-circle.d.ts.map +1 -0
  207. package/dist/src/icons/it-map-marker-minus.d.ts +3 -0
  208. package/dist/src/icons/it-map-marker-minus.d.ts.map +1 -0
  209. package/dist/src/icons/it-map-marker-plus.d.ts +3 -0
  210. package/dist/src/icons/it-map-marker-plus.d.ts.map +1 -0
  211. package/dist/src/icons/it-map-marker.d.ts +3 -0
  212. package/dist/src/icons/it-map-marker.d.ts.map +1 -0
  213. package/dist/src/icons/it-mastodon-square.d.ts +3 -0
  214. package/dist/src/icons/it-mastodon-square.d.ts.map +1 -0
  215. package/dist/src/icons/it-mastodon.d.ts +3 -0
  216. package/dist/src/icons/it-mastodon.d.ts.map +1 -0
  217. package/dist/src/icons/it-maximize-alt.d.ts +3 -0
  218. package/dist/src/icons/it-maximize-alt.d.ts.map +1 -0
  219. package/dist/src/icons/it-maximize.d.ts +3 -0
  220. package/dist/src/icons/it-maximize.d.ts.map +1 -0
  221. package/dist/src/icons/it-medium-square.d.ts +3 -0
  222. package/dist/src/icons/it-medium-square.d.ts.map +1 -0
  223. package/dist/src/icons/it-medium.d.ts +3 -0
  224. package/dist/src/icons/it-medium.d.ts.map +1 -0
  225. package/dist/src/icons/it-minimize.d.ts +3 -0
  226. package/dist/src/icons/it-minimize.d.ts.map +1 -0
  227. package/dist/src/icons/it-minus-circle.d.ts +3 -0
  228. package/dist/src/icons/it-minus-circle.d.ts.map +1 -0
  229. package/dist/src/icons/it-minus.d.ts +3 -0
  230. package/dist/src/icons/it-minus.d.ts.map +1 -0
  231. package/dist/src/icons/it-moodle-square.d.ts +3 -0
  232. package/dist/src/icons/it-moodle-square.d.ts.map +1 -0
  233. package/dist/src/icons/it-moodle.d.ts +3 -0
  234. package/dist/src/icons/it-moodle.d.ts.map +1 -0
  235. package/dist/src/icons/it-more-actions.d.ts +3 -0
  236. package/dist/src/icons/it-more-actions.d.ts.map +1 -0
  237. package/dist/src/icons/it-more-items.d.ts +3 -0
  238. package/dist/src/icons/it-more-items.d.ts.map +1 -0
  239. package/dist/src/icons/it-note.d.ts +3 -0
  240. package/dist/src/icons/it-note.d.ts.map +1 -0
  241. package/dist/src/icons/it-open-source.d.ts +3 -0
  242. package/dist/src/icons/it-open-source.d.ts.map +1 -0
  243. package/dist/src/icons/it-pa.d.ts +3 -0
  244. package/dist/src/icons/it-pa.d.ts.map +1 -0
  245. package/dist/src/icons/it-password-invisible.d.ts +3 -0
  246. package/dist/src/icons/it-password-invisible.d.ts.map +1 -0
  247. package/dist/src/icons/it-password-visible.d.ts +3 -0
  248. package/dist/src/icons/it-password-visible.d.ts.map +1 -0
  249. package/dist/src/icons/it-pencil.d.ts +3 -0
  250. package/dist/src/icons/it-pencil.d.ts.map +1 -0
  251. package/dist/src/icons/it-piattaforme.d.ts +3 -0
  252. package/dist/src/icons/it-piattaforme.d.ts.map +1 -0
  253. package/dist/src/icons/it-pin.d.ts +3 -0
  254. package/dist/src/icons/it-pin.d.ts.map +1 -0
  255. package/dist/src/icons/it-pinterest-square.d.ts +3 -0
  256. package/dist/src/icons/it-pinterest-square.d.ts.map +1 -0
  257. package/dist/src/icons/it-pinterest.d.ts +3 -0
  258. package/dist/src/icons/it-pinterest.d.ts.map +1 -0
  259. package/dist/src/icons/it-plug.d.ts +3 -0
  260. package/dist/src/icons/it-plug.d.ts.map +1 -0
  261. package/dist/src/icons/it-plus-circle.d.ts +3 -0
  262. package/dist/src/icons/it-plus-circle.d.ts.map +1 -0
  263. package/dist/src/icons/it-plus.d.ts +3 -0
  264. package/dist/src/icons/it-plus.d.ts.map +1 -0
  265. package/dist/src/icons/it-presentation.d.ts +3 -0
  266. package/dist/src/icons/it-presentation.d.ts.map +1 -0
  267. package/dist/src/icons/it-print.d.ts +3 -0
  268. package/dist/src/icons/it-print.d.ts.map +1 -0
  269. package/dist/src/icons/it-quora-square.d.ts +3 -0
  270. package/dist/src/icons/it-quora-square.d.ts.map +1 -0
  271. package/dist/src/icons/it-quora.d.ts +3 -0
  272. package/dist/src/icons/it-quora.d.ts.map +1 -0
  273. package/dist/src/icons/it-reddit-square.d.ts +3 -0
  274. package/dist/src/icons/it-reddit-square.d.ts.map +1 -0
  275. package/dist/src/icons/it-reddit.d.ts +3 -0
  276. package/dist/src/icons/it-reddit.d.ts.map +1 -0
  277. package/dist/src/icons/it-refresh.d.ts +3 -0
  278. package/dist/src/icons/it-refresh.d.ts.map +1 -0
  279. package/dist/src/icons/it-restore.d.ts +3 -0
  280. package/dist/src/icons/it-restore.d.ts.map +1 -0
  281. package/dist/src/icons/it-rss-square.d.ts +3 -0
  282. package/dist/src/icons/it-rss-square.d.ts.map +1 -0
  283. package/dist/src/icons/it-rss.d.ts +3 -0
  284. package/dist/src/icons/it-rss.d.ts.map +1 -0
  285. package/dist/src/icons/it-search.d.ts +3 -0
  286. package/dist/src/icons/it-search.d.ts.map +1 -0
  287. package/dist/src/icons/it-settings.d.ts +3 -0
  288. package/dist/src/icons/it-settings.d.ts.map +1 -0
  289. package/dist/src/icons/it-share.d.ts +3 -0
  290. package/dist/src/icons/it-share.d.ts.map +1 -0
  291. package/dist/src/icons/it-sign.d.ts +3 -0
  292. package/dist/src/icons/it-sign.d.ts.map +1 -0
  293. package/dist/src/icons/it-slack-square.d.ts +3 -0
  294. package/dist/src/icons/it-slack-square.d.ts.map +1 -0
  295. package/dist/src/icons/it-slack.d.ts +3 -0
  296. package/dist/src/icons/it-slack.d.ts.map +1 -0
  297. package/dist/src/icons/it-snapchat-square.d.ts +3 -0
  298. package/dist/src/icons/it-snapchat-square.d.ts.map +1 -0
  299. package/dist/src/icons/it-snapchat.d.ts +3 -0
  300. package/dist/src/icons/it-snapchat.d.ts.map +1 -0
  301. package/dist/src/icons/it-software.d.ts +3 -0
  302. package/dist/src/icons/it-software.d.ts.map +1 -0
  303. package/dist/src/icons/it-spotify.d.ts +3 -0
  304. package/dist/src/icons/it-spotify.d.ts.map +1 -0
  305. package/dist/src/icons/it-stackexchange-square.d.ts +3 -0
  306. package/dist/src/icons/it-stackexchange-square.d.ts.map +1 -0
  307. package/dist/src/icons/it-stackexchange.d.ts +3 -0
  308. package/dist/src/icons/it-stackexchange.d.ts.map +1 -0
  309. package/dist/src/icons/it-stackoverflow-square.d.ts +3 -0
  310. package/dist/src/icons/it-stackoverflow-square.d.ts.map +1 -0
  311. package/dist/src/icons/it-stackoverflow.d.ts +3 -0
  312. package/dist/src/icons/it-stackoverflow.d.ts.map +1 -0
  313. package/dist/src/icons/it-star-full.d.ts +3 -0
  314. package/dist/src/icons/it-star-full.d.ts.map +1 -0
  315. package/dist/src/icons/it-star-outline.d.ts +3 -0
  316. package/dist/src/icons/it-star-outline.d.ts.map +1 -0
  317. package/dist/src/icons/it-team-digitale.d.ts +3 -0
  318. package/dist/src/icons/it-team-digitale.d.ts.map +1 -0
  319. package/dist/src/icons/it-telegram.d.ts +3 -0
  320. package/dist/src/icons/it-telegram.d.ts.map +1 -0
  321. package/dist/src/icons/it-telephone.d.ts +3 -0
  322. package/dist/src/icons/it-telephone.d.ts.map +1 -0
  323. package/dist/src/icons/it-threads-square.d.ts +3 -0
  324. package/dist/src/icons/it-threads-square.d.ts.map +1 -0
  325. package/dist/src/icons/it-threads.d.ts +3 -0
  326. package/dist/src/icons/it-threads.d.ts.map +1 -0
  327. package/dist/src/icons/it-tiktok-square.d.ts +3 -0
  328. package/dist/src/icons/it-tiktok-square.d.ts.map +1 -0
  329. package/dist/src/icons/it-tiktok.d.ts +3 -0
  330. package/dist/src/icons/it-tiktok.d.ts.map +1 -0
  331. package/dist/src/icons/it-tool.d.ts +3 -0
  332. package/dist/src/icons/it-tool.d.ts.map +1 -0
  333. package/dist/src/icons/it-twitter-square.d.ts +3 -0
  334. package/dist/src/icons/it-twitter-square.d.ts.map +1 -0
  335. package/dist/src/icons/it-twitter.d.ts +3 -0
  336. package/dist/src/icons/it-twitter.d.ts.map +1 -0
  337. package/dist/src/icons/it-unlocked.d.ts +3 -0
  338. package/dist/src/icons/it-unlocked.d.ts.map +1 -0
  339. package/dist/src/icons/it-upload.d.ts +3 -0
  340. package/dist/src/icons/it-upload.d.ts.map +1 -0
  341. package/dist/src/icons/it-user.d.ts +3 -0
  342. package/dist/src/icons/it-user.d.ts.map +1 -0
  343. package/dist/src/icons/it-video.d.ts +3 -0
  344. package/dist/src/icons/it-video.d.ts.map +1 -0
  345. package/dist/src/icons/it-vimeo-square.d.ts +3 -0
  346. package/dist/src/icons/it-vimeo-square.d.ts.map +1 -0
  347. package/dist/src/icons/it-vimeo.d.ts +3 -0
  348. package/dist/src/icons/it-vimeo.d.ts.map +1 -0
  349. package/dist/src/icons/it-warning-circle.d.ts +3 -0
  350. package/dist/src/icons/it-warning-circle.d.ts.map +1 -0
  351. package/dist/src/icons/it-warning.d.ts +3 -0
  352. package/dist/src/icons/it-warning.d.ts.map +1 -0
  353. package/dist/src/icons/it-whatsapp-square.d.ts +3 -0
  354. package/dist/src/icons/it-whatsapp-square.d.ts.map +1 -0
  355. package/dist/src/icons/it-whatsapp.d.ts +3 -0
  356. package/dist/src/icons/it-whatsapp.d.ts.map +1 -0
  357. package/dist/src/icons/it-wifi.d.ts +3 -0
  358. package/dist/src/icons/it-wifi.d.ts.map +1 -0
  359. package/dist/src/icons/it-youtube.d.ts +3 -0
  360. package/dist/src/icons/it-youtube.d.ts.map +1 -0
  361. package/dist/src/icons/it-zoom-in.d.ts +3 -0
  362. package/dist/src/icons/it-zoom-in.d.ts.map +1 -0
  363. package/dist/src/icons/it-zoom-out.d.ts +3 -0
  364. package/dist/src/icons/it-zoom-out.d.ts.map +1 -0
  365. package/dist/src/index.d.ts +2 -0
  366. package/dist/src/index.d.ts.map +1 -0
  367. package/dist/src/index.js +5 -0
  368. package/dist/src/index.js.map +1 -0
  369. package/dist/src/it-icon.d.ts +33 -0
  370. package/dist/src/it-icon.d.ts.map +1 -0
  371. package/dist/src/it-icon.js +802 -0
  372. package/dist/src/it-icon.js.map +1 -0
  373. package/dist/src/types.d.ts +7 -0
  374. package/dist/src/types.d.ts.map +1 -0
  375. package/package.json +69 -0
  376. package/styles/globals.scss +30 -0
@@ -0,0 +1,802 @@
1
+ import { directive, Directive } from 'lit/directive.js';
2
+ import { LitElement, css, nothing, svg, html } from 'lit';
3
+ import { property, state, query, customElement } from 'lit/decorators.js';
4
+
5
+ /******************************************************************************
6
+ Copyright (c) Microsoft Corporation.
7
+
8
+ Permission to use, copy, modify, and/or distribute this software for any
9
+ purpose with or without fee is hereby granted.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
+ PERFORMANCE OF THIS SOFTWARE.
18
+ ***************************************************************************** */
19
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
20
+
21
+
22
+ function __decorate(decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
25
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
26
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
27
+ }
28
+
29
+ function __metadata(metadataKey, metadataValue) {
30
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
31
+ }
32
+
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
+ };
37
+
38
+ /**
39
+ * @license
40
+ *
41
+ * Copyright IBM Corp. 2020, 2022
42
+ *
43
+ * This source code is licensed under the Apache-2.0 license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */
46
+ /**
47
+ * Form validation status.
48
+ */
49
+ var VALIDATION_STATUS;
50
+ (function (VALIDATION_STATUS) {
51
+ /**
52
+ * One indicating no validation error.
53
+ */
54
+ VALIDATION_STATUS["NO_ERROR"] = "";
55
+ /**
56
+ * One indicating missing required value.
57
+ */
58
+ VALIDATION_STATUS["ERROR_REQUIRED"] = "required";
59
+ })(VALIDATION_STATUS || (VALIDATION_STATUS = {}));
60
+
61
+ class SetAttributesDirective extends Directive {
62
+ update(part, [attributes]) {
63
+ const el = part.element;
64
+ for (const [name, value] of Object.entries(attributes)) {
65
+ if (value != null)
66
+ el.setAttribute(name, value);
67
+ else
68
+ el.removeAttribute(name);
69
+ }
70
+ return null;
71
+ }
72
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
73
+ render(_attributes) {
74
+ return null;
75
+ }
76
+ }
77
+ /* How to use:
78
+
79
+ <textarea ${setAttributes(this._ariaAttributes)} ... />
80
+ */
81
+ directive(SetAttributesDirective);
82
+
83
+ const connectedElements = new Set();
84
+ if (window && !window.translations) {
85
+ window.translations = new Map();
86
+ }
87
+ const { translations } = window;
88
+ const isClient = typeof MutationObserver !== 'undefined' &&
89
+ typeof document !== 'undefined' &&
90
+ typeof document.documentElement !== 'undefined';
91
+ /** Updates all localized elements that are currently connected */
92
+ function update() {
93
+ if (isClient) {
94
+ document.documentElement.dir || 'ltr';
95
+ document.documentElement.lang || navigator.language;
96
+ }
97
+ [...connectedElements.keys()].forEach((el) => {
98
+ const litEl = el;
99
+ if (typeof litEl.requestUpdate === 'function') {
100
+ litEl.requestUpdate();
101
+ }
102
+ });
103
+ }
104
+ if (isClient) {
105
+ const documentElementObserver = new MutationObserver(update);
106
+ document.documentElement.dir || 'ltr';
107
+ document.documentElement.lang || navigator.language;
108
+ // Watch for changes on <html lang>
109
+ documentElementObserver.observe(document.documentElement, {
110
+ attributes: true,
111
+ attributeFilter: ['dir', 'lang'],
112
+ });
113
+ }
114
+ /** Registers one or more translations */
115
+ function registerTranslation(...translation) {
116
+ translation.forEach((t) => {
117
+ const code = t.$code.toLowerCase();
118
+ if (translations.has(code)) {
119
+ // Merge translations that share the same language code
120
+ translations.set(code, { ...translations.get(code), ...t });
121
+ }
122
+ else {
123
+ translations.set(code, t);
124
+ }
125
+ });
126
+ update();
127
+ }
128
+ window.registerTranslation = registerTranslation;
129
+
130
+ /* eslint-disable no-console */
131
+ class Logger {
132
+ constructor(tag) {
133
+ this.tag = tag;
134
+ }
135
+ format(level, msg) {
136
+ return [`[${this.tag}] ${msg}`];
137
+ }
138
+ warn(msg) {
139
+ console.warn(...this.format('warn', msg));
140
+ }
141
+ error(msg) {
142
+ console.error(...this.format('error', msg));
143
+ }
144
+ info(msg) {
145
+ console.info(...this.format('info', msg));
146
+ }
147
+ }
148
+
149
+ /**
150
+ * Factory function per creare una base class estendibile
151
+ * con stili personalizzati.
152
+ */
153
+ class BaseComponent extends LitElement {
154
+ constructor() {
155
+ super();
156
+ this._ariaAttributes = {}; // tutti gli attributi aria-* passati al Web component
157
+ this.logger = new Logger(this.tagName.toLowerCase());
158
+ }
159
+ // eslint-disable-next-line class-methods-use-this
160
+ generateId(prefix) {
161
+ return `${prefix}-${Math.random().toString(36).slice(2)}`;
162
+ }
163
+ // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars
164
+ addFocus(element) {
165
+ // new TrackFocus(element); // per il momento è stato disattivato perchè ci sono le pseudo classi ::focus-visible per fare quello che fa TrackFocus. Si possono aggiungere regole css in bsi-italia 3 dato che stiamo facendo una breaking release di bsi.
166
+ }
167
+ // eslint-disable-next-line class-methods-use-this
168
+ composeClass(...classes) {
169
+ let composedClass = '';
170
+ classes
171
+ .filter((c) => c.length > 0)
172
+ .forEach((newClass) => {
173
+ composedClass += ` ${newClass}`;
174
+ });
175
+ return composedClass.trim();
176
+ }
177
+ getAriaAttributes() {
178
+ for (const attr of this.getAttributeNames()) {
179
+ if (attr.startsWith('aria-')) {
180
+ this._ariaAttributes[attr] = this.getAttribute(attr);
181
+ }
182
+ }
183
+ }
184
+ connectedCallback() {
185
+ super.connectedCallback?.();
186
+ this.getAriaAttributes();
187
+ // generate internal _id
188
+ const prefix = this.id?.length > 0 ? this.id : this.tagName.toLowerCase();
189
+ this._id = this.generateId(prefix);
190
+ }
191
+ }
192
+
193
+ const registry = {
194
+ 'it-android-square': () => import('../it-android-square-DfqyrO5U.js'),
195
+ 'it-android': () => import('../it-android-CGxOWsaS.js'),
196
+ 'it-apple-square': () => import('../it-apple-square-CNoIXb-Z.js'),
197
+ 'it-apple': () => import('../it-apple-P7QW_1Zs.js'),
198
+ 'it-arrow-down-circle': () => import('../it-arrow-down-circle-DRWh9RJ_.js'),
199
+ 'it-arrow-down-triangle': () => import('../it-arrow-down-triangle-BKTwp33c.js'),
200
+ 'it-arrow-down': () => import('../it-arrow-down-hjJ5QmuD.js'),
201
+ 'it-arrow-left-circle': () => import('../it-arrow-left-circle-Dmp8ijvW.js'),
202
+ 'it-arrow-left-triangle': () => import('../it-arrow-left-triangle-cGF4Zctt.js'),
203
+ 'it-arrow-left': () => import('../it-arrow-left-DBgaUG7B.js'),
204
+ 'it-arrow-right-circle': () => import('../it-arrow-right-circle-CBc1nFG0.js'),
205
+ 'it-arrow-right-triangle': () => import('../it-arrow-right-triangle-C6efeUG2.js'),
206
+ 'it-arrow-right': () => import('../it-arrow-right-Bc7F_HOe.js'),
207
+ 'it-arrow-up-circle': () => import('../it-arrow-up-circle-EJbIj1-3.js'),
208
+ 'it-arrow-up-triangle': () => import('../it-arrow-up-triangle-DQJaSUOi.js'),
209
+ 'it-arrow-up': () => import('../it-arrow-up-CHFXAycK.js'),
210
+ 'it-ban': () => import('../it-ban-CdIzAxSs.js'),
211
+ 'it-behance': () => import('../it-behance-Ok_4lDQZ.js'),
212
+ 'it-bluesky': () => import('../it-bluesky-CI9ZM6e1.js'),
213
+ 'it-bookmark': () => import('../it-bookmark-BFfUQBqO.js'),
214
+ 'it-box': () => import('../it-box-BVGtGs1p.js'),
215
+ 'it-burger': () => import('../it-burger-D9BVNtVP.js'),
216
+ 'it-calendar': () => import('../it-calendar-Cwdx5gUb.js'),
217
+ 'it-camera': () => import('../it-camera-Cu_i0s2L.js'),
218
+ 'it-car': () => import('../it-car-BiMEZwAa.js'),
219
+ 'it-card': () => import('../it-card-DZhpkuPN.js'),
220
+ 'it-cart': () => import('../it-cart-DFu9Alt2.js'),
221
+ 'it-chart-line': () => import('../it-chart-line-BkdxX107.js'),
222
+ 'it-check-circle': () => import('../it-check-circle-BjvSPVge.js'),
223
+ 'it-check': () => import('../it-check-DzQL86G9.js'),
224
+ 'it-chevron-left': () => import('../it-chevron-left-j1tPYBdS.js'),
225
+ 'it-chevron-right': () => import('../it-chevron-right-BcPgb7pE.js'),
226
+ 'it-clip': () => import('../it-clip-B2EwtAEB.js'),
227
+ 'it-clock': () => import('../it-clock-DMGNSkzq.js'),
228
+ 'it-close-big': () => import('../it-close-big-DiuS-VNr.js'),
229
+ 'it-close-circle': () => import('../it-close-circle-C3WkuIQ0.js'),
230
+ 'it-close': () => import('../it-close-CiA9lXtc.js'),
231
+ 'it-code-circle': () => import('../it-code-circle-D5WVuEn4.js'),
232
+ 'it-collapse': () => import('../it-collapse-DedzUAzu.js'),
233
+ 'it-comment': () => import('../it-comment-CFNsPq26.js'),
234
+ 'it-copy': () => import('../it-copy-BKoAUYMx.js'),
235
+ 'it-delete': () => import('../it-delete-BRl41-_G.js'),
236
+ 'it-designers-italia': () => import('../it-designers-italia-C4NEUsVF.js'),
237
+ 'it-download': () => import('../it-download-CVUEI0yr.js'),
238
+ 'it-error': () => import('../it-error-DxMZc_6a.js'),
239
+ 'it-exchange-circle': () => import('../it-exchange-circle-K9BZ9x3-.js'),
240
+ 'it-expand': () => import('../it-expand-BOgVeR4w.js'),
241
+ 'it-external-link': () => import('../it-external-link-EQbtOfEU.js'),
242
+ 'it-facebook-square': () => import('../it-facebook-square-DzG2jfFe.js'),
243
+ 'it-facebook': () => import('../it-facebook-BWE4v4O9.js'),
244
+ 'it-figma-square': () => import('../it-figma-square-CbtavA_h.js'),
245
+ 'it-figma': () => import('../it-figma-ayNovoW6.js'),
246
+ 'it-file-audio': () => import('../it-file-audio-DfjfNE2c.js'),
247
+ 'it-file-compressed': () => import('../it-file-compressed-BdL256I7.js'),
248
+ 'it-file-csv': () => import('../it-file-csv-B65pqfER.js'),
249
+ 'it-file-docx': () => import('../it-file-docx-zhJTBltS.js'),
250
+ 'it-file-image': () => import('../it-file-image-CR9vISp3.js'),
251
+ 'it-file-json': () => import('../it-file-json-DP1chXDD.js'),
252
+ 'it-file-odp': () => import('../it-file-odp-CMJkW8AU.js'),
253
+ 'it-file-ods': () => import('../it-file-ods-CSXIpods.js'),
254
+ 'it-file-odt': () => import('../it-file-odt-BCQi6KOY.js'),
255
+ 'it-file-pdf-ext': () => import('../it-file-pdf-ext-q7BV_sNG.js'),
256
+ 'it-file-pdf': () => import('../it-file-pdf-CJHLU35Y.js'),
257
+ 'it-file-ppt': () => import('../it-file-ppt-Lt5D5W4Z.js'),
258
+ 'it-file-sheet': () => import('../it-file-sheet-BKnNyH-z.js'),
259
+ 'it-file-signed': () => import('../it-file-signed-BRDmitPQ.js'),
260
+ 'it-file-slides': () => import('../it-file-slides-CF66Gxkw.js'),
261
+ 'it-file-txt': () => import('../it-file-txt-Bg66gff7.js'),
262
+ 'it-file-video': () => import('../it-file-video-DdQOSQKz.js'),
263
+ 'it-file-xlsx': () => import('../it-file-xlsx-DEESTwtq.js'),
264
+ 'it-file-xml': () => import('../it-file-xml-rpj0hTY6.js'),
265
+ 'it-file': () => import('../it-file-BxbypKZb.js'),
266
+ 'it-files': () => import('../it-files-CumaPxbC.js'),
267
+ 'it-flag': () => import('../it-flag-BBHqX3a7.js'),
268
+ 'it-flickr-square': () => import('../it-flickr-square-Bygoby8_.js'),
269
+ 'it-flickr': () => import('../it-flickr-0bB7B4XG.js'),
270
+ 'it-folder': () => import('../it-folder-CScH9ihQ.js'),
271
+ 'it-fullscreen': () => import('../it-fullscreen-BspUXrZa.js'),
272
+ 'it-funnel': () => import('../it-funnel-C2f_AIYS.js'),
273
+ 'it-github': () => import('../it-github-WW8XzWj3.js'),
274
+ 'it-google': () => import('../it-google-G_PvkjBf.js'),
275
+ 'it-hearing': () => import('../it-hearing-COVVIjZc.js'),
276
+ 'it-help-circle': () => import('../it-help-circle-JafiAkJ_.js'),
277
+ 'it-help': () => import('../it-help-Zh8IWIOf.js'),
278
+ 'it-horn': () => import('../it-horn-47v7fbsN.js'),
279
+ 'it-inbox': () => import('../it-inbox-BijAKZAa.js'),
280
+ 'it-info-circle': () => import('../it-info-circle-CRgTvswq.js'),
281
+ 'it-instagram': () => import('../it-instagram-DIHoCYgS.js'),
282
+ 'it-key': () => import('../it-key-ChlMIByl.js'),
283
+ 'it-less-circle': () => import('../it-less-circle-B-1frsy8.js'),
284
+ 'it-link': () => import('../it-link-Cx0Ak5EZ.js'),
285
+ 'it-linkedin-square': () => import('../it-linkedin-square-DNi1kKUs.js'),
286
+ 'it-linkedin': () => import('../it-linkedin-DlE9mQU5.js'),
287
+ 'it-list': () => import('../it-list-pNuIE6eo.js'),
288
+ 'it-lock': () => import('../it-lock-yOq-wwxl.js'),
289
+ 'it-locked': () => import('../it-locked-Cy2s-CSD.js'),
290
+ 'it-logout': () => import('../it-logout-CY7_FEMN.js'),
291
+ 'it-mail-open': () => import('../it-mail-open-Ch8H4FPa.js'),
292
+ 'it-mail': () => import('../it-mail-5j30YG84.js'),
293
+ 'it-map-marker-circle': () => import('../it-map-marker-circle-BBB_9zOZ.js'),
294
+ 'it-map-marker-minus': () => import('../it-map-marker-minus-iL3qC8X4.js'),
295
+ 'it-map-marker-plus': () => import('../it-map-marker-plus-0HvYHiyj.js'),
296
+ 'it-map-marker': () => import('../it-map-marker-Ce2WHDc5.js'),
297
+ 'it-mastodon-square': () => import('../it-mastodon-square-D4jUZcO1.js'),
298
+ 'it-mastodon': () => import('../it-mastodon-u9vJ54XP.js'),
299
+ 'it-maximize-alt': () => import('../it-maximize-alt-B7r2308X.js'),
300
+ 'it-maximize': () => import('../it-maximize-CcyYylk6.js'),
301
+ 'it-medium-square': () => import('../it-medium-square-DNjf0CIV.js'),
302
+ 'it-medium': () => import('../it-medium-CBQiq3iZ.js'),
303
+ 'it-minimize': () => import('../it-minimize-BC87wdS6.js'),
304
+ 'it-minus-circle': () => import('../it-minus-circle-Bx9sZMXD.js'),
305
+ 'it-minus': () => import('../it-minus-1sHTR5AZ.js'),
306
+ 'it-moodle-square': () => import('../it-moodle-square-DhnTNCIv.js'),
307
+ 'it-moodle': () => import('../it-moodle-BTeQpxDV.js'),
308
+ 'it-more-actions': () => import('../it-more-actions-hFPfNc6s.js'),
309
+ 'it-more-items': () => import('../it-more-items-CbPqsuSY.js'),
310
+ 'it-note': () => import('../it-note-D8SqkWrQ.js'),
311
+ 'it-open-source': () => import('../it-open-source-BiMRfYSR.js'),
312
+ 'it-pa': () => import('../it-pa-CCcbo1ZV.js'),
313
+ 'it-password-invisible': () => import('../it-password-invisible-4wTCzXFL.js'),
314
+ 'it-password-visible': () => import('../it-password-visible-PDoUihUc.js'),
315
+ 'it-pencil': () => import('../it-pencil-D5oaABq-.js'),
316
+ 'it-piattaforme': () => import('../it-piattaforme-CgJB3YLa.js'),
317
+ 'it-pin': () => import('../it-pin-DfKX1now.js'),
318
+ 'it-pinterest-square': () => import('../it-pinterest-square-CU5uyOE-.js'),
319
+ 'it-pinterest': () => import('../it-pinterest-CzVyzVYr.js'),
320
+ 'it-plug': () => import('../it-plug-BMA_ZSK6.js'),
321
+ 'it-plus-circle': () => import('../it-plus-circle-cIx_LkOv.js'),
322
+ 'it-plus': () => import('../it-plus-C0bEoXIO.js'),
323
+ 'it-presentation': () => import('../it-presentation-Bv2tmr0P.js'),
324
+ 'it-print': () => import('../it-print-fHC_jbNf.js'),
325
+ 'it-quora-square': () => import('../it-quora-square-1i1zt9IJ.js'),
326
+ 'it-quora': () => import('../it-quora-BMQ4xoD1.js'),
327
+ 'it-reddit-square': () => import('../it-reddit-square-DaPG0Mub.js'),
328
+ 'it-reddit': () => import('../it-reddit-BpicjY6C.js'),
329
+ 'it-refresh': () => import('../it-refresh-B4EmBigI.js'),
330
+ 'it-restore': () => import('../it-restore-6-7X2Qfu.js'),
331
+ 'it-rss-square': () => import('../it-rss-square-DDxWYzTB.js'),
332
+ 'it-rss': () => import('../it-rss-CvtsNYf3.js'),
333
+ 'it-search': () => import('../it-search-DalK3rlx.js'),
334
+ 'it-settings': () => import('../it-settings-13H0AbvP.js'),
335
+ 'it-share': () => import('../it-share-BLdy8bcU.js'),
336
+ 'it-sign': () => import('../it-sign-DTz5eFiv.js'),
337
+ 'it-slack-square': () => import('../it-slack-square-CcrSJfaB.js'),
338
+ 'it-slack': () => import('../it-slack-Bo5VXuy8.js'),
339
+ 'it-snapchat-square': () => import('../it-snapchat-square-RELoHIXG.js'),
340
+ 'it-snapchat': () => import('../it-snapchat-DR2q7-eJ.js'),
341
+ 'it-software': () => import('../it-software-CvXTmJmV.js'),
342
+ 'it-spotify': () => import('../it-spotify-rbBp6yUH.js'),
343
+ 'it-stackexchange-square': () => import('../it-stackexchange-square-Dmkt_1eY.js'),
344
+ 'it-stackexchange': () => import('../it-stackexchange-BBgFNGzM.js'),
345
+ 'it-stackoverflow-square': () => import('../it-stackoverflow-square-Dc63Kz24.js'),
346
+ 'it-stackoverflow': () => import('../it-stackoverflow-CuCI-bn1.js'),
347
+ 'it-star-full': () => import('../it-star-full-klirYUuR.js'),
348
+ 'it-star-outline': () => import('../it-star-outline-DVg7wfrN.js'),
349
+ 'it-team-digitale': () => import('../it-team-digitale-5kDifKOv.js'),
350
+ 'it-telegram': () => import('../it-telegram-sJWN1tJ6.js'),
351
+ 'it-telephone': () => import('../it-telephone-Z7Azcb5m.js'),
352
+ 'it-threads-square': () => import('../it-threads-square-Bf702vNt.js'),
353
+ 'it-threads': () => import('../it-threads-ChqMOQN8.js'),
354
+ 'it-tiktok-square': () => import('../it-tiktok-square-Bg380BDO.js'),
355
+ 'it-tiktok': () => import('../it-tiktok-C9pmFxx7.js'),
356
+ 'it-tool': () => import('../it-tool-CNElwkSY.js'),
357
+ 'it-twitter-square': () => import('../it-twitter-square-CAtpMN9W.js'),
358
+ 'it-twitter': () => import('../it-twitter-DP7nO2uq.js'),
359
+ 'it-unlocked': () => import('../it-unlocked-CeTVcA9L.js'),
360
+ 'it-upload': () => import('../it-upload-DF9h0FfD.js'),
361
+ 'it-user': () => import('../it-user-DxvTXC8y.js'),
362
+ 'it-video': () => import('../it-video-lLpTTp6k.js'),
363
+ 'it-vimeo-square': () => import('../it-vimeo-square-CJdj4meE.js'),
364
+ 'it-vimeo': () => import('../it-vimeo-BY4lsy3M.js'),
365
+ 'it-warning-circle': () => import('../it-warning-circle-fnlVt93l.js'),
366
+ 'it-warning': () => import('../it-warning-C7tNfcHA.js'),
367
+ 'it-whatsapp-square': () => import('../it-whatsapp-square-BZFa1i__.js'),
368
+ 'it-whatsapp': () => import('../it-whatsapp-BmcvUOkQ.js'),
369
+ 'it-wifi': () => import('../it-wifi-B9w_AYy4.js'),
370
+ 'it-youtube': () => import('../it-youtube-DCwiktms.js'),
371
+ 'it-zoom-in': () => import('../it-zoom-in-DWHll7qe.js'),
372
+ 'it-zoom-out': () => import('../it-zoom-out-DVqgWM8m.js')
373
+ };
374
+ /**
375
+ * Get a dynamic icon loader by name.
376
+ */
377
+ const getIcon = (name) => registry[name];
378
+
379
+ var styles = css`/***************************** 1 ****************************************/
380
+ /***************************** 2 ****************************************/
381
+ /***************************** 1 ****************************************/
382
+ /***************************** 2 ****************************************/
383
+ /***************************** 1 ****************************************/
384
+ /***************************** 2 ****************************************/
385
+ /***************************** 3 ****************************************/
386
+ /***************************** 1 ****************************************/
387
+ /***************************** 2 ****************************************/
388
+ /***************************** 3 ****************************************/
389
+ /***************************** NEUTRAL 1 ****************************************/
390
+ /***************************** NEUTRAL 2 ****************************************/
391
+ /***************************** NEUTRAL 2 / 3 ****************************************/
392
+ .icon {
393
+ width: var(--bs-icon-size-m);
394
+ height: var(--bs-icon-size-m);
395
+ fill: var(--bs-icon-default);
396
+ vertical-align: middle;
397
+ }
398
+ .icon.icon-padded {
399
+ margin: 8px;
400
+ }
401
+ .icon.icon-xs {
402
+ width: var(--bs-icon-size-xs);
403
+ height: var(--bs-icon-size-xs);
404
+ }
405
+ .icon.icon-xs.icon-padded {
406
+ margin: 4px;
407
+ }
408
+ .icon.icon-sm {
409
+ width: var(--bs-icon-size-s);
410
+ height: var(--bs-icon-size-s);
411
+ }
412
+ .icon.icon-sm.icon-padded {
413
+ margin: 6px;
414
+ }
415
+ .icon.icon-lg {
416
+ width: var(--bs-icon-size-l);
417
+ height: var(--bs-icon-size-l);
418
+ }
419
+ .icon.icon-lg.icon-padded {
420
+ margin: 12px;
421
+ }
422
+ .icon.icon-xl {
423
+ width: var(--bs-icon-size-xl);
424
+ height: var(--bs-icon-size-xl);
425
+ }
426
+ .icon.icon-xl.icon-padded {
427
+ margin: 16px;
428
+ }
429
+
430
+ .icon-primary {
431
+ fill: var(--bs-icon-primary);
432
+ }
433
+
434
+ .icon-secondary {
435
+ fill: var(--bs-icon-secondary);
436
+ }
437
+
438
+ .icon-success {
439
+ fill: var(--bs-icon-success);
440
+ }
441
+
442
+ .icon-warning {
443
+ fill: var(--bs-icon-warning);
444
+ }
445
+
446
+ .icon-danger {
447
+ fill: var(--bs-icon-danger);
448
+ }
449
+
450
+ .icon-inverse {
451
+ fill: var(--bs-icon-inverse);
452
+ }
453
+
454
+ .icon-light {
455
+ fill: var(--bs-icon-inverse);
456
+ }
457
+
458
+ .icon-disabled {
459
+ fill: var(--bs-icon-disabled);
460
+ }
461
+
462
+ :root {
463
+ --bs-rounded-icon-size: var(--it-icon-size-s);
464
+ }
465
+
466
+ .rounded-icon {
467
+ display: flex;
468
+ align-items: center;
469
+ justify-content: center;
470
+ width: var(--bs-rounded-icon-size);
471
+ height: var(--bs-rounded-icon-size);
472
+ background-color: var(--bs-icon-inverse);
473
+ border-radius: var(--bs-radius-circle);
474
+ }
475
+ .rounded-icon.rounded-primary {
476
+ background-color: var(--bs-icon-primary);
477
+ }
478
+ .rounded-icon.rounded-secondary {
479
+ background-color: var(--bs-icon-secondary);
480
+ }
481
+ .rounded-icon.rounded-success {
482
+ background-color: var(--bs-icon-success);
483
+ }
484
+ .rounded-icon.rounded-warning {
485
+ background-color: var(--bs-icon-warning);
486
+ }
487
+ .rounded-icon.rounded-danger {
488
+ background-color: var(--bs-icon-danger);
489
+ }
490
+ .rounded-icon.rounded-inverse {
491
+ background-color: var(--bs-icon-inverse);
492
+ }
493
+ .rounded-icon.rounded-light {
494
+ background-color: var(--bs-icon-inverse);
495
+ }
496
+ .rounded-icon.rounded-disabled {
497
+ background-color: var(--bs-icon-disabled);
498
+ }
499
+ .rounded-icon .icon {
500
+ margin-right: 0;
501
+ }
502
+
503
+ .align-top {
504
+ vertical-align: top !important;
505
+ }
506
+
507
+ .align-middle {
508
+ vertical-align: middle !important;
509
+ }
510
+
511
+ .align-bottom {
512
+ vertical-align: bottom !important;
513
+ }
514
+
515
+ .bg-primary {
516
+ --bs-bg-opacity: 1;
517
+ background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
518
+ }
519
+
520
+ .bg-secondary {
521
+ --bs-bg-opacity: 1;
522
+ background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
523
+ }
524
+
525
+ .bg-success {
526
+ --bs-bg-opacity: 1;
527
+ background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
528
+ }
529
+
530
+ .bg-info {
531
+ --bs-bg-opacity: 1;
532
+ background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
533
+ }
534
+
535
+ .bg-warning {
536
+ --bs-bg-opacity: 1;
537
+ background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
538
+ }
539
+
540
+ .bg-danger {
541
+ --bs-bg-opacity: 1;
542
+ background-color: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
543
+ }
544
+
545
+ .bg-light {
546
+ --bs-bg-opacity: 1;
547
+ background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
548
+ }
549
+
550
+ .bg-dark {
551
+ --bs-bg-opacity: 1;
552
+ background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
553
+ }
554
+
555
+ .bg-black {
556
+ --bs-bg-opacity: 1;
557
+ background-color: rgba(var(--bs-black-rgb), var(--bs-bg-opacity)) !important;
558
+ }
559
+
560
+ .bg-white {
561
+ --bs-bg-opacity: 1;
562
+ background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
563
+ }
564
+
565
+ .bg-100 {
566
+ --bs-bg-opacity: 1;
567
+ background-color: rgba(var(--bs-100-rgb), var(--bs-bg-opacity)) !important;
568
+ }
569
+
570
+ .bg-200 {
571
+ --bs-bg-opacity: 1;
572
+ background-color: rgba(var(--bs-200-rgb), var(--bs-bg-opacity)) !important;
573
+ }
574
+
575
+ .bg-300 {
576
+ --bs-bg-opacity: 1;
577
+ background-color: rgba(var(--bs-300-rgb), var(--bs-bg-opacity)) !important;
578
+ }
579
+
580
+ .bg-400 {
581
+ --bs-bg-opacity: 1;
582
+ background-color: rgba(var(--bs-400-rgb), var(--bs-bg-opacity)) !important;
583
+ }
584
+
585
+ .bg-500 {
586
+ --bs-bg-opacity: 1;
587
+ background-color: rgba(var(--bs-500-rgb), var(--bs-bg-opacity)) !important;
588
+ }
589
+
590
+ .bg-600 {
591
+ --bs-bg-opacity: 1;
592
+ background-color: rgba(var(--bs-600-rgb), var(--bs-bg-opacity)) !important;
593
+ }
594
+
595
+ .bg-700 {
596
+ --bs-bg-opacity: 1;
597
+ background-color: rgba(var(--bs-700-rgb), var(--bs-bg-opacity)) !important;
598
+ }
599
+
600
+ .bg-800 {
601
+ --bs-bg-opacity: 1;
602
+ background-color: rgba(var(--bs-800-rgb), var(--bs-bg-opacity)) !important;
603
+ }
604
+
605
+ .bg-900 {
606
+ --bs-bg-opacity: 1;
607
+ background-color: rgba(var(--bs-900-rgb), var(--bs-bg-opacity)) !important;
608
+ }
609
+
610
+ .bg-body {
611
+ --bs-bg-opacity: 1;
612
+ background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
613
+ }
614
+
615
+ .bg-transparent {
616
+ --bs-bg-opacity: 1;
617
+ background-color: transparent !important;
618
+ }
619
+
620
+ :host {
621
+ display: inline-block;
622
+ }
623
+
624
+ .icon-white {
625
+ fill: #fff !important;
626
+ }`;
627
+
628
+ let ItIcon = class ItIcon extends BaseComponent {
629
+ constructor() {
630
+ super(...arguments);
631
+ // @property({ type: String }) background?: Colors;
632
+ this.align = 'middle';
633
+ this.label = '';
634
+ this.padded = false;
635
+ }
636
+ async updated(changedProps) {
637
+ if (changedProps.has('name') && this.name) {
638
+ const loader = getIcon(this.name);
639
+ if (loader) {
640
+ const raw = (await loader()).default;
641
+ this.parseAndStoreSvg(raw);
642
+ }
643
+ }
644
+ if (changedProps.has('src') && this.src) {
645
+ await this.loadSvgFromUrl(this.src);
646
+ }
647
+ if (changedProps.has('label')) {
648
+ this.handleTitleId();
649
+ }
650
+ if (changedProps.has('label') ||
651
+ changedProps.has('size') ||
652
+ changedProps.has('color') ||
653
+ // changedProps.has('background') ||
654
+ changedProps.has('padded') ||
655
+ changedProps.has('role') ||
656
+ changedProps.has('align')) {
657
+ this.updateSvgAttributes();
658
+ }
659
+ }
660
+ handleTitleId() {
661
+ if (this.label) {
662
+ if (!this.titleId) {
663
+ this.titleId = `icon-label-${crypto.randomUUID()}`;
664
+ }
665
+ }
666
+ else {
667
+ this.titleId = undefined;
668
+ }
669
+ }
670
+ async loadSvgFromUrl(url) {
671
+ try {
672
+ const res = await fetch(url);
673
+ if (!res.ok)
674
+ throw new Error(`Failed to load SVG from ${url} (status: ${res.status})`);
675
+ const raw = await res.text();
676
+ this.parseAndStoreSvg(raw);
677
+ }
678
+ catch (e) {
679
+ this.svgElement = undefined;
680
+ this.announceSvgLoadError();
681
+ }
682
+ }
683
+ announceSvgLoadError() {
684
+ this.dispatchEvent(new Event('error', {
685
+ bubbles: false,
686
+ composed: false,
687
+ cancelable: false,
688
+ }));
689
+ }
690
+ parseAndStoreSvg(raw) {
691
+ const parser = new DOMParser();
692
+ const doc = parser.parseFromString(raw, 'image/svg+xml');
693
+ const _svg = doc.documentElement;
694
+ this.svgElement = _svg;
695
+ this.updateSvgAttributes();
696
+ }
697
+ applySvgAttributes(svgEl) {
698
+ svgEl.removeAttribute('width');
699
+ svgEl.removeAttribute('height');
700
+ const classList = this.updateClasses();
701
+ svgEl.setAttribute('class', classList);
702
+ svgEl.setAttribute('part', 'icon');
703
+ // Accessibility logic:
704
+ // - If a `label` is provided:
705
+ // - The icon is accessible to assistive technologies.
706
+ // - Remove aria-hidden attribute if it exists
707
+ // - Sets `role="img"` to indicate the SVG is an image.
708
+ // - Adds a <title> element with the label text inside the SVG.
709
+ // - Sets `aria-labelledby` to reference the <title> for screen readers.
710
+ // - If no `label` is provided:
711
+ // - The icon is treated as decorative and ignored by assistive technologies.
712
+ // - Sets `aria-hidden="true".
713
+ // - Sets `role="presentation"` to indicate the SVG is purely decorative.
714
+ // - Removes any <title> and `aria-labelledby` attributes from the SVG.
715
+ if (this.label) {
716
+ svgEl.removeAttribute('aria-hidden');
717
+ svgEl.setAttribute('role', 'img');
718
+ // Remove previous title/aria-labelledby
719
+ svgEl.removeAttribute('aria-labelledby');
720
+ svgEl.querySelectorAll('title').forEach((t) => t.remove());
721
+ // Add title and aria-labelledby for screen readers
722
+ if (this.titleId) {
723
+ const titleEl = document.createElementNS('http://www.w3.org/2000/svg', 'title');
724
+ titleEl.id = this.titleId;
725
+ titleEl.textContent = this.label;
726
+ svgEl.prepend(titleEl);
727
+ svgEl.setAttribute('aria-labelledby', this.titleId);
728
+ }
729
+ }
730
+ else {
731
+ svgEl.setAttribute('aria-hidden', 'true');
732
+ svgEl.setAttribute('role', 'presentation');
733
+ svgEl.removeAttribute('aria-labelledby');
734
+ svgEl.querySelectorAll('title').forEach((t) => t.remove());
735
+ }
736
+ }
737
+ updateSvgAttributes() {
738
+ if (!this.svgElement)
739
+ return;
740
+ this.applySvgAttributes(this.svgElement);
741
+ }
742
+ updateClasses() {
743
+ return this.composeClass('icon', this.size ? `icon-${this.size}` : '', this.color ? `icon-${this.color}` : '',
744
+ // this.background ? `bg-${this.background}` : '',
745
+ this.align ? `align-${this.align}` : '', this.padded ? `icon-padded` : '');
746
+ }
747
+ handleSlotChange() {
748
+ const nodes = this.slotEl.assignedNodes({ flatten: true });
749
+ const _svg = nodes.find((node) => node.nodeType === Node.ELEMENT_NODE && node.tagName.toLowerCase() === 'svg');
750
+ if (_svg) {
751
+ this.applySvgAttributes(_svg);
752
+ }
753
+ }
754
+ render() {
755
+ return html `
756
+ <slot @slotchange=${this.handleSlotChange}>${this.svgElement ? svg `${this.svgElement}` : nothing}</slot>
757
+ `;
758
+ }
759
+ };
760
+ ItIcon.styles = styles;
761
+ __decorate([
762
+ property({ type: String }),
763
+ __metadata("design:type", Object)
764
+ ], ItIcon.prototype, "size", void 0);
765
+ __decorate([
766
+ property({ type: String }),
767
+ __metadata("design:type", String)
768
+ ], ItIcon.prototype, "name", void 0);
769
+ __decorate([
770
+ property({ type: String }),
771
+ __metadata("design:type", String)
772
+ ], ItIcon.prototype, "color", void 0);
773
+ __decorate([
774
+ property({ type: String }),
775
+ __metadata("design:type", String)
776
+ ], ItIcon.prototype, "align", void 0);
777
+ __decorate([
778
+ property({ type: String, reflect: true }),
779
+ __metadata("design:type", Object)
780
+ ], ItIcon.prototype, "label", void 0);
781
+ __decorate([
782
+ property({ type: Boolean }),
783
+ __metadata("design:type", Object)
784
+ ], ItIcon.prototype, "padded", void 0);
785
+ __decorate([
786
+ property({ type: String }),
787
+ __metadata("design:type", String)
788
+ ], ItIcon.prototype, "src", void 0);
789
+ __decorate([
790
+ state(),
791
+ __metadata("design:type", HTMLElement)
792
+ ], ItIcon.prototype, "svgElement", void 0);
793
+ __decorate([
794
+ query('slot'),
795
+ __metadata("design:type", HTMLSlotElement)
796
+ ], ItIcon.prototype, "slotEl", void 0);
797
+ ItIcon = __decorate([
798
+ customElement('it-icon')
799
+ ], ItIcon);
800
+
801
+ export { ItIcon };
802
+ //# sourceMappingURL=it-icon.js.map