@anchor-protocol/token-icons
Advanced tools
Comparing version 0.19.0 to 0.20.0
"use strict"; | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -33,15 +7,14 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
exports.GifIcon = exports.TokenIcon = exports.TokenIconBase = exports.tokenImages = exports.variants = exports.tokens = exports.anc160gif = exports.anc80gif = void 0; | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_components_1 = __importDefault(require("styled-components")); | ||
var anc_80_gif_1 = __importDefault(require("./assets/anc@80.gif.js")); | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
const styled_components_1 = __importDefault(require("styled-components")); | ||
const anc_80_gif_1 = __importDefault(require("./assets/anc@80.gif.js")); | ||
exports.anc80gif = anc_80_gif_1.default; | ||
var anc_160_gif_1 = __importDefault(require("./assets/anc@160.gif.js")); | ||
const anc_160_gif_1 = __importDefault(require("./assets/anc@160.gif.js")); | ||
exports.anc160gif = anc_160_gif_1.default; | ||
exports.tokens = ['ust', 'krt', 'aust', 'akrt', 'luna', 'bluna']; | ||
exports.variants = ['svg', '@2x', '@3x', '@4x']; | ||
function convert(_a) { | ||
var src = _a.default, Component = _a.ReactComponent; | ||
function convert({ default: src, ReactComponent: Component, }) { | ||
return { | ||
src: src, | ||
Component: Component, | ||
src, | ||
Component, | ||
}; | ||
@@ -51,3 +24,3 @@ } | ||
ust: { | ||
svg: convert(require("./assets/ust.svg.js")), | ||
'svg': convert(require("./assets/ust.svg.js")), | ||
'@2x': convert(require("./assets/ust@2x.png.js")), | ||
@@ -58,3 +31,3 @@ '@3x': convert(require("./assets/ust@3x.png.js")), | ||
krt: { | ||
svg: convert(require("./assets/krt.svg.js")), | ||
'svg': convert(require("./assets/krt.svg.js")), | ||
'@2x': convert(require("./assets/krt@2x.png.js")), | ||
@@ -65,3 +38,3 @@ '@3x': convert(require("./assets/krt@3x.png.js")), | ||
aust: { | ||
svg: convert(require("./assets/aust.svg.js")), | ||
'svg': convert(require("./assets/aust.svg.js")), | ||
'@2x': convert(require("./assets/aust@2x.png.js")), | ||
@@ -72,3 +45,3 @@ '@3x': convert(require("./assets/aust@3x.png.js")), | ||
akrt: { | ||
svg: convert(require("./assets/akrt.svg.js")), | ||
'svg': convert(require("./assets/akrt.svg.js")), | ||
'@2x': convert(require("./assets/akrt@2x.png.js")), | ||
@@ -79,3 +52,3 @@ '@3x': convert(require("./assets/akrt@3x.png.js")), | ||
luna: { | ||
svg: convert(require("./assets/luna.svg.js")), | ||
'svg': convert(require("./assets/luna.svg.js")), | ||
'@2x': convert(require("./assets/luna@2x.png.js")), | ||
@@ -86,3 +59,3 @@ '@3x': convert(require("./assets/luna@3x.png.js")), | ||
bluna: { | ||
svg: convert(require("./assets/bluna.svg.js")), | ||
'svg': convert(require("./assets/bluna.svg.js")), | ||
'@2x': convert(require("./assets/bluna@2x.png.js")), | ||
@@ -93,10 +66,14 @@ '@3x': convert(require("./assets/bluna@3x.png.js")), | ||
}; | ||
function TokenIconBase(_a) { | ||
var token = _a.token, _b = _a.variant, variant = _b === void 0 ? 'svg' : _b, imgProps = __rest(_a, ["token", "variant"]); | ||
return jsx_runtime_1.jsx("img", __assign({ alt: "" }, imgProps, { src: exports.tokenImages[token][variant].src }), void 0); | ||
function TokenIconBase({ token, variant = 'svg', ...imgProps }) { | ||
return jsx_runtime_1.jsx("img", Object.assign({ alt: "" }, imgProps, { src: exports.tokenImages[token][variant].src }), void 0); | ||
} | ||
exports.TokenIconBase = TokenIconBase; | ||
exports.TokenIcon = styled_components_1.default(TokenIconBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 1em;\n height: 1em;\n"], ["\n width: 1em;\n height: 1em;\n"]))); | ||
exports.GifIcon = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 1em;\n height: 1em;\n"], ["\n width: 1em;\n height: 1em;\n"]))); | ||
var templateObject_1, templateObject_2; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGFuY2hvci1wcm90b2NvbC90b2tlbi1pY29ucy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0Esd0VBQXVDO0FBQ3ZDLHNFQUEyQztBQUdsQyxtQkFIRixvQkFBUSxDQUdFO0FBRmpCLHdFQUE2QztBQUUxQixvQkFGWixxQkFBUyxDQUVZO0FBRWYsUUFBQSxNQUFNLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBVSxDQUFDO0FBQ2xFLFFBQUEsUUFBUSxHQ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dGVzPEhUTUxJbWFnZUVsZW1lbnQ+LCBIVE1MSW1hZ2VFbGVtZW50PixcbiAgICAnc3JjJ1xuICA+IHtcbiAgdG9rZW46IFRva2VucztcbiAgdmFyaWFudD86IEljb25WYXJpYW50O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gVG9rZW5JY29uQmFzZSh7XG4gIHRva2VuLFxuICB2YXJpYW50ID0gJ3N2ZycsXG4gIC4uLmltZ1Byb3BzXG59OiBJY29uUHJvcHMpIHtcbiAgcmV0dXJuIDxpbWcgYWx0PVwiXCIgey4uLmltZ1Byb3BzfSBzcmM9e3Rva2VuSW1hZ2VzW3Rva2VuXVt2YXJpYW50XS5zcmN9IC8+O1xufVxuXG5leHBvcnQgY29uc3QgVG9rZW5JY29uID0gc3R5bGVkKFRva2VuSWNvbkJhc2UpYFxuICB3aWR0aDogMWVtO1xuICBoZWlnaHQ6IDFlbTtcbmA7XG5cbmV4cG9ydCBjb25zdCBHaWZJY29uID0gc3R5bGVkLmltZ2BcbiAgd2lkdGg6IDFlbTtcbiAgaGVpZ2h0OiAxZW07XG5gO1xuIl19 | ||
exports.TokenIcon = styled_components_1.default(TokenIconBase) ` | ||
width: 1em; | ||
height: 1em; | ||
`; | ||
exports.GifIcon = styled_components_1.default.img ` | ||
width: 1em; | ||
height: 1em; | ||
`; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGFuY2hvci1wcm90b2NvbC90b2tlbi1pY29ucy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUNBLDBFQUF1QztBQUN2Qyx3RUFBMkM7QUFHbEMsbUJBSEYsb0JBQVEsQ0FHRTtBQUZqQiwwRUFBNkM7QUFFMUIsb0JBRloscUJBQVMsQ0FFWTtBQUVmLFFBQUEsTUFBTSxHQUFHL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ljb25Qcm9wc1xuICBleHRlbmRzIE9taXQ8XG4gICAgRGV0YWlsZWRIVE1MUHJvcHM8SW1nSFRNTEF0dHJpYnV0ZXM8SFRNTEltYWdlRWxlbWVudD4sIEhUTUxJbWFnZUVsZW1lbnQ+LFxuICAgICdzcmMnXG4gID4ge1xuICB0b2tlbjogVG9rZW5zO1xuICB2YXJpYW50PzogSWNvblZhcmlhbnQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBUb2tlbkljb25CYXNlKHtcbiAgdG9rZW4sXG4gIHZhcmlhbnQgPSAnc3ZnJyxcbiAgLi4uaW1nUHJvcHNcbn06IEljb25Qcm9wcykge1xuICByZXR1cm4gPGltZyBhbHQ9XCJcIiB7Li4uaW1nUHJvcHN9IHNyYz17dG9rZW5JbWFnZXNbdG9rZW5dW3ZhcmlhbnRdLnNyY30gLz47XG59XG5cbmV4cG9ydCBjb25zdCBUb2tlbkljb24gPSBzdHlsZWQoVG9rZW5JY29uQmFzZSlgXG4gIHdpZHRoOiAxZW07XG4gIGhlaWdodDogMWVtO1xuYDtcblxuZXhwb3J0IGNvbnN0IEdpZkljb24gPSBzdHlsZWQuaW1nYFxuICB3aWR0aDogMWVtO1xuICBoZWlnaHQ6IDFlbTtcbmA7XG4iXX0= |
69
index.js
@@ -1,27 +0,1 @@ | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
@@ -32,14 +6,13 @@ import styled from 'styled-components'; | ||
export { anc80gif, anc160gif }; | ||
export var tokens = ['ust', 'krt', 'aust', 'akrt', 'luna', 'bluna']; | ||
export var variants = ['svg', '@2x', '@3x', '@4x']; | ||
function convert(_a) { | ||
var src = _a.default, Component = _a.ReactComponent; | ||
export const tokens = ['ust', 'krt', 'aust', 'akrt', 'luna', 'bluna']; | ||
export const variants = ['svg', '@2x', '@3x', '@4x']; | ||
function convert({ default: src, ReactComponent: Component, }) { | ||
return { | ||
src: src, | ||
Component: Component, | ||
src, | ||
Component, | ||
}; | ||
} | ||
export var tokenImages = { | ||
export const tokenImages = { | ||
ust: { | ||
svg: convert(require("./assets/ust.svg.js")), | ||
'svg': convert(require("./assets/ust.svg.js")), | ||
'@2x': convert(require("./assets/ust@2x.png.js")), | ||
@@ -50,3 +23,3 @@ '@3x': convert(require("./assets/ust@3x.png.js")), | ||
krt: { | ||
svg: convert(require("./assets/krt.svg.js")), | ||
'svg': convert(require("./assets/krt.svg.js")), | ||
'@2x': convert(require("./assets/krt@2x.png.js")), | ||
@@ -57,3 +30,3 @@ '@3x': convert(require("./assets/krt@3x.png.js")), | ||
aust: { | ||
svg: convert(require("./assets/aust.svg.js")), | ||
'svg': convert(require("./assets/aust.svg.js")), | ||
'@2x': convert(require("./assets/aust@2x.png.js")), | ||
@@ -64,3 +37,3 @@ '@3x': convert(require("./assets/aust@3x.png.js")), | ||
akrt: { | ||
svg: convert(require("./assets/akrt.svg.js")), | ||
'svg': convert(require("./assets/akrt.svg.js")), | ||
'@2x': convert(require("./assets/akrt@2x.png.js")), | ||
@@ -71,3 +44,3 @@ '@3x': convert(require("./assets/akrt@3x.png.js")), | ||
luna: { | ||
svg: convert(require("./assets/luna.svg.js")), | ||
'svg': convert(require("./assets/luna.svg.js")), | ||
'@2x': convert(require("./assets/luna@2x.png.js")), | ||
@@ -78,3 +51,3 @@ '@3x': convert(require("./assets/luna@3x.png.js")), | ||
bluna: { | ||
svg: convert(require("./assets/bluna.svg.js")), | ||
'svg': convert(require("./assets/bluna.svg.js")), | ||
'@2x': convert(require("./assets/bluna@2x.png.js")), | ||
@@ -85,9 +58,13 @@ '@3x': convert(require("./assets/bluna@3x.png.js")), | ||
}; | ||
export function TokenIconBase(_a) { | ||
var token = _a.token, _b = _a.variant, variant = _b === void 0 ? 'svg' : _b, imgProps = __rest(_a, ["token", "variant"]); | ||
return _jsx("img", __assign({ alt: "" }, imgProps, { src: tokenImages[token][variant].src }), void 0); | ||
export function TokenIconBase({ token, variant = 'svg', ...imgProps }) { | ||
return _jsx("img", Object.assign({ alt: "" }, imgProps, { src: tokenImages[token][variant].src }), void 0); | ||
} | ||
export var TokenIcon = styled(TokenIconBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 1em;\n height: 1em;\n"], ["\n width: 1em;\n height: 1em;\n"]))); | ||
export var GifIcon = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 1em;\n height: 1em;\n"], ["\n width: 1em;\n height: 1em;\n"]))); | ||
var templateObject_1, templateObject_2; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvQGFuY2hvci1wcm90b2NvbC90b2tlbi1pY29ucy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsT0FBT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Y29udmVydChyZXF1aXJlKCcuL2Fzc2V0cy9ibHVuYS5zdmcnKSksXG4gICAgJ0AyeCc6IGNvbnZlcnQocmVxdWlyZSgnLi9hc3NldHMvYmx1bmFAMngucG5nJykpLFxuICAgICdAM3gnOiBjb252ZXJ0KHJlcXVpcmUoJy4vYXNzZXRzL2JsdW5hQDN4LnBuZycpKSxcbiAgICAnQDR4JzogY29udmVydChyZXF1aXJlKCcuL2Fzc2V0cy9ibHVuYUA0eC5wbmcnKSksXG4gIH0sXG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIEljb25Qcm9wc1xuICBleHRlbmRzIE9taXQ8XG4gICAgRGV0YWlsZWRIVE1MUHJvcHM8SW1nSFRNTEF0dHJpYnV0ZXM8SFRNTEltYWdlRWxlbWVudD4sIEhUTUxJbWFnZUVsZW1lbnQ+LFxuICAgICdzcmMnXG4gID4ge1xuICB0b2tlbjogVG9rZW5zO1xuICB2YXJpYW50PzogSWNvblZhcmlhbnQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBUb2tlbkljb25CYXNlKHtcbiAgdG9rZW4sXG4gIHZhcmlhbnQgPSAnc3ZnJyxcbiAgLi4uaW1nUHJvcHNcbn06IEljb25Qcm9wcykge1xuICByZXR1cm4gPGltZyBhbHQ9XCJcIiB7Li4uaW1nUHJvcHN9IHNyYz17dG9rZW5JbWFnZXNbdG9rZW5dW3ZhcmlhbnRdLnNyY30gLz47XG59XG5cbmV4cG9ydCBjb25zdCBUb2tlbkljb24gPSBzdHlsZWQoVG9rZW5JY29uQmFzZSlgXG4gIHdpZHRoOiAxZW07XG4gIGhlaWdodDogMWVtO1xuYDtcblxuZXhwb3J0IGNvbnN0IEdpZkljb24gPSBzdHlsZWQuaW1nYFxuICB3aWR0aDogMWVtO1xuICBoZWlnaHQ6IDFlbTtcbmA7XG4iXX0= | ||
export const TokenIcon = styled(TokenIconBase) ` | ||
width: 1em; | ||
height: 1em; | ||
`; | ||
export const GifIcon = styled.img ` | ||
width: 1em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JY29uID0gc3R5bGVkLmltZ2BcbiAgd2lkdGg6IDFlbTtcbiAgaGVpZ2h0OiAxZW07XG5gO1xuIl19 |
@@ -16,3 +16,3 @@ { | ||
"name": "@anchor-protocol/token-icons", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"main": "./_commonjs/index.js", | ||
@@ -19,0 +19,0 @@ "module": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4008613
3029