@multiversx/sdk-dapp-liquidity 1.1.0-alpha.2 → 1.1.0-alpha.21

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.
Files changed (234) hide show
  1. package/README.md +6 -1
  2. package/api/getTransactions.d.ts +8 -2
  3. package/api/getTransactions.js +23 -3
  4. package/api/getTransactions.mjs +23 -3
  5. package/api/tests/getChains.spec.js +2 -1
  6. package/api/tests/getChains.spec.mjs +2 -1
  7. package/api/tests/getTokens.spec.js +2 -2
  8. package/api/tests/getTokens.spec.mjs +2 -2
  9. package/api/tests/getTransactions.spec.js +79 -69
  10. package/api/tests/getTransactions.spec.mjs +79 -69
  11. package/constants/index.d.ts +1 -1
  12. package/constants/index.js +1 -1
  13. package/constants/index.mjs +1 -1
  14. package/dto/Chain.dto.d.ts +3 -1
  15. package/dto/ConfirmRate.dto.d.ts +1 -0
  16. package/dto/Token.dto.d.ts +7 -2
  17. package/index.js +44 -16
  18. package/index.mjs +14 -16
  19. package/package.json +10 -6
  20. package/reactjs/components/BridgeForm/BridgeForm.d.ts +3 -1
  21. package/reactjs/components/BridgeForm/BridgeForm.js +182 -87
  22. package/reactjs/components/BridgeForm/BridgeForm.mjs +153 -58
  23. package/reactjs/components/BridgeHistory/BridgeHistory.js +73 -26
  24. package/reactjs/components/BridgeHistory/BridgeHistory.mjs +68 -21
  25. package/reactjs/components/Connect/BridgeAccountDisplay.js +2 -5
  26. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +2 -5
  27. package/reactjs/components/Connect/CustomConnectButton.js +2 -5
  28. package/reactjs/components/Connect/CustomConnectButton.mjs +1 -4
  29. package/reactjs/components/Connect/MvxConnectButton.d.ts +2 -4
  30. package/reactjs/components/Connect/MvxConnectButton.js +2 -2
  31. package/reactjs/components/Connect/MvxConnectButton.mjs +2 -2
  32. package/reactjs/components/Connect/SwitchChainButton.js +2 -6
  33. package/reactjs/components/Connect/SwitchChainButton.mjs +1 -5
  34. package/reactjs/components/CopyButton/CopyButton.js +2 -2
  35. package/reactjs/components/CopyButton/CopyButton.mjs +2 -2
  36. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +5 -5
  37. package/reactjs/components/Error/Error.d.ts +6 -0
  38. package/reactjs/components/Error/Error.js +67 -0
  39. package/reactjs/components/Error/Error.mjs +66 -0
  40. package/reactjs/components/Error/index.d.ts +1 -0
  41. package/reactjs/components/Error/index.js +5 -0
  42. package/reactjs/components/Error/index.mjs +4 -0
  43. package/reactjs/components/TokenSelector/TokenSelector.d.ts +2 -1
  44. package/reactjs/components/TokenSelector/TokenSelector.js +17 -9
  45. package/reactjs/components/TokenSelector/TokenSelector.mjs +13 -5
  46. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.d.ts +2 -1
  47. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +7 -3
  48. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +4 -0
  49. package/reactjs/components/TokenSelector/components/SelectContent.d.ts +2 -1
  50. package/reactjs/components/TokenSelector/components/SelectContent.js +12 -9
  51. package/reactjs/components/TokenSelector/components/SelectContent.mjs +4 -1
  52. package/reactjs/components/TokenSelector/components/TokenIcon.js +3 -3
  53. package/reactjs/components/TokenSelector/components/TokenItem.js +9 -9
  54. package/reactjs/components/TokenSelector/components/TokenItem.mjs +6 -6
  55. package/reactjs/components/base/MxCard/MxCard.js +2 -2
  56. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.d.ts +4 -0
  57. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.js +29 -0
  58. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.mjs +28 -0
  59. package/reactjs/components/base/MxCircleLoader/index.d.ts +1 -0
  60. package/reactjs/components/base/MxCircleLoader/index.js +5 -0
  61. package/reactjs/components/base/MxCircleLoader/index.mjs +4 -0
  62. package/reactjs/components/base/MxLink/MxLink.js +2 -2
  63. package/reactjs/components/base/MxSearch/MxSearch.js +4 -4
  64. package/reactjs/components/base/MxSlideover/MxSlideover.js +4 -4
  65. package/reactjs/components/base/MxTooltip/MxTooltip.js +9 -9
  66. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +2 -2
  67. package/reactjs/components/index.d.ts +1 -0
  68. package/reactjs/components/index.js +2 -0
  69. package/reactjs/components/index.mjs +2 -0
  70. package/reactjs/context/Web3AppProvider.d.ts +3 -1
  71. package/reactjs/context/Web3AppProvider.js +7 -5
  72. package/reactjs/context/Web3AppProvider.mjs +4 -2
  73. package/reactjs/context/useWeb3App.js +2 -2
  74. package/reactjs/hooks/index.js +1 -1
  75. package/reactjs/hooks/index.mjs +1 -1
  76. package/reactjs/hooks/useAccount.js +1 -5
  77. package/reactjs/hooks/useAccount.mjs +1 -5
  78. package/reactjs/hooks/useBalances.d.ts +4 -4
  79. package/reactjs/hooks/useBalances.js +16 -1
  80. package/reactjs/hooks/useBalances.mjs +16 -1
  81. package/reactjs/hooks/useBridgeFormik.js +9 -16
  82. package/reactjs/hooks/useBridgeFormik.mjs +0 -7
  83. package/reactjs/hooks/useDebounce.js +3 -3
  84. package/reactjs/hooks/useFetchBridgeData.d.ts +14 -4
  85. package/reactjs/hooks/useFetchTokens.d.ts +14 -4
  86. package/reactjs/hooks/useFetchTokens.js +9 -9
  87. package/reactjs/hooks/useFetchTokens.mjs +2 -2
  88. package/reactjs/hooks/useFiatData.d.ts +7 -2
  89. package/reactjs/hooks/useFiatData.js +6 -6
  90. package/reactjs/hooks/useFiatData.mjs +1 -1
  91. package/reactjs/hooks/useGetChainId.js +3 -3
  92. package/reactjs/hooks/useGetChainId.mjs +1 -1
  93. package/reactjs/hooks/useResolveTokenChain.js +2 -2
  94. package/reactjs/hooks/useSendTransactions.js +2 -2
  95. package/reactjs/hooks/useSignTransaction.d.ts +93 -67
  96. package/reactjs/hooks/useSignTransaction.js +53 -4
  97. package/reactjs/hooks/useSignTransaction.mjs +53 -4
  98. package/reactjs/hooks/validation/useTestHasEnoughFunds.js +3 -3
  99. package/reactjs/hooks/validation/useTestIsConnected.js +2 -2
  100. package/reactjs/index.js +44 -16
  101. package/reactjs/index.mjs +14 -16
  102. package/reactjs/init/init.d.ts +220 -1
  103. package/reactjs/init/init.js +34 -10
  104. package/reactjs/init/init.mjs +31 -7
  105. package/reactjs/init/tests/init.spec.js +5 -6
  106. package/reactjs/init/tests/init.spec.mjs +5 -6
  107. package/reactjs/queries/index.d.ts +0 -1
  108. package/reactjs/queries/index.js +0 -2
  109. package/reactjs/queries/index.mjs +1 -3
  110. package/reactjs/queries/useGetEvmTokensBalances.query.d.ts +8 -3
  111. package/reactjs/queries/useGetEvmTokensBalances.query.js +15 -18
  112. package/reactjs/queries/useGetEvmTokensBalances.query.mjs +15 -18
  113. package/reactjs/queries/useGetHistory.query.d.ts +9 -1
  114. package/reactjs/queries/useGetHistory.query.js +23 -5
  115. package/reactjs/queries/useGetHistory.query.mjs +23 -5
  116. package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +7 -2
  117. package/reactjs/queries/useGetMvxTokensBalances.query.js +2 -2
  118. package/reactjs/reexports.d.ts +2 -1
  119. package/reactjs/reexports.js +41 -13
  120. package/reactjs/reexports.mjs +11 -13
  121. package/reactjs/utils/getInitialTokens.d.ts +4 -1
  122. package/reactjs/utils/getInitialTokens.js +3 -3
  123. package/reactjs/utils/getInitialTokens.mjs +3 -3
  124. package/style.css +33 -1730
  125. package/types/chainType.d.ts +6 -0
  126. package/types/chainType.js +11 -0
  127. package/types/chainType.mjs +10 -0
  128. package/types/transaction.d.ts +28 -0
  129. package/types/utxo.d.ts +11 -0
  130. package/types/utxo.js +2 -0
  131. package/types/utxo.mjs +1 -0
  132. package/{useBalances-C_69CFoa.mjs → useBalances-Bom1mw1J.mjs} +101 -23
  133. package/{useBalances-C4YhEYxy.js → useBalances-gZTsFZHe.js} +102 -24
  134. package/index-BIVnypNe.mjs +0 -108
  135. package/index-Ben8n3bd.js +0 -58656
  136. package/index-CnKr4rL1.mjs +0 -91
  137. package/index-CnuruJNu.js +0 -329
  138. package/index-DsBh-EBw.js +0 -108
  139. package/index-iN9APQ6x.mjs +0 -58735
  140. package/modules/fiat/components/FiatForm/FiatForm.d.ts +0 -9
  141. package/modules/fiat/components/FiatForm/FiatForm.js +0 -314
  142. package/modules/fiat/components/FiatForm/FiatForm.mjs +0 -313
  143. package/modules/fiat/components/FiatForm/components/AmountInput/AmountInput.d.ts +0 -13
  144. package/modules/fiat/components/FiatForm/components/AmountInput/AmountInput.js +0 -117
  145. package/modules/fiat/components/FiatForm/components/AmountInput/AmountInput.mjs +0 -116
  146. package/modules/fiat/components/FiatForm/components/AmountInput/index.d.ts +0 -1
  147. package/modules/fiat/components/FiatForm/components/AmountInput/index.js +0 -5
  148. package/modules/fiat/components/FiatForm/components/AmountInput/index.mjs +0 -4
  149. package/modules/fiat/components/FiatForm/components/RateReloading/RateReloading.d.ts +0 -7
  150. package/modules/fiat/components/FiatForm/components/RateReloading/RateReloading.js +0 -74
  151. package/modules/fiat/components/FiatForm/components/RateReloading/RateReloading.mjs +0 -73
  152. package/modules/fiat/components/FiatForm/components/TokenSelector/TokenSelector.d.ts +0 -14
  153. package/modules/fiat/components/FiatForm/components/TokenSelector/TokenSelector.js +0 -94
  154. package/modules/fiat/components/FiatForm/components/TokenSelector/TokenSelector.mjs +0 -93
  155. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContainer.d.ts +0 -7
  156. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContainer.js +0 -82
  157. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContainer.mjs +0 -81
  158. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContent.d.ts +0 -7
  159. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContent.js +0 -91
  160. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectContent.mjs +0 -90
  161. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectedOption.d.ts +0 -5
  162. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectedOption.js +0 -30
  163. package/modules/fiat/components/FiatForm/components/TokenSelector/components/SelectedOption.mjs +0 -29
  164. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenIcon.d.ts +0 -8
  165. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenIcon.js +0 -103
  166. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenIcon.mjs +0 -102
  167. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenItem.d.ts +0 -7
  168. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenItem.js +0 -33
  169. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenItem.mjs +0 -32
  170. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenList.d.ts +0 -7
  171. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenList.js +0 -21
  172. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenList.mjs +0 -20
  173. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenSymbol.d.ts +0 -9
  174. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenSymbol.js +0 -26
  175. package/modules/fiat/components/FiatForm/components/TokenSelector/components/TokenSymbol.mjs +0 -25
  176. package/modules/fiat/components/FiatForm/components/TokenSelector/index.d.ts +0 -1
  177. package/modules/fiat/components/FiatForm/components/TokenSelector/index.js +0 -5
  178. package/modules/fiat/components/FiatForm/components/TokenSelector/index.mjs +0 -4
  179. package/modules/fiat/components/FiatForm/index.d.ts +0 -1
  180. package/modules/fiat/components/FiatForm/index.js +0 -5
  181. package/modules/fiat/components/FiatForm/index.mjs +0 -4
  182. package/modules/fiat/components/index.d.ts +0 -1
  183. package/modules/fiat/components/index.js +0 -5
  184. package/modules/fiat/components/index.mjs +0 -4
  185. package/modules/fiat/context/FiatProvider.d.ts +0 -8
  186. package/modules/fiat/context/FiatProvider.js +0 -24
  187. package/modules/fiat/context/FiatProvider.mjs +0 -23
  188. package/modules/fiat/context/queryClient.d.ts +0 -3
  189. package/modules/fiat/context/queryClient.js +0 -12
  190. package/modules/fiat/context/queryClient.mjs +0 -11
  191. package/modules/fiat/context/useFiat.d.ts +0 -1
  192. package/modules/fiat/context/useFiat.js +0 -13
  193. package/modules/fiat/context/useFiat.mjs +0 -12
  194. package/modules/fiat/hooks/index.d.ts +0 -2
  195. package/modules/fiat/hooks/index.js +0 -7
  196. package/modules/fiat/hooks/index.mjs +0 -6
  197. package/modules/fiat/hooks/useFiatData.d.ts +0 -7
  198. package/modules/fiat/hooks/useFiatData.js +0 -75
  199. package/modules/fiat/hooks/useFiatData.mjs +0 -74
  200. package/modules/fiat/hooks/validation/index.d.ts +0 -1
  201. package/modules/fiat/hooks/validation/index.js +0 -5
  202. package/modules/fiat/hooks/validation/index.mjs +0 -4
  203. package/modules/fiat/hooks/validation/useAmountSchema.d.ts +0 -2
  204. package/modules/fiat/hooks/validation/useAmountSchema.js +0 -27
  205. package/modules/fiat/hooks/validation/useAmountSchema.mjs +0 -9
  206. package/modules/fiat/index.d.ts +0 -8
  207. package/modules/fiat/index.js +0 -22
  208. package/modules/fiat/index.mjs +0 -21
  209. package/modules/fiat/init/index.d.ts +0 -2
  210. package/modules/fiat/init/index.js +0 -5
  211. package/modules/fiat/init/index.mjs +0 -4
  212. package/modules/fiat/init/init.d.ts +0 -22
  213. package/modules/fiat/init/init.js +0 -15
  214. package/modules/fiat/init/init.mjs +0 -14
  215. package/modules/fiat/queries/index.d.ts +0 -2
  216. package/modules/fiat/queries/index.js +0 -7
  217. package/modules/fiat/queries/index.mjs +0 -6
  218. package/modules/fiat/queries/useGetRate.mutation.d.ts +0 -6
  219. package/modules/fiat/queries/useGetRate.mutation.js +0 -20
  220. package/modules/fiat/queries/useGetRate.mutation.mjs +0 -19
  221. package/modules/fiat/queries/useGetTokens.query.d.ts +0 -5
  222. package/modules/fiat/queries/useGetTokens.query.js +0 -33
  223. package/modules/fiat/queries/useGetTokens.query.mjs +0 -32
  224. package/react-47kZTyAT.mjs +0 -51
  225. package/react-B_iI3-1z.mjs +0 -3133
  226. package/react-BomcNL1v.js +0 -254
  227. package/react-CqKlu0W0.js +0 -51
  228. package/react-R_xxu7fN.js +0 -3133
  229. package/react-cXurUY4Z.mjs +0 -254
  230. package/reactjs/queries/useGetTokens.query.d.ts +0 -3
  231. package/reactjs/queries/useGetTokens.query.js +0 -34
  232. package/reactjs/queries/useGetTokens.query.mjs +0 -33
  233. package/w3m-modal-Bhg44d6I.js +0 -356
  234. package/w3m-modal-Br2Ec3MM.mjs +0 -356
