@kimafinance/kima-transaction-widget 1.4.3 → 1.4.5

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
@@ -1378,21 +1378,21 @@ import {
1378
1378
  polygonZkEvmCardona,
1379
1379
  sepolia
1380
1380
  } from "@reown/appkit/networks";
1381
- var ChainName = /* @__PURE__ */ ((ChainName3) => {
1382
- ChainName3["ETHEREUM"] = "ETH";
1383
- ChainName3["POLYGON"] = "POL";
1384
- ChainName3["AVALANCHE"] = "AVX";
1385
- ChainName3["SOLANA"] = "SOL";
1386
- ChainName3["BASE"] = "BASE";
1387
- ChainName3["BSC"] = "BSC";
1388
- ChainName3["ARBITRUM"] = "ARB";
1389
- ChainName3["OPTIMISM"] = "OPT";
1390
- ChainName3["POLYGON_ZKEVM"] = "ZKE";
1391
- ChainName3["TRON"] = "TRX";
1392
- ChainName3["FIAT"] = "FIAT";
1393
- ChainName3["BTC"] = "BTC";
1394
- ChainName3["BERA"] = "BERA";
1395
- return ChainName3;
1381
+ var ChainName = /* @__PURE__ */ ((ChainName2) => {
1382
+ ChainName2["ETHEREUM"] = "ETH";
1383
+ ChainName2["POLYGON"] = "POL";
1384
+ ChainName2["AVALANCHE"] = "AVX";
1385
+ ChainName2["SOLANA"] = "SOL";
1386
+ ChainName2["BASE"] = "BASE";
1387
+ ChainName2["BSC"] = "BSC";
1388
+ ChainName2["ARBITRUM"] = "ARB";
1389
+ ChainName2["OPTIMISM"] = "OPT";
1390
+ ChainName2["POLYGON_ZKEVM"] = "ZKE";
1391
+ ChainName2["TRON"] = "TRX";
1392
+ ChainName2["FIAT"] = "FIAT";
1393
+ ChainName2["BTC"] = "BTC";
1394
+ ChainName2["BERA"] = "BERA";
1395
+ return ChainName2;
1396
1396
  })(ChainName || {});
1397
1397
  var CHAIN_NAMES_TO_APPKIT_NETWORK_MAINNET = {
1398
1398
  ["ETH" /* ETHEREUM */]: mainnet,
@@ -5835,13 +5835,15 @@ var NetworkSelector = ({
5835
5835
  "div",
5836
5836
  {
5837
5837
  key: network.id,
5838
- className: `network-menu-item ${theme?.colorMode ?? ""}`,
5838
+ className: `network-menu-item ${theme?.colorMode ?? ""} ${network.disabled ? "disabled has-tooltip" : "enabled"}`,
5839
5839
  onClick: (e) => {
5840
5840
  e.stopPropagation();
5841
- handleNetworkChange(network);
5841
+ if (!network.disabled) {
5842
+ handleNetworkChange(network);
5843
+ }
5842
5844
  }
5843
5845
  },
5844
- /* @__PURE__ */ React106.createElement(ChainIcon, { symbol: network.shortName }),
5846
+ network.disabled ? /* @__PURE__ */ React106.createElement(Warning_default, { width: 25, height: 25 }) : /* @__PURE__ */ React106.createElement(ChainIcon, { symbol: network.shortName }),
5845
5847
  /* @__PURE__ */ React106.createElement("p", null, network.name),
5846
5848
  network.disabled && /* @__PURE__ */ React106.createElement("span", { className: "tooltip" }, "Temporarily unavailable")
5847
5849
  ))
@@ -6105,7 +6107,7 @@ var SingleForm = ({
6105
6107
  placeholder: true
6106
6108
  }
6107
6109
  )
6108
- ), /* @__PURE__ */ React107.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Amount:"), /* @__PURE__ */ React107.createElement("div", { className: `amount-label-container items ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement(
6110
+ ), mode === "bridge" /* bridge */ && /* @__PURE__ */ React107.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Amount:"), /* @__PURE__ */ React107.createElement("div", { className: `amount-label-container items ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement(
6109
6111
  "input",
6110
6112
  {
6111
6113
  className: `${theme.colorMode}`,