@gemologic/sheen-icons 0.1.0-rc.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 (274) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +26 -0
  3. package/THIRD_PARTY_NOTICES.md +60 -0
  4. package/dist/generated/catalog.d.ts +464 -0
  5. package/dist/generated/catalog.js +89 -0
  6. package/dist/generated/data/add.d.ts +12 -0
  7. package/dist/generated/data/add.js +14 -0
  8. package/dist/generated/data/arrow-down.d.ts +12 -0
  9. package/dist/generated/data/arrow-down.js +14 -0
  10. package/dist/generated/data/arrow-left.d.ts +12 -0
  11. package/dist/generated/data/arrow-left.js +14 -0
  12. package/dist/generated/data/arrow-right.d.ts +12 -0
  13. package/dist/generated/data/arrow-right.js +14 -0
  14. package/dist/generated/data/arrow-up.d.ts +12 -0
  15. package/dist/generated/data/arrow-up.js +14 -0
  16. package/dist/generated/data/calendar.d.ts +12 -0
  17. package/dist/generated/data/calendar.js +14 -0
  18. package/dist/generated/data/check.d.ts +12 -0
  19. package/dist/generated/data/check.js +14 -0
  20. package/dist/generated/data/chevron-down.d.ts +12 -0
  21. package/dist/generated/data/chevron-down.js +14 -0
  22. package/dist/generated/data/chevron-left.d.ts +12 -0
  23. package/dist/generated/data/chevron-left.js +14 -0
  24. package/dist/generated/data/chevron-right.d.ts +12 -0
  25. package/dist/generated/data/chevron-right.js +14 -0
  26. package/dist/generated/data/chevron-up.d.ts +12 -0
  27. package/dist/generated/data/chevron-up.js +14 -0
  28. package/dist/generated/data/clock.d.ts +12 -0
  29. package/dist/generated/data/clock.js +14 -0
  30. package/dist/generated/data/close.d.ts +12 -0
  31. package/dist/generated/data/close.js +14 -0
  32. package/dist/generated/data/copy.d.ts +12 -0
  33. package/dist/generated/data/copy.js +14 -0
  34. package/dist/generated/data/download.d.ts +12 -0
  35. package/dist/generated/data/download.js +14 -0
  36. package/dist/generated/data/edit.d.ts +12 -0
  37. package/dist/generated/data/edit.js +14 -0
  38. package/dist/generated/data/error.d.ts +12 -0
  39. package/dist/generated/data/error.js +14 -0
  40. package/dist/generated/data/external-link.d.ts +12 -0
  41. package/dist/generated/data/external-link.js +14 -0
  42. package/dist/generated/data/filter.d.ts +12 -0
  43. package/dist/generated/data/filter.js +14 -0
  44. package/dist/generated/data/hidden.d.ts +12 -0
  45. package/dist/generated/data/hidden.js +14 -0
  46. package/dist/generated/data/home.d.ts +12 -0
  47. package/dist/generated/data/home.js +14 -0
  48. package/dist/generated/data/inbox.d.ts +12 -0
  49. package/dist/generated/data/inbox.js +14 -0
  50. package/dist/generated/data/info.d.ts +12 -0
  51. package/dist/generated/data/info.js +14 -0
  52. package/dist/generated/data/lock.d.ts +12 -0
  53. package/dist/generated/data/lock.js +14 -0
  54. package/dist/generated/data/menu.d.ts +12 -0
  55. package/dist/generated/data/menu.js +14 -0
  56. package/dist/generated/data/more-horizontal.d.ts +12 -0
  57. package/dist/generated/data/more-horizontal.js +14 -0
  58. package/dist/generated/data/more-vertical.d.ts +12 -0
  59. package/dist/generated/data/more-vertical.js +14 -0
  60. package/dist/generated/data/notifications.d.ts +12 -0
  61. package/dist/generated/data/notifications.js +14 -0
  62. package/dist/generated/data/refresh.d.ts +12 -0
  63. package/dist/generated/data/refresh.js +14 -0
  64. package/dist/generated/data/remove.d.ts +12 -0
  65. package/dist/generated/data/remove.js +14 -0
  66. package/dist/generated/data/search.d.ts +12 -0
  67. package/dist/generated/data/search.js +14 -0
  68. package/dist/generated/data/settings.d.ts +12 -0
  69. package/dist/generated/data/settings.js +14 -0
  70. package/dist/generated/data/sort-ascending.d.ts +12 -0
  71. package/dist/generated/data/sort-ascending.js +14 -0
  72. package/dist/generated/data/sort-descending.d.ts +12 -0
  73. package/dist/generated/data/sort-descending.js +14 -0
  74. package/dist/generated/data/success.d.ts +12 -0
  75. package/dist/generated/data/success.js +14 -0
  76. package/dist/generated/data/trash.d.ts +12 -0
  77. package/dist/generated/data/trash.js +14 -0
  78. package/dist/generated/data/unlock.d.ts +12 -0
  79. package/dist/generated/data/unlock.js +14 -0
  80. package/dist/generated/data/upload.d.ts +12 -0
  81. package/dist/generated/data/upload.js +14 -0
  82. package/dist/generated/data/user.d.ts +12 -0
  83. package/dist/generated/data/user.js +14 -0
  84. package/dist/generated/data/users.d.ts +12 -0
  85. package/dist/generated/data/users.js +14 -0
  86. package/dist/generated/data/visible.d.ts +12 -0
  87. package/dist/generated/data/visible.js +14 -0
  88. package/dist/generated/data/warning.d.ts +12 -0
  89. package/dist/generated/data/warning.js +14 -0
  90. package/dist/generated/icons.d.ts +42 -0
  91. package/dist/icons/add.d.ts +2 -0
  92. package/dist/icons/add.js +6 -0
  93. package/dist/icons/arrow-down.d.ts +2 -0
  94. package/dist/icons/arrow-down.js +6 -0
  95. package/dist/icons/arrow-left.d.ts +2 -0
  96. package/dist/icons/arrow-left.js +6 -0
  97. package/dist/icons/arrow-right.d.ts +2 -0
  98. package/dist/icons/arrow-right.js +6 -0
  99. package/dist/icons/arrow-up.d.ts +2 -0
  100. package/dist/icons/arrow-up.js +6 -0
  101. package/dist/icons/calendar.d.ts +2 -0
  102. package/dist/icons/calendar.js +6 -0
  103. package/dist/icons/check.d.ts +2 -0
  104. package/dist/icons/check.js +6 -0
  105. package/dist/icons/chevron-down.d.ts +2 -0
  106. package/dist/icons/chevron-down.js +6 -0
  107. package/dist/icons/chevron-left.d.ts +2 -0
  108. package/dist/icons/chevron-left.js +6 -0
  109. package/dist/icons/chevron-right.d.ts +2 -0
  110. package/dist/icons/chevron-right.js +6 -0
  111. package/dist/icons/chevron-up.d.ts +2 -0
  112. package/dist/icons/chevron-up.js +6 -0
  113. package/dist/icons/clock.d.ts +2 -0
  114. package/dist/icons/clock.js +6 -0
  115. package/dist/icons/close.d.ts +2 -0
  116. package/dist/icons/close.js +6 -0
  117. package/dist/icons/copy.d.ts +2 -0
  118. package/dist/icons/copy.js +6 -0
  119. package/dist/icons/download.d.ts +2 -0
  120. package/dist/icons/download.js +6 -0
  121. package/dist/icons/edit.d.ts +2 -0
  122. package/dist/icons/edit.js +6 -0
  123. package/dist/icons/error.d.ts +2 -0
  124. package/dist/icons/error.js +6 -0
  125. package/dist/icons/external-link.d.ts +2 -0
  126. package/dist/icons/external-link.js +6 -0
  127. package/dist/icons/filter.d.ts +2 -0
  128. package/dist/icons/filter.js +6 -0
  129. package/dist/icons/hidden.d.ts +2 -0
  130. package/dist/icons/hidden.js +6 -0
  131. package/dist/icons/home.d.ts +2 -0
  132. package/dist/icons/home.js +6 -0
  133. package/dist/icons/inbox.d.ts +2 -0
  134. package/dist/icons/inbox.js +6 -0
  135. package/dist/icons/info.d.ts +2 -0
  136. package/dist/icons/info.js +6 -0
  137. package/dist/icons/lock.d.ts +2 -0
  138. package/dist/icons/lock.js +6 -0
  139. package/dist/icons/menu.d.ts +2 -0
  140. package/dist/icons/menu.js +6 -0
  141. package/dist/icons/more-horizontal.d.ts +2 -0
  142. package/dist/icons/more-horizontal.js +6 -0
  143. package/dist/icons/more-vertical.d.ts +2 -0
  144. package/dist/icons/more-vertical.js +6 -0
  145. package/dist/icons/notifications.d.ts +2 -0
  146. package/dist/icons/notifications.js +6 -0
  147. package/dist/icons/refresh.d.ts +2 -0
  148. package/dist/icons/refresh.js +6 -0
  149. package/dist/icons/remove.d.ts +2 -0
  150. package/dist/icons/remove.js +6 -0
  151. package/dist/icons/search.d.ts +2 -0
  152. package/dist/icons/search.js +6 -0
  153. package/dist/icons/settings.d.ts +2 -0
  154. package/dist/icons/settings.js +6 -0
  155. package/dist/icons/sort-ascending.d.ts +2 -0
  156. package/dist/icons/sort-ascending.js +6 -0
  157. package/dist/icons/sort-descending.d.ts +2 -0
  158. package/dist/icons/sort-descending.js +6 -0
  159. package/dist/icons/success.d.ts +2 -0
  160. package/dist/icons/success.js +6 -0
  161. package/dist/icons/trash.d.ts +2 -0
  162. package/dist/icons/trash.js +6 -0
  163. package/dist/icons/unlock.d.ts +2 -0
  164. package/dist/icons/unlock.js +6 -0
  165. package/dist/icons/upload.d.ts +2 -0
  166. package/dist/icons/upload.js +6 -0
  167. package/dist/icons/user.d.ts +2 -0
  168. package/dist/icons/user.js +6 -0
  169. package/dist/icons/users.d.ts +2 -0
  170. package/dist/icons/users.js +6 -0
  171. package/dist/icons/visible.d.ts +2 -0
  172. package/dist/icons/visible.js +6 -0
  173. package/dist/icons/warning.d.ts +2 -0
  174. package/dist/icons/warning.js +6 -0
  175. package/dist/index.d.ts +5 -0
  176. package/dist/index.js +45 -0
  177. package/dist/registry.d.ts +174 -0
  178. package/dist/registry.js +176 -0
  179. package/dist/runtime.d.ts +29 -0
  180. package/dist/runtime.js +96 -0
  181. package/dist/vite.d.ts +9 -0
  182. package/dist/vite.js +133 -0
  183. package/package.json +75 -0
  184. package/src/generated/catalog.ts +90 -0
  185. package/src/generated/data/add.ts +5 -0
  186. package/src/generated/data/arrow-down.ts +5 -0
  187. package/src/generated/data/arrow-left.ts +5 -0
  188. package/src/generated/data/arrow-right.ts +5 -0
  189. package/src/generated/data/arrow-up.ts +5 -0
  190. package/src/generated/data/calendar.ts +5 -0
  191. package/src/generated/data/check.ts +5 -0
  192. package/src/generated/data/chevron-down.ts +5 -0
  193. package/src/generated/data/chevron-left.ts +5 -0
  194. package/src/generated/data/chevron-right.ts +5 -0
  195. package/src/generated/data/chevron-up.ts +5 -0
  196. package/src/generated/data/clock.ts +5 -0
  197. package/src/generated/data/close.ts +5 -0
  198. package/src/generated/data/copy.ts +5 -0
  199. package/src/generated/data/download.ts +5 -0
  200. package/src/generated/data/edit.ts +5 -0
  201. package/src/generated/data/error.ts +5 -0
  202. package/src/generated/data/external-link.ts +5 -0
  203. package/src/generated/data/filter.ts +5 -0
  204. package/src/generated/data/hidden.ts +5 -0
  205. package/src/generated/data/home.ts +5 -0
  206. package/src/generated/data/inbox.ts +5 -0
  207. package/src/generated/data/info.ts +5 -0
  208. package/src/generated/data/lock.ts +5 -0
  209. package/src/generated/data/menu.ts +5 -0
  210. package/src/generated/data/more-horizontal.ts +5 -0
  211. package/src/generated/data/more-vertical.ts +5 -0
  212. package/src/generated/data/notifications.ts +5 -0
  213. package/src/generated/data/refresh.ts +5 -0
  214. package/src/generated/data/remove.ts +5 -0
  215. package/src/generated/data/search.ts +5 -0
  216. package/src/generated/data/settings.ts +5 -0
  217. package/src/generated/data/sort-ascending.ts +5 -0
  218. package/src/generated/data/sort-descending.ts +5 -0
  219. package/src/generated/data/success.ts +5 -0
  220. package/src/generated/data/trash.ts +5 -0
  221. package/src/generated/data/unlock.ts +5 -0
  222. package/src/generated/data/upload.ts +5 -0
  223. package/src/generated/data/user.ts +5 -0
  224. package/src/generated/data/users.ts +5 -0
  225. package/src/generated/data/visible.ts +5 -0
  226. package/src/generated/data/warning.ts +5 -0
  227. package/src/generated/icons.ts +43 -0
  228. package/src/icons/add.tsx +6 -0
  229. package/src/icons/arrow-down.tsx +6 -0
  230. package/src/icons/arrow-left.tsx +6 -0
  231. package/src/icons/arrow-right.tsx +6 -0
  232. package/src/icons/arrow-up.tsx +6 -0
  233. package/src/icons/calendar.tsx +6 -0
  234. package/src/icons/check.tsx +6 -0
  235. package/src/icons/chevron-down.tsx +6 -0
  236. package/src/icons/chevron-left.tsx +6 -0
  237. package/src/icons/chevron-right.tsx +6 -0
  238. package/src/icons/chevron-up.tsx +6 -0
  239. package/src/icons/clock.tsx +6 -0
  240. package/src/icons/close.tsx +6 -0
  241. package/src/icons/copy.tsx +6 -0
  242. package/src/icons/download.tsx +6 -0
  243. package/src/icons/edit.tsx +6 -0
  244. package/src/icons/error.tsx +6 -0
  245. package/src/icons/external-link.tsx +6 -0
  246. package/src/icons/filter.tsx +6 -0
  247. package/src/icons/hidden.tsx +6 -0
  248. package/src/icons/home.tsx +6 -0
  249. package/src/icons/inbox.tsx +6 -0
  250. package/src/icons/info.tsx +6 -0
  251. package/src/icons/lock.tsx +6 -0
  252. package/src/icons/menu.tsx +6 -0
  253. package/src/icons/more-horizontal.tsx +6 -0
  254. package/src/icons/more-vertical.tsx +6 -0
  255. package/src/icons/notifications.tsx +6 -0
  256. package/src/icons/refresh.tsx +6 -0
  257. package/src/icons/remove.tsx +6 -0
  258. package/src/icons/search.tsx +6 -0
  259. package/src/icons/settings.tsx +6 -0
  260. package/src/icons/sort-ascending.tsx +6 -0
  261. package/src/icons/sort-descending.tsx +6 -0
  262. package/src/icons/success.tsx +6 -0
  263. package/src/icons/trash.tsx +6 -0
  264. package/src/icons/unlock.tsx +6 -0
  265. package/src/icons/upload.tsx +6 -0
  266. package/src/icons/user.tsx +6 -0
  267. package/src/icons/users.tsx +6 -0
  268. package/src/icons/visible.tsx +6 -0
  269. package/src/icons/warning.tsx +6 -0
  270. package/src/index.ts +5 -0
  271. package/src/registry.ts +53 -0
  272. package/src/runtime.tsx +65 -0
  273. package/src/styles.css +16 -0
  274. package/src/vite.ts +135 -0
