@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.
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ var LinkedIn = function LinkedIn(_ref) {
4
+ var _ref$fill = _ref.fill,
5
+ fill = _ref$fill === void 0 ? {} : _ref$fill,
6
+ _ref$w = _ref.w,
7
+ w = _ref$w === void 0 ? 45 : _ref$w,
8
+ _ref$h = _ref.h,
9
+ h = _ref$h === void 0 ? 45 : _ref$h,
10
+ _ref$title = _ref.title,
11
+ title = _ref$title === void 0 ? "LinkedIn" : _ref$title;
12
+ return /*#__PURE__*/_jsxs("svg", {
13
+ style: fill,
14
+ role: "img",
15
+ viewBox: "0 0 24 24",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: w,
18
+ height: h,
19
+ children: [/*#__PURE__*/_jsx("title", {
20
+ children: title
21
+ }), /*#__PURE__*/_jsx("path", {
22
+ 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"
23
+ })]
24
+ });
25
+ };
26
+ export default LinkedIn;
@@ -0,0 +1,7 @@
1
+ import RawLogo from '../Logo/LinkedIn.js'
2
+ import { createLogoComponent } from '../runtime.js'
3
+ import { iconMetadata } from '../metadata.js'
4
+
5
+ const LinkedIn = createLogoComponent(RawLogo, iconMetadata.LinkedIn)
6
+
7
+ export default LinkedIn
package/dist/esm/index.js CHANGED
@@ -19,6 +19,7 @@ export { default as Grok } from './icons/Grok.js'
19
19
  export { default as GrokKFull } from './icons/GrokKFull.js'
20
20
  export { default as HomeAssistant } from './icons/HomeAssistant.js'
21
21
  export { default as HomeDepot } from './icons/HomeDepot.js'
22
+ export { default as LinkedIn } from './icons/LinkedIn.js'
22
23
  export { default as Microsoft } from './icons/Microsoft.js'
23
24
  export { default as Mqtt } from './icons/Mqtt.js'
24
25
  export { default as MSI } from './icons/MSI.js'
@@ -7,8 +7,10 @@ const entries = [
7
7
  "sourceUrl": null,
8
8
  "guidelinesUrl": null,
9
9
  "assetLicense": "unknown",
10
+ "aspectRatio": 2.618181818181818,
10
11
  "colorMode": "monochrome",
11
- "variant": "logo"
12
+ "variant": "logo",
13
+ "viewBox": "0 0 576 220"
12
14
  },
