@techbykyle/svg-logo 0.1.0 → 0.2.4

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 (197) hide show
  1. package/BRAND_ASSETS.md +21 -0
  2. package/README.md +140 -20
  3. package/dist/cjs/LoadLogo.js +105 -81
  4. package/dist/cjs/Logo/Grok.js +36 -0
  5. package/dist/cjs/Logo/GrokKFull.js +44 -0
  6. package/dist/cjs/Logo/Ranteater.js +89 -0
  7. package/dist/cjs/icons/Amazon.js +11 -0
  8. package/dist/cjs/icons/Apple.js +11 -0
  9. package/dist/cjs/icons/Aqara.js +11 -0
  10. package/dist/cjs/icons/Cisco.js +11 -0
  11. package/dist/cjs/icons/GLiNet.js +11 -0
  12. package/dist/cjs/icons/GitHub.js +11 -0
  13. package/dist/cjs/icons/GitLab.js +11 -0
  14. package/dist/cjs/icons/Gitea.js +11 -0
  15. package/dist/cjs/icons/Google.js +11 -0
  16. package/dist/cjs/icons/Grok.js +11 -0
  17. package/dist/cjs/icons/GrokKFull.js +11 -0
  18. package/dist/cjs/icons/HomeAssistant.js +11 -0
  19. package/dist/cjs/icons/HomeDepot.js +11 -0
  20. package/dist/cjs/icons/MSI.js +11 -0
  21. package/dist/cjs/icons/Microsoft.js +11 -0
  22. package/dist/cjs/icons/Mqtt.js +11 -0
  23. package/dist/cjs/icons/Netgate.js +11 -0
  24. package/dist/cjs/icons/Netgear.js +11 -0
  25. package/dist/cjs/icons/NewEgg.js +11 -0
  26. package/dist/cjs/icons/OpenAi.js +11 -0
  27. package/dist/cjs/icons/Opensource.js +11 -0
  28. package/dist/cjs/icons/Ranteater.js +11 -0
  29. package/dist/cjs/icons/Reolink.js +11 -0
  30. package/dist/cjs/icons/Samsung.js +11 -0
  31. package/dist/cjs/icons/Shelly.js +11 -0
  32. package/dist/cjs/icons/Ubiquiti.js +11 -0
  33. package/dist/cjs/icons/VsCode.js +11 -0
  34. package/dist/cjs/icons/Wellcube.js +11 -0
  35. package/dist/cjs/icons/Xiaomi.js +11 -0
  36. package/dist/cjs/index.js +37 -208
  37. package/dist/cjs/metadata.js +346 -0
  38. package/dist/cjs/runtime.js +123 -0
  39. package/dist/esm/LoadLogo.js +103 -75
  40. package/dist/esm/Logo/Grok.js +29 -0
  41. package/dist/esm/Logo/GrokKFull.js +37 -0
  42. package/dist/esm/Logo/Ranteater.js +82 -0
  43. package/dist/esm/icons/Amazon.js +7 -0
  44. package/dist/esm/icons/Apple.js +7 -0
  45. package/dist/esm/icons/Aqara.js +7 -0
  46. package/dist/esm/icons/Cisco.js +7 -0
  47. package/dist/esm/icons/GLiNet.js +7 -0
  48. package/dist/esm/icons/GitHub.js +7 -0
  49. package/dist/esm/icons/GitLab.js +7 -0
  50. package/dist/esm/icons/Gitea.js +7 -0
  51. package/dist/esm/icons/Google.js +7 -0
  52. package/dist/esm/icons/Grok.js +7 -0
  53. package/dist/esm/icons/GrokKFull.js +7 -0
  54. package/dist/esm/icons/HomeAssistant.js +7 -0
  55. package/dist/esm/icons/HomeDepot.js +7 -0
  56. package/dist/esm/icons/MSI.js +7 -0
  57. package/dist/esm/icons/Microsoft.js +7 -0
  58. package/dist/esm/icons/Mqtt.js +7 -0
  59. package/dist/esm/icons/Netgate.js +7 -0
  60. package/dist/esm/icons/Netgear.js +7 -0
  61. package/dist/esm/icons/NewEgg.js +7 -0
  62. package/dist/esm/icons/OpenAi.js +7 -0
  63. package/dist/esm/icons/Opensource.js +7 -0
  64. package/dist/esm/icons/Ranteater.js +7 -0
  65. package/dist/esm/icons/Reolink.js +7 -0
  66. package/dist/esm/icons/Samsung.js +7 -0
  67. package/dist/esm/icons/Shelly.js +7 -0
  68. package/dist/esm/icons/Ubiquiti.js +7 -0
  69. package/dist/esm/icons/VsCode.js +7 -0
  70. package/dist/esm/icons/Wellcube.js +7 -0
  71. package/dist/esm/icons/Xiaomi.js +7 -0
  72. package/dist/esm/index.js +32 -27
  73. package/dist/esm/metadata.js +338 -0
  74. package/dist/esm/runtime.js +116 -0
  75. package/dist/index.d.cts +105 -0
  76. package/dist/index.d.mts +91 -0
  77. package/dist/index.d.ts +79 -33
  78. package/dist/metadata.d.cts +11 -0
  79. package/dist/metadata.d.mts +2 -0
  80. package/dist/metadata.d.ts +2 -0
  81. package/dist/metadata.json +324 -0
  82. package/dist/types/icons/Amazon.d.cts +3 -0
  83. package/dist/types/icons/Amazon.d.mts +3 -0
  84. package/dist/types/icons/Amazon.d.ts +3 -0
  85. package/dist/types/icons/Apple.d.cts +3 -0
  86. package/dist/types/icons/Apple.d.mts +3 -0
  87. package/dist/types/icons/Apple.d.ts +3 -0
  88. package/dist/types/icons/Aqara.d.cts +3 -0
  89. package/dist/types/icons/Aqara.d.mts +3 -0
  90. package/dist/types/icons/Aqara.d.ts +3 -0
  91. package/dist/types/icons/Cisco.d.cts +3 -0
  92. package/dist/types/icons/Cisco.d.mts +3 -0
  93. package/dist/types/icons/Cisco.d.ts +3 -0
  94. package/dist/types/icons/GLiNet.d.cts +3 -0
  95. package/dist/types/icons/GLiNet.d.mts +3 -0
  96. package/dist/types/icons/GLiNet.d.ts +3 -0
  97. package/dist/types/icons/GitHub.d.cts +3 -0
  98. package/dist/types/icons/GitHub.d.mts +3 -0
  99. package/dist/types/icons/GitHub.d.ts +3 -0
  100. package/dist/types/icons/GitLab.d.cts +3 -0
  101. package/dist/types/icons/GitLab.d.mts +3 -0
  102. package/dist/types/icons/GitLab.d.ts +3 -0
  103. package/dist/types/icons/Gitea.d.cts +3 -0
  104. package/dist/types/icons/Gitea.d.mts +3 -0
  105. package/dist/types/icons/Gitea.d.ts +3 -0
  106. package/dist/types/icons/Google.d.cts +3 -0
  107. package/dist/types/icons/Google.d.mts +3 -0
  108. package/dist/types/icons/Google.d.ts +3 -0
  109. package/dist/types/icons/Grok.d.cts +3 -0
  110. package/dist/types/icons/Grok.d.mts +3 -0
  111. package/dist/types/icons/Grok.d.ts +3 -0
  112. package/dist/types/icons/GrokKFull.d.cts +3 -0
  113. package/dist/types/icons/GrokKFull.d.mts +3 -0
  114. package/dist/types/icons/GrokKFull.d.ts +3 -0
  115. package/dist/types/icons/HomeAssistant.d.cts +3 -0
  116. package/dist/types/icons/HomeAssistant.d.mts +3 -0
  117. package/dist/types/icons/HomeAssistant.d.ts +3 -0
  118. package/dist/types/icons/HomeDepot.d.cts +3 -0
  119. package/dist/types/icons/HomeDepot.d.mts +3 -0
  120. package/dist/types/icons/HomeDepot.d.ts +3 -0
  121. package/dist/types/icons/MSI.d.cts +3 -0
  122. package/dist/types/icons/MSI.d.mts +3 -0
  123. package/dist/types/icons/MSI.d.ts +3 -0
  124. package/dist/types/icons/Microsoft.d.cts +3 -0
  125. package/dist/types/icons/Microsoft.d.mts +3 -0
  126. package/dist/types/icons/Microsoft.d.ts +3 -0
  127. package/dist/types/icons/Mqtt.d.cts +3 -0
  128. package/dist/types/icons/Mqtt.d.mts +3 -0
  129. package/dist/types/icons/Mqtt.d.ts +3 -0
  130. package/dist/types/icons/Netgate.d.cts +3 -0
  131. package/dist/types/icons/Netgate.d.mts +3 -0
  132. package/dist/types/icons/Netgate.d.ts +3 -0
  133. package/dist/types/icons/Netgear.d.cts +3 -0
  134. package/dist/types/icons/Netgear.d.mts +3 -0
  135. package/dist/types/icons/Netgear.d.ts +3 -0
  136. package/dist/types/icons/NewEgg.d.cts +3 -0
  137. package/dist/types/icons/NewEgg.d.mts +3 -0
  138. package/dist/types/icons/NewEgg.d.ts +3 -0
  139. package/dist/types/icons/OpenAi.d.cts +3 -0
  140. package/dist/types/icons/OpenAi.d.mts +3 -0
  141. package/dist/types/icons/OpenAi.d.ts +3 -0
  142. package/dist/types/icons/Opensource.d.cts +3 -0
  143. package/dist/types/icons/Opensource.d.mts +3 -0
  144. package/dist/types/icons/Opensource.d.ts +3 -0
  145. package/dist/types/icons/Ranteater.d.cts +3 -0
  146. package/dist/types/icons/Ranteater.d.mts +3 -0
  147. package/dist/types/icons/Ranteater.d.ts +3 -0
  148. package/dist/types/icons/Reolink.d.cts +3 -0
  149. package/dist/types/icons/Reolink.d.mts +3 -0
  150. package/dist/types/icons/Reolink.d.ts +3 -0
  151. package/dist/types/icons/Samsung.d.cts +3 -0
  152. package/dist/types/icons/Samsung.d.mts +3 -0
  153. package/dist/types/icons/Samsung.d.ts +3 -0
  154. package/dist/types/icons/Shelly.d.cts +3 -0
  155. package/dist/types/icons/Shelly.d.mts +3 -0
  156. package/dist/types/icons/Shelly.d.ts +3 -0
  157. package/dist/types/icons/Ubiquiti.d.cts +3 -0
  158. package/dist/types/icons/Ubiquiti.d.mts +3 -0
  159. package/dist/types/icons/Ubiquiti.d.ts +3 -0
  160. package/dist/types/icons/VsCode.d.cts +3 -0
  161. package/dist/types/icons/VsCode.d.mts +3 -0
  162. package/dist/types/icons/VsCode.d.ts +3 -0
  163. package/dist/types/icons/Wellcube.d.cts +3 -0
  164. package/dist/types/icons/Wellcube.d.mts +3 -0
  165. package/dist/types/icons/Wellcube.d.ts +3 -0
  166. package/dist/types/icons/Xiaomi.d.cts +3 -0
  167. package/dist/types/icons/Xiaomi.d.mts +3 -0
  168. package/dist/types/icons/Xiaomi.d.ts +3 -0
  169. package/icons.json +353 -0
  170. package/icons.schema.json +97 -0
  171. package/package.json +43 -12
  172. package/dist/types/Logo/Amazon.d.ts +0 -4
  173. package/dist/types/Logo/Apple.d.ts +0 -4
  174. package/dist/types/Logo/Aqara.d.ts +0 -4
  175. package/dist/types/Logo/Cisco.d.ts +0 -4
  176. package/dist/types/Logo/GLiNet.d.ts +0 -4
  177. package/dist/types/Logo/GitHub.d.ts +0 -4
  178. package/dist/types/Logo/GitLab.d.ts +0 -4
  179. package/dist/types/Logo/Gitea.d.ts +0 -4
  180. package/dist/types/Logo/Google.d.ts +0 -4
  181. package/dist/types/Logo/HomeAssistant.d.ts +0 -4
  182. package/dist/types/Logo/HomeDepot.d.ts +0 -4
  183. package/dist/types/Logo/MSI.d.ts +0 -4
  184. package/dist/types/Logo/Microsoft.d.ts +0 -4
  185. package/dist/types/Logo/Mqtt.d.ts +0 -4
  186. package/dist/types/Logo/Netgate.d.ts +0 -4
  187. package/dist/types/Logo/Netgear.d.ts +0 -4
  188. package/dist/types/Logo/NewEgg.d.ts +0 -4
  189. package/dist/types/Logo/OpenAi.d.ts +0 -4
  190. package/dist/types/Logo/Opensource.d.ts +0 -4
  191. package/dist/types/Logo/Reolink.d.ts +0 -4
  192. package/dist/types/Logo/Samsung.d.ts +0 -4
  193. package/dist/types/Logo/Shelly.d.ts +0 -4
  194. package/dist/types/Logo/Ubiquiti.d.ts +0 -4
  195. package/dist/types/Logo/VsCode.d.ts +0 -4
  196. package/dist/types/Logo/Wellcube.d.ts +0 -4
  197. package/dist/types/Logo/Xiaomi.d.ts +0 -4
