@rash2x/bridge-widget 0.1.21 → 0.1.22

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.
@@ -935,7 +935,7 @@ const SettingModal = ({ isOpen, onClose }) => {
935
935
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
936
936
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
937
937
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.gasOnDestination") }),
938
- /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.gasOnDestination"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
938
+ /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.gasOnDestination"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
939
939
  ] }),
940
940
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm font-medium leading-4", children: formatUsd(gasUsdValue) })
941
941
  ] }),
@@ -972,7 +972,7 @@ const SettingModal = ({ isOpen, onClose }) => {
972
972
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
973
973
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
974
974
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.slippageTolerance") }),
975
- /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.slippageTolerance"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
975
+ /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.slippageTolerance"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
976
976
  ] }),
977
977
  slippageBps >= 500 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-xs font-medium", children: t("settings.highSlippageWarning", {
978
978
  defaultValue: "High slippage warning"
@@ -1001,7 +1001,7 @@ const SettingModal = ({ isOpen, onClose }) => {
1001
1001
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
1002
1002
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
1003
1003
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.routePriority") }),
1004
- /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.routePriority"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
1004
+ /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.routePriority"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
1005
1005
  ] }) }),
1006
1006
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r) => /* @__PURE__ */ jsxRuntime.jsx(
1007
1007
  badge.Badge,
@@ -1184,7 +1184,7 @@ const SearchInput = ({
1184
1184
  containerClassName
1185
1185
  ),
1186
1186
  children: [
1187
- /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "size-6 text-input-icon" }),
1187
+ /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "w-6 h-6 text-input-icon" }),
1188
1188
  /* @__PURE__ */ jsxRuntime.jsx(
1189
1189
  input.Input,
1190
1190
  {
@@ -1224,7 +1224,7 @@ const TokenRow = ({
1224
1224
  TokenSymbol,
1225
1225
  {
1226
1226
  symbol,
1227
- className: "size-8 rounded-full",
1227
+ className: "w-8 h-8 rounded-full",
1228
1228
  alt: symbol
1229
1229
  }
1230
1230
  ),
@@ -1581,7 +1581,7 @@ const SelectTokenButton = ({
1581
1581
  ),
1582
1582
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm font-semibold", children: label })
1583
1583
  ] }),
1584
- /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
1584
+ /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4 text-secondary-foreground" })
1585
1585
  ]
1586
1586
  }
1587
1587
  );
@@ -2250,7 +2250,7 @@ const SelectNetworkButton = ({
2250
2250
  ),
2251
2251
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm leading-5 font-semibold ", children: label })
2252
2252
  ] }),
2253
- /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
2253
+ /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4 text-secondary-foreground" })
2254
2254
  ]
2255
2255
  }
2256
2256
  );
@@ -2438,9 +2438,9 @@ function short$1(addr) {
2438
2438
  return addr.slice(0, 4) + "…" + addr.slice(-4);
2439
2439
  }
2440
2440
  const prefixIcons = {
2441
- tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "size-5" }),
2442
- metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "size-5" }),
2443
- ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "size-5" })
2441
+ tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "w-5 h-5" }),
2442
+ metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "w-5 h-5" }),
2443
+ ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "w-5 h-5" })
2444
2444
  };
2445
2445
  const mapWalletToType = (wallet) => {
2446
2446
  switch (wallet) {
@@ -2725,9 +2725,9 @@ const AnotherAddress = () => {
2725
2725
  {
2726
2726
  variant: "ghost",
2727
2727
  size: "sm",
2728
- className: "rounded-full p-0 size-5 self-start",
2728
+ className: "rounded-full p-0 w-5 h-5 self-start",
2729
2729
  onClick: () => setValue(""),
2730
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4" })
2730
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-4 h-4" })
2731
2731
  }
2732
2732
  )
2733
2733
  ]
@@ -2902,7 +2902,7 @@ const Details = () => {
2902
2902
  {
2903
2903
  label: t("transaction.route"),
2904
2904
  value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center gap-2", children: [
2905
- /* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "size-4" }),
2905
+ /* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "w-4 h-4" }),
2906
2906
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "", children: routeText })
2907
2907
  ] })
2908
2908
  }
@@ -2943,7 +2943,7 @@ const DetailsRow = ({
2943
2943
  }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
2944
2944
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
2945
2945
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-priority font-normal", children: label }),
2946
- /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: label, children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-receive-icon" }) })
2946
+ /* @__PURE__ */ jsxRuntime.jsx(Tip, { text: label, children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-receive-icon" }) })
2947
2947
  ] }),
2948
2948
  isLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-16 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-foreground text-sm", children: value ?? "—" })
2949
2949
  ] });
@@ -3708,7 +3708,7 @@ const WalletSelectModal = () => {
3708
3708
  const IconComponent = wallet.icon;
3709
3709
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "-mx-5", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-3 px-5 py-3 hover:bg-muted h-auto rounded-md transition-[300]", children: [
3710
3710
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
3711
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-8" }) }),
3711
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 h-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "w-8 h-8" }) }),
3712
3712
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
3713
3713
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
3714
3714
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: wallet.name })
@@ -3722,7 +3722,7 @@ const WalletSelectModal = () => {
3722
3722
  onClose();
3723
3723
  },
3724
3724
  className: "text-sm font-medium text-muted-foreground",
3725
- children: /* @__PURE__ */ jsxRuntime.jsx(ExitIcon, { className: "text-[#808080] size-6" })
3725
+ children: /* @__PURE__ */ jsxRuntime.jsx(ExitIcon, { className: "text-[#808080] w-6 h-6" })
3726
3726
  }
3727
3727
  )
3728
3728
  ] }) }, wallet.id);
@@ -3749,7 +3749,7 @@ const WalletSelectModal = () => {
3749
3749
  disabled: isEvmConnector ? isPending : !wallet.enabled,
3750
3750
  className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-3 px-5 py-3 hover:bg-muted h-auto rounded-md transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
3751
3751
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
3752
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-8" }) }),
3752
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "w-8 h-8" }) }),
3753
3753
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
3754
3754
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: wallet.name }),
3755
3755
  wallet.comingSoon ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t("wallets.comingSoon") }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t("wallets.connect") })