13
15
  {
14
16
  "exportName": "Amazon",
@@ -18,8 +20,10 @@ const entries = [
18
20
  "sourceUrl": null,
19
21
  "guidelinesUrl": null,
20
22
  "assetLicense": "trademark",
23
+ "aspectRatio": 1,
21
24
  "colorMode": "monochrome",
22
- "variant": "logo"
25
+ "variant": "logo",
26
+ "viewBox": "0 0 24 24"
23
27
  },
24
28
  {
25
29
  "exportName": "Anthropic",
@@ -29,8 +33,10 @@ const entries = [
29
33
  "sourceUrl": "https://www.anthropic.com/news",
30
34
  "guidelinesUrl": null,
31
35
  "assetLicense": "trademark",
36
+ "aspectRatio": 1.4375,
32
37
  "colorMode": "monochrome",
33
- "variant": "logomark"
38
+ "variant": "logomark",
39
+ "viewBox": "0 0 92 64"
34
40
  },
35
41
  {
36
42
  "exportName": "Apple",
@@ -40,8 +46,10 @@ const entries = [
40
46
  "sourceUrl": null,
41
47
  "guidelinesUrl": null,
42
48
  "assetLicense": "trademark",
49
+ "aspectRatio": 1,
43
50
  "colorMode": "monochrome",
44
- "variant": "logo"
51
+ "variant": "logo",
52
+ "viewBox": "0 0 24 24"
45
53
  },
46
54
  {
47
55
  "exportName": "Aqara",
@@ -51,8 +59,10 @@ const entries = [
51
59
  "sourceUrl": null,
52
60
  "guidelinesUrl": null,
53
61
  "assetLicense": "trademark",
62
+ "aspectRatio": 3.4285714285714284,
54
63
  "colorMode": "monochrome",
55
- "variant": "logo"
64
+ "variant": "logo",
65
+ "viewBox": "0 0 96 28"
56
66
  },
57
67
  {
58
68
  "exportName": "Cisco",
@@ -62,8 +72,10 @@ const entries = [
62
72
  "sourceUrl": null,
63
73
  "guidelinesUrl": null,
64
74
  "assetLicense": "trademark",
75
+ "aspectRatio": 1,
65
76
  "colorMode": "monochrome",
66
- "variant": "logo"
77
+ "variant": "logo",
78
+ "viewBox": "0 0 24 24"
67
79
  },
68
80
  {
69
81
  "exportName": "ClaudeCode",
@@ -73,8 +85,10 @@ const entries = [
73
85
  "sourceUrl": "https://www.anthropic.com/news",
74
86
  "guidelinesUrl": null,
75
87
  "assetLicense": "trademark",
88
+ "aspectRatio": 1,
76
89
  "colorMode": "fixed-color",
77
- "variant": "logomark"
90
+ "variant": "logomark",
91
+ "viewBox": "0 0 94 94"
78
92
  },
79
93
  {
80
94
  "exportName": "ClaudeCodeMonochrome",
@@ -84,8 +98,10 @@ const entries = [
84
98
  "sourceUrl": "https://www.anthropic.com/news",
85
99
  "guidelinesUrl": null,
86
100
  "assetLicense": "trademark",
101
+ "aspectRatio": 1,
87
102
  "colorMode": "monochrome",
88
- "variant": "logomark"
103
+ "variant": "logomark",
104
+ "viewBox": "0 0 94 94"
89
105
  },
90
106
  {
91
107
  "exportName": "Gitea",
@@ -95,8 +111,10 @@ const entries = [
95
111
  "sourceUrl": null,
96
112
  "guidelinesUrl": null,
97
113
  "assetLicense": "trademark",
114
+ "aspectRatio": 1,
98
115
  "colorMode": "monochrome",
99
- "variant": "logo"
116
+ "variant": "logo",
117
+ "viewBox": "0 0 24 24"
100
118
  },
101
119
  {
102
120
  "exportName": "GitHub",
@@ -106,8 +124,10 @@ const entries = [
106
124
  "sourceUrl": null,
107
125
  "guidelinesUrl": null,
108
126
  "assetLicense": "trademark",
127
+ "aspectRatio": 1,
109
128
  "colorMode": "monochrome",
110
- "variant": "logo"
129
+ "variant": "logo",
130
+ "viewBox": "0 0 48 48"
111
131
  },
112
132
  {
113
133
  "exportName": "GitHubCopilot",
@@ -117,8 +137,10 @@ const entries = [
117
137
  "sourceUrl": "https://github.com/primer/octicons/blob/0e21a4c2d8449102f10e533d241f04797af0914c/icons/copilot-24.svg",
118
138
  "guidelinesUrl": "https://brand.github.com/brand-identity/copilot",
119
139
  "assetLicense": "trademark",
140
+ "aspectRatio": 1,
120
141
  "colorMode": "monochrome",
121
- "variant": "logomark"
142
+ "variant": "logomark",
143
+ "viewBox": "0 0 24 24"
122
144
  },
123
145
  {
124
146
  "exportName": "GitLab",
@@ -128,8 +150,10 @@ const entries = [
128
150
  "sourceUrl": null,
129
151
  "guidelinesUrl": null,
130
152
  "assetLicense": "trademark",
153
+ "aspectRatio": 1,
131
154
  "colorMode": "monochrome",
132
- "variant": "logo"
155
+ "variant": "logo",
156
+ "viewBox": "0 0 32 32"
133
157
  },
134
158
  {
135
159
  "exportName": "GLiNet",
@@ -139,8 +163,10 @@ const entries = [
139
163
  "sourceUrl": null,
140
164
  "guidelinesUrl": null,
141
165
  "assetLicense": "trademark",
166
+ "aspectRatio": 1,
142
167
  "colorMode": "monochrome",
143
- "variant": "logo"
168
+ "variant": "logo",
169
+ "viewBox": "0 0 24 24"
144
170
  },
145
171
  {
146
172
  "exportName": "Google",
@@ -150,8 +176,10 @@ const entries = [
150
176
  "sourceUrl": null,
151
177
  "guidelinesUrl": null,
152
178
  "assetLicense": "trademark",
179
+ "aspectRatio": 1,
153
180
  "colorMode": "monochrome",
154
- "variant": "logo"
181
+ "variant": "logo",
182
+ "viewBox": "0 0 24 24"
155
183
  },
156
184
  {
157
185
  "exportName": "Grok",
@@ -161,8 +189,10 @@ const entries = [
161
189
  "sourceUrl": null,
162
190
  "guidelinesUrl": null,
163
191
  "assetLicense": "trademark",
192
+ "aspectRatio": 1,
164
193
  "colorMode": "monochrome",
165
- "variant": "logomark"
194
+ "variant": "logomark",
195
+ "viewBox": "0 0 1024 1024"
166
196
  },
167
197
  {
168
198
  "exportName": "GrokKFull",
@@ -172,8 +202,10 @@ const entries = [
172
202
  "sourceUrl": null,
173
203
  "guidelinesUrl": null,
174
204
  "assetLicense": "trademark",
205
+ "aspectRatio": 2.56,
175
206
  "colorMode": "monochrome",
176
- "variant": "combination-mark"
207
+ "variant": "combination-mark",
208
+ "viewBox": "0 0 1024 400"
177
209
  },
178
210
  {
179
211
  "exportName": "HomeAssistant",
@@ -183,8 +215,10 @@ const entries = [
183
215
  "sourceUrl": null,
184
216
  "guidelinesUrl": null,
185
217
  "assetLicense": "trademark",
218
+ "aspectRatio": 1,
186
219
  "colorMode": "monochrome",
187
- "variant": "logo"
220
+ "variant": "logo",
221
+ "viewBox": "0 0 24 24"
188
222
  },
189
223
  {
190
224
  "exportName": "HomeDepot",
@@ -194,8 +228,23 @@ const entries = [
194
228
  "sourceUrl": null,
195
229
  "guidelinesUrl": null,
196
230
  "assetLicense": "trademark",
231
+ "aspectRatio": 1,
197
232
  "colorMode": "duotone",
198
- "variant": "logo"
233
+ "variant": "logo",
234
+ "viewBox": "0 0 192.756 192.756"
235
+ },
236
+ {
237
+ "exportName": "LinkedIn",
238
+ "slug": "linkedin",
239
+ "title": "LinkedIn",
240
+ "source": "Simple Icons legacy LinkedIn icon — linkedin.svg",
241
+ "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/5.0.0/icons/linkedin.svg",
242
+ "guidelinesUrl": "https://brand.linkedin.com/policies",
243
+ "assetLicense": "trademark",
244
+ "aspectRatio": 1,
245
+ "colorMode": "monochrome",
246
+ "variant": "logo",
247
+ "viewBox": "0 0 24 24"
199
248
  },
200
249
  {
201
250
  "exportName": "Microsoft",
@@ -205,8 +254,10 @@ const entries = [
205
254
  "sourceUrl": null,
206
255
  "guidelinesUrl": null,
207
256
  "assetLicense": "trademark",
257
+ "aspectRatio": 1,
208
258
  "colorMode": "monochrome",
209
- "variant": "logo"
259
+ "variant": "logo",
260
+ "viewBox": "0 0 512 512"
210
261
  },
211
262
  {
212
263
  "exportName": "Mqtt",
@@ -216,8 +267,10 @@ const entries = [
216
267
  "sourceUrl": null,
217
268
  "guidelinesUrl": null,
218
269
  "assetLicense": "trademark",
270
+ "aspectRatio": 1,
219
271
  "colorMode": "monochrome",
220
- "variant": "logo"
272
+ "variant": "logo",
273
+ "viewBox": "0 0 24 24"
221
274
  },
222
275
  {
223
276
  "exportName": "MSI",
@@ -227,8 +280,10 @@ const entries = [
227
280
  "sourceUrl": null,
228
281
  "guidelinesUrl": null,
229
282
  "assetLicense": "trademark",
283
+ "aspectRatio": 1,
230
284
  "colorMode": "monochrome",
231
- "variant": "logo"
285
+ "variant": "logo",
286
+ "viewBox": "0 0 24 24"
232
287
  },
233
288
  {
234
289
  "exportName": "Netgate",
@@ -238,8 +293,10 @@ const entries = [
238
293
  "sourceUrl": null,
239
294
  "guidelinesUrl": null,
240
295
  "assetLicense": "trademark",
296
+ "aspectRatio": 1,
241
297
  "colorMode": "duotone",
242
- "variant": "logo"
298
+ "variant": "logo",
299
+ "viewBox": "0 0 192.756 192.756"
243
300
  },
244
301
  {
245
302
  "exportName": "Netgear",
@@ -249,8 +306,10 @@ const entries = [
249
306
  "sourceUrl": null,
250
307
  "guidelinesUrl": null,
251
308
  "assetLicense": "trademark",
309
+ "aspectRatio": 1,
252
310
  "colorMode": "monochrome",
253
- "variant": "logo"
311
+ "variant": "logo",
312
+ "viewBox": "0 0 24 24"
254
313
  },
255
314
  {
256
315
  "exportName": "NewEgg",
@@ -260,8 +319,10 @@ const entries = [
260
319
  "sourceUrl": null,
261
320
  "guidelinesUrl": null,
262
321
  "assetLicense": "trademark",
322
+ "aspectRatio": 1,
263
323
  "colorMode": "monochrome",
264
- "variant": "logo"
324
+ "variant": "logo",
325
+ "viewBox": "0 0 24 24"
265
326
  },
266
327
  {
267
328
  "exportName": "Npm",
@@ -271,8 +332,10 @@ const entries = [
271
332
  "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/develop/icons/npm.svg",
272
333
  "guidelinesUrl": null,
273
334
  "assetLicense": "trademark",
335
+ "aspectRatio": 1,
274
336
  "colorMode": "monochrome",
275
- "variant": "logo"
337
+ "variant": "logo",
338
+ "viewBox": "0 0 24 24"
276
339
  },
277
340
  {
278
341
  "exportName": "OpenAi",
@@ -282,8 +345,10 @@ const entries = [
282
345
  "sourceUrl": null,
283
346
  "guidelinesUrl": null,
284
347
  "assetLicense": "trademark",
348
+ "aspectRatio": 1,
285
349
  "colorMode": "monochrome",
286
- "variant": "logo"
350
+ "variant": "logo",
351
+ "viewBox": "0 0 24 24"
287
352
  },
288
353
  {
289
354
  "exportName": "OpenCode",
@@ -293,8 +358,10 @@ const entries = [
293
358
  "sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
294
359
  "guidelinesUrl": null,
295
360
  "assetLicense": "trademark",
361
+ "aspectRatio": 1,
296
362
  "colorMode": "fixed-color",
297
- "variant": "logomark"
363
+ "variant": "logomark",
364
+ "viewBox": "0 0 512 512"
298
365
  },
299
366
  {
300
367
  "exportName": "OpenCodeMonochrome",
@@ -304,8 +371,10 @@ const entries = [
304
371
  "sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
305
372
  "guidelinesUrl": null,
306
373
  "assetLicense": "trademark",
374
+ "aspectRatio": 1,
307
375
  "colorMode": "monochrome",
308
- "variant": "logomark"
376
+ "variant": "logomark",
377
+ "viewBox": "0 0 512 512"
309
378
  },
310
379
  {
311
380
  "exportName": "Opensource",
@@ -315,8 +384,10 @@ const entries = [
315
384
  "sourceUrl": null,
316
385
  "guidelinesUrl": null,
317
386
  "assetLicense": "unknown",
387
+ "aspectRatio": 1,
318
388
  "colorMode": "monochrome",
319
- "variant": "logo"
389
+ "variant": "logo",
390
+ "viewBox": "0 0 512 512"
320
391
  },
321
392
  {
322
393
  "exportName": "Ranteater",
@@ -326,8 +397,10 @@ const entries = [
326
397
  "sourceUrl": null,
327
398
  "guidelinesUrl": null,
328
399
  "assetLicense": "project-owned",
400
+ "aspectRatio": 1,
329
401
  "colorMode": "fixed-color",
330
- "variant": "emblem"
402
+ "variant": "emblem",
403
+ "viewBox": "0 0 336 336"
331
404
  },
332
405
  {
333
406
  "exportName": "Reolink",
@@ -337,8 +410,10 @@ const entries = [
337
410
  "sourceUrl": null,
338
411
  "guidelinesUrl": null,
339
412
  "assetLicense": "trademark",
413
+ "aspectRatio": 1,
340
414
  "colorMode": "monochrome",
341
- "variant": "logo"
415
+ "variant": "logo",
416
+ "viewBox": "0 0 512 512"
342
417
  },
343
418
  {
344
419
  "exportName": "Samsung",
@@ -348,8 +423,10 @@ const entries = [
348
423
  "sourceUrl": null,
349
424
  "guidelinesUrl": null,
350
425
  "assetLicense": "trademark",
426
+ "aspectRatio": 1,
351
427
  "colorMode": "monochrome",
352
- "variant": "logo"
428
+ "variant": "logo",
429
+ "viewBox": "0 0 128 128"
353
430
  },
354
431
  {
355
432
  "exportName": "Shelly",
@@ -359,8 +436,10 @@ const entries = [
359
436
  "sourceUrl": null,
360
437
  "guidelinesUrl": null,
361
438
  "assetLicense": "trademark",
439
+ "aspectRatio": 1,
362
440
  "colorMode": "monochrome",
363
- "variant": "logo"
441
+ "variant": "logo",
442
+ "viewBox": "0 0 24 24"
364
443
  },
365
444
  {
366
445
  "exportName": "Ubiquiti",
@@ -370,8 +449,10 @@ const entries = [
370
449
  "sourceUrl": null,
371
450
  "guidelinesUrl": null,
372
451
  "assetLicense": "trademark",
452
+ "aspectRatio": 1,
373
453
  "colorMode": "monochrome",
374
- "variant": "logo"
454
+ "variant": "logo",
455
+ "viewBox": "0 0 24 24"
375
456
  },
376
457
  {
377
458
  "exportName": "VsCode",
@@ -381,8 +462,10 @@ const entries = [
381
462
  "sourceUrl": null,
382
463
  "guidelinesUrl": null,
383
464
  "assetLicense": "trademark",
465
+ "aspectRatio": 1,
384
466
  "colorMode": "monochrome",
385
- "variant": "logo"
467
+ "variant": "logo",
468
+ "viewBox": "0 0 32 32"
386
469
  },
387
470
  {
388
471
  "exportName": "Wellcube",
@@ -392,8 +475,10 @@ const entries = [
392
475
  "sourceUrl": null,
393
476
  "guidelinesUrl": null,
394
477
  "assetLicense": "trademark",
478
+ "aspectRatio": 1,
395
479
  "colorMode": "monochrome",
396
- "variant": "logo"
480
+ "variant": "logo",
481
+ "viewBox": "0 0 70 70"
397
482
  },
398
483
  {
399
484
  "exportName": "XAI",
@@ -403,8 +488,10 @@ const entries = [
403
488
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
404
489
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
405
490
  "assetLicense": "trademark",
491
+ "aspectRatio": 1,
406
492
  "colorMode": "fixed-color",
407
- "variant": "logomark"
493
+ "variant": "logomark",
494
+ "viewBox": "0 0 600 600"
408
495
  },
409
496
  {
410
497
  "exportName": "XAISquareTransparent",
@@ -414,8 +501,10 @@ const entries = [
414
501
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
415
502
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
416
503
  "assetLicense": "trademark",
504
+ "aspectRatio": 1,
417
505
  "colorMode": "fixed-color",
418
- "variant": "logomark"
506
+ "variant": "logomark",
507
+ "viewBox": "0 0 600 600"
419
508
  },
420
509
  {
421
510
  "exportName": "Xiaomi",
@@ -425,8 +514,10 @@ const entries = [
425
514
  "sourceUrl": null,
426
515
  "guidelinesUrl": null,
427
516
  "assetLicense": "trademark",
517
+ "aspectRatio": 1,
428
518
  "colorMode": "monochrome",
429
- "variant": "logo"
519
+ "variant": "logo",
520
+ "viewBox": "0 0 24 24"
430
521
  }
431
522
  ]
432
523
 
@@ -42,9 +42,22 @@ function extractTitleFromChildren(children) {
42
42
  });
43
43
  return extractedTitle;
44
44
  }
45
+ function scaleDimension(value, factor) {
46
+ if (typeof value === 'number') {
47
+ return Number.isFinite(value) ? value * factor : undefined;
48
+ }
49
+ if (typeof value !== 'string') {
50
+ return undefined;
51
+ }
52
+ var match = value.trim().match(/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/i);
53
+ if (!match) {
54
+ return undefined;
55
+ }
56
+ return "".concat(Number(match[1]) * factor).concat(match[2]);
57
+ }
45
58
  export function createLogoComponent(RawLogo, metadata) {
46
59
  var Logo = /*#__PURE__*/React.forwardRef(function LogoComponent() {
47
- var _ref, _ref2, _ref3, _ref4, _ref5;
60
+ var _ref, _ref2, _ref3;
48
61
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
49
62
  var ref = arguments.length > 1 ? arguments[1] : undefined;
50
63
  var size = props.size,
@@ -65,9 +78,26 @@ export function createLogoComponent(RawLogo, metadata) {
65
78
  suppliedAriaLabelledBy = props['aria-labelledby'],
66
79
  _ownerState = props.ownerState,
67
80
  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);
81
+ var suppliedWidth = width !== null && width !== void 0 ? width : w;
82
+ var suppliedHeight = height !== null && height !== void 0 ? height : h;
83
+ var hasSize = size != null;
84
+ var hasWidth = suppliedWidth != null;
85
+ var hasHeight = suppliedHeight != null;
86
+ var resolvedWidth = (_ref = suppliedWidth !== null && suppliedWidth !== void 0 ? suppliedWidth : size) !== null && _ref !== void 0 ? _ref : 45;
87
+ var resolvedHeight = (_ref2 = suppliedHeight !== null && suppliedHeight !== void 0 ? suppliedHeight : size) !== null && _ref2 !== void 0 ? _ref2 : 45;
88
+ if (!hasSize && metadata.aspectRatio > 0) {
89
+ if (hasWidth && !hasHeight) {
90
+ var _scaleDimension;
91
+ resolvedHeight = (_scaleDimension = scaleDimension(resolvedWidth, 1 / metadata.aspectRatio)) !== null && _scaleDimension !== void 0 ? _scaleDimension : resolvedHeight;
92
+ } else if (!hasWidth && hasHeight) {
93
+ var _scaleDimension2;
94
+ resolvedWidth = (_scaleDimension2 = scaleDimension(resolvedHeight, metadata.aspectRatio)) !== null && _scaleDimension2 !== void 0 ? _scaleDimension2 : resolvedWidth;
95
+ } else if (!hasWidth && !hasHeight && metadata.aspectRatio !== 1) {
96
+ var _scaleDimension3;
97
+ resolvedHeight = (_scaleDimension3 = scaleDimension(resolvedWidth, 1 / metadata.aspectRatio)) !== null && _scaleDimension3 !== void 0 ? _scaleDimension3 : resolvedHeight;
98
+ }
99
+ }
100
+ var resolvedTitle = (_ref3 = title !== null && title !== void 0 ? title : titleAccess) !== null && _ref3 !== void 0 ? _ref3 : extractTitleFromChildren(children);
71
101
  var legacyStyle = isLegacyStyle(fill) ? fill : undefined;
72
102
  var resolvedFill = legacyStyle || fill == null ? 'currentColor' : fill;
73
103
  var mergedStyle = _objectSpread(_objectSpread({}, legacyStyle || {}), style || {});
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
2
2
 
3
- type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
- type IconSlug = "acp" | "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" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
3
+ type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "LinkedIn" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
+ type IconSlug = "acp" | "amazon" | "anthropic" | "apple" | "aqara" | "cisco" | "claude-code" | "claude-code-monochrome" | "gitea" | "github" | "github-copilot" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "linkedin" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
5
5
  type IconIdentifier = IconName | IconSlug
6
6
  type IconColorMode = 'monochrome' | 'duotone' | 'multicolor' | 'fixed-color'
7
7
  type IconVariant = 'logo' | 'logomark' | 'wordmark' | 'combination-mark' | 'emblem'
@@ -15,6 +15,8 @@ interface IconMetadata {
15
15
  readonly sourceUrl: string | null
16
16
  readonly guidelinesUrl: string | null
17
17
  readonly assetLicense: IconAssetLicense
18
+ readonly viewBox: string
19
+ readonly aspectRatio: number
18
20
  readonly colorMode: IconColorMode
19
21
  readonly variant: IconVariant
20
22
  }
@@ -85,6 +87,7 @@ declare var LoadLogo: LoadLogoComponent & {
85
87
  readonly GrokKFull: LogoComponent
86
88
  readonly HomeAssistant: LogoComponent
87
89
  readonly HomeDepot: LogoComponent
90
+ readonly LinkedIn: LogoComponent
88
91
  readonly Microsoft: LogoComponent
89
92
  readonly Mqtt: LogoComponent
90
93
  readonly MSI: LogoComponent
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
2
2
 
3
- export type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
- export type IconSlug = "acp" | "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" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
3
+ export type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "LinkedIn" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
+ export type IconSlug = "acp" | "amazon" | "anthropic" | "apple" | "aqara" | "cisco" | "claude-code" | "claude-code-monochrome" | "gitea" | "github" | "github-copilot" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "linkedin" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
5
5
  export type IconIdentifier = IconName | IconSlug
6
6
  export type IconColorMode = 'monochrome' | 'duotone' | 'multicolor' | 'fixed-color'
7
7
  export type IconVariant = 'logo' | 'logomark' | 'wordmark' | 'combination-mark' | 'emblem'
@@ -15,6 +15,8 @@ export interface IconMetadata {
15
15
  readonly sourceUrl: string | null
16
16
  readonly guidelinesUrl: string | null
17
17
  readonly assetLicense: IconAssetLicense
18
+ readonly viewBox: string
19
+ readonly aspectRatio: number
18
20
  readonly colorMode: IconColorMode
19
21
  readonly variant: IconVariant
20
22
  }
@@ -77,6 +79,7 @@ export declare const Grok: LogoComponent
77
79
  export declare const GrokKFull: LogoComponent
78
80
  export declare const HomeAssistant: LogoComponent
79
81
  export declare const HomeDepot: LogoComponent
82
+ export declare const LinkedIn: LogoComponent
80
83
  export declare const Microsoft: LogoComponent
81
84
  export declare const Mqtt: LogoComponent
82
85
  export declare const MSI: LogoComponent
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'
2
2
 
3
- export type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
- export type IconSlug = "acp" | "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" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
3
+ export type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Cisco" | "ClaudeCode" | "ClaudeCodeMonochrome" | "Gitea" | "GitHub" | "GitHubCopilot" | "GitLab" | "GLiNet" | "Google" | "Grok" | "GrokKFull" | "HomeAssistant" | "HomeDepot" | "LinkedIn" | "Microsoft" | "Mqtt" | "MSI" | "Netgate" | "Netgear" | "NewEgg" | "Npm" | "OpenAi" | "OpenCode" | "OpenCodeMonochrome" | "Opensource" | "Ranteater" | "Reolink" | "Samsung" | "Shelly" | "Ubiquiti" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
+ export type IconSlug = "acp" | "amazon" | "anthropic" | "apple" | "aqara" | "cisco" | "claude-code" | "claude-code-monochrome" | "gitea" | "github" | "github-copilot" | "gitlab" | "glinet" | "google" | "grok" | "grok-full" | "home-assistant" | "home-depot" | "linkedin" | "microsoft" | "mqtt" | "msi" | "netgate" | "netgear" | "newegg" | "npm" | "openai" | "opencode" | "opencode-monochrome" | "open-source" | "ranteater" | "reolink" | "samsung" | "shelly" | "ubiquiti" | "visual-studio-code" | "wellcube" | "xai" | "xai-square-transparent" | "xiaomi"
5
5
  export type IconIdentifier = IconName | IconSlug
6
6
  export type IconColorMode = 'monochrome' | 'duotone' | 'multicolor' | 'fixed-color'
7
7
  export type IconVariant = 'logo' | 'logomark' | 'wordmark' | 'combination-mark' | 'emblem'
@@ -15,6 +15,8 @@ export interface IconMetadata {
15
15
  readonly sourceUrl: string | null
16
16
  readonly guidelinesUrl: string | null
17
17
  readonly assetLicense: IconAssetLicense
18
+ readonly viewBox: string
19
+ readonly aspectRatio: number
18
20
  readonly colorMode: IconColorMode
19
21
  readonly variant: IconVariant
20
22
  }
@@ -77,6 +79,7 @@ export declare const Grok: LogoComponent
77
79
  export declare const GrokKFull: LogoComponent
78
80
  export declare const HomeAssistant: LogoComponent
79
81
  export declare const HomeDepot: LogoComponent
82
+ export declare const LinkedIn: LogoComponent
80
83
  export declare const Microsoft: LogoComponent
81
84
  export declare const Mqtt: LogoComponent
82
85
  export declare const MSI: LogoComponent