@techbykyle/svg-logo 0.2.8 → 0.3.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.
package/BRAND_ASSETS.md CHANGED
@@ -8,6 +8,12 @@ Records classified as `trademark` should be treated as identification assets bel
8
8
 
9
9
  Records classified as `project-owned` identify artwork controlled by the package maintainer or the named project. Their inclusion does not transfer ownership or create a separate trademark license.
10
10
 
11
+ ## Newly added in 0.2.9
12
+
13
+ | Export | Source basis | Treatment | Classification |
14
+ | --- | --- | --- | --- |
15
+ | `LinkedIn` | Legacy Simple Icons `linkedin.svg`, based on LinkedIn brand assets | Original 24×24 path retained; the fixed fill is omitted so the mark inherits `currentColor`. Consult LinkedIn’s current brand policies before use. | `trademark` |
16
+
11
17
  ## Newly added in 0.2.8
12
18
 
13
19
  | Export | Source basis | Treatment | Classification |
package/README.md CHANGED
@@ -36,7 +36,7 @@ Use `LoadLogo` when an icon identifier is selected at runtime. It accepts the ex
36
36
  import LoadLogo from '@techbykyle/svg-logo'
37
37
 
38
38
  export function BrandLogo({ brand }) {
39
- return <LoadLogo iconPath={brand} size={48} />
39
+ return <LoadLogo iconPath={brand} width={48} />
40
40
  }
