@techbykyle/svg-logo 0.2.9 → 0.3.1

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,7 @@
1
+ import RawLogo from '../Logo/Canonical.js'
2
+ import { createLogoComponent } from '../runtime.js'
3
+ import { iconMetadata } from '../metadata.js'
4
+
5
+ const Canonical = createLogoComponent(RawLogo, iconMetadata.Canonical)
6
+
7
+ export default Canonical
@@ -0,0 +1,7 @@
1
+ import RawLogo from '../Logo/Ubuntu.js'
2
+ import { createLogoComponent } from '../runtime.js'
3
+ import { iconMetadata } from '../metadata.js'
4
+
5
+ const Ubuntu = createLogoComponent(RawLogo, iconMetadata.Ubuntu)
6
+
7
+ export default Ubuntu
package/dist/esm/index.js CHANGED
@@ -6,6 +6,7 @@ export { default as Amazon } from './icons/Amazon.js'
6
6
  export { default as Anthropic } from './icons/Anthropic.js'
7
7
  export { default as Apple } from './icons/Apple.js'
8
8
  export { default as Aqara } from './icons/Aqara.js'
9
+ export { default as Canonical } from './icons/Canonical.js'
9
10
  export { default as Cisco } from './icons/Cisco.js'
10
11
  export { default as ClaudeCode } from './icons/ClaudeCode.js'
11
12
  export { default as ClaudeCodeMonochrome } from './icons/ClaudeCodeMonochrome.js'
@@ -36,6 +37,7 @@ export { default as Reolink } from './icons/Reolink.js'
36
37
  export { default as Samsung } from './icons/Samsung.js'
37
38
  export { default as Shelly } from './icons/Shelly.js'
38
39
  export { default as Ubiquiti } from './icons/Ubiquiti.js'
40
+ export { default as Ubuntu } from './icons/Ubuntu.js'
39
41
  export { default as VsCode } from './icons/VsCode.js'
40
42
  export { default as Wellcube } from './icons/Wellcube.js'
41
43
  export { default as XAI } from './icons/XAI.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,23 @@ 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"
66
+ },
67
+ {
68
+ "exportName": "Canonical",
69
+ "slug": "canonical",
70
+ "title": "Canonical",
71
+ "source": "Canonical UI identifier using the same square monochrome Ubuntu Circle of Friends variant",
72
+ "sourceUrl": "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
73
+ "guidelinesUrl": "https://design.ubuntu.com/brand",
74
+ "assetLicense": "trademark",
75
+ "aspectRatio": 1,
76
+ "colorMode": "monochrome",
77
+ "variant": "logomark",
78
+ "viewBox": "0 -1.29 60.45 60.45"
56
79
  },