@@ -1,4 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { faArrowDownShortWide } from "@fortawesome/free-solid-svg-icons/faArrowDownShortWide";
3
+ import { faArrowUpShortWide } from "@fortawesome/free-solid-svg-icons/faArrowUpShortWide";
2
4
  import { faCircleCheck } from "@fortawesome/free-solid-svg-icons/faCircleCheck";
3
5
  import { faCircleXmark } from "@fortawesome/free-solid-svg-icons/faCircleXmark";
4
6
  import { faClock } from "@fortawesome/free-solid-svg-icons/faClock";
@@ -15,13 +17,18 @@ import { mxClsx } from "../../utils/mxClsx.mjs";
15
17
  import { MxButton } from "../base/MxButton/MxButton.mjs";
16
18
  import { MxCard } from "../base/MxCard/MxCard.mjs";
17
19
  import { MxLink } from "../base/MxLink/MxLink.mjs";
20
+ import "../base/MxSearch/MxSearch.mjs";
21
+ import "@headlessui/react";
22
+ import { MxTooltip } from "../base/MxTooltip/MxTooltip.mjs";
18
23
  const ArrowUpRight = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%206V13C15%2013.5625%2014.5312%2014%2014%2014C13.4375%2014%2013%2013.5625%2013%2013V8.4375L6.6875%2014.7188C6.3125%2015.125%205.65625%2015.125%205.28125%2014.7188C4.875%2014.3438%204.875%2013.6875%205.28125%2013.3125L11.5625%207H7C6.4375%207%206%206.5625%206%206C6%205.46875%206.4375%205%207%205H14C14.5312%205%2015%205.46875%2015%206Z'%20fill='%23CDD0DB'/%3e%3c/svg%3e";
