@web3icons/react 3.6.2-alpha.0 → 3.6.2-alpha.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.
package/dist/index.js CHANGED
@@ -184187,7 +184187,7 @@ init_BaseIcon();
184187
184187
  var import_react2069 = require("react");
184188
184188
 
184189
184189
  // src/utils/find-metadata.ts
184190
- var import_core = require("@web3icons/core");
184190
+ var import_common = require("@web3icons/common");
184191
184191
 
184192
184192
  // src/utils/naming-conventions.ts
184193
184193
  var toKebabCase = (str) => {
@@ -184209,7 +184209,7 @@ var toPascalCase = (str) => {
184209
184209
  var findWallet = ({
184210
184210
  wallet
184211
184211
  }) => {
184212
- const walletObj = import_core.wallets.find(
184212
+ const walletObj = import_common.wallets.find(
184213
184213
  (w) => w.id.toLowerCase() === toKebabCase(wallet) || w.name.toLowerCase() === wallet.toLowerCase()
184214
184214
  );
184215
184215
  return walletObj;
@@ -184220,11 +184220,11 @@ var findToken = ({
184220
184220
  network
184221
184221
  }) => {
184222
184222
  if (symbol) {
184223
- return import_core.tokens.find(
184223
+ return import_common.tokens.find(
184224
184224
  (token) => token.symbol.toLowerCase() === symbol.toLowerCase()
184225
184225
  );
184226
184226
  } else if (address && network) {
184227
- return import_core.tokens.find(
184227
+ return import_common.tokens.find(
184228
184228
  (token) => token.addresses[network]?.toLowerCase() === address.toLowerCase()
184229
184229
  );
184230
184230
  }
@@ -184235,13 +184235,13 @@ var findNetwork = ({
184235
184235
  chainId
184236
184236
  }) => {
184237
184237
  if (network) {
184238
- const networkObj = import_core.networks.find(
184238
+ const networkObj = import_common.networks.find(
184239
184239
  (net) => net.id.toLowerCase() === toKebabCase(network) || net.name.toLowerCase() === network.toLowerCase() || net.shortName?.toLowerCase() === network.toLowerCase()
184240
184240
  );
184241
184241
  return networkObj;
184242
184242
  }
184243
184243
  if (chainId) {
184244
- const networkObj = import_core.networks.find((net) => net.chainId === chainId);
184244
+ const networkObj = import_common.networks.find((net) => net.chainId === chainId);
184245
184245
  return networkObj;
184246
184246
  }
184247
184247
  return void 0;
package/dist/index.mjs CHANGED
@@ -6208,7 +6208,7 @@ import {
6208
6208
  wallets,
6209
6209
  networks,
6210
6210
  tokens
6211
- } from "@web3icons/core";
6211
+ } from "@web3icons/common";
6212
6212
 
6213
6213
  // src/utils/naming-conventions.ts
6214
6214
  var toKebabCase = (str) => {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "crypto logos",
12
12
  "coin icons"
13
13
  ],
14
- "version": "3.6.2-alpha.0",
14
+ "version": "3.6.2-alpha.1",
15
15
  "private": false,
16
16
  "license": "MIT",
17
17
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@web3icons/common": "0.0.2-alpha.0",
34
+ "@web3icons/common": "0.0.2-alpha.1",
35
35
  "react": "^18.2.0"
36
36
  },
37
37
  "devDependencies": {