react-car-logo 0.2.0 → 0.2.2
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/LEGAL.md +1 -1
- package/package.json +3 -4
- package/dist/logos/Apollo.d.ts +0 -5
- package/dist/logos/Apollo.js +0 -24
- package/dist/logos/Czinger.d.ts +0 -5
- package/dist/logos/Czinger.js +0 -24
- package/dist/logos/Dallara.d.ts +0 -5
- package/dist/logos/Dallara.js +0 -24
- package/dist/logos/Glickenhaus.d.ts +0 -5
- package/dist/logos/Glickenhaus.js +0 -24
- package/dist/logos/Icona.d.ts +0 -5
- package/dist/logos/Icona.js +0 -24
- package/dist/logos/Italdesign.d.ts +0 -5
- package/dist/logos/Italdesign.js +0 -24
- package/dist/logos/Lister.d.ts +0 -5
- package/dist/logos/Lister.js +0 -24
- package/dist/logos/Lykan.d.ts +0 -5
- package/dist/logos/Lykan.js +0 -24
- package/dist/logos/Noble.d.ts +0 -5
- package/dist/logos/Noble.js +0 -24
- package/dist/logos/RUF.d.ts +0 -5
- package/dist/logos/RUF.js +0 -24
- package/dist/types-DV3vCP6D.js +0 -45
- package/dist/types-DfZOvtAx.js +0 -54
package/LEGAL.md
CHANGED
|
@@ -18,5 +18,5 @@ By using this package, you agree to:
|
|
|
18
18
|
## Takedown Policy
|
|
19
19
|
|
|
20
20
|
If you are a trademark owner and believe a logo is being used improperly,
|
|
21
|
-
please open an issue at [github.com/mattwhite8/
|
|
21
|
+
please open an issue at [github.com/mattwhite8/react-car-logo/issues](https://github.com/mattwhite8/react-car-logo/issues)
|
|
22
22
|
and we will remove the relevant content promptly.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-car-logo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "PNG logo components for exotic & luxury car brands. React & React Native compatible. Tree-shakeable.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"test": "jest",
|
|
21
21
|
"test:watch": "jest --watch",
|
|
22
22
|
"lint": "eslint src --ext .ts,.tsx",
|
|
23
|
-
"generate": "ts-node scripts/generate-logos.ts"
|
|
24
|
-
"prepublishOnly": "npm run typecheck && npm run test && npm run build"
|
|
23
|
+
"generate": "ts-node scripts/generate-logos.ts"
|
|
25
24
|
},
|
|
26
25
|
"exports": {
|
|
27
26
|
".": {
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
"license": "SEE LICENSE IN LICENSE",
|
|
64
63
|
"repository": {
|
|
65
64
|
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/mattwhite8/
|
|
65
|
+
"url": "git+https://github.com/mattwhite8/react-car-logo.git"
|
|
67
66
|
},
|
|
68
67
|
"devDependencies": {
|
|
69
68
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
package/dist/logos/Apollo.d.ts
DELETED
package/dist/logos/Apollo.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Apollo",
|
|
6
|
-
slug: "apollo",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/apollo-logo-2016-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/apollo-logo.html",
|
|
9
|
-
country: "Germany",
|
|
10
|
-
region: "German",
|
|
11
|
-
founded: 2004,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Apollo = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Apollo", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/apollo-logo-2016-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Apollo, Apollo as default, meta };
|
package/dist/logos/Czinger.d.ts
DELETED
package/dist/logos/Czinger.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Czinger",
|
|
6
|
-
slug: "czinger",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/czinger-logo-2020-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/czinger-logo.html",
|
|
9
|
-
country: "USA",
|
|
10
|
-
region: "American",
|
|
11
|
-
founded: 2019,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Czinger = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Czinger", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/czinger-logo-2020-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Czinger, Czinger as default, meta };
|
package/dist/logos/Dallara.d.ts
DELETED
package/dist/logos/Dallara.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Dallara",
|
|
6
|
-
slug: "dallara",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/dallara-logo-2020-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/dallara-logo.html",
|
|
9
|
-
country: "Italy",
|
|
10
|
-
region: "Italian",
|
|
11
|
-
founded: 1972,
|
|
12
|
-
hex: "003087",
|
|
13
|
-
};
|
|
14
|
-
const Dallara = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Dallara", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/dallara-logo-2020-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Dallara, Dallara as default, meta };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Glickenhaus",
|
|
6
|
-
slug: "glickenhaus",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/glickenhaus-logo-2011-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/glickenhaus-logo.html",
|
|
9
|
-
country: "USA",
|
|
10
|
-
region: "American",
|
|
11
|
-
founded: 2004,
|
|
12
|
-
hex: "CC0000",
|
|
13
|
-
};
|
|
14
|
-
const Glickenhaus = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Glickenhaus", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/glickenhaus-logo-2011-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Glickenhaus, Glickenhaus as default, meta };
|
package/dist/logos/Icona.d.ts
DELETED
package/dist/logos/Icona.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Icona",
|
|
6
|
-
slug: "icona",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/icona-logo-2020-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/icona-logo.html",
|
|
9
|
-
country: "Italy",
|
|
10
|
-
region: "Other",
|
|
11
|
-
founded: 2009,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Icona = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Icona", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/icona-logo-2020-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Icona, Icona as default, meta };
|
package/dist/logos/Italdesign.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Italdesign",
|
|
6
|
-
slug: "italdesign",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/italdesign-logo-2015-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/italdesign-logo.html",
|
|
9
|
-
country: "Italy",
|
|
10
|
-
region: "Italian",
|
|
11
|
-
founded: 1968,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Italdesign = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Italdesign", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/italdesign-logo-2015-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Italdesign, Italdesign as default, meta };
|
package/dist/logos/Lister.d.ts
DELETED
package/dist/logos/Lister.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Lister",
|
|
6
|
-
slug: "lister",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/lister-logo-2014-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/lister-logo.html",
|
|
9
|
-
country: "UK",
|
|
10
|
-
region: "British",
|
|
11
|
-
founded: 1954,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Lister = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Lister", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/lister-logo-2014-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Lister, Lister as default, meta };
|
package/dist/logos/Lykan.d.ts
DELETED
package/dist/logos/Lykan.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Lykan",
|
|
6
|
-
slug: "lykan",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/lykan-logo-2012-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/lykan-logo.html",
|
|
9
|
-
country: "UAE",
|
|
10
|
-
region: "Other",
|
|
11
|
-
founded: 2012,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Lykan = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Lykan", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/lykan-logo-2012-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Lykan, Lykan as default, meta };
|
package/dist/logos/Noble.d.ts
DELETED
package/dist/logos/Noble.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Noble",
|
|
6
|
-
slug: "noble",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/noble-logo-2011-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/noble-logo.html",
|
|
9
|
-
country: "UK",
|
|
10
|
-
region: "British",
|
|
11
|
-
founded: 1999,
|
|
12
|
-
hex: "1A1A1A",
|
|
13
|
-
};
|
|
14
|
-
const Noble = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "Noble", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/noble-logo-2011-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Noble, Noble as default, meta };
|
package/dist/logos/RUF.d.ts
DELETED
package/dist/logos/RUF.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, S as SIZE_MAP, C as CDN_WIDTH_MAP } from '../types-DfZOvtAx.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "RUF",
|
|
6
|
-
slug: "ruf",
|
|
7
|
-
pngUrl: "https://www.carlogos.org/car-logos/ruf-logo-2012-640.png",
|
|
8
|
-
source: "https://www.carlogos.org/car-brands/ruf-logo.html",
|
|
9
|
-
country: "Germany",
|
|
10
|
-
region: "German",
|
|
11
|
-
founded: 1939,
|
|
12
|
-
hex: "003087",
|
|
13
|
-
};
|
|
14
|
-
const RUF = (_a) => {
|
|
15
|
-
var _b;
|
|
16
|
-
var { size = "md", width, height, alt = "RUF", loading = "lazy", style } = _a, props = __rest(_a, ["size", "width", "height", "alt", "loading", "style"]);
|
|
17
|
-
const hasCustomDimension = width != null || height != null;
|
|
18
|
-
const renderPx = (_b = width !== null && width !== void 0 ? width : height) !== null && _b !== void 0 ? _b : SIZE_MAP[size];
|
|
19
|
-
const fetchWidth = hasCustomDimension ? 640 : CDN_WIDTH_MAP[size];
|
|
20
|
-
const src = `https://www.carlogos.org/car-logos/ruf-logo-2012-${fetchWidth}.png`;
|
|
21
|
-
return (React.createElement("img", Object.assign({ src: src, alt: alt, width: renderPx, height: renderPx, loading: loading, style: Object.assign({ objectFit: "contain" }, style) }, props)));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { RUF, RUF as default, meta };
|
package/dist/types-DV3vCP6D.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __rest(s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
-
var e = new Error(message);
|
|
32
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Pixel dimensions for each size tier.
|
|
37
|
-
* Maps directly to carlogos.org's available PNG widths.
|
|
38
|
-
*/
|
|
39
|
-
const SIZE_MAP = {
|
|
40
|
-
sm: 80, // Thumbnails, nav icons, table cells
|
|
41
|
-
md: 160, // Cards, lists, sidebars (default)
|
|
42
|
-
lg: 320, // Hero sections, detail views
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { SIZE_MAP as S, __rest as _ };
|
package/dist/types-DfZOvtAx.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __rest(s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
-
var e = new Error(message);
|
|
32
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Pixel dimensions for each size tier.
|
|
37
|
-
* Maps directly to carlogos.org's available PNG widths.
|
|
38
|
-
*/
|
|
39
|
-
const SIZE_MAP = {
|
|
40
|
-
sm: 80, // Thumbnails, nav icons, table cells
|
|
41
|
-
md: 160, // Cards, lists, sidebars (default)
|
|
42
|
-
lg: 320, // Hero sections, detail views
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Width in pixels used when fetching from carlogos.org.
|
|
46
|
-
* Their CDN serves: 160, 320, 640.
|
|
47
|
-
*/
|
|
48
|
-
const CDN_WIDTH_MAP = {
|
|
49
|
-
sm: 160, // Fetch 160px for 80px display (2x retina)
|
|
50
|
-
md: 320, // Fetch 320px for 160px display (2x retina)
|
|
51
|
-
lg: 640, // Fetch 640px for 320px display (2x retina)
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export { CDN_WIDTH_MAP as C, SIZE_MAP as S, __rest as _ };
|