@rash2x/bridge-widget 0.6.15 → 0.6.17

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.
@@ -2601,7 +2601,7 @@ const ChainSelectModal = ({
2601
2601
  chain2.chainKey
2602
2602
  );
2603
2603
  };
2604
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col p-10 pt-8", children: [
2604
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col p-10 pt-7", children: [
2605
2605
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left pb-0", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0", children: [
2606
2606
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t2("bridge.select") }),
2607
2607
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t2(isSource ? "bridge.sourceNetwork" : "bridge.destinationNetwork") })
@@ -4214,7 +4214,7 @@ const WalletSelectModal = () => {
4214
4214
  wallets: tronWallets.filter(notConnected)
4215
4215
  }
4216
4216
  ].filter((category) => category.wallets.length > 0);
4217
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "p-10 pt-8", children: [
4217
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "p-10 pt-7", children: [
4218
4218
  /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogHeader, { className: "text-left", children: [
4219
4219
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t2("wallets.chooseWallet") }),
4220
4220
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { children: t2("wallets.oneWalletPerEnv") })
@@ -6428,7 +6428,7 @@ const SettingsModal = ({ isOpen, onClose }) => {
6428
6428
  );
6429
6429
  const activeBtn = "bg-primary hover:bg-primary/80 text-primary-foreground transition-colors";
6430
6430
  const notActiveBtn = "bg-accent hover:bg-accent/80 text-accent-foreground transition-colors";
6431
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { onOpenAutoFocus: (e2) => e2.preventDefault(), className: "p-10 pt-8", children: [
6431
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { onOpenAutoFocus: (e2) => e2.preventDefault(), className: "p-10 pt-7", children: [
6432
6432
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t2("settings.title") }) }),
6433
6433
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
6434
6434
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
@@ -6545,16 +6545,16 @@ const TokenRow = ({
6545
6545
  }
6546
6546
  ),
6547
6547
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start gap-1", children: [
6548
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-foreground text-sm leading-4 truncate flex items-center gap-1", children: symbol }),
6549
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 text-muted-foreground truncate", children: name })
6548
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-extrabold text-sm leading-4 truncate flex items-center gap-1", children: symbol }),
6549
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold leading-3 text-muted-foreground truncate", children: name })
6550
6550
  ] })
6551
6551
  ] }),
6552
6552
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-right space-y-1", children: isBalanceLoading && hasAnyWallet ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-end gap-1", children: [
6553
6553
  /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-16 rounded-md" }),
6554
6554
  /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-12 rounded-md" })
6555
6555
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6556
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-semibold text-foreground text-sm leading-4 truncate", children: hasAnyWallet ? formatBalance(balance) : "—" }),
6557
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 text-muted-foreground", children: hasAnyWallet && balance > 0 && usdValue > 0 ? formatUsd(usdValue) : "—" })
6556
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-foreground font-extrabold text-sm leading-4 truncate", children: hasAnyWallet ? formatBalance(balance) : "—" }),
6557
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold leading-3 text-muted-foreground", children: hasAnyWallet && balance > 0 && usdValue > 0 ? formatUsd(usdValue) : "—" })
6558
6558
  ] }) })
6559
6559
  ]
6560
6560
  }
@@ -6712,7 +6712,7 @@ const TokenSelectModal = ({
6712
6712
  [groupedTokens.willChangeSrcChain]
6713
6713
  );
6714
6714
  const hasNoResults = tokensToRender.length === 0 && willChangeSrcTokens.length === 0;
6715
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col p-10 pt-8", children: [
6715
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col p-10 pt-7", children: [
6716
6716
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t2("bridge.selectToken") }) }),
6717
6717
  /* @__PURE__ */ jsxRuntime.jsx(
6718
6718
  SearchInput,
@@ -25938,7 +25938,7 @@ class WalletConnectModal {
25938
25938
  }
25939
25939
  async initUi() {
25940
25940
  if (typeof window !== "undefined") {
25941
- await Promise.resolve().then(() => require("./index-vob2mbdZ.cjs"));
25941
+ await Promise.resolve().then(() => require("./index-C8tcwNkl.cjs"));
25942
25942
  const modal = document.createElement("wcm-modal");
25943
25943
  document.body.insertAdjacentElement("beforeend", modal);
25944
25944
  OptionsCtrl.setIsUiLoaded(true);
@@ -26687,4 +26687,4 @@ exports.useSettingsStore = useSettingsStore;
26687
26687
  exports.useSwapModel = useSwapModel;
26688
26688
  exports.useTokensStore = useTokensStore;
26689
26689
  exports.useTransactionStore = useTransactionStore;
26690
- //# sourceMappingURL=index-ChBJiTJF.cjs.map
26690
+ //# sourceMappingURL=index-CODQ78Ad.cjs.map