57
80
  {
58
81
  "exportName": "Cisco",
@@ -62,8 +85,10 @@ const entries = [
62
85
  "sourceUrl": null,
63
86
  "guidelinesUrl": null,
64
87
  "assetLicense": "trademark",
88
+ "aspectRatio": 1,
65
89
  "colorMode": "monochrome",
66
- "variant": "logo"
90
+ "variant": "logo",
91
+ "viewBox": "0 0 24 24"
67
92
  },
68
93
  {
69
94
  "exportName": "ClaudeCode",
@@ -73,8 +98,10 @@ const entries = [
73
98
  "sourceUrl": "https://www.anthropic.com/news",
74
99
  "guidelinesUrl": null,
75
100
  "assetLicense": "trademark",
101
+ "aspectRatio": 1,
76
102
  "colorMode": "fixed-color",
77
- "variant": "logomark"
103
+ "variant": "logomark",
104
+ "viewBox": "0 0 94 94"
78
105
  },
79
106
  {
80
107
  "exportName": "ClaudeCodeMonochrome",
@@ -84,8 +111,10 @@ const entries = [
84
111
  "sourceUrl": "https://www.anthropic.com/news",
85
112
  "guidelinesUrl": null,
86
113
  "assetLicense": "trademark",
114
+ "aspectRatio": 1,
87
115
  "colorMode": "monochrome",
88
- "variant": "logomark"
116
+ "variant": "logomark",
117
+ "viewBox": "0 0 94 94"
89
118
  },
90
119
  {
91
120
  "exportName": "Gitea",
@@ -95,8 +124,10 @@ const entries = [
95
124
  "sourceUrl": null,
96
125
  "guidelinesUrl": null,
97
126
  "assetLicense": "trademark",
127
+ "aspectRatio": 1,
98
128
  "colorMode": "monochrome",
99
- "variant": "logo"
129
+ "variant": "logo",
130
+ "viewBox": "0 0 24 24"
100
131
  },
101
132
  {
102
133
  "exportName": "GitHub",
@@ -106,8 +137,10 @@ const entries = [
106
137
  "sourceUrl": null,
107
138
  "guidelinesUrl": null,
108
139
  "assetLicense": "trademark",
140
+ "aspectRatio": 1,
109
141
  "colorMode": "monochrome",
110
- "variant": "logo"
142
+ "variant": "logo",
143
+ "viewBox": "0 0 48 48"
111
144
  },
112
145
  {
113
146
  "exportName": "GitHubCopilot",
@@ -117,8 +150,10 @@ const entries = [
117
150
  "sourceUrl": "https://github.com/primer/octicons/blob/0e21a4c2d8449102f10e533d241f04797af0914c/icons/copilot-24.svg",
118
151
  "guidelinesUrl": "https://brand.github.com/brand-identity/copilot",
119
152
  "assetLicense": "trademark",
153
+ "aspectRatio": 1,
120
154
  "colorMode": "monochrome",
121
- "variant": "logomark"
155
+ "variant": "logomark",
156
+ "viewBox": "0 0 24 24"
122
157
  },
123
158
  {
124
159
  "exportName": "GitLab",
@@ -128,8 +163,10 @@ const entries = [
128
163
  "sourceUrl": null,
129
164
  "guidelinesUrl": null,
130
165
  "assetLicense": "trademark",
166
+ "aspectRatio": 1,
131
167
  "colorMode": "monochrome",
132
- "variant": "logo"
168
+ "variant": "logo",
169
+ "viewBox": "0 0 32 32"
133
170
  },
134
171
  {
135
172
  "exportName": "GLiNet",
@@ -139,8 +176,10 @@ const entries = [
139
176
  "sourceUrl": null,
140
177
  "guidelinesUrl": null,
141
178
  "assetLicense": "trademark",
179
+ "aspectRatio": 1,
142
180
  "colorMode": "monochrome",
143
- "variant": "logo"
181
+ "variant": "logo",
182
+ "viewBox": "0 0 24 24"
144
183
  },
145
184
  {
146
185
  "exportName": "Google",
@@ -150,8 +189,10 @@ const entries = [
150
189
  "sourceUrl": null,
151
190
  "guidelinesUrl": null,
152
191
  "assetLicense": "trademark",
192
+ "aspectRatio": 1,
153
193
  "colorMode": "monochrome",
154
- "variant": "logo"
194
+ "variant": "logo",
195
+ "viewBox": "0 0 24 24"
155
196
  },
156
197
  {
157
198
  "exportName": "Grok",
@@ -161,8 +202,10 @@ const entries = [
161
202
  "sourceUrl": null,
162
203
  "guidelinesUrl": null,
163
204
  "assetLicense": "trademark",
205
+ "aspectRatio": 1,
164
206
  "colorMode": "monochrome",
165
- "variant": "logomark"
207
+ "variant": "logomark",
208
+ "viewBox": "0 0 1024 1024"
166
209
  },
167
210
  {
168
211
  "exportName": "GrokKFull",
@@ -172,8 +215,10 @@ const entries = [
172
215
  "sourceUrl": null,
173
216
  "guidelinesUrl": null,
174
217
  "assetLicense": "trademark",
218
+ "aspectRatio": 2.56,
175
219
  "colorMode": "monochrome",
176
- "variant": "combination-mark"
220
+ "variant": "combination-mark",
221
+ "viewBox": "0 0 1024 400"
177
222
  },
178
223
  {
179
224
  "exportName": "HomeAssistant",
@@ -183,8 +228,10 @@ const entries = [
183
228
  "sourceUrl": null,
184
229
  "guidelinesUrl": null,
185
230
  "assetLicense": "trademark",
231
+ "aspectRatio": 1,
186
232
  "colorMode": "monochrome",
187
- "variant": "logo"
233
+ "variant": "logo",
234
+ "viewBox": "0 0 24 24"
188
235
  },
189
236
  {
190
237
  "exportName": "HomeDepot",
@@ -194,8 +241,10 @@ const entries = [
194
241
  "sourceUrl": null,
195
242
  "guidelinesUrl": null,
196
243
  "assetLicense": "trademark",
244
+ "aspectRatio": 1,
197
245
  "colorMode": "duotone",
198
- "variant": "logo"
246
+ "variant": "logo",
247
+ "viewBox": "0 0 192.756 192.756"
199
248
  },
200
249
  {
201
250
  "exportName": "LinkedIn",
@@ -205,8 +254,10 @@ const entries = [
205
254
  "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/5.0.0/icons/linkedin.svg",
206
255
  "guidelinesUrl": "https://brand.linkedin.com/policies",
207
256
  "assetLicense": "trademark",
257
+ "aspectRatio": 1,
208
258
  "colorMode": "monochrome",
209
- "variant": "logo"
259
+ "variant": "logo",
260
+ "viewBox": "0 0 24 24"
210
261
  },
211
262
  {
212
263
  "exportName": "Microsoft",
@@ -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 512 512"
221
274
  },
222
275
  {
223
276
  "exportName": "Mqtt",
@@ -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": "MSI",
@@ -238,8 +293,10 @@ const entries = [
238
293
  "sourceUrl": null,
239
294
  "guidelinesUrl": null,
240
295
  "assetLicense": "trademark",
296
+ "aspectRatio": 1,
241
297
  "colorMode": "monochrome",
242
- "variant": "logo"
298
+ "variant": "logo",
299
+ "viewBox": "0 0 24 24"
243
300
  },
244
301
  {
245
302
  "exportName": "Netgate",
@@ -249,8 +306,10 @@ const entries = [
249
306
  "sourceUrl": null,
250
307
  "guidelinesUrl": null,
251
308
  "assetLicense": "trademark",
309
+ "aspectRatio": 1,
252
310
  "colorMode": "duotone",
253
- "variant": "logo"
311
+ "variant": "logo",
312
+ "viewBox": "0 0 192.756 192.756"
254
313
  },
255
314
  {
256
315
  "exportName": "Netgear",
@@ -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": "NewEgg",
@@ -271,8 +332,10 @@ const entries = [
271
332
  "sourceUrl": null,
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": "Npm",
@@ -282,8 +345,10 @@ const entries = [
282
345
  "sourceUrl": "https://github.com/simple-icons/simple-icons/blob/develop/icons/npm.svg",
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": "OpenAi",
@@ -293,8 +358,10 @@ const entries = [
293
358
  "sourceUrl": null,
294
359
  "guidelinesUrl": null,
295
360
  "assetLicense": "trademark",
361
+ "aspectRatio": 1,
296
362
  "colorMode": "monochrome",
297
- "variant": "logo"
363
+ "variant": "logo",
364
+ "viewBox": "0 0 24 24"
298
365
  },
299
366
  {
300
367
  "exportName": "OpenCode",
@@ -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": "fixed-color",
308
- "variant": "logomark"
376
+ "variant": "logomark",
377
+ "viewBox": "0 0 512 512"
309
378
  },
310
379
  {
311
380
  "exportName": "OpenCodeMonochrome",
@@ -315,8 +384,10 @@ const entries = [
315
384
  "sourceUrl": "https://github.com/anomalyco/opencode/blob/1c965451b537e1af4bff12c163200f762a6a0364/packages/web/public/favicon-v3.svg",
316
385
  "guidelinesUrl": null,
317
386
  "assetLicense": "trademark",
387
+ "aspectRatio": 1,
318
388
  "colorMode": "monochrome",
319
- "variant": "logomark"
389
+ "variant": "logomark",
390
+ "viewBox": "0 0 512 512"
320
391
  },
321
392
  {
322
393
  "exportName": "Opensource",
@@ -326,8 +397,10 @@ const entries = [
326
397
  "sourceUrl": null,
327
398
  "guidelinesUrl": null,
328
399
  "assetLicense": "unknown",
400
+ "aspectRatio": 1,
329
401
  "colorMode": "monochrome",
330
- "variant": "logo"
402
+ "variant": "logo",
403
+ "viewBox": "0 0 512 512"
331
404
  },
332
405
  {
333
406
  "exportName": "Ranteater",
@@ -337,8 +410,10 @@ const entries = [
337
410
  "sourceUrl": null,
338
411
  "guidelinesUrl": null,
339
412
  "assetLicense": "project-owned",
413
+ "aspectRatio": 1,
340
414
  "colorMode": "fixed-color",
341
- "variant": "emblem"
415
+ "variant": "emblem",
416
+ "viewBox": "0 0 336 336"
342
417
  },
343
418
  {
344
419
  "exportName": "Reolink",
@@ -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 512 512"
353
430
  },
354
431
  {
355
432
  "exportName": "Samsung",
@@ -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 128 128"
364
443
  },
365
444
  {
366
445
  "exportName": "Shelly",
@@ -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": "Ubiquiti",
@@ -381,8 +462,23 @@ const entries = [
381
462
  "sourceUrl": null,
382
463
  "guidelinesUrl": null,
383
464
  "assetLicense": "trademark",
465
+ "aspectRatio": 1,
466
+ "colorMode": "monochrome",
467
+ "variant": "logo",
468
+ "viewBox": "0 0 24 24"
469
+ },
470
+ {
471
+ "exportName": "Ubuntu",
472
+ "slug": "ubuntu",
473
+ "title": "Ubuntu",
474
+ "source": "Square monochrome UI variant of Canonical’s official standalone Ubuntu Circle of Friends SVG",
475
+ "sourceUrl": "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
476
+ "guidelinesUrl": "https://design.ubuntu.com/brand",
477
+ "assetLicense": "trademark",
478
+ "aspectRatio": 1,
384
479
  "colorMode": "monochrome",
385
- "variant": "logo"
480
+ "variant": "logomark",
481
+ "viewBox": "0 -1.29 60.45 60.45"
386
482
  },
387
483
  {
388
484
  "exportName": "VsCode",
@@ -392,8 +488,10 @@ const entries = [
392
488
  "sourceUrl": null,
393
489
  "guidelinesUrl": null,
394
490
  "assetLicense": "trademark",
491
+ "aspectRatio": 1,
395
492
  "colorMode": "monochrome",
396
- "variant": "logo"
493
+ "variant": "logo",
494
+ "viewBox": "0 0 32 32"
397
495
  },
398
496
  {
399
497
  "exportName": "Wellcube",
@@ -403,8 +501,10 @@ const entries = [
403
501
  "sourceUrl": null,
404
502
  "guidelinesUrl": null,
405
503
  "assetLicense": "trademark",
504
+ "aspectRatio": 1,
406
505
  "colorMode": "monochrome",
407
- "variant": "logo"
506
+ "variant": "logo",
507
+ "viewBox": "0 0 70 70"
408
508
  },
409
509
  {
410
510
  "exportName": "XAI",
@@ -414,8 +514,10 @@ const entries = [
414
514
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
415
515
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
416
516
  "assetLicense": "trademark",
517
+ "aspectRatio": 1,
417
518
  "colorMode": "fixed-color",
418
- "variant": "logomark"
519
+ "variant": "logomark",
520
+ "viewBox": "0 0 600 600"
419
521
  },
420
522
  {
421
523
  "exportName": "XAISquareTransparent",
@@ -425,8 +527,10 @@ const entries = [
425
527
  "sourceUrl": "https://x.ai/legal/brand-guidelines",
426
528
  "guidelinesUrl": "https://x.ai/legal/brand-guidelines",
427
529
  "assetLicense": "trademark",
530
+ "aspectRatio": 1,
428
531
  "colorMode": "fixed-color",
429
- "variant": "logomark"
532
+ "variant": "logomark",
533
+ "viewBox": "0 0 600 600"
430
534
  },
431
535
  {
432
536
  "exportName": "Xiaomi",
@@ -436,8 +540,10 @@ const entries = [
436
540
  "sourceUrl": null,
437
541
  "guidelinesUrl": null,
438
542
  "assetLicense": "trademark",
543
+ "aspectRatio": 1,
439
544
  "colorMode": "monochrome",
440
- "variant": "logo"
545
+ "variant": "logo",
546
+ "viewBox": "0 0 24 24"
441
547
  }
442
548
  ]
443
549
 
@@ -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" | "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"
3
+ type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Canonical" | "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" | "Ubuntu" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
+ type IconSlug = "acp" | "amazon" | "anthropic" | "apple" | "aqara" | "canonical" | "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" | "ubuntu" | "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
  }
@@ -72,6 +74,7 @@ declare var LoadLogo: LoadLogoComponent & {
72
74
  readonly Anthropic: LogoComponent
73
75
  readonly Apple: LogoComponent
74
76
  readonly Aqara: LogoComponent
77
+ readonly Canonical: LogoComponent
75
78
  readonly Cisco: LogoComponent
76
79
  readonly ClaudeCode: LogoComponent
77
80
  readonly ClaudeCodeMonochrome: LogoComponent
@@ -102,6 +105,7 @@ declare var LoadLogo: LoadLogoComponent & {
102
105
  readonly Samsung: LogoComponent
103
106
  readonly Shelly: LogoComponent
104
107
  readonly Ubiquiti: LogoComponent
108
+ readonly Ubuntu: LogoComponent
105
109
  readonly VsCode: LogoComponent
106
110
  readonly Wellcube: LogoComponent
107
111
  readonly XAI: 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" | "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"
3
+ export type IconName = "ACP" | "Amazon" | "Anthropic" | "Apple" | "Aqara" | "Canonical" | "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" | "Ubuntu" | "VsCode" | "Wellcube" | "XAI" | "XAISquareTransparent" | "Xiaomi"
4
+ export type IconSlug = "acp" | "amazon" | "anthropic" | "apple" | "aqara" | "canonical" | "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" | "ubuntu" | "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
  }
@@ -64,6 +66,7 @@ export declare const Amazon: LogoComponent
64
66
  export declare const Anthropic: LogoComponent
65
67
  export declare const Apple: LogoComponent
66
68
  export declare const Aqara: LogoComponent
69
+ export declare const Canonical: LogoComponent
67
70
  export declare const Cisco: LogoComponent
68
71
  export declare const ClaudeCode: LogoComponent
69
72
  export declare const ClaudeCodeMonochrome: LogoComponent
@@ -94,6 +97,7 @@ export declare const Reolink: LogoComponent
94
97
  export declare const Samsung: LogoComponent
95
98
  export declare const Shelly: LogoComponent
96
99
  export declare const Ubiquiti: LogoComponent
100
+ export declare const Ubuntu: LogoComponent
97
101
  export declare const VsCode: LogoComponent
98
102
  export declare const Wellcube: LogoComponent
99
103
  export declare const XAI: LogoComponent