@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,2 @@
1
+ export declare const TrashIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default TrashIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorTrash as e, radixTrash as t } from "../generated/data/trash.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/trash.tsx
4
+ var r = n("trash", [t, e]);
5
+ //#endregion
6
+ export { r as TrashIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const UnlockIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default UnlockIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorUnlock as e, radixUnlock as t } from "../generated/data/unlock.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/unlock.tsx
4
+ var r = n("unlock", [t, e]);
5
+ //#endregion
6
+ export { r as UnlockIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const UploadIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default UploadIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorUpload as e, radixUpload as t } from "../generated/data/upload.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/upload.tsx
4
+ var r = n("upload", [t, e]);
5
+ //#endregion
6
+ export { r as UploadIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const UserIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default UserIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorUser as e, radixUser as t } from "../generated/data/user.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/user.tsx
4
+ var r = n("user", [t, e]);
5
+ //#endregion
6
+ export { r as UserIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const UsersIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default UsersIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorUsers as e, radixUsers as t } from "../generated/data/users.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/users.tsx
4
+ var r = n("users", [t, e]);
5
+ //#endregion
6
+ export { r as UsersIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const VisibleIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default VisibleIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorVisible as e, radixVisible as t } from "../generated/data/visible.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/visible.tsx
4
+ var r = n("visible", [t, e]);
5
+ //#endregion
6
+ export { r as VisibleIcon, r as default };
@@ -0,0 +1,2 @@
1
+ export declare const WarningIcon: import("solid-js").Component<import("../runtime.tsx").StaticIconProps>;
2
+ export default WarningIcon;
@@ -0,0 +1,6 @@
1
+ import { phosphorWarning as e, radixWarning as t } from "../generated/data/warning.js";
2
+ import { createStaticIcon as n } from "../runtime.js";
3
+ //#region src/icons/warning.tsx
4
+ var r = n("warning", [t, e]);
5
+ //#endregion
6
+ export { r as WarningIcon, r as default };
@@ -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";
package/dist/index.js ADDED
@@ -0,0 +1,45 @@
1
+ import { iconNames as e, iconRegistry as t, isIconName as n } from "./registry.js";
2
+ import { DynamicIcon as r, Icon as i } from "./runtime.js";
3
+ import { AddIcon as a } from "./icons/add.js";
4
+ import { RemoveIcon as o } from "./icons/remove.js";
5
+ import { CloseIcon as s } from "./icons/close.js";
6
+ import { CheckIcon as c } from "./icons/check.js";
7
+ import { SettingsIcon as l } from "./icons/settings.js";
8
+ import { SearchIcon as u } from "./icons/search.js";
9
+ import { ChevronDownIcon as d } from "./icons/chevron-down.js";
10
+ import { ChevronUpIcon as f } from "./icons/chevron-up.js";
11
+ import { ChevronLeftIcon as p } from "./icons/chevron-left.js";
12
+ import { ChevronRightIcon as m } from "./icons/chevron-right.js";
13
+ import { ArrowLeftIcon as h } from "./icons/arrow-left.js";
14
+ import { ArrowRightIcon as g } from "./icons/arrow-right.js";
15
+ import { ArrowUpIcon as _ } from "./icons/arrow-up.js";
16
+ import { ArrowDownIcon as v } from "./icons/arrow-down.js";
17
+ import { MenuIcon as y } from "./icons/menu.js";
18
+ import { MoreHorizontalIcon as b } from "./icons/more-horizontal.js";
19
+ import { MoreVerticalIcon as x } from "./icons/more-vertical.js";
20
+ import { FilterIcon as S } from "./icons/filter.js";
21
+ import { SortAscendingIcon as C } from "./icons/sort-ascending.js";
22
+ import { SortDescendingIcon as w } from "./icons/sort-descending.js";
23
+ import { RefreshIcon as T } from "./icons/refresh.js";
24
+ import { DownloadIcon as E } from "./icons/download.js";
25
+ import { UploadIcon as D } from "./icons/upload.js";
26
+ import { EditIcon as O } from "./icons/edit.js";
27
+ import { TrashIcon as k } from "./icons/trash.js";
28
+ import { CopyIcon as A } from "./icons/copy.js";
29
+ import { ExternalLinkIcon as j } from "./icons/external-link.js";
30
+ import { InfoIcon as M } from "./icons/info.js";
31
+ import { WarningIcon as N } from "./icons/warning.js";
32
+ import { ErrorIcon as P } from "./icons/error.js";
33
+ import { SuccessIcon as F } from "./icons/success.js";
34
+ import { CalendarIcon as I } from "./icons/calendar.js";
35
+ import { ClockIcon as L } from "./icons/clock.js";
36
+ import { UserIcon as R } from "./icons/user.js";
37
+ import { UsersIcon as z } from "./icons/users.js";
38
+ import { HomeIcon as B } from "./icons/home.js";
39
+ import { InboxIcon as V } from "./icons/inbox.js";
40
+ import { NotificationsIcon as H } from "./icons/notifications.js";
41
+ import { LockIcon as U } from "./icons/lock.js";
42
+ import { UnlockIcon as W } from "./icons/unlock.js";
43
+ import { VisibleIcon as G } from "./icons/visible.js";
44
+ import { HiddenIcon as K } from "./icons/hidden.js";
45
+ export { a as AddIcon, v as ArrowDownIcon, h as ArrowLeftIcon, g as ArrowRightIcon, _ as ArrowUpIcon, I as CalendarIcon, c as CheckIcon, d as ChevronDownIcon, p as ChevronLeftIcon, m as ChevronRightIcon, f as ChevronUpIcon, L as ClockIcon, s as CloseIcon, A as CopyIcon, E as DownloadIcon, r as DynamicIcon, O as EditIcon, P as ErrorIcon, j as ExternalLinkIcon, S as FilterIcon, K as HiddenIcon, B as HomeIcon, i as Icon, V as InboxIcon, M as InfoIcon, U as LockIcon, y as MenuIcon, b as MoreHorizontalIcon, x as MoreVerticalIcon, H as NotificationsIcon, T as RefreshIcon, o as RemoveIcon, u as SearchIcon, l as SettingsIcon, C as SortAscendingIcon, w as SortDescendingIcon, F as SuccessIcon, k as TrashIcon, W as UnlockIcon, D as UploadIcon, R as UserIcon, z as UsersIcon, G as VisibleIcon, N as WarningIcon, e as iconNames, t as iconRegistry, n as isIconName };
@@ -0,0 +1,174 @@
1
+ export type IconSetName = "radix" | "phosphor";
2
+ export declare const iconRegistry: Readonly<{
3
+ add: {
4
+ radix: string;
5
+ phosphor: string;
6
+ };
7
+ remove: {
8
+ radix: string;
9
+ phosphor: string;
10
+ };
11
+ close: {
12
+ radix: string;
13
+ phosphor: string;
14
+ };
15
+ check: {
16
+ radix: string;
17
+ phosphor: string;
18
+ };
19
+ settings: {
20
+ radix: string;
21
+ phosphor: string;
22
+ };
23
+ search: {
24
+ radix: string;
25
+ phosphor: string;
26
+ };
27
+ chevronDown: {
28
+ radix: string;
29
+ phosphor: string;
30
+ };
31
+ chevronUp: {
32
+ radix: string;
33
+ phosphor: string;
34
+ };
35
+ chevronLeft: {
36
+ radix: string;
37
+ phosphor: string;
38
+ };
39
+ chevronRight: {
40
+ radix: string;
41
+ phosphor: string;
42
+ };
43
+ arrowLeft: {
44
+ radix: string;
45
+ phosphor: string;
46
+ };
47
+ arrowRight: {
48
+ radix: string;
49
+ phosphor: string;
50
+ };
51
+ arrowUp: {
52
+ radix: string;
53
+ phosphor: string;
54
+ };
55
+ arrowDown: {
56
+ radix: string;
57
+ phosphor: string;
58
+ };
59
+ menu: {
60
+ radix: string;
61
+ phosphor: string;
62
+ };
63
+ moreHorizontal: {
64
+ radix: string;
65
+ phosphor: string;
66
+ };
67
+ moreVertical: {
68
+ radix: string;
69
+ phosphor: string;
70
+ };
71
+ filter: {
72
+ radix: string;
73
+ phosphor: string;
74
+ };
75
+ sortAscending: {
76
+ radix: string;
77
+ phosphor: string;
78
+ };
79
+ sortDescending: {
80
+ radix: string;
81
+ phosphor: string;
82
+ };
83
+ refresh: {
84
+ radix: string;
85
+ phosphor: string;
86
+ };
87
+ download: {
88
+ radix: string;
89
+ phosphor: string;
90
+ };
91
+ upload: {
92
+ radix: string;
93
+ phosphor: string;
94
+ };
95
+ edit: {
96
+ radix: string;
97
+ phosphor: string;
98
+ };
99
+ trash: {
100
+ radix: string;
101
+ phosphor: string;
102
+ };
103
+ copy: {
104
+ radix: string;
105
+ phosphor: string;
106
+ };
107
+ externalLink: {
108
+ radix: string;
109
+ phosphor: string;
110
+ };
111
+ info: {
112
+ radix: string;
113
+ phosphor: string;
114
+ };
115
+ warning: {
116
+ radix: string;
117
+ phosphor: string;
118
+ };
119
+ error: {
120
+ radix: string;
121
+ phosphor: string;
122
+ };
123
+ success: {
124
+ radix: string;
125
+ phosphor: string;
126
+ };
127
+ calendar: {
128
+ radix: string;
129
+ phosphor: string;
130
+ };
131
+ clock: {
132
+ radix: string;
133
+ phosphor: string;
134
+ };
135
+ user: {
136
+ radix: string;
137
+ phosphor: string;
138
+ };
139
+ users: {
140
+ radix: string;
141
+ phosphor: string;
142
+ };
143
+ home: {
144
+ radix: string;
145
+ phosphor: string;
146
+ };
147
+ inbox: {
148
+ radix: string;
149
+ phosphor: string;
150
+ };
151
+ notifications: {
152
+ radix: string;
153
+ phosphor: string;
154
+ };
155
+ lock: {
156
+ radix: string;
157
+ phosphor: string;
158
+ };
159
+ unlock: {
160
+ radix: string;
161
+ phosphor: string;
162
+ };
163
+ visible: {
164
+ radix: string;
165
+ phosphor: string;
166
+ };
167
+ hidden: {
168
+ radix: string;
169
+ phosphor: string;
170
+ };
171
+ }>;
172
+ export type IconName = keyof typeof iconRegistry;
173
+ export declare const iconNames: readonly IconName[];
174
+ export declare function isIconName(value: string): value is IconName;
@@ -0,0 +1,176 @@
1
+ //#region src/registry.ts
2
+ var e = Object.freeze({
3
+ add: {
4
+ radix: "plus",
5
+ phosphor: "plus"
6
+ },
7
+ remove: {
8
+ radix: "minus",
9
+ phosphor: "minus"
10
+ },
11
+ close: {
12
+ radix: "cross-2",
13
+ phosphor: "x"
14
+ },
15
+ check: {
16
+ radix: "check",
17
+ phosphor: "check"
18
+ },
19
+ settings: {
20
+ radix: "gear",
21
+ phosphor: "gear-six"
22
+ },
23
+ search: {
24
+ radix: "magnifying-glass",
25
+ phosphor: "magnifying-glass"
26
+ },
27
+ chevronDown: {
28
+ radix: "chevron-down",
29
+ phosphor: "caret-down"
30
+ },
31
+ chevronUp: {
32
+ radix: "chevron-up",
33
+ phosphor: "caret-up"
34
+ },
35
+ chevronLeft: {
36
+ radix: "chevron-left",
37
+ phosphor: "caret-left"
38
+ },
39
+ chevronRight: {
40
+ radix: "chevron-right",
41
+ phosphor: "caret-right"
42
+ },
43
+ arrowLeft: {
44
+ radix: "arrow-left",
45
+ phosphor: "arrow-left"
46
+ },
47
+ arrowRight: {
48
+ radix: "arrow-right",
49
+ phosphor: "arrow-right"
50
+ },
51
+ arrowUp: {
52
+ radix: "arrow-up",
53
+ phosphor: "arrow-up"
54
+ },
55
+ arrowDown: {
56
+ radix: "arrow-down",
57
+ phosphor: "arrow-down"
58
+ },
59
+ menu: {
60
+ radix: "hamburger-menu",
61
+ phosphor: "list"
62
+ },
63
+ moreHorizontal: {
64
+ radix: "dots-horizontal",
65
+ phosphor: "dots-three"
66
+ },
67
+ moreVertical: {
68
+ radix: "dots-vertical",
69
+ phosphor: "dots-three-vertical"
70
+ },
71
+ filter: {
72
+ radix: "mixer-horizontal",
73
+ phosphor: "funnel"
74
+ },
75
+ sortAscending: {
76
+ radix: "arrow-up",
77
+ phosphor: "sort-ascending"
78
+ },
79
+ sortDescending: {
80
+ radix: "arrow-down",
81
+ phosphor: "sort-descending"
82
+ },
83
+ refresh: {
84
+ radix: "reload",
85
+ phosphor: "arrows-clockwise"
86
+ },
87
+ download: {
88
+ radix: "download",
89
+ phosphor: "download-simple"
90
+ },
91
+ upload: {
92
+ radix: "upload",
93
+ phosphor: "upload-simple"
94
+ },
95
+ edit: {
96
+ radix: "pencil-1",
97
+ phosphor: "pencil-simple"
98
+ },
99
+ trash: {
100
+ radix: "trash",
101
+ phosphor: "trash"
102
+ },
103
+ copy: {
104
+ radix: "copy",
105
+ phosphor: "copy"
106
+ },
107
+ externalLink: {
108
+ radix: "external-link",
109
+ phosphor: "arrow-square-out"
110
+ },
111
+ info: {
112
+ radix: "info-circled",
113
+ phosphor: "info"
114
+ },
115
+ warning: {
116
+ radix: "exclamation-triangle",
117
+ phosphor: "warning"
118
+ },
119
+ error: {
120
+ radix: "cross-circled",
121
+ phosphor: "x-circle"
122
+ },
123
+ success: {
124
+ radix: "check-circled",
125
+ phosphor: "check-circle"
126
+ },
127
+ calendar: {
128
+ radix: "calendar",
129
+ phosphor: "calendar-blank"
130
+ },
131
+ clock: {
132
+ radix: "clock",
133
+ phosphor: "clock"
134
+ },
135
+ user: {
136
+ radix: "person",
137
+ phosphor: "user"
138
+ },
139
+ users: {
140
+ radix: "group",
141
+ phosphor: "users"
142
+ },
143
+ home: {
144
+ radix: "home",
145
+ phosphor: "house"
146
+ },
147
+ inbox: {
148
+ radix: "envelope-closed",
149
+ phosphor: "envelope"
150
+ },
151
+ notifications: {
152
+ radix: "bell",
153
+ phosphor: "bell"
154
+ },
155
+ lock: {
156
+ radix: "lock-closed",
157
+ phosphor: "lock"
158
+ },
159
+ unlock: {
160
+ radix: "lock-open-1",
161
+ phosphor: "lock-open"
162
+ },
163
+ visible: {
164
+ radix: "eye-open",
165
+ phosphor: "eye"
166
+ },
167
+ hidden: {
168
+ radix: "eye-closed",
169
+ phosphor: "eye-slash"
170
+ }
171
+ }), t = Object.freeze(Object.keys(e).filter(n));
172
+ function n(t) {
173
+ return Object.hasOwn(e, t);
174
+ }
175
+ //#endregion
176
+ export { t as iconNames, e as iconRegistry, n as isIconName };
@@ -0,0 +1,29 @@
1
+ import type { Component, JSX } from "solid-js";
2
+ import type { IconName, IconSetName } from "./registry.ts";
3
+ export interface IconData {
4
+ readonly set: IconSetName;
5
+ readonly body: string;
6
+ readonly width: number;
7
+ readonly height: number;
8
+ }
9
+ interface IconVisualProps extends Pick<JSX.HTMLAttributes<HTMLSpanElement>, "id" | "class" | "style"> {
10
+ readonly size?: "sm" | "md" | "lg";
11
+ readonly tone?: "muted" | "inherit";
12
+ }
13
+ export interface StaticIconProps extends IconVisualProps {
14
+ /** Defaults to true. Meaningful icons set false and require label at runtime and through the recommended lint rule. */
15
+ readonly decorative?: boolean;
16
+ readonly label?: string;
17
+ }
18
+ export type IconProps = StaticIconProps & {
19
+ readonly name: IconName;
20
+ };
21
+ export type DynamicIconProps = StaticIconProps & {
22
+ readonly name: string;
23
+ };
24
+ export declare function createStaticIcon(name: IconName, icons: readonly IconData[]): Component<StaticIconProps>;
25
+ /** Marker transformed by sheenIcons(). Use DynamicIcon only for genuinely runtime names. */
26
+ export declare function Icon(props: IconProps): JSX.Element;
27
+ /** Explicit full-registry path for names that cannot be statically analyzed. */
28
+ export declare function DynamicIcon(props: DynamicIconProps): JSX.Element;
29
+ export {};
@@ -0,0 +1,96 @@
1
+ import { iconData as e } from "./generated/catalog.js";
2
+ import { isIconName as t } from "./registry.js";
3
+ import { createComponent as n, effect as r, insert as i, mergeProps as a, setAttribute as o, spread as s, template as c } from "solid-js/web";
4
+ import { For as l, createMemo as u, splitProps as d } from "solid-js";
5
+ //#region src/runtime.tsx
6
+ var f = /*#__PURE__*/ c("<span>"), p = /*#__PURE__*/ c("<svg xmlns=http://www.w3.org/2000/svg aria-hidden=true>");
7
+ function m(e) {
8
+ let [t, c] = d(e, [
9
+ "name",
10
+ "icons",
11
+ "size",
12
+ "tone",
13
+ "decorative",
14
+ "label",
15
+ "class"
16
+ ]), m = u(() => {
17
+ let e = t.label?.trim();
18
+ if (t.decorative === !1 && !e) throw Error(`${t.name} icon requires a nonempty label when decorative=false`);
19
+ return t.decorative === !1 ? {
20
+ label: e,
21
+ hidden: void 0,
22
+ role: "img"
23
+ } : {
24
+ label: void 0,
25
+ hidden: "true",
26
+ role: void 0
27
+ };
28
+ });
29
+ return (() => {
30
+ var e = f();
31
+ return s(e, a(c, {
32
+ get class() {
33
+ return `sheen-icon${t.class ? ` ${t.class}` : ""}`;
34
+ },
35
+ get "data-sheen-icon"() {
36
+ return t.name;
37
+ },
38
+ get "data-size"() {
39
+ return t.size ?? "md";
40
+ },
41
+ get "data-tone"() {
42
+ return t.tone ?? "muted";
43
+ },
44
+ get role() {
45
+ return m().role;
46
+ },
47
+ get "aria-label"() {
48
+ return m().label;
49
+ },
50
+ get "aria-hidden"() {
51
+ return m().hidden;
52
+ }
53
+ }), !1, !0), i(e, n(l, {
54
+ get each() {
55
+ return t.icons;
56
+ },
57
+ children: (e, t) => (() => {
58
+ var n = p();
59
+ return r((r) => {
60
+ var i = `0 0 ${e.width} ${e.height}`, a = e.set, s = t() === 0 || void 0, c = e.body;
61
+ return i !== r.e && o(n, "viewBox", r.e = i), a !== r.t && o(n, "data-sheen-icon-set-value", r.t = a), s !== r.a && o(n, "data-sheen-icon-default", r.a = s), c !== r.o && (n.innerHTML = r.o = c), r;
62
+ }, {
63
+ e: void 0,
64
+ t: void 0,
65
+ a: void 0,
66
+ o: void 0
67
+ }), n;
68
+ })()
69
+ })), e;
70
+ })();
71
+ }
72
+ function h(e, t) {
73
+ if (!t.length || new Set(t.map((e) => e.set)).size !== t.length) throw Error(`${e} icon requires one unique entry per bundled set`);
74
+ return function(r) {
75
+ return n(m, a(r, {
76
+ name: e,
77
+ icons: t
78
+ }));
79
+ };
80
+ }
81
+ function g(e) {
82
+ throw Error("Icon requires the sheenIcons Vite plugin; use a per-icon export in other build systems or DynamicIcon for runtime names");
83
+ }
84
+ function _(r) {
85
+ let i = r.name;
86
+ if (!t(i)) throw Error(`Unknown semantic icon: ${i}`);
87
+ let [, o] = d(r, ["name"]);
88
+ return n(m, a(o, {
89
+ name: i,
90
+ get icons() {
91
+ return e[i];
92
+ }
93
+ }));
94
+ }
95
+ //#endregion
96
+ export { _ as DynamicIcon, g as Icon, h as createStaticIcon };
package/dist/vite.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import type { Plugin } from "vite";
2
+ import type { IconSetName } from "./registry.ts";
3
+ export interface SheenIconsOptions {
4
+ /** Sets included by transformed literal icons. First entry is the fallback when no theme attribute is present. */
5
+ readonly sets?: readonly IconSetName[];
6
+ /** Module specifiers from which the Icon marker may be imported. */
7
+ readonly imports?: readonly string[];
8
+ }
9
+ export declare function sheenIcons(options?: SheenIconsOptions): Plugin;