@@ -0,0 +1,338 @@
1
+ const entries = [
2
+ {
3
+ "exportName": "Amazon",
4
+ "slug": "amazon",
5
+ "title": "Amazon",
6
+ "source": "Legacy svg-logo catalog",
7
+ "sourceUrl": null,
8
+ "guidelinesUrl": null,
9
+ "assetLicense": "trademark",
10
+ "colorMode": "monochrome",
11
+ "variant": "logo"
12
+ },
13
+ {
14
+ "exportName": "Apple",
15
+ "slug": "apple",
16
+ "title": "Apple",
17
+ "source": "Legacy svg-logo catalog",
18
+ "sourceUrl": null,
19
+ "guidelinesUrl": null,
20
+ "assetLicense": "trademark",
21
+ "colorMode": "monochrome",
22
+ "variant": "logo"
23
+ },
24
+ {
25
+ "exportName": "Aqara",
26
+ "slug": "aqara",
27
+ "title": "Aqara",
28
+ "source": "Legacy svg-logo catalog",
29
+ "sourceUrl": null,
30
+ "guidelinesUrl": null,
31
+ "assetLicense": "trademark",
32
+ "colorMode": "monochrome",
33
+ "variant": "logo"
34
+ },
35
+ {
36
+ "exportName": "Cisco",
37
+ "slug": "cisco",
38
+ "title": "Cisco",
39
+ "source": "Legacy svg-logo catalog",
40
+ "sourceUrl": null,
41
+ "guidelinesUrl": null,
42
+ "assetLicense": "trademark",
43
+ "colorMode": "monochrome",
44
+ "variant": "logo"
45
+ },
46
+ {
47
+ "exportName": "Gitea",
48
+ "slug": "gitea",
49
+ "title": "Gitea",
50
+ "source": "Legacy svg-logo catalog",
51
+ "sourceUrl": null,
52
+ "guidelinesUrl": null,
53
+ "assetLicense": "trademark",
54
+ "colorMode": "monochrome",
55
+ "variant": "logo"
56
+ },
57
+ {
58
+ "exportName": "GitHub",
59
+ "slug": "github",
60
+ "title": "GitHub",
61
+ "source": "Legacy svg-logo catalog",
62
+ "sourceUrl": null,
63
+ "guidelinesUrl": null,
64
+ "assetLicense": "trademark",
65
+ "colorMode": "monochrome",
66
+ "variant": "logo"
67
+ },
68
+ {
69
+ "exportName": "GitLab",
70
+ "slug": "gitlab",
71
+ "title": "GitLab",
72
+ "source": "Legacy svg-logo catalog",
73
+ "sourceUrl": null,
74
+ "guidelinesUrl": null,
75
+ "assetLicense": "trademark",
76
+ "colorMode": "monochrome",
77
+ "variant": "logo"
78
+ },
79
+ {
80
+ "exportName": "GLiNet",
81
+ "slug": "glinet",
82
+ "title": "GL.iNet",
83
+ "source": "Legacy svg-logo catalog",
84
+ "sourceUrl": null,
85
+ "guidelinesUrl": null,
86
+ "assetLicense": "trademark",
87
+ "colorMode": "monochrome",
88
+ "variant": "logo"
89
+ },
90
+ {
91
+ "exportName": "Google",
92
+ "slug": "google",
93
+ "title": "Google",
94
+ "source": "Legacy svg-logo catalog",
95
+ "sourceUrl": null,
96
+ "guidelinesUrl": null,
97
+ "assetLicense": "trademark",
98
+ "colorMode": "monochrome",
99
+ "variant": "logo"
100
+ },
101
+ {
102
+ "exportName": "Grok",
103
+ "slug": "grok",
104
+ "title": "Grok",
105
+ "source": "User-supplied Grok SVG asset",
106
+ "sourceUrl": null,
107
+ "guidelinesUrl": null,
108
+ "assetLicense": "trademark",
109
+ "colorMode": "monochrome",
110
+ "variant": "logomark"
111
+ },
112
+ {
113
+ "exportName": "GrokKFull",
114
+ "slug": "grok-full",
115
+ "title": "Grok Full",
116
+ "source": "User-supplied Grok SVG asset",
117
+ "sourceUrl": null,
118
+ "guidelinesUrl": null,
119
+ "assetLicense": "trademark",
120
+ "colorMode": "monochrome",
121
+ "variant": "combination-mark"
122
+ },
123
+ {
124
+ "exportName": "HomeAssistant",
125
+ "slug": "home-assistant",
126
+ "title": "Home Assistant",
127
+ "source": "Legacy svg-logo catalog",
128
+ "sourceUrl": null,
129
+ "guidelinesUrl": null,
130
+ "assetLicense": "trademark",
131
+ "colorMode": "monochrome",
132
+ "variant": "logo"
133
+ },
134
+ {
135
+ "exportName": "HomeDepot",
136
+ "slug": "home-depot",
137
+ "title": "The Home Depot",
138
+ "source": "Legacy svg-logo catalog",
139
+ "sourceUrl": null,
140
+ "guidelinesUrl": null,
141
+ "assetLicense": "trademark",
142
+ "colorMode": "duotone",
143
+ "variant": "logo"
144
+ },
145
+ {
146
+ "exportName": "Microsoft",
147
+ "slug": "microsoft",
148
+ "title": "Microsoft",
149
+ "source": "Legacy svg-logo catalog",
150
+ "sourceUrl": null,
151
+ "guidelinesUrl": null,
152
+ "assetLicense": "trademark",
153
+ "colorMode": "monochrome",
154
+ "variant": "logo"
155
+ },
156
+ {
157
+ "exportName": "Mqtt",
158
+ "slug": "mqtt",
159
+ "title": "MQTT",
160
+ "source": "Legacy svg-logo catalog",
161
+ "sourceUrl": null,
162
+ "guidelinesUrl": null,
163
+ "assetLicense": "trademark",
164
+ "colorMode": "monochrome",
165
+ "variant": "logo"
166
+ },
167
+ {
168
+ "exportName": "MSI",
169
+ "slug": "msi",
170
+ "title": "MSI",
171
+ "source": "Legacy svg-logo catalog",
172
+ "sourceUrl": null,
173
+ "guidelinesUrl": null,
174
+ "assetLicense": "trademark",
175
+ "colorMode": "monochrome",
176
+ "variant": "logo"
177
+ },
178
+ {
179
+ "exportName": "Netgate",
180
+ "slug": "netgate",
181
+ "title": "Netgate",
182
+ "source": "Legacy svg-logo catalog",
183
+ "sourceUrl": null,
184
+ "guidelinesUrl": null,
185
+ "assetLicense": "trademark",
186
+ "colorMode": "duotone",
187
+ "variant": "logo"
188
+ },
189
+ {
190
+ "exportName": "Netgear",
191
+ "slug": "netgear",
192
+ "title": "Netgear",
193
+ "source": "Legacy svg-logo catalog",
194
+ "sourceUrl": null,
195
+ "guidelinesUrl": null,
196
+ "assetLicense": "trademark",
197
+ "colorMode": "monochrome",
198
+ "variant": "logo"
199
+ },
200
+ {
201
+ "exportName": "NewEgg",
202
+ "slug": "newegg",
203
+ "title": "Newegg",
204
+ "source": "Legacy svg-logo catalog",
205
+ "sourceUrl": null,
206
+ "guidelinesUrl": null,
207
+ "assetLicense": "trademark",
208
+ "colorMode": "monochrome",
209
+ "variant": "logo"
210
+ },
211
+ {
212
+ "exportName": "OpenAi",
213
+ "slug": "openai",
214
+ "title": "OpenAI",
215
+ "source": "Legacy svg-logo catalog",
216
+ "sourceUrl": null,
217
+ "guidelinesUrl": null,
218
+ "assetLicense": "trademark",
219
+ "colorMode": "monochrome",
220
+ "variant": "logo"
221
+ },
222
+ {
223
+ "exportName": "Opensource",
224
+ "slug": "open-source",
225
+ "title": "Open Source",
226
+ "source": "Legacy svg-logo catalog",
227
+ "sourceUrl": null,
228
+ "guidelinesUrl": null,
229
+ "assetLicense": "unknown",
230
+ "colorMode": "monochrome",
231
+ "variant": "logo"
232
+ },
233
+ {
234
+ "exportName": "Ranteater",
235
+ "slug": "ranteater",
236
+ "title": "Ranteater",
237
+ "source": "Ranteater project artwork",
238
+ "sourceUrl": null,
239
+ "guidelinesUrl": null,
240
+ "assetLicense": "project-owned",
241
+ "colorMode": "fixed-color",
242
+ "variant": "emblem"
243
+ },
244
+ {
245
+ "exportName": "Reolink",
246
+ "slug": "reolink",
247
+ "title": "Reolink",
248
+ "source": "Legacy svg-logo catalog",
249
+ "sourceUrl": null,
250
+ "guidelinesUrl": null,
251
+ "assetLicense": "trademark",
252
+ "colorMode": "monochrome",
253
+ "variant": "logo"
254
+ },
255
+ {
256
+ "exportName": "Samsung",
257
+ "slug": "samsung",
258
+ "title": "Samsung",
259
+ "source": "Legacy svg-logo catalog",
260
+ "sourceUrl": null,
261
+ "guidelinesUrl": null,
262
+ "assetLicense": "trademark",
263
+ "colorMode": "monochrome",
264
+ "variant": "logo"
265
+ },
266
+ {
267
+ "exportName": "Shelly",
268
+ "slug": "shelly",
269
+ "title": "Shelly",
270
+ "source": "Legacy svg-logo catalog",
271
+ "sourceUrl": null,
272
+ "guidelinesUrl": null,
273
+ "assetLicense": "trademark",
274
+ "colorMode": "monochrome",
275
+ "variant": "logo"
276
+ },
277
+ {
278
+ "exportName": "Ubiquiti",
279
+ "slug": "ubiquiti",
280
+ "title": "Ubiquiti",
281
+ "source": "Legacy svg-logo catalog",
282
+ "sourceUrl": null,
283
+ "guidelinesUrl": null,
284
+ "assetLicense": "trademark",
285
+ "colorMode": "monochrome",
286
+ "variant": "logo"
287
+ },
288
+ {
289
+ "exportName": "VsCode",
290
+ "slug": "visual-studio-code",
291
+ "title": "Visual Studio Code",
292
+ "source": "Legacy svg-logo catalog",
293
+ "sourceUrl": null,
294
+ "guidelinesUrl": null,
295
+ "assetLicense": "trademark",
296
+ "colorMode": "monochrome",
297
+ "variant": "logo"
298
+ },
299
+ {
300
+ "exportName": "Wellcube",
301
+ "slug": "wellcube",
302
+ "title": "WellCube",
303
+ "source": "Legacy svg-logo catalog",
304
+ "sourceUrl": null,
305
+ "guidelinesUrl": null,
306
+ "assetLicense": "trademark",
307
+ "colorMode": "monochrome",
308
+ "variant": "logo"
309
+ },
310
+ {
311
+ "exportName": "Xiaomi",
312
+ "slug": "xiaomi",
313
+ "title": "Xiaomi",
314
+ "source": "Legacy svg-logo catalog",
315
+ "sourceUrl": null,
316
+ "guidelinesUrl": null,
317
+ "assetLicense": "trademark",
318
+ "colorMode": "monochrome",
319
+ "variant": "logo"
320
+ }
321
+ ]
322
+
323
+ const iconMetadata = Object.freeze(Object.fromEntries(
324
+ entries.map((entry) => [entry.exportName, Object.freeze({ ...entry })])
325
+ ))
326
+
327
+ const iconMetadataBySlug = Object.freeze(Object.fromEntries(
328
+ entries.map((entry) => [entry.slug, iconMetadata[entry.exportName]])
329
+ ))
330
+
331
+ const logoNames = Object.freeze(entries.map((entry) => entry.exportName))
332
+ const logoSlugs = Object.freeze(entries.map((entry) => entry.slug))
333
+
334
+ function getIconMetadata(identifier) {
335
+ return iconMetadata[identifier] || iconMetadataBySlug[identifier] || null
336
+ }
337
+
338
+ export { getIconMetadata, iconMetadata, iconMetadataBySlug, logoNames, logoSlugs }
@@ -0,0 +1,116 @@
1
+ var _excluded = ["size", "width", "height", "w", "h", "title", "titleAccess", "fill", "style", "children", "dangerouslySetInnerHTML", "role", "focusable", "aria-hidden", "aria-label", "aria-labelledby", "ownerState"];
2
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
6
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
7
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
16
+ import React from 'react';
17
+ function isLegacyStyle(value) {
18
+ return value !== null && _typeof(value) === 'object' && !Array.isArray(value);
19
+ }
20
+ function isAriaHidden(value) {
21
+ return value === true || value === 'true';
22
+ }
23
+ function isAriaVisible(value) {
24
+ return value === false || value === 'false';
25
+ }
26
+ function extractTitleFromChildren(children) {
27
+ var extractedTitle;
28
+ React.Children.forEach(children, function (child) {
29
+ if (extractedTitle || ! /*#__PURE__*/React.isValidElement(child)) {
30
+ return;
31
+ }
32
+ if (child.type === 'title') {
33
+ var content = React.Children.toArray(child.props.children).join('');
34
+ if (content) {
35
+ extractedTitle = content;
36
+ }
37
+ return;
38
+ }
39
+ if (child.type === React.Fragment) {
40
+ extractedTitle = extractTitleFromChildren(child.props.children);
41
+ }
42
+ });
43
+ return extractedTitle;
44
+ }
45
+ export function createLogoComponent(RawLogo, metadata) {
46
+ var Logo = /*#__PURE__*/React.forwardRef(function LogoComponent() {
47
+ var _ref, _ref2, _ref3, _ref4, _ref5;
48
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
49
+ var ref = arguments.length > 1 ? arguments[1] : undefined;
50
+ var size = props.size,
51
+ width = props.width,
52
+ height = props.height,
53
+ w = props.w,
54
+ h = props.h,
55
+ title = props.title,
56
+ titleAccess = props.titleAccess,
57
+ fill = props.fill,
58
+ style = props.style,
59
+ children = props.children,
60
+ _dangerouslySetInnerHTML = props.dangerouslySetInnerHTML,
61
+ suppliedRole = props.role,
62
+ suppliedFocusable = props.focusable,
63
+ suppliedAriaHidden = props['aria-hidden'],
64
+ suppliedAriaLabel = props['aria-label'],
65
+ suppliedAriaLabelledBy = props['aria-labelledby'],
66
+ _ownerState = props.ownerState,
67
+ svgProps = _objectWithoutProperties(props, _excluded);
68
+ var resolvedWidth = (_ref = (_ref2 = width !== null && width !== void 0 ? width : w) !== null && _ref2 !== void 0 ? _ref2 : size) !== null && _ref !== void 0 ? _ref : 45;
69
+ var resolvedHeight = (_ref3 = (_ref4 = height !== null && height !== void 0 ? height : h) !== null && _ref4 !== void 0 ? _ref4 : size) !== null && _ref3 !== void 0 ? _ref3 : 45;
70
+ var resolvedTitle = (_ref5 = title !== null && title !== void 0 ? title : titleAccess) !== null && _ref5 !== void 0 ? _ref5 : extractTitleFromChildren(children);
71
+ var legacyStyle = isLegacyStyle(fill) ? fill : undefined;
72
+ var resolvedFill = legacyStyle || fill == null ? 'currentColor' : fill;
73
+ var mergedStyle = _objectSpread(_objectSpread({}, legacyStyle || {}), style || {});
74
+ var hasStyle = Object.keys(mergedStyle).length > 0;
75
+ var rawElement = RawLogo({
76
+ w: resolvedWidth,
77
+ h: resolvedHeight,
78
+ fill: {},
79
+ title: ''
80
+ });
81
+ if (! /*#__PURE__*/React.isValidElement(rawElement) || rawElement.type !== 'svg') {
82
+ throw new TypeError("".concat(metadata.exportName, " must return an SVG root element"));
83
+ }
84
+ var iconChildren = React.Children.toArray(rawElement.props.children).filter(function (child) {
85
+ return !(/*#__PURE__*/React.isValidElement(child) && child.type === 'title');
86
+ });
87
+ var explicitlyHidden = isAriaHidden(suppliedAriaHidden);
88
+ var meaningfulRole = suppliedRole && suppliedRole !== 'presentation' && suppliedRole !== 'none';
89
+ var semantic = !explicitlyHidden && Boolean(resolvedTitle || suppliedAriaLabel || suppliedAriaLabelledBy || meaningfulRole || isAriaVisible(suppliedAriaHidden));
90
+ var titleElement = semantic && resolvedTitle ? /*#__PURE__*/React.createElement('title', {
91
+ key: '__svg_logo_title'
92
+ }, resolvedTitle) : null;
93
+ var rootProps = _objectSpread(_objectSpread(_objectSpread({}, rawElement.props), svgProps), {}, {
94
+ ref: ref,
95
+ width: resolvedWidth,
96
+ height: resolvedHeight,
97
+ fill: resolvedFill,
98
+ style: hasStyle ? mergedStyle : undefined,
99
+ role: suppliedRole !== null && suppliedRole !== void 0 ? suppliedRole : semantic ? 'img' : undefined,
100
+ focusable: suppliedFocusable !== null && suppliedFocusable !== void 0 ? suppliedFocusable : false,
101
+ 'aria-hidden': suppliedAriaHidden !== null && suppliedAriaHidden !== void 0 ? suppliedAriaHidden : semantic ? undefined : true,
102
+ 'aria-label': suppliedAriaLabel !== null && suppliedAriaLabel !== void 0 ? suppliedAriaLabel : semantic && resolvedTitle && !suppliedAriaLabelledBy ? resolvedTitle : undefined,
103
+ 'aria-labelledby': suppliedAriaLabelledBy
104
+ });
105
+ delete rootProps.children;
106
+ return /*#__PURE__*/React.cloneElement.apply(React, [rawElement, rootProps, titleElement].concat(_toConsumableArray(iconChildren)));
107
+ });
108
+ Logo.displayName = metadata.exportName;
109
+ Object.defineProperty(Logo, 'metadata', {
110
+ configurable: false,
111
+ enumerable: true,
112
+ writable: false,
113
+ value: metadata
114
+ });
115
+ return Logo;
116
+ }
@@ -0,0 +1,105 @@
1
+ import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
2
+
3
+ type IconName = "Amazon" | "Apple" | "Aqara" | "Cisco" | "Gitea" | "GitHub" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "OpenAi" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "Xiaomi"
4
+ type IconSlug = "amazon" | "apple" | "aqara" | "cisco" | "gitea" | "github" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "openai" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xiaomi"
5
+ type IconIdentifier = IconName | IconSlug
6
+ type IconColorMode = 'monochrome' | 'duotone' | 'multicolor' | 'fixed-color'
7
+ type IconVariant = 'logo' | 'logomark' | 'wordmark' | 'combination-mark' | 'emblem'
8
+ type IconAssetLicense = 'trademark' | 'project-owned' | 'open-source' | 'unknown'
9
+
10
+ interface IconMetadata {
11
+ readonly exportName: IconName
12
+ readonly slug: IconSlug
13
+ readonly title: string
14
+ readonly source: string
15
+ readonly sourceUrl: string | null
16
+ readonly guidelinesUrl: string | null
17
+ readonly assetLicense: IconAssetLicense
18
+ readonly colorMode: IconColorMode
19
+ readonly variant: IconVariant
20
+ }
21
+
22
+ type LogoStyle = CSSProperties & {
23
+ [customProperty: `--${string}`]: string | number | undefined
24
+ }
25
+
26
+ interface LogoProps extends Omit<
27
+ SVGProps<SVGSVGElement>,
28
+ 'children' | 'dangerouslySetInnerHTML' | 'fill' | 'height' | 'style' | 'title' | 'width'
29
+ > {
30
+ size?: number | string
31
+ width?: number | string
32
+ height?: number | string
33
+ /** @deprecated Use width or size. */
34
+ w?: number | string
35
+ /** @deprecated Use height or size. */
36
+ h?: number | string
37
+ /** Standard SVG fill, or the deprecated style-object compatibility form. */
38
+ fill?: SVGProps<SVGSVGElement>['fill'] | CSSProperties
39
+ style?: LogoStyle
40
+ /** Adds an SVG title and exposes the icon as semantic content. */
41
+ title?: string
42
+ /** Compatibility alias for MUI SvgIcon titleAccess. */
43
+ titleAccess?: string
44
+ }
45
+
46
+ type LogoComponent = ForwardRefExoticComponent<LogoProps & RefAttributes<SVGSVGElement>> & {
47
+ readonly metadata: Readonly<IconMetadata>
48
+ }
49
+
50
+ interface LoadLogoProps extends LogoProps {
51
+ iconPath: IconIdentifier
52
+ }
53
+
54
+ type LoadLogoComponent = ForwardRefExoticComponent<LoadLogoProps & RefAttributes<SVGSVGElement>>
55
+
56
+ declare const logoNames: readonly IconName[]
57
+ declare const logoSlugs: readonly IconSlug[]
58
+ declare const iconMetadata: Readonly<Record<IconName, Readonly<IconMetadata>>>
59
+ declare const iconMetadataBySlug: Readonly<Record<IconSlug, Readonly<IconMetadata>>>
60
+ declare function getIconMetadata(identifier: IconIdentifier | string): Readonly<IconMetadata> | null
61
+
62
+ declare var LoadLogo: LoadLogoComponent & {
63
+ readonly default: LoadLogoComponent
64
+ readonly LoadLogo: LoadLogoComponent
65
+ readonly getIconMetadata: typeof getIconMetadata
66
+ readonly iconMetadata: typeof iconMetadata
67
+ readonly iconMetadataBySlug: typeof iconMetadataBySlug
68
+ readonly logoNames: typeof logoNames
69
+ readonly logoSlugs: typeof logoSlugs
70
+ readonly Amazon: LogoComponent
71
+ readonly Apple: LogoComponent
72
+ readonly Aqara: LogoComponent
73
+ readonly Cisco: LogoComponent
74
+ readonly Gitea: LogoComponent
75
+ readonly GitHub: LogoComponent
76
+ readonly GitLab: LogoComponent
77
+ readonly GLiNet: LogoComponent
78
+ readonly Google: LogoComponent
79
+ readonly Grok: LogoComponent
80
+ readonly GrokKFull: LogoComponent
81
+ readonly HomeAssistant: LogoComponent
82
+ readonly HomeDepot: LogoComponent
83
+ readonly Microsoft: LogoComponent
84
+ readonly Mqtt: LogoComponent
85
+ readonly MSI: LogoComponent
86
+ readonly Netgate: LogoComponent
87
+ readonly Netgear: LogoComponent
88
+ readonly NewEgg: LogoComponent
89
+ readonly OpenAi: LogoComponent
90
+ readonly Opensource: LogoComponent
91
+ readonly Ranteater: LogoComponent
92
+ readonly Reolink: LogoComponent
93
+ readonly Samsung: LogoComponent
94
+ readonly Shelly: LogoComponent
95
+ readonly Ubiquiti: LogoComponent
96
+ readonly VsCode: LogoComponent
97
+ readonly Wellcube: LogoComponent
98
+ readonly Xiaomi: LogoComponent
99
+ }
100
+
101
+ declare namespace LoadLogo {
102
+ export { IconAssetLicense, IconColorMode, IconIdentifier, IconMetadata, IconName, IconSlug, IconVariant, LoadLogoComponent, LoadLogoProps, LogoComponent, LogoProps, LogoStyle }
103
+ }
104
+
105
+ export = LoadLogo
@@ -0,0 +1,91 @@
1
+ import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
2
+
3
+ export type IconName = "Amazon" | "Apple" | "Aqara" | "Cisco" | "Gitea" | "GitHub" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "OpenAi" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "Xiaomi"
4
+ export type IconSlug = "amazon" | "apple" | "aqara" | "cisco" | "gitea" | "github" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "openai" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xiaomi"
5
+ export type IconIdentifier = IconName | IconSlug
6
+ export type IconColorMode = 'monochrome' | 'duotone' | 'multicolor' | 'fixed-color'
7
+ export type IconVariant = 'logo' | 'logomark' | 'wordmark' | 'combination-mark' | 'emblem'
8
+ export type IconAssetLicense = 'trademark' | 'project-owned' | 'open-source' | 'unknown'
9
+
10
+ export interface IconMetadata {
11
+ readonly exportName: IconName
12
+ readonly slug: IconSlug
13
+ readonly title: string
14
+ readonly source: string
15
+ readonly sourceUrl: string | null
16
+ readonly guidelinesUrl: string | null
17
+ readonly assetLicense: IconAssetLicense
18
+ readonly colorMode: IconColorMode
19
+ readonly variant: IconVariant
20
+ }
21
+
22
+ export type LogoStyle = CSSProperties & {
23
+ [customProperty: `--${string}`]: string | number | undefined
24
+ }
25
+
26
+ export interface LogoProps extends Omit<
27
+ SVGProps<SVGSVGElement>,
28
+ 'children' | 'dangerouslySetInnerHTML' | 'fill' | 'height' | 'style' | 'title' | 'width'
29
+ > {
30
+ size?: number | string
31
+ width?: number | string
32
+ height?: number | string
33
+ /** @deprecated Use width or size. */
34
+ w?: number | string
35
+ /** @deprecated Use height or size. */
36
+ h?: number | string
37
+ /** Standard SVG fill, or the deprecated style-object compatibility form. */
38
+ fill?: SVGProps<SVGSVGElement>['fill'] | CSSProperties
39
+ style?: LogoStyle
40
+ /** Adds an SVG title and exposes the icon as semantic content. */
41
+ title?: string
42
+ /** Compatibility alias for MUI SvgIcon titleAccess. */
43
+ titleAccess?: string
44
+ }
45
+
46
+ export type LogoComponent = ForwardRefExoticComponent<LogoProps & RefAttributes<SVGSVGElement>> & {
47
+ readonly metadata: Readonly<IconMetadata>
48
+ }
49
+
50
+ export interface LoadLogoProps extends LogoProps {
51
+ iconPath: IconIdentifier
52
+ }
53
+
54
+ export type LoadLogoComponent = ForwardRefExoticComponent<LoadLogoProps & RefAttributes<SVGSVGElement>>
55
+
56
+ export declare const logoNames: readonly IconName[]
57
+ export declare const logoSlugs: readonly IconSlug[]
58
+ export declare const iconMetadata: Readonly<Record<IconName, Readonly<IconMetadata>>>
59
+ export declare const iconMetadataBySlug: Readonly<Record<IconSlug, Readonly<IconMetadata>>>
60
+ export declare function getIconMetadata(identifier: IconIdentifier | string): Readonly<IconMetadata> | null
61
+ export declare const LoadLogo: LoadLogoComponent
62
+ export declare const Amazon: LogoComponent
63
+ export declare const Apple: LogoComponent
64
+ export declare const Aqara: LogoComponent
65
+ export declare const Cisco: LogoComponent
66
+ export declare const Gitea: LogoComponent
67
+ export declare const GitHub: LogoComponent
68
+ export declare const GitLab: LogoComponent
69
+ export declare const GLiNet: LogoComponent
70
+ export declare const Google: LogoComponent
71
+ export declare const Grok: LogoComponent
72
+ export declare const GrokKFull: LogoComponent
73
+ export declare const HomeAssistant: LogoComponent
74
+ export declare const HomeDepot: LogoComponent
75
+ export declare const Microsoft: LogoComponent
76
+ export declare const Mqtt: LogoComponent
77
+ export declare const MSI: LogoComponent
78
+ export declare const Netgate: LogoComponent
79
+ export declare const Netgear: LogoComponent
80
+ export declare const NewEgg: LogoComponent
81
+ export declare const OpenAi: LogoComponent
82
+ export declare const Opensource: LogoComponent
83
+ export declare const Ranteater: LogoComponent
84
+ export declare const Reolink: LogoComponent
85
+ export declare const Samsung: LogoComponent
86
+ export declare const Shelly: LogoComponent
87
+ export declare const Ubiquiti: LogoComponent
88
+ export declare const VsCode: LogoComponent
89
+ export declare const Wellcube: LogoComponent
90
+ export declare const Xiaomi: LogoComponent
91
+ export default LoadLogo