@dynamic-labs/iconic 0.1.4 → 0.1.6

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/README.md CHANGED
@@ -0,0 +1,20 @@
1
+ ### Adding an icon
2
+
3
+ 1. Add the SVG file to the appropriate folder
4
+ 2. Add a `createIconic` compomenent to the `index.ts` in that folder for that icon
5
+ 3. Bump the version in package.json
6
+ 4. run `yarn test -u` to update test fixtures
7
+ 5. Open a PR
8
+ 6. After merge, release
9
+
10
+ ### Updating an icon
11
+
12
+ 1. Update SVG file with new data
13
+ 2. Open a PR
14
+ 3. Release, which will update the sprite.svg (no version bump necessary)
15
+
16
+ *It will take up to 24 hours for new icon to be seen due to cache*
17
+
18
+ ### Releasing
19
+
20
+ Run github action (publish)[https://github.com/dynamic-labs/iconic/actions/workflows/publish.yml] to publish new version and deploy sprite svg
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/iconic",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A library of icons used by Dynamic Lab's SDK, served via CDN",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -3,6 +3,9 @@ export declare const ArbitrumIcon: Iconic;
3
3
  export declare const AuroraIcon: Iconic;
4
4
  export declare const BnbIcon: Iconic;
5
5
  export declare const EthereumIcon: Iconic;
6
+ export declare const GnosisIcon: Iconic;
6
7
  export declare const OptimismIcon: Iconic;
8
+ export declare const PalmIcon: Iconic;
9
+ export declare const PolygonIcon: Iconic;
7
10
  export declare const SolanaIcon: Iconic;
8
11
  export declare const StarknetIcon: Iconic;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StarknetIcon = exports.SolanaIcon = exports.OptimismIcon = exports.EthereumIcon = exports.BnbIcon = exports.AuroraIcon = exports.ArbitrumIcon = void 0;
3
+ exports.StarknetIcon = exports.SolanaIcon = exports.PolygonIcon = exports.PalmIcon = exports.OptimismIcon = exports.GnosisIcon = exports.EthereumIcon = exports.BnbIcon = exports.AuroraIcon = exports.ArbitrumIcon = void 0;
4
4
  const Iconic_1 = require("../../Iconic");
5
5
  exports.ArbitrumIcon = (0, Iconic_1.createIconic)({
6
6
  iconName: 'arbitrum',
@@ -22,11 +22,26 @@ exports.EthereumIcon = (0, Iconic_1.createIconic)({
22
22
  alt: 'Ethereum Chain',
23
23
  sourcePath: 'icons/chains/ethereum.svg'
24
24
  });
25
+ exports.GnosisIcon = (0, Iconic_1.createIconic)({
26
+ iconName: 'gnosis',
27
+ alt: 'Gnosis Chain',
28
+ sourcePath: 'icons/chains/gnosis.svg'
29
+ });
25
30
  exports.OptimismIcon = (0, Iconic_1.createIconic)({
26
31
  iconName: 'optimism',
27
32
  alt: 'Optimism Chain',
28
33
  sourcePath: 'icons/chains/optimism.svg'
29
34
  });
35
+ exports.PalmIcon = (0, Iconic_1.createIconic)({
36
+ iconName: 'palm',
37
+ alt: 'Palm Chain',
38
+ sourcePath: 'icons/chains/palm.svg'
39
+ });
40
+ exports.PolygonIcon = (0, Iconic_1.createIconic)({
41
+ iconName: 'polygon',
42
+ alt: 'Polygon Chain',
43
+ sourcePath: 'icons/chains/polygon.svg'
44
+ });
30
45
  exports.SolanaIcon = (0, Iconic_1.createIconic)({
31
46
  iconName: 'solana',
32
47
  alt: 'Solana Chain',
@@ -21,7 +21,6 @@ export declare const MetaMaskIcon: Iconic;
21
21
  export declare const MissingIcon: Iconic;
22
22
  export declare const MyalgoIcon: Iconic;
23
23
  export declare const PhantomIcon: Iconic;
24
- export declare const PolygonIcon: Iconic;
25
24
  export declare const RainbowIcon: Iconic;
26
25
  export declare const SlopeIcon: Iconic;
27
26
  export declare const SolflareIcon: Iconic;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WalletConnectIcon = exports.VenlyIcon = exports.TerraIcon = exports.StrokeIcon = exports.SolflareIcon = exports.SlopeIcon = exports.RainbowIcon = exports.PolygonIcon = exports.PhantomIcon = exports.MyalgoIcon = exports.MissingIcon = exports.MetaMaskIcon = exports.MaticIcon = exports.LilicoIcon = exports.LedgerIcon = exports.InjectedWalletIcon = exports.GlowIcon = exports.GamestopIcon = exports.FrameIcon = exports.FortmaticIcon = exports.FlowIcon = exports.ExodusIcon = exports.SignInWithEmailIcon = exports.DawnIcon = exports.DapperIcon = exports.CoinbaseIcon = exports.BraavosIcon = exports.BloctoIcon = exports.ArgentXIcon = exports.AlgorandIcon = void 0;
3
+ exports.WalletConnectIcon = exports.VenlyIcon = exports.TerraIcon = exports.StrokeIcon = exports.SolflareIcon = exports.SlopeIcon = exports.RainbowIcon = exports.PhantomIcon = exports.MyalgoIcon = exports.MissingIcon = exports.MetaMaskIcon = exports.MaticIcon = exports.LilicoIcon = exports.LedgerIcon = exports.InjectedWalletIcon = exports.GlowIcon = exports.GamestopIcon = exports.FrameIcon = exports.FortmaticIcon = exports.FlowIcon = exports.ExodusIcon = exports.SignInWithEmailIcon = exports.DawnIcon = exports.DapperIcon = exports.CoinbaseIcon = exports.BraavosIcon = exports.BloctoIcon = exports.ArgentXIcon = exports.AlgorandIcon = void 0;
4
4
  const Iconic_1 = require("../../Iconic");
5
5
  exports.AlgorandIcon = (0, Iconic_1.createIconic)({
6
6
  iconName: 'algorand',
@@ -112,11 +112,6 @@ exports.PhantomIcon = (0, Iconic_1.createIconic)({
112
112
  alt: 'Phantom Wallet',
113
113
  sourcePath: 'icons/wallets/phantom.svg'
114
114
  });
115
- exports.PolygonIcon = (0, Iconic_1.createIconic)({
116
- iconName: 'polygon',
117
- alt: 'Polygon Wallet',
118
- sourcePath: 'icons/wallets/polygon.svg'
119
- });
120
115
  exports.RainbowIcon = (0, Iconic_1.createIconic)({
121
116
  iconName: 'rainbow',
122
117
  alt: 'Rainbow Wallet',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/iconic",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A library of icons used by Dynamic Lab's SDK, served via CDN",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {