@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14

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 (302) hide show
  1. package/ConstantsUtil-BinYIDR2.mjs +8 -0
  2. package/ConstantsUtil-CbnVdQ5P.js +8 -0
  3. package/add-D-ECcdUh.mjs +19 -0
  4. package/add-Diz8heiY.js +20 -0
  5. package/all-wallets-_iOQf3bl.js +11 -0
  6. package/all-wallets-puIIQy3Y.mjs +10 -0
  7. package/app-store-BGTKFL27.js +22 -0
  8. package/app-store-Bsf7w3pv.mjs +21 -0
  9. package/apple-Cw8e8IGH.mjs +22 -0
  10. package/apple-DF7n_Yzl.js +23 -0
  11. package/arrow-bottom-Cp2C4fQv.mjs +12 -0
  12. package/arrow-bottom-DTvIR3s3.js +13 -0
  13. package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
  14. package/arrow-bottom-circle-CzPwiwWH.js +16 -0
  15. package/arrow-left-9VFYHQSW.js +13 -0
  16. package/arrow-left-BDQHoEvX.mjs +12 -0
  17. package/arrow-right-BxkuSpWU.mjs +12 -0
  18. package/arrow-right-DBLQ6w92.js +13 -0
  19. package/arrow-top-BiQd5Aey.js +13 -0
  20. package/arrow-top-BrLVX4Rj.mjs +12 -0
  21. package/bank-B7EC6Kdz.mjs +18 -0
  22. package/bank-CvPn9sfV.js +19 -0
  23. package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
  24. package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
  25. package/bin-BXO1kNZh.js +9 -0
  26. package/bin-CwiYVJ1L.mjs +8 -0
  27. package/bitcoin-C3kBVar_.mjs +17 -0
  28. package/bitcoin-DAvQGpeP.js +3251 -0
  29. package/bitcoin-dNBGbS2B.mjs +3251 -0
  30. package/bitcoin-k6bvmzMA.js +18 -0
  31. package/browser-ShRLuKKz.mjs +18 -0
  32. package/browser-t7nfT7HL.js +19 -0
  33. package/card-BJg5bdoM.mjs +18 -0
  34. package/card-hxUDXttT.js +19 -0
  35. package/checkmark-BpR0Yy93.mjs +15 -0
  36. package/checkmark-D9AVWgl5.js +16 -0
  37. package/checkmark-bold-D3Xcby1U.mjs +12 -0
  38. package/checkmark-bold-De02hde8.js +13 -0
  39. package/chevron-bottom-DcBf7T5F.js +13 -0
  40. package/chevron-bottom-DfGpWIz7.mjs +12 -0
  41. package/chevron-left-BKvYVnUo.js +13 -0
  42. package/chevron-left-DGSG9WJQ.mjs +12 -0
  43. package/chevron-right-BLgYIEeO.js +13 -0
  44. package/chevron-right-C2nsTx_Y.mjs +12 -0
  45. package/chevron-top-CwFOEFy8.js +13 -0
  46. package/chevron-top-vk-9DvUU.mjs +12 -0
  47. package/chrome-store-4H_ie3vA.mjs +65 -0
  48. package/chrome-store-BWarxVMl.js +66 -0
  49. package/circle-BtqWJU0_.mjs +8 -0
  50. package/circle-DYjG6o7-.js +9 -0
  51. package/clock-Ba5SM-pl.mjs +12 -0
  52. package/clock-DPzNREdU.js +13 -0
  53. package/close-CJHKFOyp.mjs +12 -0
  54. package/close-DDWnJdJe.js +13 -0
  55. package/coinPlaceholder-Cbba3D1H.mjs +12 -0
  56. package/coinPlaceholder-DdxQIc2D.js +13 -0
  57. package/compass-CugCxeSC.js +13 -0
  58. package/compass-DbN5DkTl.mjs +12 -0
  59. package/copy-CHSZprYJ.mjs +19 -0
  60. package/copy-En5h5Uhu.js +20 -0
  61. package/cursor-DCRkvEhr.mjs +7 -0
  62. package/cursor-DnEQtrUK.js +8 -0
  63. package/cursor-transparent-CU8lk-xg.js +17 -0
  64. package/cursor-transparent-CliETg4d.mjs +16 -0
  65. package/desktop-BgD7aypB.js +14 -0
  66. package/desktop-Cg5I32-p.mjs +13 -0
  67. package/disconnect-CCyMbAdw.js +13 -0
  68. package/disconnect-Cp2vRWB2.mjs +12 -0
  69. package/discord-B1d-qeSk.mjs +21 -0
  70. package/discord-BEB5klec.js +22 -0
  71. package/email-CorlePKz.js +873 -0
  72. package/email-Znno7H8_.mjs +878 -0
  73. package/embedded-wallet-B9ro9Tel.js +549 -0
  74. package/embedded-wallet-CnTWeseG.mjs +552 -0
  75. package/ethereum-BRcsRjUU.mjs +14 -0
  76. package/ethereum-CZ_xe09e.js +15 -0
  77. package/etherscan-BZKGpKp8.mjs +10 -0
  78. package/etherscan-DtLi-C3z.js +11 -0
  79. package/exclamation-triangle-BLNnBLEc.js +9 -0
  80. package/exclamation-triangle-CFThXxRT.mjs +8 -0
  81. package/extension-CwUepr-W.mjs +12 -0
  82. package/extension-DOD67G1k.js +13 -0
  83. package/external-link-CZkQS5XK.js +13 -0
  84. package/external-link-ClYNKSPt.mjs +12 -0
  85. package/facebook-CFjrd4my.mjs +30 -0
  86. package/facebook-CbE6K6AK.js +31 -0
  87. package/farcaster-Ba7_C-Vm.js +17 -0
  88. package/farcaster-DyVJtVS9.mjs +16 -0
  89. package/filters-CpHaFNjT.mjs +12 -0
  90. package/filters-w5LC-r6e.js +13 -0
  91. package/github-CeO70C3E.mjs +22 -0
  92. package/github-uLFBWAa5.js +23 -0
  93. package/google-CyOdUlbw.mjs +22 -0
  94. package/google-ILGK-opP.js +23 -0
  95. package/help-circle-Dh3dRNoB.mjs +16 -0
  96. package/help-circle-HUMbz_KN.js +17 -0
  97. package/id-Cy3Qkrvb.js +17 -0
  98. package/id-D-Q0uPFM.mjs +16 -0
  99. package/if-defined-CJ5EZLw2.js +815 -0
  100. package/if-defined-DjC5UMfF.mjs +815 -0
  101. package/image-BTGOf8bb.mjs +8 -0
  102. package/image-WFQO5bWa.js +9 -0
  103. package/index--O5ypTeK.mjs +70 -0
  104. package/index--Vg7VI9t.js +173 -0
  105. package/index-2iRSO1sa.mjs +9964 -0
  106. package/index-42Rpweo5.mjs +95 -0
  107. package/index-70kjE43k.mjs +90 -0
  108. package/index-8VyNYS01.js +273 -0
  109. package/index-B-dx8l0g.mjs +82 -0
  110. package/index-BB0nW9RB.mjs +198 -0
  111. package/index-BBwuv2SS.js +97 -0
  112. package/index-BIe-kofv.mjs +273 -0
  113. package/index-BQf6VHil.js +278 -0
  114. package/index-BWIZXhFv.mjs +630 -0
  115. package/index-BXkamf-I.js +337 -0
  116. package/index-BYTxCmKH.js +64 -0
  117. package/index-BYoOxo0S.js +218 -0
  118. package/index-Ba0tVdql.js +200 -0
  119. package/index-BdOAPWyt.mjs +210 -0
  120. package/index-BirWzf8c.mjs +71 -0
  121. package/index-BnCJUHtW.mjs +346 -0
  122. package/index-BuL2FC61.mjs +216 -0
  123. package/index-BxSUTfaY.js +88 -0
  124. package/index-C49C5Rxf.js +743 -0
  125. package/index-CNMDBpW7.js +346 -0
  126. package/index-CP0CGjqQ.mjs +263 -0
  127. package/index-CQaHcTZM.mjs +86 -0
  128. package/index-CRGXQei1.js +178 -0
  129. package/index-CSykUIfV.mjs +176 -0
  130. package/index-CWIHaLkQ.mjs +101 -0
  131. package/index-CZSDJd0P.mjs +1070 -0
  132. package/index-CZaV8JgR.mjs +49 -0
  133. package/index-CZjdy6QP.js +101 -0
  134. package/index-C_lIGGlC.js +632 -0
  135. package/index-CcgeRPs2.mjs +57 -0
  136. package/index-CeY_DRuc.js +566 -0
  137. package/index-ChFNkSxT.js +92 -0
  138. package/index-CkjZc20w.js +677 -0
  139. package/index-CtFcWwAd.js +72 -0
  140. package/index-D0mOfznC.mjs +362 -0
  141. package/index-DAtWLY21.js +84 -0
  142. package/index-DEs8H3w2.js +262 -0
  143. package/index-DLnxotbC.mjs +566 -0
  144. package/index-DN4fGDgg.mjs +743 -0
  145. package/index-DT_mc1hV.mjs +335 -0
  146. package/index-DZEwxUMS.js +59 -0
  147. package/index-DaRH_4bD.js +9939 -0
  148. package/index-Daok2ZKn.js +73 -0
  149. package/index-DomzHmwk.js +210 -0
  150. package/index-Dx7NyDyv.mjs +101 -0
  151. package/index-DyGir6_2.mjs +675 -0
  152. package/index-GglJmM2C.js +2237 -0
  153. package/index-H5b7UTeJ.mjs +173 -0
  154. package/index-NNZ1lNuc.mjs +168 -0
  155. package/index-RJd-gQcv.mjs +2235 -0
  156. package/index-dnFzVpGy.js +103 -0
  157. package/index-kwVLu8EV.js +168 -0
  158. package/index-miQwZPmn.js +51 -0
  159. package/index-oCj_SpOa.mjs +62 -0
  160. package/index-pNK-h_x9.js +1069 -0
  161. package/index-r6Kre1rx.js +362 -0
  162. package/index-xBD0nXoB.mjs +276 -0
  163. package/index.js +3 -3
  164. package/index.mjs +3 -3
  165. package/info-BKNAiN0k.js +8 -0
  166. package/info-DQE0s-A4.mjs +7 -0
  167. package/info-circle-C3uTocjH.js +17 -0
  168. package/info-circle-CIn6yeQo.mjs +16 -0
  169. package/lightbulb-CB-BmIop.js +8 -0
  170. package/lightbulb-Gv7IbnzO.mjs +7 -0
  171. package/mail-CFYm95wn.mjs +12 -0
  172. package/mail-GEwk-Fzr.js +13 -0
  173. package/mobile-CZ7ZBfa5.js +14 -0
  174. package/mobile-OIbnpFsU.mjs +13 -0
  175. package/more-C8N_RV55.mjs +15 -0
  176. package/more-CiQpPZwq.js +16 -0
  177. package/network-placeholder-CxEcczEx.mjs +18 -0
  178. package/network-placeholder-DwR8E8hP.js +19 -0
  179. package/nftPlaceholder-BFexVcGX.js +13 -0
  180. package/nftPlaceholder-MiYL110I.mjs +12 -0
  181. package/off-BNiMlpUU.mjs +8 -0
  182. package/off-iJHSK3Z7.js +9 -0
  183. package/onramp-Bs8HHFFY.js +1474 -0
  184. package/onramp-C6fuQfX7.mjs +1480 -0
  185. package/package.json +11 -11
  186. package/play-store-B4ssIYUA.js +37 -0
  187. package/play-store-D6nmQXhX.mjs +36 -0
  188. package/plus-Bh7z7Oc0.js +18 -0
  189. package/plus-C8ioZuCD.mjs +17 -0
  190. package/qr-code-CSVwaBLf.mjs +10 -0
  191. package/qr-code-YgtXPokK.js +11 -0
  192. package/react-BWxe90Ar.mjs +6342 -0
  193. package/react-BzZcQig5.js +6342 -0
  194. package/react-C_wTMVq_.js +23003 -0
  195. package/react-M-DnxvZl.mjs +23003 -0
  196. package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
  197. package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
  198. package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
  199. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
  200. package/reactjs/components/Connect/CustomConnectButton.js +3 -2
  201. package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
  202. package/reactjs/components/Connect/SwitchChainButton.js +4 -3
  203. package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
  204. package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
  205. package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
  206. package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
  207. package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
  208. package/reactjs/hooks/useAccount.d.ts +4 -4
  209. package/reactjs/hooks/useAccount.js +3 -2
  210. package/reactjs/hooks/useAccount.mjs +3 -2
  211. package/reactjs/hooks/useGetChainId.js +1 -1
  212. package/reactjs/hooks/useGetChainId.mjs +1 -1
  213. package/reactjs/index.js +3 -3
  214. package/reactjs/index.mjs +3 -3
  215. package/reactjs/init/init.js +4 -3
  216. package/reactjs/init/init.mjs +4 -3
  217. package/reactjs/init/tests/init.spec.js +2 -2
  218. package/reactjs/init/tests/init.spec.mjs +2 -2
  219. package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
  220. package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
  221. package/reactjs/reexports.js +3 -3
  222. package/reactjs/reexports.mjs +3 -3
  223. package/reactjs/utils/getCleanStringAmount.js +1 -1
  224. package/reactjs/utils/getCleanStringAmount.mjs +1 -1
  225. package/reactjs/utils/hasEnoughFunds.js +1 -1
  226. package/reactjs/utils/hasEnoughFunds.mjs +1 -1
  227. package/reactjs/utils/isStringFloat.js +1 -1
  228. package/reactjs/utils/isStringFloat.mjs +1 -1
  229. package/reactjs/utils/roundAmount.js +1 -1
  230. package/reactjs/utils/roundAmount.mjs +1 -1
  231. package/receive-CK0hRQPr.js +212 -0
  232. package/receive-CQcD6bZf.mjs +212 -0
  233. package/recycle-horizontal--x5cMoTE.js +14 -0
  234. package/recycle-horizontal-QI0xtDHK.mjs +13 -0
  235. package/ref-CqxfRkBm.mjs +41 -0
  236. package/ref-FGI2cUQB.js +41 -0
  237. package/refresh-CFNHjhDi.js +13 -0
  238. package/refresh-CSOC1NUY.mjs +12 -0
  239. package/reown-logo-BfU5xFX5.js +17 -0
  240. package/reown-logo-CZAEp1jU.mjs +16 -0
  241. package/search-Do_rb-9-.mjs +12 -0
  242. package/search-V9CGMHkm.js +13 -0
  243. package/send-D-5G7tDL.mjs +1204 -0
  244. package/send-D4yYsIHV.mjs +19 -0
  245. package/send-DoiSHLsX.js +1202 -0
  246. package/send-_jfNFrys.js +20 -0
  247. package/socials-BL7-97fT.mjs +758 -0
  248. package/socials-DF0CK9cN.js +756 -0
  249. package/solana-BQ0Jh8lh.js +18 -0
  250. package/solana-YAkDp6j_.mjs +17 -0
  251. package/swapHorizontal-DOIo-Ccx.mjs +12 -0
  252. package/swapHorizontal-OHKtz4Gu.js +13 -0
  253. package/swapHorizontalBold-D7QmFj-c.js +13 -0
  254. package/swapHorizontalBold-DDroA0Af.mjs +12 -0
  255. package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
  256. package/swapHorizontalMedium-D-yMmtml.js +21 -0
  257. package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
  258. package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
  259. package/swapVertical-CH7fTK6w.js +13 -0
  260. package/swapVertical-HJZ6rFcr.mjs +12 -0
  261. package/swaps-CETflhdU.js +1952 -0
  262. package/swaps-DRUV6d3p.mjs +1954 -0
  263. package/telegram-CsCauOwj.mjs +20 -0
  264. package/telegram-DKEcF_Tq.js +21 -0
  265. package/three-dots-B-7hr8Nl.js +10 -0
  266. package/three-dots-LNZ_fjP7.mjs +9 -0
  267. package/transactions-BTTsGV2W.mjs +37 -0
  268. package/transactions-mpNNlClw.js +37 -0
  269. package/twitch-CCWVT2ij.js +23 -0
  270. package/twitch-Dg1CCQvd.mjs +22 -0
  271. package/twitterIcon-BjR09Cj9.mjs +10 -0
  272. package/twitterIcon-CeEs0iDJ.js +11 -0
  273. package/verify-B8WZq7kt.mjs +12 -0
  274. package/verify-filled-BeqC1imk.mjs +12 -0
  275. package/verify-filled-C-mv3ApD.js +13 -0
  276. package/verify-yATdPqt-.js +13 -0
  277. package/w3m-modal-3GziKj7h.js +1254 -0
  278. package/w3m-modal-81Z5PngE.mjs +1255 -0
  279. package/wallet-BMXEH23x.js +13 -0
  280. package/wallet-CNAVQCfm.mjs +12 -0
  281. package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
  282. package/wallet-placeholder-CdoQy2e6.js +19 -0
  283. package/walletconnect-ACr-R1QZ.mjs +38 -0
  284. package/walletconnect-BWSkiS2F.js +39 -0
  285. package/warning-circle-CYnuYwpt.js +17 -0
  286. package/warning-circle-HV2lOiCj.mjs +16 -0
  287. package/x-CW5dozRj.js +17 -0
  288. package/x-Cgm2OFpL.mjs +16 -0
  289. package/x-mark-CR8SpZvu.js +8 -0
  290. package/x-mark-u0KJjUJ1.mjs +7 -0
  291. package/index-B4Eq5P3w.mjs +0 -91
  292. package/index-C4WV9nam.js +0 -329
  293. package/index-CWMcKi_X.js +0 -107
  294. package/index-D8E0O3qL.mjs +0 -68744
  295. package/index-DJ8CdHSw.mjs +0 -107
  296. package/index-nigVQYBu.js +0 -68665
  297. package/react-C43nEIqn.js +0 -3133
  298. package/react-DKUsVej7.js +0 -50
  299. package/react-Dp0H8q2z.mjs +0 -50
  300. package/react-wMhOUFOm.mjs +0 -3133
  301. package/w3m-modal-DLyg7Voy.js +0 -356
  302. package/w3m-modal-hC-B8qZP.mjs +0 -356
@@ -0,0 +1,337 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const bitcoin = require("./bitcoin-DAvQGpeP.js");
4
+ const ifDefined = require("./if-defined-CJ5EZLw2.js");
5
+ require("./index-dnFzVpGy.js");
6
+ const styles = bitcoin.i`
7
+ :host {
8
+ width: var(--local-width);
9
+ position: relative;
10
+ }
11
+
12
+ button {
13
+ border: none;
14
+ border-radius: var(--local-border-radius);
15
+ width: var(--local-width);
16
+ white-space: nowrap;
17
+ }
18
+
19
+ /* -- Sizes --------------------------------------------------- */
20
+ button[data-size='xs'] {
21
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
22
+ height: 24px;
23
+ }
24
+
25
+ button[data-size='xs'][data-icon-left='true'][data-icon-right='false'] {
26
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
27
+ }
28
+
29
+ button[data-size='xs'][data-icon-right='true'][data-icon-left='false'] {
30
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
31
+ }
32
+
33
+ button[data-size='sm'] {
34
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
35
+ height: 32px;
36
+ }
37
+
38
+ button[data-size='sm'][data-icon-left='true'][data-icon-right='false'] {
39
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
40
+ }
41
+
42
+ button[data-size='sm'][data-icon-right='true'][data-icon-left='false'] {
43
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
44
+ }
45
+
46
+ button[data-size='md'] {
47
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
48
+ height: 36px;
49
+ }
50
+
51
+ button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
52
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
53
+ }
54
+
55
+ button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
56
+ padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
57
+ }
58
+
59
+ button[data-size='lg'] {
60
+ padding: var(--wui-spacing-m) var(--wui-spacing-2l);
61
+ height: 48px;
62
+ }
63
+
64
+ /* -- Variants --------------------------------------------------------- */
65
+ button[data-variant='main'] {
66
+ background-color: var(--wui-color-accent-100);
67
+ color: var(--wui-color-inverse-100);
68
+ border: none;
69
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
70
+ }
71
+
72
+ button[data-variant='inverse'] {
73
+ background-color: var(--wui-color-inverse-100);
74
+ color: var(--wui-color-inverse-000);
75
+ border: none;
76
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
77
+ }
78
+
79
+ button[data-variant='accent'] {
80
+ background-color: var(--wui-color-accent-glass-010);
81
+ color: var(--wui-color-accent-100);
82
+ border: none;
83
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
84
+ }
85
+
86
+ button[data-variant='accent-error'] {
87
+ background: var(--wui-color-error-glass-015);
88
+ color: var(--wui-color-error-100);
89
+ border: none;
90
+ box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
91
+ }
92
+
93
+ button[data-variant='accent-success'] {
94
+ background: var(--wui-color-success-glass-015);
95
+ color: var(--wui-color-success-100);
96
+ border: none;
97
+ box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
98
+ }
99
+
100
+ button[data-variant='neutral'] {
101
+ background: transparent;
102
+ color: var(--wui-color-fg-100);
103
+ border: none;
104
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
105
+ }
106
+
107
+ /* -- Focus states --------------------------------------------------- */
108
+ button[data-variant='main']:focus-visible:enabled {
109
+ background-color: var(--wui-color-accent-090);
110
+ box-shadow:
111
+ inset 0 0 0 1px var(--wui-color-accent-100),
112
+ 0 0 0 4px var(--wui-color-accent-glass-020);
113
+ }
114
+ button[data-variant='inverse']:focus-visible:enabled {
115
+ background-color: var(--wui-color-inverse-100);
116
+ box-shadow:
117
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
118
+ 0 0 0 4px var(--wui-color-accent-glass-020);
119
+ }
120
+ button[data-variant='accent']:focus-visible:enabled {
121
+ background-color: var(--wui-color-accent-glass-010);
122
+ box-shadow:
123
+ inset 0 0 0 1px var(--wui-color-accent-100),
124
+ 0 0 0 4px var(--wui-color-accent-glass-020);
125
+ }
126
+ button[data-variant='accent-error']:focus-visible:enabled {
127
+ background: var(--wui-color-error-glass-015);
128
+ box-shadow:
129
+ inset 0 0 0 1px var(--wui-color-error-100),
130
+ 0 0 0 4px var(--wui-color-error-glass-020);
131
+ }
132
+ button[data-variant='accent-success']:focus-visible:enabled {
133
+ background: var(--wui-color-success-glass-015);
134
+ box-shadow:
135
+ inset 0 0 0 1px var(--wui-color-success-100),
136
+ 0 0 0 4px var(--wui-color-success-glass-020);
137
+ }
138
+ button[data-variant='neutral']:focus-visible:enabled {
139
+ background: var(--wui-color-gray-glass-005);
140
+ box-shadow:
141
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
142
+ 0 0 0 4px var(--wui-color-gray-glass-002);
143
+ }
144
+
145
+ /* -- Hover & Active states ----------------------------------------------------------- */
146
+ @media (hover: hover) and (pointer: fine) {
147
+ button[data-variant='main']:hover:enabled {
148
+ background-color: var(--wui-color-accent-090);
149
+ }
150
+
151
+ button[data-variant='main']:active:enabled {
152
+ background-color: var(--wui-color-accent-080);
153
+ }
154
+
155
+ button[data-variant='accent']:hover:enabled {
156
+ background-color: var(--wui-color-accent-glass-015);
157
+ }
158
+
159
+ button[data-variant='accent']:active:enabled {
160
+ background-color: var(--wui-color-accent-glass-020);
161
+ }
162
+
163
+ button[data-variant='accent-error']:hover:enabled {
164
+ background: var(--wui-color-error-glass-020);
165
+ color: var(--wui-color-error-100);
166
+ }
167
+
168
+ button[data-variant='accent-error']:active:enabled {
169
+ background: var(--wui-color-error-glass-030);
170
+ color: var(--wui-color-error-100);
171
+ }
172
+
173
+ button[data-variant='accent-success']:hover:enabled {
174
+ background: var(--wui-color-success-glass-020);
175
+ color: var(--wui-color-success-100);
176
+ }
177
+
178
+ button[data-variant='accent-success']:active:enabled {
179
+ background: var(--wui-color-success-glass-030);
180
+ color: var(--wui-color-success-100);
181
+ }
182
+
183
+ button[data-variant='neutral']:hover:enabled {
184
+ background: var(--wui-color-gray-glass-002);
185
+ }
186
+
187
+ button[data-variant='neutral']:active:enabled {
188
+ background: var(--wui-color-gray-glass-005);
189
+ }
190
+
191
+ button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
192
+ padding-left: var(--wui-spacing-m);
193
+ }
194
+
195
+ button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
196
+ padding-right: var(--wui-spacing-m);
197
+ }
198
+ }
199
+
200
+ /* -- Disabled state --------------------------------------------------- */
201
+ button:disabled {
202
+ background-color: var(--wui-color-gray-glass-002);
203
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
204
+ color: var(--wui-color-gray-glass-020);
205
+ cursor: not-allowed;
206
+ }
207
+
208
+ button > wui-text {
209
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
210
+ will-change: opacity;
211
+ opacity: var(--local-opacity-100);
212
+ }
213
+
214
+ ::slotted(*) {
215
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
216
+ will-change: opacity;
217
+ opacity: var(--local-opacity-100);
218
+ }
219
+
220
+ wui-loading-spinner {
221
+ position: absolute;
222
+ left: 50%;
223
+ top: 50%;
224
+ transform: translate(-50%, -50%);
225
+ opacity: var(--local-opacity-000);
226
+ }
227
+ `;
228
+ var __decorate = function(decorators, target, key, desc) {
229
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
230
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
231
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
232
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
233
+ };
234
+ const SPINNER_COLOR_BY_VARIANT = {
235
+ main: "inverse-100",
236
+ inverse: "inverse-000",
237
+ accent: "accent-100",
238
+ "accent-error": "error-100",
239
+ "accent-success": "success-100",
240
+ neutral: "fg-100",
241
+ disabled: "gray-glass-020"
242
+ };
243
+ const TEXT_VARIANT_BY_SIZE = {
244
+ lg: "paragraph-600",
245
+ md: "small-600",
246
+ sm: "small-600",
247
+ xs: "tiny-600"
248
+ };
249
+ const SPINNER_SIZE_BY_SIZE = {
250
+ lg: "md",
251
+ md: "md",
252
+ sm: "sm",
253
+ xs: "sm"
254
+ };
255
+ let WuiButton = class WuiButton2 extends bitcoin.i$1 {
256
+ constructor() {
257
+ super(...arguments);
258
+ this.size = "lg";
259
+ this.disabled = false;
260
+ this.fullWidth = false;
261
+ this.loading = false;
262
+ this.variant = "main";
263
+ this.hasIconLeft = false;
264
+ this.hasIconRight = false;
265
+ this.borderRadius = "m";
266
+ }
267
+ render() {
268
+ this.style.cssText = `
269
+ --local-width: ${this.fullWidth ? "100%" : "auto"};
270
+ --local-opacity-100: ${this.loading ? 0 : 1};
271
+ --local-opacity-000: ${this.loading ? 1 : 0};
272
+ --local-border-radius: var(--wui-border-radius-${this.borderRadius});
273
+ `;
274
+ const textVariant = this.textVariant ?? TEXT_VARIANT_BY_SIZE[this.size];
275
+ return bitcoin.x`
276
+ <button
277
+ data-variant=${this.variant}
278
+ data-icon-left=${this.hasIconLeft}
279
+ data-icon-right=${this.hasIconRight}
280
+ data-size=${this.size}
281
+ ?disabled=${this.disabled}
282
+ >
283
+ ${this.loadingTemplate()}
284
+ <slot name="iconLeft" @slotchange=${() => this.handleSlotLeftChange()}></slot>
285
+ <wui-text variant=${textVariant} color="inherit">
286
+ <slot></slot>
287
+ </wui-text>
288
+ <slot name="iconRight" @slotchange=${() => this.handleSlotRightChange()}></slot>
289
+ </button>
290
+ `;
291
+ }
292
+ handleSlotLeftChange() {
293
+ this.hasIconLeft = true;
294
+ }
295
+ handleSlotRightChange() {
296
+ this.hasIconRight = true;
297
+ }
298
+ loadingTemplate() {
299
+ if (this.loading) {
300
+ const size = SPINNER_SIZE_BY_SIZE[this.size];
301
+ const color = this.disabled ? SPINNER_COLOR_BY_VARIANT["disabled"] : SPINNER_COLOR_BY_VARIANT[this.variant];
302
+ return bitcoin.x`<wui-loading-spinner color=${color} size=${size}></wui-loading-spinner>`;
303
+ }
304
+ return bitcoin.x``;
305
+ }
306
+ };
307
+ WuiButton.styles = [bitcoin.resetStyles, bitcoin.elementStyles, styles];
308
+ __decorate([
309
+ ifDefined.n()
310
+ ], WuiButton.prototype, "size", void 0);
311
+ __decorate([
312
+ ifDefined.n({ type: Boolean })
313
+ ], WuiButton.prototype, "disabled", void 0);
314
+ __decorate([
315
+ ifDefined.n({ type: Boolean })
316
+ ], WuiButton.prototype, "fullWidth", void 0);
317
+ __decorate([
318
+ ifDefined.n({ type: Boolean })
319
+ ], WuiButton.prototype, "loading", void 0);
320
+ __decorate([
321
+ ifDefined.n()
322
+ ], WuiButton.prototype, "variant", void 0);
323
+ __decorate([
324
+ ifDefined.n({ type: Boolean })
325
+ ], WuiButton.prototype, "hasIconLeft", void 0);
326
+ __decorate([
327
+ ifDefined.n({ type: Boolean })
328
+ ], WuiButton.prototype, "hasIconRight", void 0);
329
+ __decorate([
330
+ ifDefined.n()
331
+ ], WuiButton.prototype, "borderRadius", void 0);
332
+ __decorate([
333
+ ifDefined.n()
334
+ ], WuiButton.prototype, "textVariant", void 0);
335
+ WuiButton = __decorate([
336
+ ifDefined.customElement("wui-button")
337
+ ], WuiButton);
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const bitcoin = require("./bitcoin-DAvQGpeP.js");
4
+ const ifDefined = require("./if-defined-CJ5EZLw2.js");
5
+ require("./index-BQf6VHil.js");
6
+ const styles = bitcoin.i`
7
+ :host {
8
+ position: relative;
9
+ display: inline-block;
10
+ }
11
+
12
+ wui-text {
13
+ margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
14
+ }
15
+ `;
16
+ var __decorate = function(decorators, target, key, desc) {
17
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
19
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
20
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
21
+ };
22
+ let WuiEmailInput = class WuiEmailInput2 extends bitcoin.i$1 {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.disabled = false;
26
+ }
27
+ render() {
28
+ return bitcoin.x`
29
+ <wui-input-text
30
+ type="email"
31
+ placeholder="Email"
32
+ icon="mail"
33
+ size="mdl"
34
+ .disabled=${this.disabled}
35
+ .value=${this.value}
36
+ data-testid="wui-email-input"
37
+ tabIdx=${ifDefined.o(this.tabIdx)}
38
+ ></wui-input-text>
39
+ ${this.templateError()}
40
+ `;
41
+ }
42
+ templateError() {
43
+ if (this.errorMessage) {
44
+ return bitcoin.x`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`;
45
+ }
46
+ return null;
47
+ }
48
+ };
49
+ WuiEmailInput.styles = [bitcoin.resetStyles, styles];
50
+ __decorate([
51
+ ifDefined.n()
52
+ ], WuiEmailInput.prototype, "errorMessage", void 0);
53
+ __decorate([
54
+ ifDefined.n({ type: Boolean })
55
+ ], WuiEmailInput.prototype, "disabled", void 0);
56
+ __decorate([
57
+ ifDefined.n()
58
+ ], WuiEmailInput.prototype, "value", void 0);
59
+ __decorate([
60
+ ifDefined.n()
61
+ ], WuiEmailInput.prototype, "tabIdx", void 0);
62
+ WuiEmailInput = __decorate([
63
+ ifDefined.customElement("wui-email-input")
64
+ ], WuiEmailInput);
@@ -0,0 +1,218 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const bitcoin = require("./bitcoin-DAvQGpeP.js");
4
+ const ifDefined = require("./if-defined-CJ5EZLw2.js");
5
+ require("./index-CtFcWwAd.js");
6
+ const styles$1 = bitcoin.i`
7
+ button {
8
+ padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
9
+ display: flex;
10
+ justify-content: space-between;
11
+ width: 100%;
12
+ border-radius: var(--wui-border-radius-xs);
13
+ background-color: var(--wui-color-gray-glass-002);
14
+ }
15
+
16
+ button[data-clickable='false'] {
17
+ pointer-events: none;
18
+ background-color: transparent;
19
+ }
20
+
21
+ wui-image,
22
+ wui-icon {
23
+ width: var(--wui-spacing-3xl);
24
+ height: var(--wui-spacing-3xl);
25
+ }
26
+
27
+ wui-image {
28
+ border-radius: var(--wui-border-radius-3xl);
29
+ }
30
+ `;
31
+ var __decorate$1 = function(decorators, target, key, desc) {
32
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
33
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
34
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
35
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
36
+ };
37
+ let WuiListToken = class WuiListToken2 extends bitcoin.i$1 {
38
+ constructor() {
39
+ super(...arguments);
40
+ this.tokenName = "";
41
+ this.tokenImageUrl = "";
42
+ this.tokenValue = 0;
43
+ this.tokenAmount = "0.0";
44
+ this.tokenCurrency = "";
45
+ this.clickable = false;
46
+ }
47
+ render() {
48
+ return bitcoin.x`
49
+ <button data-clickable=${String(this.clickable)}>
50
+ <wui-flex gap="s" alignItems="center">
51
+ ${this.visualTemplate()}
52
+ <wui-flex flexDirection="column" justifyContent="spaceBetween">
53
+ <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text>
54
+ <wui-text variant="small-400" color="fg-200">
55
+ ${ifDefined.UiHelperUtil.formatNumberToLocalString(this.tokenAmount, 4)} ${this.tokenCurrency}
56
+ </wui-text>
57
+ </wui-flex>
58
+ </wui-flex>
59
+ <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text>
60
+ </button>
61
+ `;
62
+ }
63
+ visualTemplate() {
64
+ if (this.tokenName && this.tokenImageUrl) {
65
+ return bitcoin.x`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`;
66
+ }
67
+ return bitcoin.x`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`;
68
+ }
69
+ };
70
+ WuiListToken.styles = [bitcoin.resetStyles, bitcoin.elementStyles, styles$1];
71
+ __decorate$1([
72
+ ifDefined.n()
73
+ ], WuiListToken.prototype, "tokenName", void 0);
74
+ __decorate$1([
75
+ ifDefined.n()
76
+ ], WuiListToken.prototype, "tokenImageUrl", void 0);
77
+ __decorate$1([
78
+ ifDefined.n({ type: Number })
79
+ ], WuiListToken.prototype, "tokenValue", void 0);
80
+ __decorate$1([
81
+ ifDefined.n()
82
+ ], WuiListToken.prototype, "tokenAmount", void 0);
83
+ __decorate$1([
84
+ ifDefined.n()
85
+ ], WuiListToken.prototype, "tokenCurrency", void 0);
86
+ __decorate$1([
87
+ ifDefined.n({ type: Boolean })
88
+ ], WuiListToken.prototype, "clickable", void 0);
89
+ WuiListToken = __decorate$1([
90
+ ifDefined.customElement("wui-list-token")
91
+ ], WuiListToken);
92
+ const styles = bitcoin.i`
93
+ :host {
94
+ display: block;
95
+ width: var(--local-width);
96
+ height: var(--local-height);
97
+ border-radius: var(--wui-border-radius-3xl);
98
+ box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
99
+ overflow: hidden;
100
+ position: relative;
101
+ }
102
+
103
+ :host([data-variant='generated']) {
104
+ --mixed-local-color-1: var(--local-color-1);
105
+ --mixed-local-color-2: var(--local-color-2);
106
+ --mixed-local-color-3: var(--local-color-3);
107
+ --mixed-local-color-4: var(--local-color-4);
108
+ --mixed-local-color-5: var(--local-color-5);
109
+ }
110
+
111
+ @supports (background: color-mix(in srgb, white 50%, black)) {
112
+ :host([data-variant='generated']) {
113
+ --mixed-local-color-1: color-mix(
114
+ in srgb,
115
+ var(--w3m-color-mix) var(--w3m-color-mix-strength),
116
+ var(--local-color-1)
117
+ );
118
+ --mixed-local-color-2: color-mix(
119
+ in srgb,
120
+ var(--w3m-color-mix) var(--w3m-color-mix-strength),
121
+ var(--local-color-2)
122
+ );
123
+ --mixed-local-color-3: color-mix(
124
+ in srgb,
125
+ var(--w3m-color-mix) var(--w3m-color-mix-strength),
126
+ var(--local-color-3)
127
+ );
128
+ --mixed-local-color-4: color-mix(
129
+ in srgb,
130
+ var(--w3m-color-mix) var(--w3m-color-mix-strength),
131
+ var(--local-color-4)
132
+ );
133
+ --mixed-local-color-5: color-mix(
134
+ in srgb,
135
+ var(--w3m-color-mix) var(--w3m-color-mix-strength),
136
+ var(--local-color-5)
137
+ );
138
+ }
139
+ }
140
+
141
+ :host([data-variant='generated']) {
142
+ box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
143
+ background: radial-gradient(
144
+ var(--local-radial-circle),
145
+ #fff 0.52%,
146
+ var(--mixed-local-color-5) 31.25%,
147
+ var(--mixed-local-color-3) 51.56%,
148
+ var(--mixed-local-color-2) 65.63%,
149
+ var(--mixed-local-color-1) 82.29%,
150
+ var(--mixed-local-color-4) 100%
151
+ );
152
+ }
153
+
154
+ :host([data-variant='default']) {
155
+ box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
156
+ background: radial-gradient(
157
+ 75.29% 75.29% at 64.96% 24.36%,
158
+ #fff 0.52%,
159
+ #f5ccfc 31.25%,
160
+ #dba4f5 51.56%,
161
+ #9a8ee8 65.63%,
162
+ #6493da 82.29%,
163
+ #6ebdea 100%
164
+ );
165
+ }
166
+ `;
167
+ var __decorate = function(decorators, target, key, desc) {
168
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
169
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
170
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
171
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
172
+ };
173
+ let WuiAvatar = class WuiAvatar2 extends bitcoin.i$1 {
174
+ constructor() {
175
+ super(...arguments);
176
+ this.imageSrc = void 0;
177
+ this.alt = void 0;
178
+ this.address = void 0;
179
+ this.size = "xl";
180
+ }
181
+ render() {
182
+ this.style.cssText = `
183
+ --local-width: var(--wui-icon-box-size-${this.size});
184
+ --local-height: var(--wui-icon-box-size-${this.size});
185
+ `;
186
+ return bitcoin.x`${this.visualTemplate()}`;
187
+ }
188
+ visualTemplate() {
189
+ if (this.imageSrc) {
190
+ this.dataset["variant"] = "image";
191
+ return bitcoin.x`<wui-image src=${this.imageSrc} alt=${this.alt ?? "avatar"}></wui-image>`;
192
+ } else if (this.address) {
193
+ this.dataset["variant"] = "generated";
194
+ const cssColors = ifDefined.UiHelperUtil.generateAvatarColors(this.address);
195
+ this.style.cssText += `
196
+ ${cssColors}`;
197
+ return null;
198
+ }
199
+ this.dataset["variant"] = "default";
200
+ return null;
201
+ }
202
+ };
203
+ WuiAvatar.styles = [bitcoin.resetStyles, styles];
204
+ __decorate([
205
+ ifDefined.n()
206
+ ], WuiAvatar.prototype, "imageSrc", void 0);
207
+ __decorate([
208
+ ifDefined.n()
209
+ ], WuiAvatar.prototype, "alt", void 0);
210
+ __decorate([
211
+ ifDefined.n()
212
+ ], WuiAvatar.prototype, "address", void 0);
213
+ __decorate([
214
+ ifDefined.n()
215
+ ], WuiAvatar.prototype, "size", void 0);
216
+ WuiAvatar = __decorate([
217
+ ifDefined.customElement("wui-avatar")
218
+ ], WuiAvatar);