@@ -0,0 +1,5 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import type { IconData } from "../../runtime.tsx";
3
+
4
+ export const radixUpload = Object.freeze({"set":"radix","body":"<path fill=\"currentColor\" d=\"M12.5 10a.5.5 0 0 1 .5.5V12a2 2 0 0 1-1.999 2H3.996A1.997 1.997 0 0 1 2 12v-1.5a.5.5 0 0 1 1 0V12c0 .554.446 1 .996 1h7.005A1 1 0 0 0 12 12v-1.5a.5.5 0 0 1 .5-.5M7.182 1.182a.45.45 0 0 1 .636 0l3 3a.45.45 0 0 1-.636.637L7.95 2.586V9.5a.45.45 0 0 1-.9 0V2.586L4.818 4.82a.45.45 0 0 1-.636-.637z\"/>","width":15,"height":15}) satisfies IconData;
5
+ export const phosphorUpload = Object.freeze({"set":"phosphor","body":"<path fill=\"currentColor\" d=\"M224 144v64a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-64a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0M93.66 77.66L120 51.31V144a8 8 0 0 0 16 0V51.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32\"/>","width":256,"height":256}) satisfies IconData;
@@ -0,0 +1,5 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import type { IconData } from "../../runtime.tsx";
3
+
4
+ export const radixUser = Object.freeze({"set":"radix","body":"<path fill=\"currentColor\" d=\"M7.5.875A3.626 3.626 0 0 1 11.127 4.5A3.624 3.624 0 0 1 8.5 7.983c1.197.145 2.224.568 2.997 1.33c.981.967 1.478 2.408 1.478 4.288a.475.475 0 0 1-.949 0c0-1.72-.453-2.88-1.196-3.613c-.745-.733-1.856-1.113-3.33-1.113c-1.472 0-2.584.38-3.328 1.113s-1.197 1.893-1.197 3.613a.475.475 0 0 1-.949 0c0-1.88.497-3.32 1.479-4.289c.772-.76 1.799-1.183 2.995-1.328a3.627 3.627 0 0 1 1-7.109m0 .95a2.676 2.676 0 1 0 0 5.35a2.676 2.676 0 0 0 0-5.35\"/>","width":15,"height":15}) satisfies IconData;
5
+ export const phosphorUser = Object.freeze({"set":"phosphor","body":"<path fill=\"currentColor\" d=\"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8M72 96a56 56 0 1 1 56 56a56.06 56.06 0 0 1-56-56\"/>","width":256,"height":256}) satisfies IconData;
@@ -0,0 +1,5 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import type { IconData } from "../../runtime.tsx";
3
+
4
+ export const radixUsers = Object.freeze({"set":"radix","body":"<path fill=\"currentColor\" d=\"M1.45 10.95a.5.5 0 0 1 .5.5v1.5h1.5a.5.5 0 1 1 0 1h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5m7.5 2a.5.5 0 1 1 0 1h-3a.5.5 0 0 1 0-1zm4.5-2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 1 1 0-1h1.499l.001-1.5a.5.5 0 0 1 .5-.5m-12-5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5m12 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5m-10-4.5a.5.5 0 0 1 0 1h-1.5v1.5a.5.5 0 0 1-1 0v-2a.5.5 0 0 1 .5-.5zm9.999 0a.5.5 0 0 1 .501.5v2a.5.5 0 0 1-1 0v-1.5h-1.5a.5.5 0 1 1 0-1zm-4.5 0a.5.5 0 0 1 0 1H5.95a.5.5 0 0 1 0-1z\"/>","width":15,"height":15}) satisfies IconData;
5
+ export const phosphorUsers = Object.freeze({"set":"phosphor","body":"<path fill=\"currentColor\" d=\"M117.25 157.92a60 60 0 1 0-66.5 0a95.83 95.83 0 0 0-47.22 37.71a8 8 0 1 0 13.4 8.74a80 80 0 0 1 134.14 0a8 8 0 0 0 13.4-8.74a95.83 95.83 0 0 0-47.22-37.71M40 108a44 44 0 1 1 44 44a44.05 44.05 0 0 1-44-44m210.14 98.7a8 8 0 0 1-11.07-2.33A79.83 79.83 0 0 0 172 168a8 8 0 0 1 0-16a44 44 0 1 0-16.34-84.87a8 8 0 1 1-5.94-14.85a60 60 0 0 1 55.53 105.64a95.83 95.83 0 0 1 47.22 37.71a8 8 0 0 1-2.33 11.07\"/>","width":256,"height":256}) satisfies IconData;
@@ -0,0 +1,5 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import type { IconData } from "../../runtime.tsx";
3
+
4
+ export const radixVisible = Object.freeze({"set":"radix","body":"<path fill=\"currentColor\" d=\"M7.5 3c3.192 0 5.844 1.707 7.424 4.235a.5.5 0 0 1 .033.467l-.033.063C13.344 10.293 10.692 12 7.5 12S1.657 10.293.076 7.765a.5.5 0 0 1 0-.53L.228 7C1.823 4.601 4.408 3 7.5 3m0 1C4.804 4 2.533 5.38 1.1 7.5C2.533 9.62 4.804 11 7.5 11s4.966-1.38 6.4-3.5C12.465 5.38 10.195 4 7.5 4m0 1.5a2 2 0 1 1 0 4a2 2 0 0 1 0-4\"/>","width":15,"height":15}) satisfies IconData;
5
+ export const phosphorVisible = Object.freeze({"set":"phosphor","body":"<path fill=\"currentColor\" d=\"M247.31 124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57 61.26 162.88 48 128 48S61.43 61.26 36.34 86.35C17.51 105.18 9 124 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208s66.57-13.26 91.66-38.34c18.83-18.83 27.3-37.61 27.65-38.4a8 8 0 0 0 0-6.5M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.5 133.5 0 0 1 25 128a133.3 133.3 0 0 1 23.07-30.75C70.33 75.19 97.22 64 128 64s57.67 11.19 79.93 33.25A133.5 133.5 0 0 1 231.05 128c-7.21 13.46-38.62 64-103.05 64m0-112a48 48 0 1 0 48 48a48.05 48.05 0 0 0-48-48m0 80a32 32 0 1 1 32-32a32 32 0 0 1-32 32\"/>","width":256,"height":256}) satisfies IconData;
@@ -0,0 +1,5 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import type { IconData } from "../../runtime.tsx";
3
+
4
+ export const radixWarning = Object.freeze({"set":"radix","body":"<path fill=\"currentColor\" d=\"M6.642.483a1.1 1.1 0 0 1 1.803.125l6.394 10.729A1.1 1.1 0 0 1 13.894 13H1.106a1.1 1.1 0 0 1-.944-1.663L6.555.608zm.81.6l-.037.038L1.02 11.848a.1.1 0 0 0 .086.152h12.788a.1.1 0 0 0 .086-.152L7.586 1.121a.1.1 0 0 0-.134-.037m.047 8.643a.75.75 0 1 1 0 1.5a.75.75 0 0 1 0-1.5m0-5.94c.383 0 .689.318.674.7l-.153 4a.52.52 0 0 1-1.038 0l-.154-4.001a.674.674 0 0 1 .672-.7\"/>","width":15,"height":15}) satisfies IconData;
5
+ export const phosphorWarning = Object.freeze({"set":"phosphor","body":"<path fill=\"currentColor\" d=\"M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12\"/>","width":256,"height":256}) satisfies IconData;
@@ -0,0 +1,43 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ export { AddIcon } from "../icons/add.tsx";
3
+ export { RemoveIcon } from "../icons/remove.tsx";
4
+ export { CloseIcon } from "../icons/close.tsx";
5
+ export { CheckIcon } from "../icons/check.tsx";
6
+ export { SettingsIcon } from "../icons/settings.tsx";
7
+ export { SearchIcon } from "../icons/search.tsx";
8
+ export { ChevronDownIcon } from "../icons/chevron-down.tsx";
9
+ export { ChevronUpIcon } from "../icons/chevron-up.tsx";
10
+ export { ChevronLeftIcon } from "../icons/chevron-left.tsx";
11
+ export { ChevronRightIcon } from "../icons/chevron-right.tsx";
12
+ export { ArrowLeftIcon } from "../icons/arrow-left.tsx";
13
+ export { ArrowRightIcon } from "../icons/arrow-right.tsx";
14
+ export { ArrowUpIcon } from "../icons/arrow-up.tsx";
15
+ export { ArrowDownIcon } from "../icons/arrow-down.tsx";
16
+ export { MenuIcon } from "../icons/menu.tsx";
17
+ export { MoreHorizontalIcon } from "../icons/more-horizontal.tsx";
18
+ export { MoreVerticalIcon } from "../icons/more-vertical.tsx";
19
+ export { FilterIcon } from "../icons/filter.tsx";
20
+ export { SortAscendingIcon } from "../icons/sort-ascending.tsx";
21
+ export { SortDescendingIcon } from "../icons/sort-descending.tsx";
22
+ export { RefreshIcon } from "../icons/refresh.tsx";
23
+ export { DownloadIcon } from "../icons/download.tsx";
24
+ export { UploadIcon } from "../icons/upload.tsx";
25
+ export { EditIcon } from "../icons/edit.tsx";
26
+ export { TrashIcon } from "../icons/trash.tsx";
27
+ export { CopyIcon } from "../icons/copy.tsx";
28
+ export { ExternalLinkIcon } from "../icons/external-link.tsx";
29
+ export { InfoIcon } from "../icons/info.tsx";
30
+ export { WarningIcon } from "../icons/warning.tsx";
31
+ export { ErrorIcon } from "../icons/error.tsx";
32
+ export { SuccessIcon } from "../icons/success.tsx";
33
+ export { CalendarIcon } from "../icons/calendar.tsx";
34
+ export { ClockIcon } from "../icons/clock.tsx";
35
+ export { UserIcon } from "../icons/user.tsx";
36
+ export { UsersIcon } from "../icons/users.tsx";
37
+ export { HomeIcon } from "../icons/home.tsx";
38
+ export { InboxIcon } from "../icons/inbox.tsx";
39
+ export { NotificationsIcon } from "../icons/notifications.tsx";
40
+ export { LockIcon } from "../icons/lock.tsx";
41
+ export { UnlockIcon } from "../icons/unlock.tsx";
42
+ export { VisibleIcon } from "../icons/visible.tsx";
43
+ export { HiddenIcon } from "../icons/hidden.tsx";
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixAdd, phosphorAdd } from "../generated/data/add.ts";
4
+
5
+ export const AddIcon = createStaticIcon("add", [radixAdd, phosphorAdd]);
6
+ export default AddIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixArrowDown, phosphorArrowDown } from "../generated/data/arrow-down.ts";
4
+
5
+ export const ArrowDownIcon = createStaticIcon("arrowDown", [radixArrowDown, phosphorArrowDown]);
6
+ export default ArrowDownIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixArrowLeft, phosphorArrowLeft } from "../generated/data/arrow-left.ts";
4
+
5
+ export const ArrowLeftIcon = createStaticIcon("arrowLeft", [radixArrowLeft, phosphorArrowLeft]);
6
+ export default ArrowLeftIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixArrowRight, phosphorArrowRight } from "../generated/data/arrow-right.ts";
4
+
5
+ export const ArrowRightIcon = createStaticIcon("arrowRight", [radixArrowRight, phosphorArrowRight]);
6
+ export default ArrowRightIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixArrowUp, phosphorArrowUp } from "../generated/data/arrow-up.ts";
4
+
5
+ export const ArrowUpIcon = createStaticIcon("arrowUp", [radixArrowUp, phosphorArrowUp]);
6
+ export default ArrowUpIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixCalendar, phosphorCalendar } from "../generated/data/calendar.ts";
4
+
5
+ export const CalendarIcon = createStaticIcon("calendar", [radixCalendar, phosphorCalendar]);
6
+ export default CalendarIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixCheck, phosphorCheck } from "../generated/data/check.ts";
4
+
5
+ export const CheckIcon = createStaticIcon("check", [radixCheck, phosphorCheck]);
6
+ export default CheckIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixChevronDown, phosphorChevronDown } from "../generated/data/chevron-down.ts";
4
+
5
+ export const ChevronDownIcon = createStaticIcon("chevronDown", [radixChevronDown, phosphorChevronDown]);
6
+ export default ChevronDownIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixChevronLeft, phosphorChevronLeft } from "../generated/data/chevron-left.ts";
4
+
5
+ export const ChevronLeftIcon = createStaticIcon("chevronLeft", [radixChevronLeft, phosphorChevronLeft]);
6
+ export default ChevronLeftIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixChevronRight, phosphorChevronRight } from "../generated/data/chevron-right.ts";
4
+
5
+ export const ChevronRightIcon = createStaticIcon("chevronRight", [radixChevronRight, phosphorChevronRight]);
6
+ export default ChevronRightIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixChevronUp, phosphorChevronUp } from "../generated/data/chevron-up.ts";
4
+
5
+ export const ChevronUpIcon = createStaticIcon("chevronUp", [radixChevronUp, phosphorChevronUp]);
6
+ export default ChevronUpIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixClock, phosphorClock } from "../generated/data/clock.ts";
4
+
5
+ export const ClockIcon = createStaticIcon("clock", [radixClock, phosphorClock]);
6
+ export default ClockIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixClose, phosphorClose } from "../generated/data/close.ts";
4
+
5
+ export const CloseIcon = createStaticIcon("close", [radixClose, phosphorClose]);
6
+ export default CloseIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixCopy, phosphorCopy } from "../generated/data/copy.ts";
4
+
5
+ export const CopyIcon = createStaticIcon("copy", [radixCopy, phosphorCopy]);
6
+ export default CopyIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixDownload, phosphorDownload } from "../generated/data/download.ts";
4
+
5
+ export const DownloadIcon = createStaticIcon("download", [radixDownload, phosphorDownload]);
6
+ export default DownloadIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixEdit, phosphorEdit } from "../generated/data/edit.ts";
4
+
5
+ export const EditIcon = createStaticIcon("edit", [radixEdit, phosphorEdit]);
6
+ export default EditIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixError, phosphorError } from "../generated/data/error.ts";
4
+
5
+ export const ErrorIcon = createStaticIcon("error", [radixError, phosphorError]);
6
+ export default ErrorIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixExternalLink, phosphorExternalLink } from "../generated/data/external-link.ts";
4
+
5
+ export const ExternalLinkIcon = createStaticIcon("externalLink", [radixExternalLink, phosphorExternalLink]);
6
+ export default ExternalLinkIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixFilter, phosphorFilter } from "../generated/data/filter.ts";
4
+
5
+ export const FilterIcon = createStaticIcon("filter", [radixFilter, phosphorFilter]);
6
+ export default FilterIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixHidden, phosphorHidden } from "../generated/data/hidden.ts";
4
+
5
+ export const HiddenIcon = createStaticIcon("hidden", [radixHidden, phosphorHidden]);
6
+ export default HiddenIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixHome, phosphorHome } from "../generated/data/home.ts";
4
+
5
+ export const HomeIcon = createStaticIcon("home", [radixHome, phosphorHome]);
6
+ export default HomeIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixInbox, phosphorInbox } from "../generated/data/inbox.ts";
4
+
5
+ export const InboxIcon = createStaticIcon("inbox", [radixInbox, phosphorInbox]);
6
+ export default InboxIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixInfo, phosphorInfo } from "../generated/data/info.ts";
4
+
5
+ export const InfoIcon = createStaticIcon("info", [radixInfo, phosphorInfo]);
6
+ export default InfoIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixLock, phosphorLock } from "../generated/data/lock.ts";
4
+
5
+ export const LockIcon = createStaticIcon("lock", [radixLock, phosphorLock]);
6
+ export default LockIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixMenu, phosphorMenu } from "../generated/data/menu.ts";
4
+
5
+ export const MenuIcon = createStaticIcon("menu", [radixMenu, phosphorMenu]);
6
+ export default MenuIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixMoreHorizontal, phosphorMoreHorizontal } from "../generated/data/more-horizontal.ts";
4
+
5
+ export const MoreHorizontalIcon = createStaticIcon("moreHorizontal", [radixMoreHorizontal, phosphorMoreHorizontal]);
6
+ export default MoreHorizontalIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixMoreVertical, phosphorMoreVertical } from "../generated/data/more-vertical.ts";
4
+
5
+ export const MoreVerticalIcon = createStaticIcon("moreVertical", [radixMoreVertical, phosphorMoreVertical]);
6
+ export default MoreVerticalIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixNotifications, phosphorNotifications } from "../generated/data/notifications.ts";
4
+
5
+ export const NotificationsIcon = createStaticIcon("notifications", [radixNotifications, phosphorNotifications]);
6
+ export default NotificationsIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixRefresh, phosphorRefresh } from "../generated/data/refresh.ts";
4
+
5
+ export const RefreshIcon = createStaticIcon("refresh", [radixRefresh, phosphorRefresh]);
6
+ export default RefreshIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixRemove, phosphorRemove } from "../generated/data/remove.ts";
4
+
5
+ export const RemoveIcon = createStaticIcon("remove", [radixRemove, phosphorRemove]);
6
+ export default RemoveIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixSearch, phosphorSearch } from "../generated/data/search.ts";
4
+
5
+ export const SearchIcon = createStaticIcon("search", [radixSearch, phosphorSearch]);
6
+ export default SearchIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixSettings, phosphorSettings } from "../generated/data/settings.ts";
4
+
5
+ export const SettingsIcon = createStaticIcon("settings", [radixSettings, phosphorSettings]);
6
+ export default SettingsIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixSortAscending, phosphorSortAscending } from "../generated/data/sort-ascending.ts";
4
+
5
+ export const SortAscendingIcon = createStaticIcon("sortAscending", [radixSortAscending, phosphorSortAscending]);
6
+ export default SortAscendingIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixSortDescending, phosphorSortDescending } from "../generated/data/sort-descending.ts";
4
+
5
+ export const SortDescendingIcon = createStaticIcon("sortDescending", [radixSortDescending, phosphorSortDescending]);
6
+ export default SortDescendingIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixSuccess, phosphorSuccess } from "../generated/data/success.ts";
4
+
5
+ export const SuccessIcon = createStaticIcon("success", [radixSuccess, phosphorSuccess]);
6
+ export default SuccessIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixTrash, phosphorTrash } from "../generated/data/trash.ts";
4
+
5
+ export const TrashIcon = createStaticIcon("trash", [radixTrash, phosphorTrash]);
6
+ export default TrashIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixUnlock, phosphorUnlock } from "../generated/data/unlock.ts";
4
+
5
+ export const UnlockIcon = createStaticIcon("unlock", [radixUnlock, phosphorUnlock]);
6
+ export default UnlockIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixUpload, phosphorUpload } from "../generated/data/upload.ts";
4
+
5
+ export const UploadIcon = createStaticIcon("upload", [radixUpload, phosphorUpload]);
6
+ export default UploadIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixUser, phosphorUser } from "../generated/data/user.ts";
4
+
5
+ export const UserIcon = createStaticIcon("user", [radixUser, phosphorUser]);
6
+ export default UserIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixUsers, phosphorUsers } from "../generated/data/users.ts";
4
+
5
+ export const UsersIcon = createStaticIcon("users", [radixUsers, phosphorUsers]);
6
+ export default UsersIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixVisible, phosphorVisible } from "../generated/data/visible.ts";
4
+
5
+ export const VisibleIcon = createStaticIcon("visible", [radixVisible, phosphorVisible]);
6
+ export default VisibleIcon;
@@ -0,0 +1,6 @@
1
+ // Generated by tools/build-icons.ts. Do not edit.
2
+ import { createStaticIcon } from "../runtime.tsx";
3
+ import { radixWarning, phosphorWarning } from "../generated/data/warning.ts";
4
+
5
+ export const WarningIcon = createStaticIcon("warning", [radixWarning, phosphorWarning]);
6
+ export default WarningIcon;
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { Icon, DynamicIcon } from "./runtime.tsx";
2
+ export type { IconData, IconProps, DynamicIconProps, StaticIconProps } from "./runtime.tsx";
3
+ export { iconNames, iconRegistry, isIconName } from "./registry.ts";
4
+ export type { IconName, IconSetName } from "./registry.ts";
5
+ export * from "./generated/icons.ts";
@@ -0,0 +1,53 @@
1
+ export type IconSetName = "radix" | "phosphor";
2
+
3
+ export const iconRegistry = Object.freeze({
4
+ add: { radix: "plus", phosphor: "plus" },
5
+ remove: { radix: "minus", phosphor: "minus" },
6
+ close: { radix: "cross-2", phosphor: "x" },
7
+ check: { radix: "check", phosphor: "check" },
8
+ settings: { radix: "gear", phosphor: "gear-six" },
9
+ search: { radix: "magnifying-glass", phosphor: "magnifying-glass" },
10
+ chevronDown: { radix: "chevron-down", phosphor: "caret-down" },
11
+ chevronUp: { radix: "chevron-up", phosphor: "caret-up" },
12
+ chevronLeft: { radix: "chevron-left", phosphor: "caret-left" },
13
+ chevronRight: { radix: "chevron-right", phosphor: "caret-right" },
14
+ arrowLeft: { radix: "arrow-left", phosphor: "arrow-left" },
15
+ arrowRight: { radix: "arrow-right", phosphor: "arrow-right" },
16
+ arrowUp: { radix: "arrow-up", phosphor: "arrow-up" },
17
+ arrowDown: { radix: "arrow-down", phosphor: "arrow-down" },
18
+ menu: { radix: "hamburger-menu", phosphor: "list" },
19
+ moreHorizontal: { radix: "dots-horizontal", phosphor: "dots-three" },
20
+ moreVertical: { radix: "dots-vertical", phosphor: "dots-three-vertical" },
21
+ filter: { radix: "mixer-horizontal", phosphor: "funnel" },
22
+ sortAscending: { radix: "arrow-up", phosphor: "sort-ascending" },
23
+ sortDescending: { radix: "arrow-down", phosphor: "sort-descending" },
24
+ refresh: { radix: "reload", phosphor: "arrows-clockwise" },
25
+ download: { radix: "download", phosphor: "download-simple" },
26
+ upload: { radix: "upload", phosphor: "upload-simple" },
27
+ edit: { radix: "pencil-1", phosphor: "pencil-simple" },
28
+ trash: { radix: "trash", phosphor: "trash" },
29
+ copy: { radix: "copy", phosphor: "copy" },
30
+ externalLink: { radix: "external-link", phosphor: "arrow-square-out" },
31
+ info: { radix: "info-circled", phosphor: "info" },
32
+ warning: { radix: "exclamation-triangle", phosphor: "warning" },
33
+ error: { radix: "cross-circled", phosphor: "x-circle" },
34
+ success: { radix: "check-circled", phosphor: "check-circle" },
35
+ calendar: { radix: "calendar", phosphor: "calendar-blank" },
36
+ clock: { radix: "clock", phosphor: "clock" },
37
+ user: { radix: "person", phosphor: "user" },
38
+ users: { radix: "group", phosphor: "users" },
39
+ home: { radix: "home", phosphor: "house" },
40
+ inbox: { radix: "envelope-closed", phosphor: "envelope" },
41
+ notifications: { radix: "bell", phosphor: "bell" },
42
+ lock: { radix: "lock-closed", phosphor: "lock" },
43
+ unlock: { radix: "lock-open-1", phosphor: "lock-open" },
44
+ visible: { radix: "eye-open", phosphor: "eye" },
45
+ hidden: { radix: "eye-closed", phosphor: "eye-slash" },
46
+ } satisfies Readonly<Record<string, Readonly<Record<IconSetName, string>>>>);
47
+
48
+ export type IconName = keyof typeof iconRegistry;
49
+ export const iconNames: readonly IconName[] = Object.freeze(Object.keys(iconRegistry).filter(isIconName));
50
+
51
+ export function isIconName(value: string): value is IconName {
52
+ return Object.hasOwn(iconRegistry, value);
53
+ }
@@ -0,0 +1,65 @@
1
+ import { For, createMemo, splitProps } from "solid-js";
2
+ import type { Component, JSX } from "solid-js";
3
+ import { iconData } from "./generated/catalog.ts";
4
+ import { isIconName } from "./registry.ts";
5
+ import type { IconName, IconSetName } from "./registry.ts";
6
+
7
+ export interface IconData {
8
+ readonly set: IconSetName;
9
+ readonly body: string;
10
+ readonly width: number;
11
+ readonly height: number;
12
+ }
13
+
14
+ interface IconVisualProps extends Pick<JSX.HTMLAttributes<HTMLSpanElement>, "id" | "class" | "style"> {
15
+ readonly size?: "sm" | "md" | "lg";
16
+ readonly tone?: "muted" | "inherit";
17
+ }
18
+
19
+ export interface StaticIconProps extends IconVisualProps {
20
+ /** Defaults to true. Meaningful icons set false and require label at runtime and through the recommended lint rule. */
21
+ readonly decorative?: boolean;
22
+ readonly label?: string;
23
+ }
24
+ export type IconProps = StaticIconProps & { readonly name: IconName };
25
+ export type DynamicIconProps = StaticIconProps & { readonly name: string };
26
+
27
+ type IconGlyphProps = StaticIconProps & {
28
+ readonly name: IconName;
29
+ readonly icons: readonly IconData[];
30
+ };
31
+
32
+ function IconGlyph(props: IconGlyphProps): JSX.Element {
33
+ const [local, others] = splitProps(props, ["name", "icons", "size", "tone", "decorative", "label", "class"]);
34
+ const accessibility = createMemo<{ readonly label: string | undefined; readonly hidden: "true" | undefined; readonly role: "img" | undefined }>(() => {
35
+ const label = local.label?.trim();
36
+ if (local.decorative === false && !label) throw new Error(`${local.name} icon requires a nonempty label when decorative=false`);
37
+ return local.decorative === false ? { label, hidden: undefined, role: "img" } : { label: undefined, hidden: "true", role: undefined };
38
+ });
39
+ return <span {...others} class={`sheen-icon${local.class ? ` ${local.class}` : ""}`} data-sheen-icon={local.name} data-size={local.size ?? "md"} data-tone={local.tone ?? "muted"}
40
+ role={accessibility().role} aria-label={accessibility().label} aria-hidden={accessibility().hidden}>
41
+ <For each={local.icons}>{(icon, index) => <svg xmlns="http://www.w3.org/2000/svg" viewBox={`0 0 ${icon.width} ${icon.height}`}
42
+ data-sheen-icon-set-value={icon.set} data-sheen-icon-default={index() === 0 || undefined} aria-hidden="true" innerHTML={icon.body} />}</For>
43
+ </span>;
44
+ }
45
+
46
+ export function createStaticIcon(name: IconName, icons: readonly IconData[]): Component<StaticIconProps> {
47
+ if (!icons.length || new Set(icons.map(icon => icon.set)).size !== icons.length) throw new Error(`${name} icon requires one unique entry per bundled set`);
48
+ return function StaticIcon(props: StaticIconProps): JSX.Element {
49
+ return <IconGlyph {...props} name={name} icons={icons} />;
50
+ };
51
+ }
52
+
53
+ /** Marker transformed by sheenIcons(). Use DynamicIcon only for genuinely runtime names. */
54
+ export function Icon(props: IconProps): JSX.Element {
55
+ void props;
56
+ throw new Error("Icon requires the sheenIcons Vite plugin; use a per-icon export in other build systems or DynamicIcon for runtime names");
57
+ }
58
+
59
+ /** Explicit full-registry path for names that cannot be statically analyzed. */
60
+ export function DynamicIcon(props: DynamicIconProps): JSX.Element {
61
+ const name = props.name;
62
+ if (!isIconName(name)) throw new Error(`Unknown semantic icon: ${name}`);
63
+ const [, others] = splitProps(props, ["name"]);
64
+ return <IconGlyph {...others} name={name} icons={iconData[name]} />;
65
+ }
package/src/styles.css ADDED
@@ -0,0 +1,16 @@
1
+ @layer theme, base, components, utilities;
2
+ @layer components {
3
+ .sheen-icon { display: inline-flex; align-items: center; justify-content: center; inline-size: var(--sheen-icon-size-md); block-size: var(--sheen-icon-size-md); flex: none; vertical-align: -0.125em; color: var(--sheen-color-fg-muted); }
4
+ .sheen-icon[data-size="sm"] { inline-size: var(--sheen-icon-size-sm); block-size: var(--sheen-icon-size-sm); }
5
+ .sheen-icon[data-size="lg"] { inline-size: var(--sheen-icon-size-lg); block-size: var(--sheen-icon-size-lg); }
6
+ .sheen-icon[data-tone="inherit"] { color: currentColor; }
7
+ .sheen-icon > svg { display: none; inline-size: 100%; block-size: 100%; overflow: visible; }
8
+ :where([data-sheen-icon-set="radix"]) { --sheen-icon-default-display: none; --sheen-icon-radix-display: block; --sheen-icon-phosphor-display: none; }
9
+ :where([data-sheen-icon-set="phosphor"]) { --sheen-icon-default-display: none; --sheen-icon-radix-display: none; --sheen-icon-phosphor-display: block; }
10
+ .sheen-icon > svg[data-sheen-icon-default] { display: var(--sheen-icon-default-display, block); }
11
+ .sheen-icon > svg[data-sheen-icon-set-value="radix"] { display: var(--sheen-icon-radix-display, none); }
12
+ .sheen-icon > svg[data-sheen-icon-set-value="phosphor"] { display: var(--sheen-icon-phosphor-display, none); }
13
+ .sheen-button:has(> .sheen-icon) { display: inline-flex; align-items: center; gap: var(--sheen-space-inline-sm); }
14
+ .sheen-button > .sheen-icon { color: currentColor; margin-inline-start: -1px; }
15
+ .sheen-icon-button-glyph > .sheen-icon { color: currentColor; }
16
+ }