@techbykyle/svg-logo 0.1.0 → 0.2.6
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.
- package/BRAND_ASSETS.md +43 -0
- package/README.md +158 -20
- package/dist/cjs/LoadLogo.js +129 -81
- package/dist/cjs/Logo/Anthropic.js +36 -0
- package/dist/cjs/Logo/ClaudeCode.js +35 -0
- package/dist/cjs/Logo/ClaudeCodeMonochrome.js +34 -0
- package/dist/cjs/Logo/GitHubCopilot.js +36 -0
- package/dist/cjs/Logo/Grok.js +36 -0
- package/dist/cjs/Logo/GrokKFull.js +44 -0
- package/dist/cjs/Logo/OpenCode.js +44 -0
- package/dist/cjs/Logo/OpenCodeMonochrome.js +38 -0
- package/dist/cjs/Logo/Ranteater.js +89 -0
- package/dist/cjs/Logo/XAI.js +61 -0
- package/dist/cjs/Logo/XAISquareTransparent.js +57 -0
- package/dist/cjs/icons/Amazon.js +11 -0
- package/dist/cjs/icons/Anthropic.js +11 -0
- package/dist/cjs/icons/Apple.js +11 -0
- package/dist/cjs/icons/Aqara.js +11 -0
- package/dist/cjs/icons/Cisco.js +11 -0
- package/dist/cjs/icons/ClaudeCode.js +11 -0
- package/dist/cjs/icons/ClaudeCodeMonochrome.js +11 -0
- package/dist/cjs/icons/GLiNet.js +11 -0
- package/dist/cjs/icons/GitHub.js +11 -0
- package/dist/cjs/icons/GitHubCopilot.js +11 -0
- package/dist/cjs/icons/GitLab.js +11 -0
- package/dist/cjs/icons/Gitea.js +11 -0
- package/dist/cjs/icons/Google.js +11 -0
- package/dist/cjs/icons/Grok.js +11 -0
- package/dist/cjs/icons/GrokKFull.js +11 -0
- package/dist/cjs/icons/HomeAssistant.js +11 -0
- package/dist/cjs/icons/HomeDepot.js +11 -0
- package/dist/cjs/icons/MSI.js +11 -0
- package/dist/cjs/icons/Microsoft.js +11 -0
- package/dist/cjs/icons/Mqtt.js +11 -0
- package/dist/cjs/icons/Netgate.js +11 -0
- package/dist/cjs/icons/Netgear.js +11 -0
- package/dist/cjs/icons/NewEgg.js +11 -0
- package/dist/cjs/icons/OpenAi.js +11 -0
- package/dist/cjs/icons/OpenCode.js +11 -0
- package/dist/cjs/icons/OpenCodeMonochrome.js +11 -0
- package/dist/cjs/icons/Opensource.js +11 -0
- package/dist/cjs/icons/Ranteater.js +11 -0
- package/dist/cjs/icons/Reolink.js +11 -0
- package/dist/cjs/icons/Samsung.js +11 -0
- package/dist/cjs/icons/Shelly.js +11 -0
- package/dist/cjs/icons/Ubiquiti.js +11 -0
- package/dist/cjs/icons/VsCode.js +11 -0
- package/dist/cjs/icons/Wellcube.js +11 -0
- package/dist/cjs/icons/XAI.js +11 -0
- package/dist/cjs/icons/XAISquareTransparent.js +11 -0
- package/dist/cjs/icons/Xiaomi.js +11 -0
- package/dist/cjs/index.js +45 -208
- package/dist/cjs/metadata.js +434 -0
- package/dist/cjs/runtime.js +123 -0
- package/dist/esm/LoadLogo.js +127 -75
- package/dist/esm/Logo/Anthropic.js +29 -0
- package/dist/esm/Logo/ClaudeCode.js +28 -0
- package/dist/esm/Logo/ClaudeCodeMonochrome.js +27 -0
- package/dist/esm/Logo/GitHubCopilot.js +29 -0
- package/dist/esm/Logo/Grok.js +29 -0
- package/dist/esm/Logo/GrokKFull.js +37 -0
- package/dist/esm/Logo/OpenCode.js +37 -0
- package/dist/esm/Logo/OpenCodeMonochrome.js +31 -0
- package/dist/esm/Logo/Ranteater.js +82 -0
- package/dist/esm/Logo/XAI.js +54 -0
- package/dist/esm/Logo/XAISquareTransparent.js +50 -0
- package/dist/esm/icons/Amazon.js +7 -0
- package/dist/esm/icons/Anthropic.js +7 -0
- package/dist/esm/icons/Apple.js +7 -0
- package/dist/esm/icons/Aqara.js +7 -0
- package/dist/esm/icons/Cisco.js +7 -0
- package/dist/esm/icons/ClaudeCode.js +7 -0
- package/dist/esm/icons/ClaudeCodeMonochrome.js +7 -0
- package/dist/esm/icons/GLiNet.js +7 -0
- package/dist/esm/icons/GitHub.js +7 -0
- package/dist/esm/icons/GitHubCopilot.js +7 -0
- package/dist/esm/icons/GitLab.js +7 -0
- package/dist/esm/icons/Gitea.js +7 -0
- package/dist/esm/icons/Google.js +7 -0
- package/dist/esm/icons/Grok.js +7 -0
- package/dist/esm/icons/GrokKFull.js +7 -0
- package/dist/esm/icons/HomeAssistant.js +7 -0
- package/dist/esm/icons/HomeDepot.js +7 -0
- package/dist/esm/icons/MSI.js +7 -0
- package/dist/esm/icons/Microsoft.js +7 -0
- package/dist/esm/icons/Mqtt.js +7 -0
- package/dist/esm/icons/Netgate.js +7 -0
- package/dist/esm/icons/Netgear.js +7 -0
- package/dist/esm/icons/NewEgg.js +7 -0
- package/dist/esm/icons/OpenAi.js +7 -0
- package/dist/esm/icons/OpenCode.js +7 -0
- package/dist/esm/icons/OpenCodeMonochrome.js +7 -0
- package/dist/esm/icons/Opensource.js +7 -0
- package/dist/esm/icons/Ranteater.js +7 -0
- package/dist/esm/icons/Reolink.js +7 -0
- package/dist/esm/icons/Samsung.js +7 -0
- package/dist/esm/icons/Shelly.js +7 -0
- package/dist/esm/icons/Ubiquiti.js +7 -0
- package/dist/esm/icons/VsCode.js +7 -0
- package/dist/esm/icons/Wellcube.js +7 -0
- package/dist/esm/icons/XAI.js +7 -0
- package/dist/esm/icons/XAISquareTransparent.js +7 -0
- package/dist/esm/icons/Xiaomi.js +7 -0
- package/dist/esm/index.js +40 -27
- package/dist/esm/metadata.js +426 -0
- package/dist/esm/runtime.js +116 -0
- package/dist/index.d.cts +113 -0
- package/dist/index.d.mts +99 -0
- package/dist/index.d.ts +87 -33
- package/dist/metadata.d.cts +11 -0
- package/dist/metadata.d.mts +2 -0
- package/dist/metadata.d.ts +2 -0
- package/dist/metadata.json +412 -0
- package/dist/types/icons/Amazon.d.cts +3 -0
- package/dist/types/icons/Amazon.d.mts +3 -0
- package/dist/types/icons/Amazon.d.ts +3 -0
- package/dist/types/icons/Anthropic.d.cts +3 -0
- package/dist/types/icons/Anthropic.d.mts +3 -0
- package/dist/types/icons/Anthropic.d.ts +3 -0
- package/dist/types/icons/Apple.d.cts +3 -0
- package/dist/types/icons/Apple.d.mts +3 -0
- package/dist/types/icons/Apple.d.ts +3 -0
- package/dist/types/icons/Aqara.d.cts +3 -0
- package/dist/types/icons/Aqara.d.mts +3 -0
- package/dist/types/icons/Aqara.d.ts +3 -0
- package/dist/types/icons/Cisco.d.cts +3 -0
- package/dist/types/icons/Cisco.d.mts +3 -0
- package/dist/types/icons/Cisco.d.ts +3 -0
- package/dist/types/icons/ClaudeCode.d.cts +3 -0
- package/dist/types/icons/ClaudeCode.d.mts +3 -0
- package/dist/types/icons/ClaudeCode.d.ts +3 -0
- package/dist/types/icons/ClaudeCodeMonochrome.d.cts +3 -0
- package/dist/types/icons/ClaudeCodeMonochrome.d.mts +3 -0
- package/dist/types/icons/ClaudeCodeMonochrome.d.ts +3 -0
- package/dist/types/icons/GLiNet.d.cts +3 -0
- package/dist/types/icons/GLiNet.d.mts +3 -0
- package/dist/types/icons/GLiNet.d.ts +3 -0
- package/dist/types/icons/GitHub.d.cts +3 -0
- package/dist/types/icons/GitHub.d.mts +3 -0
- package/dist/types/icons/GitHub.d.ts +3 -0
- package/dist/types/icons/GitHubCopilot.d.cts +3 -0
- package/dist/types/icons/GitHubCopilot.d.mts +3 -0
- package/dist/types/icons/GitHubCopilot.d.ts +3 -0
- package/dist/types/icons/GitLab.d.cts +3 -0
- package/dist/types/icons/GitLab.d.mts +3 -0
- package/dist/types/icons/GitLab.d.ts +3 -0
- package/dist/types/icons/Gitea.d.cts +3 -0
- package/dist/types/icons/Gitea.d.mts +3 -0
- package/dist/types/icons/Gitea.d.ts +3 -0
- package/dist/types/icons/Google.d.cts +3 -0
- package/dist/types/icons/Google.d.mts +3 -0
- package/dist/types/icons/Google.d.ts +3 -0
- package/dist/types/icons/Grok.d.cts +3 -0
- package/dist/types/icons/Grok.d.mts +3 -0
- package/dist/types/icons/Grok.d.ts +3 -0
- package/dist/types/icons/GrokKFull.d.cts +3 -0
- package/dist/types/icons/GrokKFull.d.mts +3 -0
- package/dist/types/icons/GrokKFull.d.ts +3 -0
- package/dist/types/icons/HomeAssistant.d.cts +3 -0
- package/dist/types/icons/HomeAssistant.d.mts +3 -0
- package/dist/types/icons/HomeAssistant.d.ts +3 -0
- package/dist/types/icons/HomeDepot.d.cts +3 -0
- package/dist/types/icons/HomeDepot.d.mts +3 -0
- package/dist/types/icons/HomeDepot.d.ts +3 -0
- package/dist/types/icons/MSI.d.cts +3 -0
- package/dist/types/icons/MSI.d.mts +3 -0
- package/dist/types/icons/MSI.d.ts +3 -0
- package/dist/types/icons/Microsoft.d.cts +3 -0
- package/dist/types/icons/Microsoft.d.mts +3 -0
- package/dist/types/icons/Microsoft.d.ts +3 -0
- package/dist/types/icons/Mqtt.d.cts +3 -0
- package/dist/types/icons/Mqtt.d.mts +3 -0
- package/dist/types/icons/Mqtt.d.ts +3 -0
- package/dist/types/icons/Netgate.d.cts +3 -0
- package/dist/types/icons/Netgate.d.mts +3 -0
- package/dist/types/icons/Netgate.d.ts +3 -0
- package/dist/types/icons/Netgear.d.cts +3 -0
- package/dist/types/icons/Netgear.d.mts +3 -0
- package/dist/types/icons/Netgear.d.ts +3 -0
- package/dist/types/icons/NewEgg.d.cts +3 -0
- package/dist/types/icons/NewEgg.d.mts +3 -0
- package/dist/types/icons/NewEgg.d.ts +3 -0
- package/dist/types/icons/OpenAi.d.cts +3 -0
- package/dist/types/icons/OpenAi.d.mts +3 -0
- package/dist/types/icons/OpenAi.d.ts +3 -0
- package/dist/types/icons/OpenCode.d.cts +3 -0
- package/dist/types/icons/OpenCode.d.mts +3 -0
- package/dist/types/icons/OpenCode.d.ts +3 -0
- package/dist/types/icons/OpenCodeMonochrome.d.cts +3 -0
- package/dist/types/icons/OpenCodeMonochrome.d.mts +3 -0
- package/dist/types/icons/OpenCodeMonochrome.d.ts +3 -0
- package/dist/types/icons/Opensource.d.cts +3 -0
- package/dist/types/icons/Opensource.d.mts +3 -0
- package/dist/types/icons/Opensource.d.ts +3 -0
- package/dist/types/icons/Ranteater.d.cts +3 -0
- package/dist/types/icons/Ranteater.d.mts +3 -0
- package/dist/types/icons/Ranteater.d.ts +3 -0
- package/dist/types/icons/Reolink.d.cts +3 -0
- package/dist/types/icons/Reolink.d.mts +3 -0
- package/dist/types/icons/Reolink.d.ts +3 -0
- package/dist/types/icons/Samsung.d.cts +3 -0
- package/dist/types/icons/Samsung.d.mts +3 -0
- package/dist/types/icons/Samsung.d.ts +3 -0
- package/dist/types/icons/Shelly.d.cts +3 -0
- package/dist/types/icons/Shelly.d.mts +3 -0
- package/dist/types/icons/Shelly.d.ts +3 -0
- package/dist/types/icons/Ubiquiti.d.cts +3 -0
- package/dist/types/icons/Ubiquiti.d.mts +3 -0
- package/dist/types/icons/Ubiquiti.d.ts +3 -0
- package/dist/types/icons/VsCode.d.cts +3 -0
- package/dist/types/icons/VsCode.d.mts +3 -0
- package/dist/types/icons/VsCode.d.ts +3 -0
- package/dist/types/icons/Wellcube.d.cts +3 -0
- package/dist/types/icons/Wellcube.d.mts +3 -0
- package/dist/types/icons/Wellcube.d.ts +3 -0
- package/dist/types/icons/XAI.d.cts +3 -0
- package/dist/types/icons/XAI.d.mts +3 -0
- package/dist/types/icons/XAI.d.ts +3 -0
- package/dist/types/icons/XAISquareTransparent.d.cts +3 -0
- package/dist/types/icons/XAISquareTransparent.d.mts +3 -0
- package/dist/types/icons/XAISquareTransparent.d.ts +3 -0
- package/dist/types/icons/Xiaomi.d.cts +3 -0
- package/dist/types/icons/Xiaomi.d.mts +3 -0
- package/dist/types/icons/Xiaomi.d.ts +3 -0
- package/icons.json +449 -0
- package/icons.schema.json +97 -0
- package/package.json +44 -13
- package/dist/types/Logo/Amazon.d.ts +0 -4
- package/dist/types/Logo/Apple.d.ts +0 -4
- package/dist/types/Logo/Aqara.d.ts +0 -4
- package/dist/types/Logo/Cisco.d.ts +0 -4
- package/dist/types/Logo/GLiNet.d.ts +0 -4
- package/dist/types/Logo/GitHub.d.ts +0 -4
- package/dist/types/Logo/GitLab.d.ts +0 -4
- package/dist/types/Logo/Gitea.d.ts +0 -4
- package/dist/types/Logo/Google.d.ts +0 -4
- package/dist/types/Logo/HomeAssistant.d.ts +0 -4
- package/dist/types/Logo/HomeDepot.d.ts +0 -4
- package/dist/types/Logo/MSI.d.ts +0 -4
- package/dist/types/Logo/Microsoft.d.ts +0 -4
- package/dist/types/Logo/Mqtt.d.ts +0 -4
- package/dist/types/Logo/Netgate.d.ts +0 -4
- package/dist/types/Logo/Netgear.d.ts +0 -4
- package/dist/types/Logo/NewEgg.d.ts +0 -4
- package/dist/types/Logo/OpenAi.d.ts +0 -4
- package/dist/types/Logo/Opensource.d.ts +0 -4
- package/dist/types/Logo/Reolink.d.ts +0 -4
- package/dist/types/Logo/Samsung.d.ts +0 -4
- package/dist/types/Logo/Shelly.d.ts +0 -4
- package/dist/types/Logo/Ubiquiti.d.ts +0 -4
- package/dist/types/Logo/VsCode.d.ts +0 -4
- package/dist/types/Logo/Wellcube.d.ts +0 -4
- package/dist/types/Logo/Xiaomi.d.ts +0 -4
|
@@ -0,0 +1,426 @@
|
|
|
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": "Anthropic",
|
|
15
|
+
"slug": "anthropic",
|
|
16
|
+
"title": "Anthropic",
|
|
17
|
+
"source": "Anthropic press kit — Anthropic symbol (Slate)",
|
|
18
|
+
"sourceUrl": "https://www.anthropic.com/news",
|
|
19
|
+
"guidelinesUrl": null,
|
|
20
|
+
"assetLicense": "trademark",
|
|
21
|
+
"colorMode": "monochrome",
|
|
22
|
+
"variant": "logomark"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"exportName": "Apple",
|
|
26
|
+
"slug": "apple",
|
|
27
|
+
"title": "Apple",
|
|
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": "Aqara",
|
|
37
|
+
"slug": "aqara",
|
|
38
|
+
"title": "Aqara",
|
|
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": "Cisco",
|
|
48
|
+
"slug": "cisco",
|
|
49
|
+
"title": "Cisco",
|
|
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": "ClaudeCode",
|
|
59
|
+
"slug": "claude-code",
|
|
60
|
+
"title": "Claude Code",
|
|
61
|
+
"source": "Anthropic press kit — Claude Spark (Clay)",
|
|
62
|
+
"sourceUrl": "https://www.anthropic.com/news",
|
|
63
|
+
"guidelinesUrl": null,
|
|
64
|
+
"assetLicense": "trademark",
|
|
65
|
+
"colorMode": "fixed-color",
|
|
66
|
+
"variant": "logomark"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"exportName": "ClaudeCodeMonochrome",
|
|
70
|
+
"slug": "claude-code-monochrome",
|
|
71
|
+
"title": "Claude Code",
|
|
72
|
+
"source": "Monochrome UI variant derived from Anthropic press kit — Claude Spark (Clay)",
|
|
73
|
+
"sourceUrl": "https://www.anthropic.com/news",
|
|
74
|
+
"guidelinesUrl": null,
|
|
75
|
+
"assetLicense": "trademark",
|
|
76
|
+
"colorMode": "monochrome",
|
|
77
|
+
"variant": "logomark"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"exportName": "Gitea",
|
|
81
|
+
"slug": "gitea",
|
|
82
|
+
"title": "Gitea",
|
|
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": "GitHub",
|
|
92
|
+
"slug": "github",
|
|
93
|
+
"title": "GitHub",
|
|
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": "GitHubCopilot",
|
|
103
|
+
"slug": "github-copilot",
|
|
104
|
+
"title": "GitHub Copilot",
|
|
105
|
+
"source": "GitHub Primer Octicons — copilot-24.svg",
|
|
106
|
+
"sourceUrl": "https://github.com/primer/octicons/blob/0e21a4c2d8449102f10e533d241f04797af0914c/icons/copilot-24.svg",
|
|
107
|
+
"guidelinesUrl": "https://brand.github.com/brand-identity/copilot",
|
|
108
|
+
"assetLicense": "trademark",
|
|
109
|
+
"colorMode": "monochrome",
|
|
110
|
+
"variant": "logomark"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"exportName": "GitLab",
|
|
114
|
+
"slug": "gitlab",
|
|
115
|
+
"title": "GitLab",
|
|
116
|
+
"source": "Legacy svg-logo catalog",
|
|
117
|
+
"sourceUrl": null,
|
|
118
|
+
"guidelinesUrl": null,
|
|
119
|
+
"assetLicense": "trademark",
|
|
120
|
+
"colorMode": "monochrome",
|
|
121
|
+
"variant": "logo"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"exportName": "GLiNet",
|
|
125
|
+
"slug": "glinet",
|
|
126
|
+
"title": "GL.iNet",
|
|
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": "Google",
|
|
136
|
+
"slug": "google",
|
|
137
|
+
"title": "Google",
|
|
138
|
+
"source": "Legacy svg-logo catalog",
|
|
139
|
+
"sourceUrl": null,
|
|
140
|
+
"guidelinesUrl": null,
|
|
141
|
+
"assetLicense": "trademark",
|
|
142
|
+
"colorMode": "monochrome",
|
|
143
|
+
"variant": "logo"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"exportName": "Grok",
|
|
147
|
+
"slug": "grok",
|
|
148
|
+
"title": "Grok",
|
|
149
|
+
"source": "User-supplied Grok SVG asset",
|
|
150
|
+
"sourceUrl": null,
|
|
151
|
+
"guidelinesUrl": null,
|
|
152
|
+
"assetLicense": "trademark",
|
|
153
|
+
"colorMode": "monochrome",
|
|
154
|
+
"variant": "logomark"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"exportName": "GrokKFull",
|
|
158
|
+
"slug": "grok-full",
|
|
159
|
+
"title": "Grok Full",
|
|
160
|
+
"source": "User-supplied Grok SVG asset",
|
|
161
|
+
"sourceUrl": null,
|
|
162
|
+
"guidelinesUrl": null,
|
|
163
|
+
"assetLicense": "trademark",
|
|
164
|
+
"colorMode": "monochrome",
|
|
165
|
+
"variant": "combination-mark"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"exportName": "HomeAssistant",
|
|
169
|
+
"slug": "home-assistant",
|
|
170
|
+
"title": "Home Assistant",
|
|
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": "HomeDepot",
|
|
180
|
+
"slug": "home-depot",
|
|
181
|
+
"title": "The Home Depot",
|
|
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": "Microsoft",
|
|
191
|
+
"slug": "microsoft",
|
|
192
|
+
"title": "Microsoft",
|
|
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": "Mqtt",
|
|
202
|
+
"slug": "mqtt",
|
|
203
|
+
"title": "MQTT",
|
|
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": "MSI",
|
|
213
|
+
"slug": "msi",
|
|
214
|
+
"title": "MSI",
|
|
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": "Netgate",
|
|
224
|
+
"slug": "netgate",
|
|
225
|
+
"title": "Netgate",
|
|
226
|
+
"source": "Legacy svg-logo catalog",
|
|
227
|
+
"sourceUrl": null,
|
|
228
|
+
"guidelinesUrl": null,
|
|
229
|
+
"assetLicense": "trademark",
|
|
230
|
+
"colorMode": "duotone",
|
|
231
|
+
"variant": "logo"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"exportName": "Netgear",
|
|
235
|
+
"slug": "netgear",
|
|
236
|
+
"title": "Netgear",
|
|
237
|
+
"source": "Legacy svg-logo catalog",
|
|
238
|
+
"sourceUrl": null,
|
|
239
|
+
"guidelinesUrl": null,
|
|
240
|
+
"assetLicense": "trademark",
|
|
241
|
+
"colorMode": "monochrome",
|
|
242
|
+
"variant": "logo"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"exportName": "NewEgg",
|
|
246
|
+
"slug": "newegg",
|
|
247
|
+
"title": "Newegg",
|
|
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": "OpenAi",
|
|
257
|
+
"slug": "openai",
|
|
258
|
+
"title": "OpenAI",
|
|
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": "OpenCode",
|
|
268
|
+
"slug": "opencode",
|
|
269
|
+
"title": "OpenCode",
|
|
270
|
+
"source": "OpenCode official repository — favicon-v3.svg",
|
|
271
|
+
"sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
|
|
272
|
+
"guidelinesUrl": null,
|
|
273
|
+
"assetLicense": "trademark",
|
|
274
|
+
"colorMode": "fixed-color",
|
|
275
|
+
"variant": "logomark"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"exportName": "OpenCodeMonochrome",
|
|
279
|
+
"slug": "opencode-monochrome",
|
|
280
|
+
"title": "OpenCode",
|
|
281
|
+
"source": "Monochrome UI variant derived from OpenCode official favicon geometry",
|
|
282
|
+
"sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
|
|
283
|
+
"guidelinesUrl": null,
|
|
284
|
+
"assetLicense": "trademark",
|
|
285
|
+
"colorMode": "monochrome",
|
|
286
|
+
"variant": "logomark"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"exportName": "Opensource",
|
|
290
|
+
"slug": "open-source",
|
|
291
|
+
"title": "Open Source",
|
|
292
|
+
"source": "Legacy svg-logo catalog",
|
|
293
|
+
"sourceUrl": null,
|
|
294
|
+
"guidelinesUrl": null,
|
|
295
|
+
"assetLicense": "unknown",
|
|
296
|
+
"colorMode": "monochrome",
|
|
297
|
+
"variant": "logo"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"exportName": "Ranteater",
|
|
301
|
+
"slug": "ranteater",
|
|
302
|
+
"title": "Ranteater",
|
|
303
|
+
"source": "Ranteater project artwork",
|
|
304
|
+
"sourceUrl": null,
|
|
305
|
+
"guidelinesUrl": null,
|
|
306
|
+
"assetLicense": "project-owned",
|
|
307
|
+
"colorMode": "fixed-color",
|
|
308
|
+
"variant": "emblem"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"exportName": "Reolink",
|
|
312
|
+
"slug": "reolink",
|
|
313
|
+
"title": "Reolink",
|
|
314
|
+
"source": "Legacy svg-logo catalog",
|
|
315
|
+
"sourceUrl": null,
|
|
316
|
+
"guidelinesUrl": null,
|
|
317
|
+
"assetLicense": "trademark",
|
|
318
|
+
"colorMode": "monochrome",
|
|
319
|
+
"variant": "logo"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"exportName": "Samsung",
|
|
323
|
+
"slug": "samsung",
|
|
324
|
+
"title": "Samsung",
|
|
325
|
+
"source": "Legacy svg-logo catalog",
|
|
326
|
+
"sourceUrl": null,
|
|
327
|
+
"guidelinesUrl": null,
|
|
328
|
+
"assetLicense": "trademark",
|
|
329
|
+
"colorMode": "monochrome",
|
|
330
|
+
"variant": "logo"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"exportName": "Shelly",
|
|
334
|
+
"slug": "shelly",
|
|
335
|
+
"title": "Shelly",
|
|
336
|
+
"source": "Legacy svg-logo catalog",
|
|
337
|
+
"sourceUrl": null,
|
|
338
|
+
"guidelinesUrl": null,
|
|
339
|
+
"assetLicense": "trademark",
|
|
340
|
+
"colorMode": "monochrome",
|
|
341
|
+
"variant": "logo"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"exportName": "Ubiquiti",
|
|
345
|
+
"slug": "ubiquiti",
|
|
346
|
+
"title": "Ubiquiti",
|
|
347
|
+
"source": "Legacy svg-logo catalog",
|
|
348
|
+
"sourceUrl": null,
|
|
349
|
+
"guidelinesUrl": null,
|
|
350
|
+
"assetLicense": "trademark",
|
|
351
|
+
"colorMode": "monochrome",
|
|
352
|
+
"variant": "logo"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"exportName": "VsCode",
|
|
356
|
+
"slug": "visual-studio-code",
|
|
357
|
+
"title": "Visual Studio Code",
|
|
358
|
+
"source": "Legacy svg-logo catalog",
|
|
359
|
+
"sourceUrl": null,
|
|
360
|
+
"guidelinesUrl": null,
|
|
361
|
+
"assetLicense": "trademark",
|
|
362
|
+
"colorMode": "monochrome",
|
|
363
|
+
"variant": "logo"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"exportName": "Wellcube",
|
|
367
|
+
"slug": "wellcube",
|
|
368
|
+
"title": "WellCube",
|
|
369
|
+
"source": "Legacy svg-logo catalog",
|
|
370
|
+
"sourceUrl": null,
|
|
371
|
+
"guidelinesUrl": null,
|
|
372
|
+
"assetLicense": "trademark",
|
|
373
|
+
"colorMode": "monochrome",
|
|
374
|
+
"variant": "logo"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"exportName": "XAI",
|
|
378
|
+
"slug": "xai",
|
|
379
|
+
"title": "xAI",
|
|
380
|
+
"source": "xAI/SpaceXAI media kit — symbol, black, squared",
|
|
381
|
+
"sourceUrl": "https://x.ai/legal/brand-guidelines",
|
|
382
|
+
"guidelinesUrl": "https://x.ai/legal/brand-guidelines",
|
|
383
|
+
"assetLicense": "trademark",
|
|
384
|
+
"colorMode": "fixed-color",
|
|
385
|
+
"variant": "logomark"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"exportName": "XAISquareTransparent",
|
|
389
|
+
"slug": "xai-square-transparent",
|
|
390
|
+
"title": "xAI",
|
|
391
|
+
"source": "Transparent-background UI variant derived from xAI/SpaceXAI media kit — symbol, black, squared",
|
|
392
|
+
"sourceUrl": "https://x.ai/legal/brand-guidelines",
|
|
393
|
+
"guidelinesUrl": "https://x.ai/legal/brand-guidelines",
|
|
394
|
+
"assetLicense": "trademark",
|
|
395
|
+
"colorMode": "fixed-color",
|
|
396
|
+
"variant": "logomark"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"exportName": "Xiaomi",
|
|
400
|
+
"slug": "xiaomi",
|
|
401
|
+
"title": "Xiaomi",
|
|
402
|
+
"source": "Legacy svg-logo catalog",
|
|
403
|
+
"sourceUrl": null,
|
|
404
|
+
"guidelinesUrl": null,
|
|
405
|
+
"assetLicense": "trademark",
|
|
406
|
+
"colorMode": "monochrome",
|
|
407
|
+
"variant": "logo"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
|
|
411
|
+
const iconMetadata = Object.freeze(Object.fromEntries(
|
|
412
|
+
entries.map((entry) => [entry.exportName, Object.freeze({ ...entry })])
|
|
413
|
+
))
|
|
414
|
+
|
|
415
|
+
const iconMetadataBySlug = Object.freeze(Object.fromEntries(
|
|
416
|
+
entries.map((entry) => [entry.slug, iconMetadata[entry.exportName]])
|
|
417
|
+
))
|
|
418
|
+
|
|
419
|
+
const logoNames = Object.freeze(entries.map((entry) => entry.exportName))
|
|
420
|
+
const logoSlugs = Object.freeze(entries.map((entry) => entry.slug))
|
|
421
|
+
|
|
422
|
+
function getIconMetadata(identifier) {
|
|
423
|
+
return iconMetadata[identifier] || iconMetadataBySlug[identifier] || null
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
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
|
+
}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
|
|
2
|
+
|
|
3
|
+
type IconName = "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
|
|
4
|
+
type IconSlug = "amazon" | "anthropic" | "apple" | "aqara" | "cisco" | "claude-code" | "claude-code-monochrome" | "gitea" | "github" | "github-copilot" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "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 Anthropic: LogoComponent
|
|
72
|
+
readonly Apple: LogoComponent
|
|
73
|
+
readonly Aqara: LogoComponent
|
|
74
|
+
readonly Cisco: LogoComponent
|
|
75
|
+
readonly ClaudeCode: LogoComponent
|
|
76
|
+
readonly ClaudeCodeMonochrome: LogoComponent
|
|
77
|
+
readonly Gitea: LogoComponent
|
|
78
|
+
readonly GitHub: LogoComponent
|
|
79
|
+
readonly GitHubCopilot: LogoComponent
|
|
80
|
+
readonly GitLab: LogoComponent
|
|
81
|
+
readonly GLiNet: LogoComponent
|
|
82
|
+
readonly Google: LogoComponent
|
|
83
|
+
readonly Grok: LogoComponent
|
|
84
|
+
readonly GrokKFull: LogoComponent
|
|
85
|
+
readonly HomeAssistant: LogoComponent
|
|
86
|
+
readonly HomeDepot: LogoComponent
|
|
87
|
+
readonly Microsoft: LogoComponent
|
|
88
|
+
readonly Mqtt: LogoComponent
|
|
89
|
+
readonly MSI: LogoComponent
|
|
90
|
+
readonly Netgate: LogoComponent
|
|
91
|
+
readonly Netgear: LogoComponent
|
|
92
|
+
readonly NewEgg: LogoComponent
|
|
93
|
+
readonly OpenAi: LogoComponent
|
|
94
|
+
readonly OpenCode: LogoComponent
|
|
95
|
+
readonly OpenCodeMonochrome: LogoComponent
|
|
96
|
+
readonly Opensource: LogoComponent
|
|
97
|
+
readonly Ranteater: LogoComponent
|
|
98
|
+
readonly Reolink: LogoComponent
|
|
99
|
+
readonly Samsung: LogoComponent
|
|
100
|
+
readonly Shelly: LogoComponent
|
|
101
|
+
readonly Ubiquiti: LogoComponent
|
|
102
|
+
readonly VsCode: LogoComponent
|
|
103
|
+
readonly Wellcube: LogoComponent
|
|
104
|
+
readonly XAI: LogoComponent
|
|
105
|
+
readonly XAISquareTransparent: LogoComponent
|
|
106
|
+
readonly Xiaomi: LogoComponent
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare namespace LoadLogo {
|
|
110
|
+
export { IconAssetLicense, IconColorMode, IconIdentifier, IconMetadata, IconName, IconSlug, IconVariant, LoadLogoComponent, LoadLogoProps, LogoComponent, LogoProps, LogoStyle }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export = LoadLogo
|