@dynamic-labs/iconic 0.1.52 → 1.1.0-alpha.26
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/CHANGELOG.md +2493 -0
- package/README.md +1 -7
- package/_virtual/_tslib.cjs +37 -0
- package/_virtual/_tslib.js +33 -0
- package/package.json +25 -58
- package/src/Iconic.cjs +22 -0
- package/{dist/src → src}/Iconic.d.ts +1 -1
- package/src/Iconic.js +17 -0
- package/src/components/SocialIcon.cjs +17 -0
- package/{dist/src → src}/components/SocialIcon.d.ts +1 -2
- package/src/components/SocialIcon.js +13 -0
- package/src/components/findSocialIcon.cjs +18 -0
- package/src/components/findSocialIcon.js +14 -0
- package/src/components/getSocialIcon.cjs +20 -0
- package/src/components/getSocialIcon.js +16 -0
- package/src/icons/browsers/index.cjs +43 -0
- package/src/icons/browsers/index.js +34 -0
- package/src/icons/chains/index.cjs +121 -0
- package/src/icons/chains/index.js +99 -0
- package/src/icons/misc/index.cjs +25 -0
- package/src/icons/misc/index.js +19 -0
- package/src/icons/mobile/index.cjs +19 -0
- package/src/icons/mobile/index.js +14 -0
- package/src/icons/social/index.cjs +145 -0
- package/src/icons/social/index.js +119 -0
- package/src/icons/wallets/index.cjs +385 -0
- package/src/icons/wallets/index.js +319 -0
- package/src/index.cjs +137 -0
- package/src/index.js +10 -0
- package/src/logger.cjs +9 -0
- package/src/logger.d.ts +2 -0
- package/src/logger.js +5 -0
- package/dist/package.json +0 -68
- package/dist/src/Iconic.js +0 -16
- package/dist/src/components/SocialIcon.js +0 -24
- package/dist/src/components/findSocialIcon.js +0 -14
- package/dist/src/components/getSocialIcon.js +0 -40
- package/dist/src/components/index.js +0 -19
- package/dist/src/icons/browsers/index.js +0 -34
- package/dist/src/icons/chains/index.js +0 -99
- package/dist/src/icons/index.js +0 -22
- package/dist/src/icons/misc/index.js +0 -19
- package/dist/src/icons/mobile/index.js +0 -14
- package/dist/src/icons/social/index.js +0 -119
- package/dist/src/icons/wallets/index.js +0 -320
- package/dist/src/index.js +0 -21
- package/dist/src/types.js +0 -2
- /package/{dist/src → src}/components/findSocialIcon.d.ts +0 -0
- /package/{dist/src → src}/components/getSocialIcon.d.ts +0 -0
- /package/{dist/src → src}/components/index.d.ts +0 -0
- /package/{dist/src → src}/icons/browsers/index.d.ts +0 -0
- /package/{dist/src → src}/icons/chains/index.d.ts +0 -0
- /package/{dist/src → src}/icons/index.d.ts +0 -0
- /package/{dist/src → src}/icons/misc/index.d.ts +0 -0
- /package/{dist/src → src}/icons/mobile/index.d.ts +0 -0
- /package/{dist/src → src}/icons/social/index.d.ts +0 -0
- /package/{dist/src → src}/icons/wallets/index.d.ts +0 -0
- /package/{dist/src → src}/index.d.ts +0 -0
- /package/{dist/src → src}/types.d.ts +0 -0
package/src/index.cjs
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var index = require('./icons/browsers/index.cjs');
|
|
6
|
+
var index$1 = require('./icons/chains/index.cjs');
|
|
7
|
+
var index$2 = require('./icons/wallets/index.cjs');
|
|
8
|
+
var index$3 = require('./icons/mobile/index.cjs');
|
|
9
|
+
var index$4 = require('./icons/social/index.cjs');
|
|
10
|
+
var index$5 = require('./icons/misc/index.cjs');
|
|
11
|
+
var Iconic = require('./Iconic.cjs');
|
|
12
|
+
var SocialIcon = require('./components/SocialIcon.cjs');
|
|
13
|
+
var getSocialIcon = require('./components/getSocialIcon.cjs');
|
|
14
|
+
var findSocialIcon = require('./components/findSocialIcon.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.BraveIcon = index.BraveIcon;
|
|
19
|
+
exports.ChromeIcon = index.ChromeIcon;
|
|
20
|
+
exports.EdgeIcon = index.EdgeIcon;
|
|
21
|
+
exports.FirefoxIcon = index.FirefoxIcon;
|
|
22
|
+
exports.OperaIcon = index.OperaIcon;
|
|
23
|
+
exports.SafariIcon = index.SafariIcon;
|
|
24
|
+
exports.AlgorandIcon = index$1.AlgorandIcon;
|
|
25
|
+
exports.ArbitrumIcon = index$1.ArbitrumIcon;
|
|
26
|
+
exports.AuroraIcon = index$1.AuroraIcon;
|
|
27
|
+
exports.AxelarIcon = index$1.AxelarIcon;
|
|
28
|
+
exports.BaseChainIcon = index$1.BaseChainIcon;
|
|
29
|
+
exports.BitcoinIcon = index$1.BitcoinIcon;
|
|
30
|
+
exports.BnbIcon = index$1.BnbIcon;
|
|
31
|
+
exports.CosmosIcon = index$1.CosmosIcon;
|
|
32
|
+
exports.EthereumIcon = index$1.EthereumIcon;
|
|
33
|
+
exports.FlowIcon = index$1.FlowIcon;
|
|
34
|
+
exports.GnosisIcon = index$1.GnosisIcon;
|
|
35
|
+
exports.GoerliIcon = index$1.GoerliIcon;
|
|
36
|
+
exports.OptimismIcon = index$1.OptimismIcon;
|
|
37
|
+
exports.OsmosisIcon = index$1.OsmosisIcon;
|
|
38
|
+
exports.PalmIcon = index$1.PalmIcon;
|
|
39
|
+
exports.PolygonIcon = index$1.PolygonIcon;
|
|
40
|
+
exports.SolanaIcon = index$1.SolanaIcon;
|
|
41
|
+
exports.StarknetIcon = index$1.StarknetIcon;
|
|
42
|
+
exports.ZkSyncIcon = index$1.ZkSyncIcon;
|
|
43
|
+
exports.ArgentMobile = index$2.ArgentMobile;
|
|
44
|
+
exports.ArgentWebWallet = index$2.ArgentWebWallet;
|
|
45
|
+
exports.ArgentXIcon = index$2.ArgentXIcon;
|
|
46
|
+
exports.BackpackIcon = index$2.BackpackIcon;
|
|
47
|
+
exports.BinanceIcon = index$2.BinanceIcon;
|
|
48
|
+
exports.BitPayIcon = index$2.BitPayIcon;
|
|
49
|
+
exports.BloctoIcon = index$2.BloctoIcon;
|
|
50
|
+
exports.BraavosIcon = index$2.BraavosIcon;
|
|
51
|
+
exports.Coin90Icon = index$2.Coin90Icon;
|
|
52
|
+
exports.CoinbaseIcon = index$2.CoinbaseIcon;
|
|
53
|
+
exports.CoinbaseWaaSIcon = index$2.CoinbaseWaaSIcon;
|
|
54
|
+
exports.CryptoIcon = index$2.CryptoIcon;
|
|
55
|
+
exports.DapperIcon = index$2.DapperIcon;
|
|
56
|
+
exports.DawnIcon = index$2.DawnIcon;
|
|
57
|
+
exports.DefaultIcon = index$2.DefaultIcon;
|
|
58
|
+
exports.EmailSignIcon = index$2.EmailSignIcon;
|
|
59
|
+
exports.ExodusIcon = index$2.ExodusIcon;
|
|
60
|
+
exports.FireblocksIcon = index$2.FireblocksIcon;
|
|
61
|
+
exports.FortmaticIcon = index$2.FortmaticIcon;
|
|
62
|
+
exports.FrameIcon = index$2.FrameIcon;
|
|
63
|
+
exports.GamestopIcon = index$2.GamestopIcon;
|
|
64
|
+
exports.GlowIcon = index$2.GlowIcon;
|
|
65
|
+
exports.ImTokenWallet = index$2.ImTokenWallet;
|
|
66
|
+
exports.InjectedWalletIcon = index$2.InjectedWalletIcon;
|
|
67
|
+
exports.KeplrIcon = index$2.KeplrIcon;
|
|
68
|
+
exports.LeatherIcon = index$2.LeatherIcon;
|
|
69
|
+
exports.LedgerIcon = index$2.LedgerIcon;
|
|
70
|
+
exports.LilicoIcon = index$2.LilicoIcon;
|
|
71
|
+
exports.LinenIcon = index$2.LinenIcon;
|
|
72
|
+
exports.MagicEdenIcon = index$2.MagicEdenIcon;
|
|
73
|
+
exports.MagicLinkIcon = index$2.MagicLinkIcon;
|
|
74
|
+
exports.MaticIcon = index$2.MaticIcon;
|
|
75
|
+
exports.MetaMaskIcon = index$2.MetaMaskIcon;
|
|
76
|
+
exports.MissingIcon = index$2.MissingIcon;
|
|
77
|
+
exports.MyalgoIcon = index$2.MyalgoIcon;
|
|
78
|
+
exports.OkxIcon = index$2.OkxIcon;
|
|
79
|
+
exports.OmniIcon = index$2.OmniIcon;
|
|
80
|
+
exports.OneInchIcon = index$2.OneInchIcon;
|
|
81
|
+
exports.OpeanSeaIcon = index$2.OpeanSeaIcon;
|
|
82
|
+
exports.PeraIcon = index$2.PeraIcon;
|
|
83
|
+
exports.PhantomIcon = index$2.PhantomIcon;
|
|
84
|
+
exports.RainbowIcon = index$2.RainbowIcon;
|
|
85
|
+
exports.SafeIcon = index$2.SafeIcon;
|
|
86
|
+
exports.SequenceIcon = index$2.SequenceIcon;
|
|
87
|
+
exports.SignInWithEmailIcon = index$2.SignInWithEmailIcon;
|
|
88
|
+
exports.SlopeIcon = index$2.SlopeIcon;
|
|
89
|
+
exports.SmartWalletIcon = index$2.SmartWalletIcon;
|
|
90
|
+
exports.SolflareIcon = index$2.SolflareIcon;
|
|
91
|
+
exports.SpotIcon = index$2.SpotIcon;
|
|
92
|
+
exports.StrokeIcon = index$2.StrokeIcon;
|
|
93
|
+
exports.SuperbIcon = index$2.SuperbIcon;
|
|
94
|
+
exports.TallyCashIcon = index$2.TallyCashIcon;
|
|
95
|
+
exports.TerraIcon = index$2.TerraIcon;
|
|
96
|
+
exports.TorusIcon = index$2.TorusIcon;
|
|
97
|
+
exports.TrustIcon = index$2.TrustIcon;
|
|
98
|
+
exports.TurnkeyIcon = index$2.TurnkeyIcon;
|
|
99
|
+
exports.UnisatIcon = index$2.UnisatIcon;
|
|
100
|
+
exports.UnstoppableIcon = index$2.UnstoppableIcon;
|
|
101
|
+
exports.VenlyIcon = index$2.VenlyIcon;
|
|
102
|
+
exports.WalletConnectIcon = index$2.WalletConnectIcon;
|
|
103
|
+
exports.XverseEdenIcon = index$2.XverseEdenIcon;
|
|
104
|
+
exports.ZengoIcon = index$2.ZengoIcon;
|
|
105
|
+
exports.ZeroDevIcon = index$2.ZeroDevIcon;
|
|
106
|
+
exports.AndroidIcon = index$3.AndroidIcon;
|
|
107
|
+
exports.AppleIcon = index$3.AppleIcon;
|
|
108
|
+
exports.AppleDarkSocialIcon = index$4.AppleDarkSocialIcon;
|
|
109
|
+
exports.AppleSocialIcon = index$4.AppleSocialIcon;
|
|
110
|
+
exports.BitbucketIcon = index$4.BitbucketIcon;
|
|
111
|
+
exports.CoinbaseSocialIcon = index$4.CoinbaseSocialIcon;
|
|
112
|
+
exports.DiscordIcon = index$4.DiscordIcon;
|
|
113
|
+
exports.FacebookIcon = index$4.FacebookIcon;
|
|
114
|
+
exports.GithubDarkIcon = index$4.GithubDarkIcon;
|
|
115
|
+
exports.GithubIcon = index$4.GithubIcon;
|
|
116
|
+
exports.GitlabIcon = index$4.GitlabIcon;
|
|
117
|
+
exports.GoogleIcon = index$4.GoogleIcon;
|
|
118
|
+
exports.HelpdeskIcon = index$4.HelpdeskIcon;
|
|
119
|
+
exports.InstagramIcon = index$4.InstagramIcon;
|
|
120
|
+
exports.LinkedinIcon = index$4.LinkedinIcon;
|
|
121
|
+
exports.MicrosoftIcon = index$4.MicrosoftIcon;
|
|
122
|
+
exports.OnePasswordDarkIcon = index$4.OnePasswordDarkIcon;
|
|
123
|
+
exports.OnePasswordIcon = index$4.OnePasswordIcon;
|
|
124
|
+
exports.SlackIcon = index$4.SlackIcon;
|
|
125
|
+
exports.TelegramIcon = index$4.TelegramIcon;
|
|
126
|
+
exports.TwitchDarkIcon = index$4.TwitchDarkIcon;
|
|
127
|
+
exports.TwitchIcon = index$4.TwitchIcon;
|
|
128
|
+
exports.TwitterDarkIcon = index$4.TwitterDarkIcon;
|
|
129
|
+
exports.TwitterIcon = index$4.TwitterIcon;
|
|
130
|
+
exports.YouTubeIcon = index$4.YouTubeIcon;
|
|
131
|
+
exports.ArrowSendIcon = index$5.ArrowSendIcon;
|
|
132
|
+
exports.CaptchaWaveIcon = index$5.CaptchaWaveIcon;
|
|
133
|
+
exports.UserProfileIcon = index$5.UserProfileIcon;
|
|
134
|
+
exports.ICONIC_SPRITE_URL = Iconic.ICONIC_SPRITE_URL;
|
|
135
|
+
exports.SocialIcon = SocialIcon.SocialIcon;
|
|
136
|
+
exports.getSocialIcon = getSocialIcon.getSocialIcon;
|
|
137
|
+
exports.findSocialIcon = findSocialIcon.findSocialIcon;
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { BraveIcon, ChromeIcon, EdgeIcon, FirefoxIcon, OperaIcon, SafariIcon } from './icons/browsers/index.js';
|
|
2
|
+
export { AlgorandIcon, ArbitrumIcon, AuroraIcon, AxelarIcon, BaseChainIcon, BitcoinIcon, BnbIcon, CosmosIcon, EthereumIcon, FlowIcon, GnosisIcon, GoerliIcon, OptimismIcon, OsmosisIcon, PalmIcon, PolygonIcon, SolanaIcon, StarknetIcon, ZkSyncIcon } from './icons/chains/index.js';
|
|
3
|
+
export { ArgentMobile, ArgentWebWallet, ArgentXIcon, BackpackIcon, BinanceIcon, BitPayIcon, BloctoIcon, BraavosIcon, Coin90Icon, CoinbaseIcon, CoinbaseWaaSIcon, CryptoIcon, DapperIcon, DawnIcon, DefaultIcon, EmailSignIcon, ExodusIcon, FireblocksIcon, FortmaticIcon, FrameIcon, GamestopIcon, GlowIcon, ImTokenWallet, InjectedWalletIcon, KeplrIcon, LeatherIcon, LedgerIcon, LilicoIcon, LinenIcon, MagicEdenIcon, MagicLinkIcon, MaticIcon, MetaMaskIcon, MissingIcon, MyalgoIcon, OkxIcon, OmniIcon, OneInchIcon, OpeanSeaIcon, PeraIcon, PhantomIcon, RainbowIcon, SafeIcon, SequenceIcon, SignInWithEmailIcon, SlopeIcon, SmartWalletIcon, SolflareIcon, SpotIcon, StrokeIcon, SuperbIcon, TallyCashIcon, TerraIcon, TorusIcon, TrustIcon, TurnkeyIcon, UnisatIcon, UnstoppableIcon, VenlyIcon, WalletConnectIcon, XverseEdenIcon, ZengoIcon, ZeroDevIcon } from './icons/wallets/index.js';
|
|
4
|
+
export { AndroidIcon, AppleIcon } from './icons/mobile/index.js';
|
|
5
|
+
export { AppleDarkSocialIcon, AppleSocialIcon, BitbucketIcon, CoinbaseSocialIcon, DiscordIcon, FacebookIcon, GithubDarkIcon, GithubIcon, GitlabIcon, GoogleIcon, HelpdeskIcon, InstagramIcon, LinkedinIcon, MicrosoftIcon, OnePasswordDarkIcon, OnePasswordIcon, SlackIcon, TelegramIcon, TwitchDarkIcon, TwitchIcon, TwitterDarkIcon, TwitterIcon, YouTubeIcon } from './icons/social/index.js';
|
|
6
|
+
export { ArrowSendIcon, CaptchaWaveIcon, UserProfileIcon } from './icons/misc/index.js';
|
|
7
|
+
export { ICONIC_SPRITE_URL } from './Iconic.js';
|
|
8
|
+
export { SocialIcon } from './components/SocialIcon.js';
|
|
9
|
+
export { getSocialIcon } from './components/getSocialIcon.js';
|
|
10
|
+
export { findSocialIcon } from './components/findSocialIcon.js';
|
package/src/logger.cjs
ADDED
package/src/logger.d.ts
ADDED
package/src/logger.js
ADDED
package/dist/package.json
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dynamic-labs/iconic",
|
|
3
|
-
"version": "0.1.52",
|
|
4
|
-
"description": "A library of icons used by Dynamic Lab's SDK, served via CDN",
|
|
5
|
-
"main": "dist/src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf dist build && tsc && ts-node ./scripts/build-sprite.ts",
|
|
8
|
-
"test": "jest",
|
|
9
|
-
"lint": "eslint .",
|
|
10
|
-
"lint:fix": "eslint --fix",
|
|
11
|
-
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/dynamic-labs/iconic.git"
|
|
16
|
-
},
|
|
17
|
-
"author": "Dynamic Labs, Inc.",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/dynamic-labs/iconic/issues"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/dynamic-labs/iconic#readme",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@babel/preset-react": "^7.18.6",
|
|
25
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
26
|
-
"@testing-library/react": "^13.4.0",
|
|
27
|
-
"@types/fs-extra": "^11.0.1",
|
|
28
|
-
"@types/jest": "^29.4.0",
|
|
29
|
-
"@types/node": "^18.13.0",
|
|
30
|
-
"@types/react": "^18.0.27",
|
|
31
|
-
"@types/svg-sprite": "^0.0.34",
|
|
32
|
-
"@types/svgo": "^3.0.0",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
34
|
-
"eslint": "^8.0.1",
|
|
35
|
-
"eslint-config-prettier": "^8.6.0",
|
|
36
|
-
"eslint-config-standard-with-typescript": "^34.0.0",
|
|
37
|
-
"eslint-plugin-import": "^2.25.2",
|
|
38
|
-
"eslint-plugin-n": "^15.0.0",
|
|
39
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
40
|
-
"eslint-plugin-promise": "^6.0.0",
|
|
41
|
-
"eslint-plugin-react": "^7.32.2",
|
|
42
|
-
"fs-extra": "^11.1.0",
|
|
43
|
-
"jest": "^29.4.2",
|
|
44
|
-
"jest-environment-jsdom": "^29.4.2",
|
|
45
|
-
"prettier": "^2.8.4",
|
|
46
|
-
"react": "^18.0.0",
|
|
47
|
-
"react-dom": "^18.0.0",
|
|
48
|
-
"rimraf": "^4.1.2",
|
|
49
|
-
"svg-sprite": "^2.0.2",
|
|
50
|
-
"svgo": "^3.0.2",
|
|
51
|
-
"ts-jest": "^29.0.5",
|
|
52
|
-
"ts-node": "^10.9.1",
|
|
53
|
-
"typescript": "*"
|
|
54
|
-
},
|
|
55
|
-
"peerDependencies": {
|
|
56
|
-
"react": "^17.0.2 || ^18.0.0"
|
|
57
|
-
},
|
|
58
|
-
"exports": {
|
|
59
|
-
".": "./dist/src/index.js",
|
|
60
|
-
"./package.json": "./package.json"
|
|
61
|
-
},
|
|
62
|
-
"files": [
|
|
63
|
-
"dist",
|
|
64
|
-
"README.md",
|
|
65
|
-
"LICENSE"
|
|
66
|
-
],
|
|
67
|
-
"dependencies": {}
|
|
68
|
-
}
|
package/dist/src/Iconic.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createIconic = exports.ICONIC_SPRITE_URL = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const package_json_1 = require("../package.json");
|
|
6
|
-
exports.ICONIC_SPRITE_URL = `https://iconic.dynamic-static-assets.com/icons/sprite.svg?v=${package_json_1.version}`;
|
|
7
|
-
const createIconic = (props) => {
|
|
8
|
-
const Icon = Object.assign(Object.assign({}, props), { function: (props) => {
|
|
9
|
-
const url = `${exports.ICONIC_SPRITE_URL}#${Icon.iconName}`;
|
|
10
|
-
return (0, jsx_runtime_1.jsx)("img", Object.assign({ "data-testid": `iconic-${Icon.iconName}`, src: url, alt: Icon.alt }, props));
|
|
11
|
-
} });
|
|
12
|
-
const IconicComponent = Icon.function.bind(Icon);
|
|
13
|
-
Object.assign(IconicComponent, { iconName: Icon.iconName, sourcePath: Icon.sourcePath });
|
|
14
|
-
return IconicComponent;
|
|
15
|
-
};
|
|
16
|
-
exports.createIconic = createIconic;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.SocialIcon = void 0;
|
|
15
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
const findSocialIcon_1 = require("./findSocialIcon");
|
|
17
|
-
const SocialIcon = (_a) => {
|
|
18
|
-
var { name, variant } = _a, props = __rest(_a, ["name", "variant"]);
|
|
19
|
-
const Icon = (0, findSocialIcon_1.findSocialIcon)(name, variant);
|
|
20
|
-
if (!Icon)
|
|
21
|
-
return null;
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(Icon, Object.assign({}, props));
|
|
23
|
-
};
|
|
24
|
-
exports.SocialIcon = SocialIcon;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findSocialIcon = void 0;
|
|
4
|
-
const getSocialIcon_1 = require("./getSocialIcon");
|
|
5
|
-
const findSocialIcon = (name, variant = 'light') => {
|
|
6
|
-
try {
|
|
7
|
-
return (0, getSocialIcon_1.getSocialIcon)(name, variant);
|
|
8
|
-
}
|
|
9
|
-
catch (e) {
|
|
10
|
-
console.error(e);
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.findSocialIcon = findSocialIcon;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getSocialIcon = void 0;
|
|
27
|
-
const socials = __importStar(require("../icons/social"));
|
|
28
|
-
const getSocialIcon = (name, variant = 'light') => {
|
|
29
|
-
const map = Object.fromEntries(Object.values(socials).map((icon) => [icon.iconName, icon]));
|
|
30
|
-
if (variant === 'dark') {
|
|
31
|
-
const darkIcon = map[`${name.toLowerCase()}-dark`];
|
|
32
|
-
if (darkIcon)
|
|
33
|
-
return darkIcon;
|
|
34
|
-
}
|
|
35
|
-
const icon = map[name.toLowerCase()];
|
|
36
|
-
if (icon)
|
|
37
|
-
return icon;
|
|
38
|
-
throw new Error(`Icon ${name}, not found`);
|
|
39
|
-
};
|
|
40
|
-
exports.getSocialIcon = getSocialIcon;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./SocialIcon"), exports);
|
|
18
|
-
__exportStar(require("./getSocialIcon"), exports);
|
|
19
|
-
__exportStar(require("./findSocialIcon"), exports);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SafariIcon = exports.OperaIcon = exports.FirefoxIcon = exports.EdgeIcon = exports.ChromeIcon = exports.BraveIcon = void 0;
|
|
4
|
-
const Iconic_1 = require("../../Iconic");
|
|
5
|
-
exports.BraveIcon = (0, Iconic_1.createIconic)({
|
|
6
|
-
iconName: 'brave',
|
|
7
|
-
alt: 'Brave Browser',
|
|
8
|
-
sourcePath: 'icons/browsers/brave.svg'
|
|
9
|
-
});
|
|
10
|
-
exports.ChromeIcon = (0, Iconic_1.createIconic)({
|
|
11
|
-
iconName: 'chrome',
|
|
12
|
-
alt: 'Chrome Browser',
|
|
13
|
-
sourcePath: 'icons/browsers/chrome.svg'
|
|
14
|
-
});
|
|
15
|
-
exports.EdgeIcon = (0, Iconic_1.createIconic)({
|
|
16
|
-
iconName: 'edge',
|
|
17
|
-
alt: 'Edge Browser',
|
|
18
|
-
sourcePath: 'icons/browsers/edge.svg'
|
|
19
|
-
});
|
|
20
|
-
exports.FirefoxIcon = (0, Iconic_1.createIconic)({
|
|
21
|
-
iconName: 'firefox',
|
|
22
|
-
alt: 'Firefox Browser',
|
|
23
|
-
sourcePath: 'icons/browsers/firefox.svg'
|
|
24
|
-
});
|
|
25
|
-
exports.OperaIcon = (0, Iconic_1.createIconic)({
|
|
26
|
-
iconName: 'opera',
|
|
27
|
-
alt: 'Opera Browser',
|
|
28
|
-
sourcePath: 'icons/browsers/opera.svg'
|
|
29
|
-
});
|
|
30
|
-
exports.SafariIcon = (0, Iconic_1.createIconic)({
|
|
31
|
-
iconName: 'safari',
|
|
32
|
-
alt: 'Opera Browser',
|
|
33
|
-
sourcePath: 'icons/browsers/safari.svg'
|
|
34
|
-
});
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StarknetIcon = exports.SolanaIcon = exports.PolygonIcon = exports.PalmIcon = exports.OptimismIcon = exports.GnosisIcon = exports.FlowIcon = exports.ZkSyncIcon = exports.GoerliIcon = exports.EthereumIcon = exports.AxelarIcon = exports.OsmosisIcon = exports.CosmosIcon = exports.BnbIcon = exports.BitcoinIcon = exports.BaseChainIcon = exports.AuroraIcon = exports.ArbitrumIcon = exports.AlgorandIcon = void 0;
|
|
4
|
-
const Iconic_1 = require("../../Iconic");
|
|
5
|
-
exports.AlgorandIcon = (0, Iconic_1.createIconic)({
|
|
6
|
-
iconName: 'algorand',
|
|
7
|
-
alt: 'Algorand Chain',
|
|
8
|
-
sourcePath: 'icons/chains/algorand.svg'
|
|
9
|
-
});
|
|
10
|
-
exports.ArbitrumIcon = (0, Iconic_1.createIconic)({
|
|
11
|
-
iconName: 'arbitrum',
|
|
12
|
-
alt: 'Arbitrum Chain',
|
|
13
|
-
sourcePath: 'icons/chains/arbitrum.svg'
|
|
14
|
-
});
|
|
15
|
-
exports.AuroraIcon = (0, Iconic_1.createIconic)({
|
|
16
|
-
iconName: 'aurora',
|
|
17
|
-
alt: 'Aurora Chain',
|
|
18
|
-
sourcePath: 'icons/chains/aurora.svg'
|
|
19
|
-
});
|
|
20
|
-
exports.BaseChainIcon = (0, Iconic_1.createIconic)({
|
|
21
|
-
iconName: 'base',
|
|
22
|
-
alt: 'Base Chain',
|
|
23
|
-
sourcePath: 'icons/chains/base.svg'
|
|
24
|
-
});
|
|
25
|
-
exports.BitcoinIcon = (0, Iconic_1.createIconic)({
|
|
26
|
-
iconName: 'bitcoin',
|
|
27
|
-
alt: 'Bitcoin Chain',
|
|
28
|
-
sourcePath: 'icons/chains/bitcoin.svg'
|
|
29
|
-
});
|
|
30
|
-
exports.BnbIcon = (0, Iconic_1.createIconic)({
|
|
31
|
-
iconName: 'bnb',
|
|
32
|
-
alt: 'BNB Chain',
|
|
33
|
-
sourcePath: 'icons/chains/bnb.svg'
|
|
34
|
-
});
|
|
35
|
-
exports.CosmosIcon = (0, Iconic_1.createIconic)({
|
|
36
|
-
iconName: 'cosmos',
|
|
37
|
-
alt: 'Cosmos Chain',
|
|
38
|
-
sourcePath: 'icons/chains/cosmos.svg'
|
|
39
|
-
});
|
|
40
|
-
exports.OsmosisIcon = (0, Iconic_1.createIconic)({
|
|
41
|
-
iconName: 'osmosis',
|
|
42
|
-
alt: 'Osmosis Chain',
|
|
43
|
-
sourcePath: 'icons/chains/osmosis.svg'
|
|
44
|
-
});
|
|
45
|
-
exports.AxelarIcon = (0, Iconic_1.createIconic)({
|
|
46
|
-
iconName: 'axelar',
|
|
47
|
-
alt: 'Axelar Chain',
|
|
48
|
-
sourcePath: 'icons/chains/axelar.svg'
|
|
49
|
-
});
|
|
50
|
-
exports.EthereumIcon = (0, Iconic_1.createIconic)({
|
|
51
|
-
iconName: 'ethereum',
|
|
52
|
-
alt: 'Ethereum Chain',
|
|
53
|
-
sourcePath: 'icons/chains/ethereum.svg'
|
|
54
|
-
});
|
|
55
|
-
exports.GoerliIcon = (0, Iconic_1.createIconic)({
|
|
56
|
-
iconName: 'goerli',
|
|
57
|
-
alt: 'Goerli Chain',
|
|
58
|
-
sourcePath: 'icons/chains/goerli.svg'
|
|
59
|
-
});
|
|
60
|
-
exports.ZkSyncIcon = (0, Iconic_1.createIconic)({
|
|
61
|
-
iconName: 'zkSync',
|
|
62
|
-
alt: 'zkSync Era Chain',
|
|
63
|
-
sourcePath: 'icons/chains/zkSync.svg'
|
|
64
|
-
});
|
|
65
|
-
exports.FlowIcon = (0, Iconic_1.createIconic)({
|
|
66
|
-
iconName: 'flow',
|
|
67
|
-
alt: 'Flow Chain',
|
|
68
|
-
sourcePath: 'icons/chains/flow.svg'
|
|
69
|
-
});
|
|
70
|
-
exports.GnosisIcon = (0, Iconic_1.createIconic)({
|
|
71
|
-
iconName: 'gnosis',
|
|
72
|
-
alt: 'Gnosis Chain',
|
|
73
|
-
sourcePath: 'icons/chains/gnosis.svg'
|
|
74
|
-
});
|
|
75
|
-
exports.OptimismIcon = (0, Iconic_1.createIconic)({
|
|
76
|
-
iconName: 'optimism',
|
|
77
|
-
alt: 'Optimism Chain',
|
|
78
|
-
sourcePath: 'icons/chains/optimism.svg'
|
|
79
|
-
});
|
|
80
|
-
exports.PalmIcon = (0, Iconic_1.createIconic)({
|
|
81
|
-
iconName: 'palm',
|
|
82
|
-
alt: 'Palm Chain',
|
|
83
|
-
sourcePath: 'icons/chains/palm.svg'
|
|
84
|
-
});
|
|
85
|
-
exports.PolygonIcon = (0, Iconic_1.createIconic)({
|
|
86
|
-
iconName: 'polygon',
|
|
87
|
-
alt: 'Polygon Chain',
|
|
88
|
-
sourcePath: 'icons/chains/polygon.svg'
|
|
89
|
-
});
|
|
90
|
-
exports.SolanaIcon = (0, Iconic_1.createIconic)({
|
|
91
|
-
iconName: 'solana',
|
|
92
|
-
alt: 'Solana Chain',
|
|
93
|
-
sourcePath: 'icons/chains/solana.svg'
|
|
94
|
-
});
|
|
95
|
-
exports.StarknetIcon = (0, Iconic_1.createIconic)({
|
|
96
|
-
iconName: 'starknet',
|
|
97
|
-
alt: 'Starknet Chain',
|
|
98
|
-
sourcePath: 'icons/chains/starknet.svg'
|
|
99
|
-
});
|
package/dist/src/icons/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./browsers"), exports);
|
|
18
|
-
__exportStar(require("./chains"), exports);
|
|
19
|
-
__exportStar(require("./wallets"), exports);
|
|
20
|
-
__exportStar(require("./mobile"), exports);
|
|
21
|
-
__exportStar(require("./social"), exports);
|
|
22
|
-
__exportStar(require("./misc"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrowSendIcon = exports.UserProfileIcon = exports.CaptchaWaveIcon = void 0;
|
|
4
|
-
const Iconic_1 = require("../../Iconic");
|
|
5
|
-
exports.CaptchaWaveIcon = (0, Iconic_1.createIconic)({
|
|
6
|
-
iconName: 'captcha-wave',
|
|
7
|
-
alt: 'Captcha Wave',
|
|
8
|
-
sourcePath: 'icons/misc/captcha-wave.svg'
|
|
9
|
-
});
|
|
10
|
-
exports.UserProfileIcon = (0, Iconic_1.createIconic)({
|
|
11
|
-
iconName: 'user-profile',
|
|
12
|
-
alt: 'User Profile',
|
|
13
|
-
sourcePath: 'icons/misc/user-profile.svg'
|
|
14
|
-
});
|
|
15
|
-
exports.ArrowSendIcon = (0, Iconic_1.createIconic)({
|
|
16
|
-
iconName: 'arrow-send',
|
|
17
|
-
alt: 'Arrow Send',
|
|
18
|
-
sourcePath: 'icons/misc/arrow-send.svg'
|
|
19
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AndroidIcon = exports.AppleIcon = void 0;
|
|
4
|
-
const Iconic_1 = require("../../Iconic");
|
|
5
|
-
exports.AppleIcon = (0, Iconic_1.createIconic)({
|
|
6
|
-
iconName: 'apple',
|
|
7
|
-
alt: 'Apple',
|
|
8
|
-
sourcePath: 'icons/mobile/apple.svg'
|
|
9
|
-
});
|
|
10
|
-
exports.AndroidIcon = (0, Iconic_1.createIconic)({
|
|
11
|
-
iconName: 'android',
|
|
12
|
-
alt: 'Android',
|
|
13
|
-
sourcePath: 'icons/mobile/android.svg'
|
|
14
|
-
});
|