41
41
  ```
42
42
 
@@ -49,7 +49,14 @@ export function BrandLogo({ brand }) {
49
49
 
50
50
  ## Component API
51
51
 
52
- Every icon forwards its ref to the root `<svg>` and accepts standard SVG properties, including `width`, `height`, `fill`, `color`, `className`, `style`, ARIA attributes, event handlers, and `data-*` attributes. `size` sets both dimensions unless one is supplied explicitly.
52
+ Every icon forwards its ref to the root `<svg>` and accepts standard SVG properties, including `width`, `height`, `fill`, `color`, `className`, `style`, ARIA attributes, event handlers, and `data-*` attributes. `size` sets both dimensions to the same value for backwards compatibility. When `size` is omitted, a logo with only `width` or only `height` uses the SVG's intrinsic aspect ratio for the other dimension. Logos without explicit dimensions also use that ratio when needed. Pass both `width` and `height` to override it explicitly.
53
+
54
+ ```jsx
55
+ <GrokKFull width={160} /> // 160 × 62.5
56
+ <Aqara height={28} /> // 96 × 28
57
+ ```
58
+
59
+ You can inspect the source geometry through `Icon.metadata.viewBox` and `Icon.metadata.aspectRatio`.
53
60
 
54
61
  Icons are decorative by default and render with `aria-hidden="true"`. Supply `title`, `titleAccess`, `aria-label`, `aria-labelledby`, `role="img"`, or `aria-hidden={false}` when the SVG itself conveys meaning:
55
62
 
@@ -141,6 +148,7 @@ Raw metadata is available at `@techbykyle/svg-logo/metadata.json`. Every icon co
141
148
  | `GrokKFull` | `grok-full` | combination-mark | monochrome | trademark |
142
149
  | `HomeAssistant` | `home-assistant` | logo | monochrome | trademark |
143
150
  | `HomeDepot` | `home-depot` | logo | duotone | trademark |
151
+ | `LinkedIn` | `linkedin` | logo | monochrome | trademark |
144
152
  | `Microsoft` | `microsoft` | logo | monochrome | trademark |
145
153
  | `Mqtt` | `mqtt` | logo | monochrome | trademark |
146
154
  | `MSI` | `msi` | logo | monochrome | trademark |
@@ -19,6 +19,7 @@ const Grok = require('./icons/Grok.js')
19
19
  const GrokKFull = require('./icons/GrokKFull.js')
20
20
  const HomeAssistant = require('./icons/HomeAssistant.js')
21
21
  const HomeDepot = require('./icons/HomeDepot.js')
22
+ const LinkedIn = require('./icons/LinkedIn.js')
22
23
  const Microsoft = require('./icons/Microsoft.js')
23
24
  const Mqtt = require('./icons/Mqtt.js')
24
25
  const MSI = require('./icons/MSI.js')
@@ -60,6 +61,7 @@ const iconMap = Object.freeze({
60
61
  GrokKFull,
61
62
  HomeAssistant,
62
63
  HomeDepot,
64
+ LinkedIn,
63
65
  Microsoft,
64
66
  Mqtt,
65
67
  MSI,
@@ -102,6 +104,7 @@ const iconMapBySlug = Object.freeze({
102
104
  "grok-full": GrokKFull,
103
105
  "home-assistant": HomeAssistant,
104
106
  "home-depot": HomeDepot,
107
+ "linkedin": LinkedIn,
105
108
  "microsoft": Microsoft,
106
109
  "mqtt": Mqtt,
107
110
  "msi": MSI,
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ var LinkedIn = function LinkedIn(_ref) {
11
+ var _ref$fill = _ref.fill,
12
+ fill = _ref$fill === void 0 ? {} : _ref$fill,
13
+ _ref$w = _ref.w,
14
+ w = _ref$w === void 0 ? 45 : _ref$w,
15
+ _ref$h = _ref.h,
16
+ h = _ref$h === void 0 ? 45 : _ref$h,
17
+ _ref$title = _ref.title,
18
+ title = _ref$title === void 0 ? "LinkedIn" : _ref$title;
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
20
+ style: fill,
21
+ role: "img",
22
+ viewBox: "0 0 24 24",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ width: w,
25
+ height: h,
26
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
27
+ children: title
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
30
+ })]
31
+ });
32
+ };
33
+ var _default = exports["default"] = LinkedIn;
@@ -0,0 +1,11 @@
1
+ 'use strict'
2
+
3
+ const rawModule = require('../Logo/LinkedIn.js')
4
+ const { createLogoComponent } = require('../runtime.js')
5
+ const { iconMetadata } = require('../metadata.js')
6
+
7
+ const RawLogo = rawModule.default || rawModule
8
+ const LinkedIn = createLogoComponent(RawLogo, iconMetadata.LinkedIn)
9
+
10
+ module.exports = LinkedIn
11
+ module.exports.default = LinkedIn
package/dist/cjs/index.js CHANGED
@@ -25,6 +25,7 @@ module.exports.Grok = require('./icons/Grok.js')
25
25
  module.exports.GrokKFull = require('./icons/GrokKFull.js')
26
26
  module.exports.HomeAssistant = require('./icons/HomeAssistant.js')
27
27
  module.exports.HomeDepot = require('./icons/HomeDepot.js')
28
+ module.exports.LinkedIn = require('./icons/LinkedIn.js')
28
29
  module.exports.Microsoft = require('./icons/Microsoft.js')
29
30
  module.exports.Mqtt = require('./icons/Mqtt.js')
30
31
  module.exports.MSI = require('./icons/MSI.js')
@@ -9,8 +9,10 @@ const entries = [
9
9
  "sourceUrl": null,
10
10
  "guidelinesUrl": null,
11
11
  "assetLicense": "unknown",
12
+ "aspectRatio": 2.618181818181818,
12
13
  "colorMode": "monochrome",
13
- "variant": "logo"
14
+ "variant": "logo",
15
+ "viewBox": "0 0 576 220"
14
16
  },
15
17
  {
16
18
  "exportName": "Amazon",
@@ -20,8 +22,10 @@ const entries = [
20
22
  "sourceUrl": null,
21
23
  "guidelinesUrl": null,
22
24
  "assetLicense": "trademark",
25
+ "aspectRatio": 1,
23
26
  "colorMode": "monochrome",
24
- "variant": "logo"
27
+ "variant": "logo",
28
+ "viewBox": "0 0 24 24"
25
29
  },
26
30
  {
27
31
  "exportName": "Anthropic",
@@ -31,8 +35,10 @@ const entries = [
31
35
  "sourceUrl": "https://www.anthropic.com/news",
32
36
  "guidelinesUrl": null,
33
37
  "assetLicense": "trademark",
38
+ "aspectRatio": 1.4375,
34
39
  "colorMode": "monochrome",
35
- "variant": "logomark"
40
+ "variant": "logomark",
41
+ "viewBox": "0 0 92 64"
36
42
  },
37
43
  {
38
44
  "exportName": "Apple",
@@ -42,8 +48,10 @@ const entries = [
42
48
  "sourceUrl": null,
43
49
  "guidelinesUrl": null,
44
50
  "assetLicense": "trademark",
51
+ "aspectRatio": 1,
45
52
  "colorMode": "monochrome",
46
- "variant": "logo"
53
+ "variant": "logo",
54
+ "viewBox": "0 0 24 24"
47
55
  },
48
56
  {
49
57
  "exportName": "Aqara",
@@ -53,8 +61,10 @@ const entries = [
53
61
  "sourceUrl": null,
54
62
  "guidelinesUrl": null,
55
63
  "assetLicense": "trademark",
64
+ "aspectRatio": 3.4285714285714284,
56
65
  "colorMode": "monochrome",
57
- "variant": "logo"
66
+ "variant": "logo",
67
+ "viewBox": "0 0 96 28"
58
68
  },
59
69
  {
60
70
  "exportName": "Cisco",
@@ -64,8 +74,10 @@ const entries = [
64
74
  "sourceUrl": null,
65
75
  "guidelinesUrl": null,
66
76
  "assetLicense": "trademark",
77
+ "aspectRatio": 1,
67
78
  "colorMode": "monochrome",
68
- "variant": "logo"
79
+ "variant": "logo",
80
+ "viewBox": "0 0 24 24"
69
81
  },
70
82
  {
71
83
  "exportName": "ClaudeCode",
@@ -75,8 +87,10 @@ const entries = [
75
87
  "sourceUrl": "https://www.anthropic.com/news",
76
88
  "guidelinesUrl": null,
77
89
  "assetLicense": "trademark",
90
+ "aspectRatio": 1,
78
91
  "colorMode": "fixed-color",
79
- "variant": "logomark"
92
+ "variant": "logomark",
93
+ "viewBox": "0 0 94 94"
80
94
  },
81
95
  {
82
96
  "exportName": "ClaudeCodeMonochrome",
@@ -86,8 +100,10 @@ const entries = [
86
100
  "sourceUrl": "https://www.anthropic.com/news",
87
101
  "guidelinesUrl": null,
88
102
  "assetLicense": "trademark",
103
+ "aspectRatio": 1,
89
104
  "colorMode": "monochrome",
90
- "variant": "logomark"
105
+ "variant": "logomark",
106
+ "viewBox": "0 0 94 94"
91
107
  },
92
108
  {
93
109
  "exportName": "Gitea",
@@ -97,8 +113,10 @@ const entries = [
97
113
  "sourceUrl": null,
98
114
  "guidelinesUrl": null,
99
115
  "assetLicense": "trademark",
116
+ "aspectRatio": 1,
100
117
  "colorMode": "monochrome",
101
- "variant": "logo"
118
+ "variant": "logo",
119
+ "viewBox": "0 0 24 24"
102
120
  },
103
121
  {
104
122
  "exportName": "GitHub",
@@ -108,8 +126,10 @@ const entries = [
108
126
  "sourceUrl": null,
109
127
  "guidelinesUrl": null,
110
128
  "assetLicense": "trademark",
129
+ "aspectRatio": 1,
111
130
  "colorMode": "monochrome",
112
- "variant": "logo"
131
+ "variant": "logo",
132
+ "viewBox": "0 0 48 48"
113
133
  },
114
134
  {
115
135
  "exportName": "GitHubCopilot",
@@ -119,8 +139,10 @@ const entries = [
119
139
  "sourceUrl": "https://github.com/primer/octicons/blob/0e21a4c2d8449102f10e533d241f04797af0914c/icons/copilot-24.svg",
120
140
  "guidelinesUrl": "https://brand.github.com/brand-identity/copilot",
121
141
  "assetLicense": "trademark",
142
+ "aspectRatio": 1,
122
143
  "colorMode": "monochrome",
123
- "variant": "logomark"
144
+ "variant": "logomark",
145
+ "viewBox": "0 0 24 24"
124
146
  },
125
147
  {
126
148
  "exportName": "GitLab",
@@ -130,8 +152,10 @@ const entries = [
130
152
  "sourceUrl": null,
131
153
  "guidelinesUrl": null,
132
154
  "assetLicense": "trademark",
155
+ "aspectRatio": 1,
133
156
  "colorMode": "monochrome",
134
- "variant": "logo"
157
+ "variant": "logo",
158
+ "viewBox": "0 0 32 32"
135
159
  },
136
160
  {
137
161
  "exportName": "GLiNet",
@@ -141,8 +165,10 @@ const entries = [
141
165
  "sourceUrl": null,
142
166
  "guidelinesUrl": null,
143
167
  "assetLicense": "trademark",
168
+ "aspectRatio": 1,
144
169
  "colorMode": "monochrome",
145
- "variant": "logo"
170
+ "variant": "logo",
171
+ "viewBox": "0 0 24 24"
146
172
  },
147
173
  {
148
174
  "exportName": "Google",
@@ -152,8 +178,10 @@ const entries = [
152
178
  "sourceUrl": null,
153
179
  "guidelinesUrl": null,
154
180
  "assetLicense": "trademark",
181
+ "aspectRatio": 1,
155
182
  "colorMode": "monochrome",
156
- "variant": "logo"
183
+ "variant": "logo",
184
+ "viewBox": "0 0 24 24"
157
185
  },
158
186
  {
159
187
  "exportName": "Grok",
@@ -163,8 +191,10 @@ const entries = [
163
191
  "sourceUrl": null,
164
192
  "guidelinesUrl": null,
165
193
  "assetLicense": "trademark",
194
+ "aspectRatio": 1,
166
195
  "colorMode": "monochrome",
167
- "variant": "logomark"
196
+ "variant": "logomark",
197
+ "viewBox": "0 0 1024 1024"
168
198
  },
169
199
  {
170
200
  "exportName": "GrokKFull",
@@ -174,8 +204,10 @@ const entries = [
174
204
  "sourceUrl": null,
175
205
  "guidelinesUrl": null,
176
206
  "assetLicense": "trademark",
207
+ "aspectRatio": 2.56,
177
208
  "colorMode": "monochrome",
178
- "variant": "combination-mark"
209
+ "variant": "combination-mark",
210
+ "viewBox": "0 0 1024 400"
179
211
  },
180
212
  {
181
213
  "exportName": "HomeAssistant",
@@ -185,8 +217,10 @@ const entries = [
185
217
  "sourceUrl": null,
186
218
  "guidelinesUrl": null,
187
219
  "assetLicense": "trademark",
220
+ "aspectRatio": 1,
188
221
  "colorMode": "monochrome",
189
- "variant": "logo"
222
+ "variant": "logo",
223
+ "viewBox": "0 0 24 24"
190
224
  },
191
225
  {
192
226
  "exportName": "HomeDepot",
@@ -196,8 +230,23 @@ const entries = [
196
230
  "sourceUrl": null,
197
231
  "guidelinesUrl": null,
198
232
  "assetLicense": "trademark",
233
+ "aspectRatio": 1,
199
234
  "colorMode": "duotone",
200
- "variant": "logo"
235
+ "variant": "logo",
236
+ "viewBox": "0 0 192.756 192.756"
237
+ },
238
+ {
239
+ "exportName": "LinkedIn",
240
+ "slug": "linkedin",
241
+ "title": "LinkedIn",
242
+ "source": "Simple Icons legacy LinkedIn icon — linkedin.svg",
243
+ "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/5.0.0/icons/linkedin.svg",
244
+ "guidelinesUrl": "https://brand.linkedin.com/policies",
245
+ "assetLicense": "trademark",
246
+ "aspectRatio": 1,
247
+ "colorMode": "monochrome",
248
+ "variant": "logo",
249
+ "viewBox": "0 0 24 24"
201
250
  },
202
251
  {
203
252
  "exportName": "Microsoft",
@@ -207,8 +256,10 @@ const entries = [
207
256
  "sourceUrl": null,
208
257
  "guidelinesUrl": null,
209
258
  "assetLicense": "trademark",
259
+ "aspectRatio": 1,
210
260
  "colorMode": "monochrome",
211
- "variant": "logo"
261
+ "variant": "logo",
262
+ "viewBox": "0 0 512 512"
212
263
  },
213
264
  {
214
265
  "exportName": "Mqtt",
@@ -218,8 +269,10 @@ const entries = [
218
269
  "sourceUrl": null,
219
270
  "guidelinesUrl": null,
220
271
  "assetLicense": "trademark",
272
+ "aspectRatio": 1,
221
273
  "colorMode": "monochrome",
222
- "variant": "logo"
274
+ "variant": "logo",
275
+ "viewBox": "0 0 24 24"
223
276
  },
224
277
  {
225
278
  "exportName": "MSI",
@@ -229,8 +282,10 @@ const entries = [
229
282
  "sourceUrl": null,
230
283
  "guidelinesUrl": null,
231
284
  "assetLicense": "trademark",
285
+ "aspectRatio": 1,
232
286
  "colorMode": "monochrome",
233
- "variant": "logo"
287
+ "variant": "logo",
288
+ "viewBox": "0 0 24 24"
234
289
  },
235
290
  {
236
291
  "exportName": "Netgate",
@@ -240,8 +295,10 @@ const entries = [
240
295
  "sourceUrl": null,
241
296
  "guidelinesUrl": null,
242
297
  "assetLicense": "trademark",
298
+ "aspectRatio": 1,
243
299
  "colorMode": "duotone",
244
- "variant": "logo"
300
+ "variant": "logo",
301
+ "viewBox": "0 0 192.756 192.756"
245
302
  },
246
303
  {
247
304
  "exportName": "Netgear",
@@ -251,8 +308,10 @@ const entries = [
251
308
  "sourceUrl": null,
252
309
  "guidelinesUrl": null,
253
310
  "assetLicense": "trademark",
311
+ "aspectRatio": 1,
254
312
  "colorMode": "monochrome",
255
- "variant": "logo"
313
+ "variant": "logo",
314
+ "viewBox": "0 0 24 24"
256
315
  },
257
316
  {
258
317
  "exportName": "NewEgg",
@@ -262,8 +321,10 @@ const entries = [
262
321
  "sourceUrl": null,
263
322
  "guidelinesUrl": null,
264
323
  "assetLicense": "trademark",
324
+ "aspectRatio": 1,
265
325
  "colorMode": "monochrome",
266
- "variant": "logo"
326
+ "variant": "logo",
327
+ "viewBox": "0 0 24 24"
267
328
  },
268
329
  {
269
330
  "exportName": "Npm",
@@ -273,8 +334,10 @@ const entries = [
273
334
  "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/develop/icons/npm.svg",
274
335
  "guidelinesUrl": null,
275
336
  "assetLicense": "trademark",
337
+ "aspectRatio": 1,
276
338
  "colorMode": "monochrome",
277
- "variant": "logo"
339
+ "variant": "logo",
340
+ "viewBox": "0 0 24 24"
278
341
  },
279
342
  {
280
343
  "exportName": "OpenAi",
@@ -284,8 +347,10 @@ const entries = [
284
347
  "sourceUrl": null,
285
348
  "guidelinesUrl": null,
286
349
  "assetLicense": "trademark",
350
+ "aspectRatio": 1,
287
351
  "colorMode": "monochrome",
288
- "variant": "logo"
352
+ "variant": "logo",
353
+ "viewBox": "0 0 24 24"
289
354
  },
290
355
  {
291
356
  "exportName": "OpenCode",
@@ -295,8 +360,10 @@ const entries = [
295
360
  "sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
296
361
  "guidelinesUrl": null,
297
362
  "assetLicense": "trademark",
363
+ "aspectRatio": 1,
298
364
  "colorMode": "fixed-color",
299
- "variant": "logomark"
365
+ "variant": "logomark",
366
+ "viewBox": "0 0 512 512"
300
367
  },
301
368
  {
302
369
  "exportName": "OpenCodeMonochrome",
@@ -306,8 +373,10 @@ const entries = [
306
373
  "sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
307
374
  "guidelinesUrl": null,
308
375
  "assetLicense": "trademark",
376
+ "aspectRatio": 1,
309
377
  "colorMode": "monochrome",
310
- "variant": "logomark"
378
+ "variant": "logomark",
379
+ "viewBox": "0 0 512 512"
311
380
  },
312
381
  {
313
382
  "exportName": "Opensource",
@@ -317,8 +386,10 @@ const entries = [
317
386
  "sourceUrl": null,
318
387
  "guidelinesUrl": null,
319
388
  "assetLicense": "unknown",
389
+ "aspectRatio": 1,
320
390
  "colorMode": "monochrome",
321
- "variant": "logo"
391
+ "variant": "logo",
392
+ "viewBox": "0 0 512 512"
322
393
  },
323
394
  {
324
395
  "exportName": "Ranteater",
@@ -328,8 +399,10 @@ const entries = [
328
399
  "sourceUrl": null,
329
400
  "guidelinesUrl": null,
330
401
  "assetLicense": "project-owned",
402
+ "aspectRatio": 1,
331
403
  "colorMode": "fixed-color",
332
- "variant": "emblem"
404
+ "variant": "emblem",
405
+ "viewBox": "0 0 336 336"
333
406
  },
334
407
  {
335
408
  "exportName": "Reolink",
@@ -339,8 +412,10 @@ const entries = [
339
412
  "sourceUrl": null,
340
413
  "guidelinesUrl": null,
341
414
  "assetLicense": "trademark",
415
+ "aspectRatio": 1,
342
416
  "colorMode": "monochrome",
343
- "variant": "logo"
417
+ "variant": "logo",
418
+ "viewBox": "0 0 512 512"
344
419
  },
345
420
  {
346
421
  "exportName": "Samsung",
@@ -350,8 +425,10 @@ const entries = [
350
425
  "sourceUrl": null,
351
426
  "guidelinesUrl": null,
352
427
  "assetLicense": "trademark",
428
+ "aspectRatio": 1,
353
429
  "colorMode": "monochrome",
354
- "variant": "logo"
430
+ "variant": "logo",
431
+ "viewBox": "0 0 128 128"
355
432
  },
356
433
  {
357
434
  "exportName": "Shelly",
@@ -361,8 +438,10 @@ const entries = [
361
438
  "sourceUrl": null,
362
439
  "guidelinesUrl": null,
363
440
  "assetLicense": "trademark",
441
+ "aspectRatio": 1,
364
442
  "colorMode": "monochrome",
365
- "variant": "logo"
443
+ "variant": "logo",
444
+ "viewBox": "0 0 24 24"
366
445
  },
367
446
  {
368
447
  "exportName": "Ubiquiti",
@@ -372,8 +451,10 @@ const entries = [
372
451
  "sourceUrl": null,
373
452
  "guidelinesUrl": null,
374
453
  "assetLicense": "trademark",
454
+ "aspectRatio": 1,
375
455
  "colorMode": "monochrome",
376
- "variant": "logo"
456
+ "variant": "logo",
457
+ "viewBox": "0 0 24 24"
377
458
  },
378
459
  {
379
460
  "exportName": "VsCode",
@@ -383,8 +464,10 @@ const entries = [
383
464
  "sourceUrl": null,
384
465
  "guidelinesUrl": null,
385
466
  "assetLicense": "trademark",
467
+ "aspectRatio": 1,
386
468
  "colorMode": "monochrome",
387
- "variant": "logo"
469
+ "variant": "logo",
470
+ "viewBox": "0 0 32 32"
388
471
  },
389
472
  {
390
473
  "exportName": "Wellcube",
@@ -394,8 +477,10 @@ const entries = [
394
477
  "sourceUrl": null,
395
478
  "guidelinesUrl": null,
396
479
  "assetLicense": "trademark",
480
+ "aspectRatio": 1,
397
481
  "colorMode": "monochrome",
398
- "variant": "logo"
482
+ "variant": "logo",
483
+ "viewBox": "0 0 70 70"
399
484
  },
400
485
  {
401
486
  "exportName": "XAI",
@@ -405,8 +490,10 @@ const entries = [
405
490
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
406
491
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
407
492
  "assetLicense": "trademark",
493
+ "aspectRatio": 1,
408
494
  "colorMode": "fixed-color",
409
- "variant": "logomark"
495
+ "variant": "logomark",
496
+ "viewBox": "0 0 600 600"
410
497
  },
411
498
  {
412
499
  "exportName": "XAISquareTransparent",
@@ -416,8 +503,10 @@ const entries = [
416
503
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
417
504
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
418
505
  "assetLicense": "trademark",
506
+ "aspectRatio": 1,
419
507
  "colorMode": "fixed-color",
420
- "variant": "logomark"
508
+ "variant": "logomark",
509
+ "viewBox": "0 0 600 600"
421
510
  },
422
511
  {
423
512
  "exportName": "Xiaomi",
@@ -427,8 +516,10 @@ const entries = [
427
516
  "sourceUrl": null,
428
517
  "guidelinesUrl": null,
429
518
  "assetLicense": "trademark",
519
+ "aspectRatio": 1,
430
520
  "colorMode": "monochrome",
431
- "variant": "logo"
521
+ "variant": "logo",
522
+ "viewBox": "0 0 24 24"
432
523
  }
433
524
  ]
434
525
 
@@ -49,9 +49,22 @@ function extractTitleFromChildren(children) {
49
49
  });
50
50
  return extractedTitle;
51
51
  }
52
+ function scaleDimension(value, factor) {
53
+ if (typeof value === 'number') {
54
+ return Number.isFinite(value) ? value * factor : undefined;
55
+ }
56
+ if (typeof value !== 'string') {
57
+ return undefined;
58
+ }
59
+ var match = value.trim().match(/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/i);
60
+ if (!match) {
61
+ return undefined;
62
+ }
63
+ return "".concat(Number(match[1]) * factor).concat(match[2]);
64
+ }
52
65
  function createLogoComponent(RawLogo, metadata) {
53
66
  var Logo = /*#__PURE__*/_react["default"].forwardRef(function LogoComponent() {
54
- var _ref, _ref2, _ref3, _ref4, _ref5;
67
+ var _ref, _ref2, _ref3;
55
68
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
56
69
  var ref = arguments.length > 1 ? arguments[1] : undefined;
57
70
  var size = props.size,
@@ -72,9 +85,26 @@ function createLogoComponent(RawLogo, metadata) {
72
85
  suppliedAriaLabelledBy = props['aria-labelledby'],
73
86
  _ownerState = props.ownerState,
74
87
  svgProps = _objectWithoutProperties(props, _excluded);
75
- var resolvedWidth = (_ref = (_ref2 = width !== null && width !== void 0 ? width : w) !== null && _ref2 !== void 0 ? _ref2 : size) !== null && _ref !== void 0 ? _ref : 45;
76
- var resolvedHeight = (_ref3 = (_ref4 = height !== null && height !== void 0 ? height : h) !== null && _ref4 !== void 0 ? _ref4 : size) !== null && _ref3 !== void 0 ? _ref3 : 45;
77
- var resolvedTitle = (_ref5 = title !== null && title !== void 0 ? title : titleAccess) !== null && _ref5 !== void 0 ? _ref5 : extractTitleFromChildren(children);
88
+ var suppliedWidth = width !== null && width !== void 0 ? width : w;
89
+ var suppliedHeight = height !== null && height !== void 0 ? height : h;
90
+ var hasSize = size != null;
91
+ var hasWidth = suppliedWidth != null;
92
+ var hasHeight = suppliedHeight != null;
93
+ var resolvedWidth = (_ref = suppliedWidth !== null && suppliedWidth !== void 0 ? suppliedWidth : size) !== null && _ref !== void 0 ? _ref : 45;
94
+ var resolvedHeight = (_ref2 = suppliedHeight !== null && suppliedHeight !== void 0 ? suppliedHeight : size) !== null && _ref2 !== void 0 ? _ref2 : 45;
95
+ if (!hasSize && metadata.aspectRatio > 0) {
96
+ if (hasWidth && !hasHeight) {
97
+ var _scaleDimension;
98
+ resolvedHeight = (_scaleDimension = scaleDimension(resolvedWidth, 1 / metadata.aspectRatio)) !== null && _scaleDimension !== void 0 ? _scaleDimension : resolvedHeight;
99
+ } else if (!hasWidth && hasHeight) {
100
+ var _scaleDimension2;
101
+ resolvedWidth = (_scaleDimension2 = scaleDimension(resolvedHeight, metadata.aspectRatio)) !== null && _scaleDimension2 !== void 0 ? _scaleDimension2 : resolvedWidth;
102
+ } else if (!hasWidth && !hasHeight && metadata.aspectRatio !== 1) {
103
+ var _scaleDimension3;
104
+ resolvedHeight = (_scaleDimension3 = scaleDimension(resolvedWidth, 1 / metadata.aspectRatio)) !== null && _scaleDimension3 !== void 0 ? _scaleDimension3 : resolvedHeight;
105
+ }
106
+ }
107
+ var resolvedTitle = (_ref3 = title !== null && title !== void 0 ? title : titleAccess) !== null && _ref3 !== void 0 ? _ref3 : extractTitleFromChildren(children);
78
108
  var legacyStyle = isLegacyStyle(fill) ? fill : undefined;
79
109
  var resolvedFill = legacyStyle || fill == null ? 'currentColor' : fill;
80
110
  var mergedStyle = _objectSpread(_objectSpread({}, legacyStyle || {}), style || {});
@@ -17,6 +17,7 @@ import Grok from './icons/Grok.js'
17
17
  import GrokKFull from './icons/GrokKFull.js'
18
18
  import HomeAssistant from './icons/HomeAssistant.js'
19
19
  import HomeDepot from './icons/HomeDepot.js'
20
+ import LinkedIn from './icons/LinkedIn.js'
20
21
  import Microsoft from './icons/Microsoft.js'
21
22
  import Mqtt from './icons/Mqtt.js'
22
23
  import MSI from './icons/MSI.js'
@@ -58,6 +59,7 @@ const iconMap = Object.freeze({
58
59
  GrokKFull,
59
60
  HomeAssistant,
60
61
  HomeDepot,
62
+ LinkedIn,
61
63
  Microsoft,
62
64
  Mqtt,
63
65
  MSI,
@@ -100,6 +102,7 @@ const iconMapBySlug = Object.freeze({
100
102
  "grok-full": GrokKFull,
101
103
  "home-assistant": HomeAssistant,
102
104
  "home-depot": HomeDepot,
105
+ "linkedin": LinkedIn,
103
106
  "microsoft": Microsoft,
104
107
  "mqtt": Mqtt,
105
108
  "msi": MSI,