19
24
  const BridgeHistory = ({
20
25
  mvxAddress,
21
26
  onClose
22
27
  }) => {
23
28
  const { options } = useWeb3App();
24
- const { data, isLoading, isError } = useGetHistoryQuery();
29
+ const { data, isLoading, isError } = useGetHistoryQuery({
30
+ address: mvxAddress
31
+ });
25
32
  const resolveTransactionIcon = useCallback((transaction) => {
26
33
  switch (transaction.status) {
27
34
  case "success":
@@ -169,10 +176,32 @@ const BridgeHistory = ({
169
176
  "liq-text-red-200": transaction.status === "failed"
170
177
  }),
171
178
  children: [
172
- transaction.statusIcon,
173
- MVX_CHAIN_IDS.includes(Number(transaction.toChainId)) ? /* @__PURE__ */ jsxs(Fragment, { children: [
174
- /* @__PURE__ */ jsx("span", { children: "Deposit " }),
175
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap liq-overflow-hidden liq-text-ellipsis", children: formatAmount({
179
+ /* @__PURE__ */ jsx(
180
+ MxTooltip,
181
+ {
182
+ placement: "top",
183
+ buttonText: transaction.statusIcon,
184
+ children: new Date(
185
+ transaction.depositTimestamp * 1e3
186
+ ).toLocaleString()
187
+ }
188
+ ),
189
+ MVX_CHAIN_IDS.includes(transaction.toChainId) ? /* @__PURE__ */ jsxs(Fragment, { children: [
190
+ /* @__PURE__ */ jsx(
191
+ MxTooltip,
192
+ {
193
+ placement: "top",
194
+ buttonText: /* @__PURE__ */ jsx(
195
+ FontAwesomeIcon,
196
+ {
197
+ icon: faArrowDownShortWide,
198
+ className: "liq-mx-1 liq-flex liq-items-center"
199
+ }
200
+ ),
201
+ children: "Deposit"
202
+ }
203
+ ),
204
+ /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
176
205
  decimals: (_a = tokensMap[transaction.tokenDestination]) == null ? void 0 : _a.decimals,
177
206
  amount: transaction.amountOut,
178
207
  addCommas: false,
@@ -188,7 +217,7 @@ const BridgeHistory = ({
188
217
  }
189
218
  ),
190
219
  /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "from" }),
191
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap liq-overflow-hidden liq-text-ellipsis", children: formatAmount({
220
+ /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
192
221
  decimals: (_d = tokensMap[transaction.tokenSource]) == null ? void 0 : _d.decimals,
193
222
  amount: transaction.amountIn,
194
223
  addCommas: false,
@@ -214,8 +243,22 @@ const BridgeHistory = ({
214
243
  )
215
244
  ] })
216
245
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
217
- /* @__PURE__ */ jsx("span", { children: "Transfer " }),
218
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap liq-overflow-hidden liq-text-ellipsis", children: formatAmount({
246
+ /* @__PURE__ */ jsx(
247
+ MxTooltip,
248
+ {
249
+ placement: "top",
250
+ buttonText: /* @__PURE__ */ jsx(
251
+ FontAwesomeIcon,
252
+ {
253
+ icon: faArrowUpShortWide,
254
+ spin: true,
255
+ className: "liq-mx-1 liq-flex liq-items-center"
256
+ }
257
+ ),
258
+ children: "Transfer"
259
+ }
260
+ ),
261
+ /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
219
262
  decimals: (_h = tokensMap[transaction.tokenSource]) == null ? void 0 : _h.decimals,
220
263
  amount: transaction.amountIn,
221
264
  addCommas: false,
@@ -231,7 +274,7 @@ const BridgeHistory = ({
231
274
  }
232
275
  ),
233
276
  /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "to" }),
234
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap liq-overflow-hidden liq-text-ellipsis", children: formatAmount({
277
+ /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
235
278
  decimals: (_k = tokensMap[transaction.tokenDestination]) == null ? void 0 : _k.decimals,
236
279
  amount: transaction.amountOut,
237
280
  addCommas: false,
@@ -260,24 +303,28 @@ const BridgeHistory = ({
260
303
  ]
261
304
  }
262
305
  ),
263
- transaction.provider === ProviderType.MultiversxBridge && /* @__PURE__ */ jsx("div", { className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center liq-gap-1", children: /* @__PURE__ */ jsxs(
306
+ transaction.provider === ProviderType.MultiversxBridge && /* @__PURE__ */ jsx("div", { className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center liq-gap-1", children: /* @__PURE__ */ jsx(
264
307
  MxLink,
265
308
  {
266
309
  to: `${options.bridgeURL}/status/${transaction.txHash}`,
267
310
  target: "_blank",
268
311
  showExternalIcon: false,
269
312
  className: "liq-flex",
270
- children: [
271
- /* @__PURE__ */ jsx("div", { className: "max-sm:liq-hidden", children: "View" }),
272
- /* @__PURE__ */ jsx(
273
- "img",
274
- {
275
- src: ArrowUpRight,
276
- alt: "",
277
- className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-neutral-200"
278
- }
279
- )
280
- ]
313
+ children: /* @__PURE__ */ jsx(
314
+ MxTooltip,
315
+ {
316
+ placement: "top",
317
+ buttonText: /* @__PURE__ */ jsx(
318
+ "img",
319
+ {
320
+ src: ArrowUpRight,
321
+ alt: "",
322
+ className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-neutral-200"
323
+ }
324
+ ),
325
+ children: "View"
326
+ }
327
+ )
281
328
  }
282
329
  ) })
283
330
  ] })
@@ -4,11 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const faPowerOff = require("@fortawesome/free-solid-svg-icons/faPowerOff");
6
6
  const reactFontawesome = require("@fortawesome/react-fontawesome");
7
- require("../../../index-Ben8n3bd.js");
8
- const react = require("../../../react-CqKlu0W0.js");
9
- require("viem");
10
- require("viem/chains");
11
- require("react");
7
+ const react = require("@reown/appkit/react");
12
8
  const reactjs_components_Connect_SwitchChainButton = require("./SwitchChainButton.js");
13
9
  const reactjs_hooks_useAccount = require("../../hooks/useAccount.js");
14
10
  require("tailwind-merge");
@@ -17,6 +13,7 @@ const reactjs_components_base_MxLink_MxLink = require("../base/MxLink/MxLink.js"
17
13
  require("../base/MxSearch/MxSearch.js");
18
14
  require("@fortawesome/free-solid-svg-icons/faClose");
19
15
  require("@headlessui/react");
16
+ require("react");
20
17
  require("react-dom");
21
18
  require("react-popper");
22
19
  require("../base/MxTooltip/components/TooltipContainer/TooltipContainer.js");
@@ -1,11 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { faPowerOff } from "@fortawesome/free-solid-svg-icons/faPowerOff";
3
3
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4
- import "../../../index-iN9APQ6x.mjs";
5
- import { a as useDisconnect } from "../../../react-47kZTyAT.mjs";
6
- import "viem";
7
- import "viem/chains";
8
- import "react";
4
+ import { useDisconnect } from "@reown/appkit/react";
9
5
  import { SwitchChainButton } from "./SwitchChainButton.mjs";
10
6
  import { useAccount } from "../../hooks/useAccount.mjs";
11
7
  import "tailwind-merge";
@@ -14,6 +10,7 @@ import { MxLink } from "../base/MxLink/MxLink.mjs";
14
10
  import "../base/MxSearch/MxSearch.mjs";
15
11
  import "@fortawesome/free-solid-svg-icons/faClose";
16
12
  import "@headlessui/react";
13
+ import "react";
17
14
  import "react-dom";
18
15
  import "react-popper";
19
16
  import "../base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs";
@@ -2,17 +2,14 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
- require("../../../index-Ben8n3bd.js");
6
- require("viem");
7
- require("viem/chains");
8
- const index = require("../../../index-DsBh-EBw.js");
5
+ const react = require("@reown/appkit/react");
9
6
  const wagmi = require("wagmi");
10
7
  const CustomConnectButton = ({
11
8
  disabled,
12
9
  className,
13
10
  children
14
11
  }) => {
15
- const { open } = index.useAppKit();
12
+ const { open } = react.useAppKit();
16
13
  const { isConnected, isConnecting } = wagmi.useAccount();
17
14
  const { disconnect } = wagmi.useDisconnect();
18
15
  const baseStyle = "liq-font-bold liq-text-inherit liq-rounded-lg";
@@ -1,8 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "../../../index-iN9APQ6x.mjs";
3
- import "viem";
4
- import "viem/chains";
5
- import { u as useAppKit } from "../../../index-BIVnypNe.mjs";
2
+ import { useAppKit } from "@reown/appkit/react";
6
3
  import { useAccount, useDisconnect } from "wagmi";
7
4
  const CustomConnectButton = ({
8
5
  disabled,
@@ -1,11 +1,9 @@
1
- import { ChainDTO } from '../../../dto/Chain.dto';
2
-
3
1
  interface ConnectButtonProps {
4
2
  mvxAccountAddress?: string;
5
- chain?: ChainDTO;
3
+ icon?: string;
6
4
  disabled?: boolean;
7
5
  className?: string;
8
6
  onClick?: () => void;
9
7
  }
10
- export declare const MvxConnectButton: ({ mvxAccountAddress, chain, disabled, className, onClick }: ConnectButtonProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const MvxConnectButton: ({ mvxAccountAddress, icon, disabled, className, onClick }: ConnectButtonProps) => import("react/jsx-runtime").JSX.Element | null;
11
9
  export {};
@@ -6,7 +6,7 @@ const reactjs_utils_mxClsx = require("../../utils/mxClsx.js");
6
6
  const reactjs_components_base_MxButton_MxButton = require("../base/MxButton/MxButton.js");
7
7
  const MvxConnectButton = ({
8
8
  mvxAccountAddress,
9
- chain,
9
+ icon,
10
10
  disabled,
11
11
  className = "",
12
12
  onClick
@@ -30,7 +30,7 @@ const MvxConnectButton = ({
30
30
  /* @__PURE__ */ jsxRuntime.jsx(
31
31
  "img",
32
32
  {
33
- src: (chain == null ? void 0 : chain.svgUrl) ?? "",
33
+ src: icon ?? "",
34
34
  alt: "",
35
35
  className: "liq-h-[1.5rem] liq-w-[1.5rem]"
36
36
  }
@@ -3,7 +3,7 @@ import { mxClsx } from "../../utils/mxClsx.mjs";
3
3
  import { MxButton } from "../base/MxButton/MxButton.mjs";
4
4
  const MvxConnectButton = ({
5
5
  mvxAccountAddress,
6
- chain,
6
+ icon,
7
7
  disabled,
8
8
  className = "",
9
9
  onClick
@@ -27,7 +27,7 @@ const MvxConnectButton = ({
27
27
  /* @__PURE__ */ jsx(
28
28
  "img",
29
29
  {
30
- src: (chain == null ? void 0 : chain.svgUrl) ?? "",
30
+ src: icon ?? "",
31
31
  alt: "",
32
32
  className: "liq-h-[1.5rem] liq-w-[1.5rem]"
33
33
  }
@@ -2,17 +2,13 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
- require("../../../index-Ben8n3bd.js");
6
- const react = require("../../../react-CqKlu0W0.js");
7
- require("viem");
8
- require("viem/chains");
9
- const index = require("../../../index-DsBh-EBw.js");
5
+ const react = require("@reown/appkit/react");
10
6
  const SwitchChainButton = ({
11
7
  children,
12
8
  className,
13
9
  disabled
14
10
  }) => {
15
- const { open } = index.useAppKit();
11
+ const { open } = react.useAppKit();
16
12
  const { isConnected } = react.useAppKitAccount();
17
13
  const baseStyle = `liq-font-bold liq-text-white liq-rounded-lg ${disabled ? "liq-cursor-not-allowed" : "liq-cursor-pointer"}`;
18
14
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1,9 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "../../../index-iN9APQ6x.mjs";
3
- import { u as useAppKitAccount } from "../../../react-47kZTyAT.mjs";
4
- import "viem";
5
- import "viem/chains";
6
- import { u as useAppKit } from "../../../index-BIVnypNe.mjs";
2
+ import { useAppKit, useAppKitAccount } from "@reown/appkit/react";
7
3
  const SwitchChainButton = ({
8
4
  children,
9
5
  className,
@@ -5,11 +5,11 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const faCheck = require("@fortawesome/free-solid-svg-icons/faCheck");
6
6
  const faCopy = require("@fortawesome/free-solid-svg-icons/faCopy");
7
7
  const reactFontawesome = require("@fortawesome/react-fontawesome");
8
- const require$$0 = require("react");
8
+ const React = require("react");
9
9
  const reactjs_components_CopyButton_utils_copyToClipboard = require("./utils/copyToClipboard.js");
10
10
  const reactjs_components_base_MxButton_MxButton = require("../base/MxButton/MxButton.js");
11
11
  const CopyButton = ({ text, className = "" }) => {
12
- const [copyResult, setCopyResut] = require$$0.useState({
12
+ const [copyResult, setCopyResut] = React.useState({
13
13
  default: true,
14
14
  success: false
15
15
  });
@@ -2,11 +2,11 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck";
3
3
  import { faCopy } from "@fortawesome/free-solid-svg-icons/faCopy";
4
4
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
- import require$$0 from "react";
5
+ import React from "react";
6
6
  import { copyTextToClipboard } from "./utils/copyToClipboard.mjs";
7
7
  import { MxButton } from "../base/MxButton/MxButton.mjs";
8
8
  const CopyButton = ({ text, className = "" }) => {
9
- const [copyResult, setCopyResut] = require$$0.useState({
9
+ const [copyResult, setCopyResut] = React.useState({
10
10
  default: true,
11
11
  success: false
12
12
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const AnimatedNumber = require("animated-number-react");
6
- const require$$0 = require("react");
6
+ const React = require("react");
7
7
  const reactjs_utils_getCleanStringAmount = require("../../../../utils/getCleanStringAmount.js");
8
8
  const reactjs_utils_roundAmount = require("../../../../utils/roundAmount.js");
9
9
  const AnimateNumber = ({
@@ -11,10 +11,10 @@ const AnimateNumber = ({
11
11
  onClick,
12
12
  ...rest
13
13
  }) => {
14
- const [digits, setDigits] = require$$0.useState(0);
15
- const [updateCount, setUpdateCount] = require$$0.useState(0);
16
- const [valueToAnimate, setValueToAnimate] = require$$0.useState();
17
- require$$0.useEffect(() => {
14
+ const [digits, setDigits] = React.useState(0);
15
+ const [updateCount, setUpdateCount] = React.useState(0);
16
+ const [valueToAnimate, setValueToAnimate] = React.useState();
17
+ React.useEffect(() => {
18
18
  const { amountWithoutCommas, parts } = reactjs_utils_getCleanStringAmount.getCleanStringAmount(amount);
19
19
  setUpdateCount((existing) => existing + 1);
20
20
  setDigits(parts.length > 1 ? parts[1].length : 0);
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export declare const Error: ({ error, className }: {
4
+ error?: ReactNode | string;
5
+ className?: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const jsxRuntime = require("react/jsx-runtime");
5
+ const faInfoCircle = require("@fortawesome/free-solid-svg-icons/faInfoCircle");
6
+ const faRefresh = require("@fortawesome/free-solid-svg-icons/faRefresh");
7
+ const reactFontawesome = require("@fortawesome/react-fontawesome");
8
+ const reactjs_constants_index = require("../../constants/index.js");
9
+ require("@multiversx/sdk-dapp-utils/out/helpers/formatAmount");
10
+ require("@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger");
11
+ require("../../../bignumber-B8vjg9qn.js");
12
+ require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
13
+ const reactjs_utils_mxClsx = require("../../utils/mxClsx.js");
14
+ const reactjs_components_base_MxButton_MxButton = require("../base/MxButton/MxButton.js");
15
+ const reactjs_components_base_MxCard_MxCard = require("../base/MxCard/MxCard.js");
16
+ require("../base/MxLink/MxLink.js");
17
+ require("../base/MxSearch/MxSearch.js");
18
+ require("@fortawesome/free-solid-svg-icons/faClose");
19
+ require("@headlessui/react");
20
+ require("react");
21
+ require("react-dom");
22
+ require("react-popper");
23
+ require("../base/MxTooltip/components/TooltipContainer/TooltipContainer.js");
24
+ const Error = ({
25
+ error,
26
+ className
27
+ }) => {
28
+ const handleRetryClick = () => {
29
+ reactjs_constants_index.safeWindow.location.reload();
30
+ };
31
+ return /* @__PURE__ */ jsxRuntime.jsxs(
32
+ reactjs_components_base_MxCard_MxCard.MxCard,
33
+ {
34
+ className: reactjs_utils_mxClsx.mxClsx(
35
+ "liq-flex liq-flex-col liq-items-center liq-justify-center liq-gap-8 liq-px-8 liq-py-14",
36
+ className
37
+ ),
38
+ children: [
39
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liq-flex liq-flex-col liq-gap-4 liq-text-center", children: [
40
+ /* @__PURE__ */ jsxRuntime.jsx(
41
+ reactFontawesome.FontAwesomeIcon,
42
+ {
43
+ icon: faInfoCircle.faInfoCircle,
44
+ size: "3x",
45
+ className: "liq-bg-opacity-40 liq-text-white"
46
+ }
47
+ ),
48
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "liq-font-medium liq-max-w-xs liq-text-xl liq-text-neutral-300", children: "Unable to load data. Please wait a moment and try again." }),
49
+ error && /* @__PURE__ */ jsxRuntime.jsx("small", { className: "liq-font-medium liq-max-w-xs liq-text-xl liq-text-neutral-500", children: error })
50
+ ] }),
51
+ /* @__PURE__ */ jsxRuntime.jsxs(
52
+ reactjs_components_base_MxButton_MxButton.MxButton,
53
+ {
54
+ variant: "neutral-700",
55
+ className: "liq-flex liq-items-center liq-gap-3",
56
+ onClick: handleRetryClick,
57
+ children: [
58
+ /* @__PURE__ */ jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, { icon: faRefresh.faRefresh }),
59
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "liq-font-medium liq-text-white", children: "Retry" })
60
+ ]
61
+ }
62
+ )
63
+ ]
64
+ }
65
+ );
66
+ };
67
+ exports.Error = Error;
@@ -0,0 +1,66 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { faInfoCircle } from "@fortawesome/free-solid-svg-icons/faInfoCircle";
3
+ import { faRefresh } from "@fortawesome/free-solid-svg-icons/faRefresh";
4
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
+ import { safeWindow } from "../../constants/index.mjs";
6
+ import "@multiversx/sdk-dapp-utils/out/helpers/formatAmount";
7
+ import "@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger";
8
+ import "../../../bignumber-CKZkoo0g.mjs";
9
+ import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
10
+ import { mxClsx } from "../../utils/mxClsx.mjs";
11
+ import { MxButton } from "../base/MxButton/MxButton.mjs";
12
+ import { MxCard } from "../base/MxCard/MxCard.mjs";
13
+ import "../base/MxLink/MxLink.mjs";
14
+ import "../base/MxSearch/MxSearch.mjs";
15
+ import "@fortawesome/free-solid-svg-icons/faClose";
16
+ import "@headlessui/react";
17
+ import "react";
18
+ import "react-dom";
19
+ import "react-popper";
20
+ import "../base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs";
21
+ const Error = ({
22
+ error,
23
+ className
24
+ }) => {
25
+ const handleRetryClick = () => {
26
+ safeWindow.location.reload();
27
+ };
28
+ return /* @__PURE__ */ jsxs(
29
+ MxCard,
30
+ {
31
+ className: mxClsx(
32
+ "liq-flex liq-flex-col liq-items-center liq-justify-center liq-gap-8 liq-px-8 liq-py-14",
33
+ className
34
+ ),
35
+ children: [
36
+ /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-flex-col liq-gap-4 liq-text-center", children: [
37
+ /* @__PURE__ */ jsx(
38
+ FontAwesomeIcon,
39
+ {
40
+ icon: faInfoCircle,
41
+ size: "3x",
42
+ className: "liq-bg-opacity-40 liq-text-white"
43
+ }
44
+ ),
45
+ /* @__PURE__ */ jsx("span", { className: "liq-font-medium liq-max-w-xs liq-text-xl liq-text-neutral-300", children: "Unable to load data. Please wait a moment and try again." }),
46
+ error && /* @__PURE__ */ jsx("small", { className: "liq-font-medium liq-max-w-xs liq-text-xl liq-text-neutral-500", children: error })
47
+ ] }),
48
+ /* @__PURE__ */ jsxs(
49
+ MxButton,
50
+ {
51
+ variant: "neutral-700",
52
+ className: "liq-flex liq-items-center liq-gap-3",
53
+ onClick: handleRetryClick,
54
+ children: [
55
+ /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faRefresh }),
56
+ /* @__PURE__ */ jsx("span", { className: "liq-font-medium liq-text-white", children: "Retry" })
57
+ ]
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ );
63
+ };
64
+ export {
65
+ Error
66
+ };
@@ -0,0 +1 @@
1
+ export * from './Error';
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const reactjs_components_Error_Error = require("./Error.js");
5
+ exports.Error = reactjs_components_Error_Error.Error;
@@ -0,0 +1,4 @@
1
+ import { Error } from "./Error.mjs";
2
+ export {
3
+ Error
4
+ };
@@ -1,11 +1,12 @@
1
1
  import { TokenType } from '../../../types/token';
2
2
 
3
- export declare const TokenSelector: ({ name, options, selectedOption, areOptionsLoading, className, disabled, omitDisableClass, color, onBlur, onChange, onMaxBtnClick, onTokenSelectorDisplay }: {
3
+ export declare const TokenSelector: ({ name, options, selectedOption, areOptionsLoading, className, disabled, isMvxSelector, omitDisableClass, color, onBlur, onChange, onMaxBtnClick, onTokenSelectorDisplay }: {
4
4
  name: string;
5
5
  options: TokenType[];
6
6
  selectedOption?: TokenType;
7
7
  areOptionsLoading?: boolean;
8
8
  disabled?: boolean;
9
+ isMvxSelector?: boolean;
9
10
  omitDisableClass?: boolean;
10
11
  className?: string;
11
12
  color?: "neutral-750" | "neutral-850";
@@ -5,7 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const faChevronDown = require("@fortawesome/free-solid-svg-icons/faChevronDown");
6
6
  const faWallet = require("@fortawesome/free-solid-svg-icons/faWallet");
7
7
  const reactFontawesome = require("@fortawesome/react-fontawesome");
8
- const require$$0 = require("react");
8
+ const React = require("react");
9
9
  const reactjs_components_TokenSelector_components_SelectContainer = require("./components/SelectContainer.js");
10
10
  const reactjs_components_TokenSelector_components_SelectContent = require("./components/SelectContent.js");
11
11
  const reactjs_components_TokenSelector_components_SelectedOption = require("./components/SelectedOption.js");
@@ -22,6 +22,7 @@ const TokenSelector = ({
22
22
  areOptionsLoading = false,
23
23
  className = "",
24
24
  disabled = false,
25
+ isMvxSelector = false,
25
26
  omitDisableClass = false,
26
27
  color = "neutral-750",
27
28
  onBlur,
@@ -29,18 +30,24 @@ const TokenSelector = ({
29
30
  onMaxBtnClick,
30
31
  onTokenSelectorDisplay
31
32
  }) => {
32
- const [show, setShow] = require$$0.useState(false);
33
+ const [show, setShow] = React.useState(false);
33
34
  const { data, isLoading: areChainsLoading } = reactjs_queries_useGetChains_query.useGetChainsQuery();
34
35
  const { chainIcon } = reactjs_hooks_useResolveTokenChain.useResolveTokenChain({
35
36
  token: selectedOption
36
37
  });
37
- const chains = require$$0.useMemo(() => {
38
+ const chains = React.useMemo(() => {
39
+ if (isMvxSelector) {
40
+ return (data == null ? void 0 : data.filter(
41
+ (chain) => constants_index.MVX_CHAIN_IDS.includes(chain.chainId.toString())
42
+ )) ?? [];
43
+ }
38
44
  return (data == null ? void 0 : data.filter(
39
- (chain) => !constants_index.MVX_CHAIN_IDS.includes(Number(chain.chainId.toString()))
45
+ (chain) => !constants_index.MVX_CHAIN_IDS.includes(chain.chainId.toString())
40
46
  )) ?? [];
41
47
  }, [data]);
48
+ const isVisuallyDisabled = disabled || chains.length < 2;
42
49
  const handleOnClick = () => setShow(true);
43
- require$$0.useEffect(() => {
50
+ React.useEffect(() => {
44
51
  onTokenSelectorDisplay == null ? void 0 : onTokenSelectorDisplay(show);
45
52
  }, [show]);
46
53
  if (areOptionsLoading || areChainsLoading) {
@@ -72,6 +79,7 @@ const TokenSelector = ({
72
79
  },
73
80
  tokens: options,
74
81
  chains,
82
+ isMvxSelector,
75
83
  areChainsLoading,
76
84
  selectedToken: selectedOption
77
85
  }
@@ -93,19 +101,19 @@ const TokenSelector = ({
93
101
  "liq-bg-neutral-900/50 liq-outline liq-outline-1 liq-outline-neutral-700/20 hover:enabled:liq-bg-neutral-600/50 hover:enabled:liq-outline-neutral-600": color === "neutral-850"
94
102
  },
95
103
  {
96
- "disabled:!liq-opacity-70": disabled && !omitDisableClass
104
+ "disabled:!liq-opacity-70": isVisuallyDisabled && !omitDisableClass
97
105
  },
98
106
  {
99
- "!liq-cursor-not-allowed !liq-bg-transparent !liq-outline-transparent": disabled
107
+ "!liq-cursor-not-allowed !liq-bg-transparent !liq-outline-transparent": isVisuallyDisabled
100
108
  },
101
109
  className
102
110
  ),
103
111
  onBlur,
104
112
  onClick: handleOnClick,
105
- disabled,
113
+ disabled: isVisuallyDisabled,
106
114
  children: [
107
115
  /* @__PURE__ */ jsxRuntime.jsx(reactjs_components_TokenSelector_components_SelectedOption.SelectedOption, { value: selectedOption }),
108
- !disabled && /* @__PURE__ */ jsxRuntime.jsx(
116
+ !isVisuallyDisabled && /* @__PURE__ */ jsxRuntime.jsx(
109
117
  reactFontawesome.FontAwesomeIcon,
110
118
  {
111
119
  icon: faChevronDown.faChevronDown,