@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.cjs +21 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +21 -19
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
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__ */ ((
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
return
|
|
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
|
-
|
|
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}`,
|