@funkit/connect 12.12.1 → 12.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/clients/{chunk-GPI6LBBB.js → chunk-5GX6G7JR.js} +1 -1
- package/dist/clients/{chunk-JDQK4VQB.js → chunk-I75AI3N7.js} +5 -5
- package/dist/clients/{chunk-JN52EBYV.js → chunk-P6UM36G5.js} +64 -0
- package/dist/clients/{chunk-RBMOSICG.js → chunk-YMBIRJQF.js} +1 -1
- package/dist/clients/{chunk-WXHSEFYH.js → chunk-ZOQQL2QX.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +3 -3
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.css +225 -225
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +6 -1
- package/dist/components/LargeAmountInput/LargeAmountInput.css.d.ts +8 -0
- package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +26 -0
- package/dist/components/SwapDirectionButton/SwapDirectionButton.d.ts +12 -0
- package/dist/components/TokenSwapWidget/AmountUnitToggle/AmountUnitToggle.d.ts +13 -0
- package/dist/components/TokenSwapWidget/AmountUnitToggle/useAmountUnitToggle.d.ts +46 -0
- package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +17 -0
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +24 -0
- package/dist/components/TokenSwapWidget/TokenSwapWidget.css.d.ts +5 -0
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +36 -0
- package/dist/consts/animation.d.ts +8 -0
- package/dist/domains/asset.d.ts +2 -3
- package/dist/domains/checkoutTransfer.d.ts +8 -0
- package/dist/domains/savedFopsCache.d.ts +15 -0
- package/dist/domains/tokenAddress.d.ts +7 -0
- package/dist/hooks/queries/useHasSavedFops.d.ts +2 -1
- package/dist/hooks/useAnimatedNavigation.d.ts +2 -2
- package/dist/hooks/useCheckoutTransferInit.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44918 -44727
- package/dist/modals/WithdrawalModal/useWithdrawalExtraFeeItems.d.ts +8 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +33 -4
- package/dist/utils/hypercoreRelayWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/index.js +38 -38
- package/package.json +5 -5
- package/dist/clients/internal/nado/withdrawalForm.css +0 -17587
package/dist/clients/lighter.css
CHANGED
|
@@ -14754,231 +14754,6 @@
|
|
|
14754
14754
|
border-radius: 50%;
|
|
14755
14755
|
}
|
|
14756
14756
|
|
|
14757
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy27sNgzd369QcTcZoAo8D-dOHaAouu-u-4KWOLY6smTI8jxa5N8LP2NZnsS6bTcJTPGQR9IhqeT5j235lz3s9lvy9xdCCrjRHEWW24TEu7i8vfbGq-A2T8g2ii7XxtZ_H-Ko8Xn78jzGSXKonr5WujYMKctBZUhLyHDjJTh2CXxwiaasqDWgqhOaDv0j8by0vBdgzmjpDMC0sqhsQEarz6hmGdejZbOuhMqoUBctWPCGTwIs5WhByFAo0-okTAFWaBWOLUqJNpjuVdicG7iCpP9BiJPU17ANK2SW4q0T1_clLTRv2YcKpbpCWSKn4mSgWFKl60ClBi5U5meIvQy7zkeoodj2x6grQPd7AtmHQw7hkLiFlMCbnVDT8Y9eJzaJp840Qb20qFQbjmbIFZEfRFFqY0FZx_k4ZyWUsALkhBcDyZ7a_kMo2UflbfM6v7SouuRu2FX95Pj9_SRqErq2n-IHLNb1mJCIq_tOSNAVvWhVOPj8Ssdp4upo1wtyprjBvHDlo86sLtsg1AAXdZWQC5gnSs25NYiu7H_TqZC4mcHaLIG4VFurCzdj5K-7oRcchvJoVvQFTdMSE5ILzlG99qc4bNmtMggYt155QJAwH6DXi_BBgDWCewBdM_weYz-eXI9wAcNvRYgHw--DDX82_DxoGt7xeQsZlEhvUy2O1ntCoLa6sVXMaClTMDSrrUWTkMpCKtFd69PVqkK3-_MkoVdMz8LS0btlwEVVSriPmJHyS7eBFNg5M7pWnDIttZnUbftddYX76-i2-TQvtXldpNPZ9VFL2KxjYdFYAeb-O97sGgoG2Lmj8O82iJ9s8P-KnuSNSlbmqJBpxRdP5-Sq4CSxvfbmN-XCIGsKPyFMy7poxTlUQTNZ3CrIQkP5mh5F6ElaaYXz2nivmN6pK5YJpdx5V41vqKWnljNXZ2UaHuBnwsWl_7nYPx4904B8ZTmys64t5QKkzoa30RITJ4pParbsn_fQXZY6zmwidheZkC3Z-uc8Zd29-_uxO7SZ0BMULaodmKKTjS6BCXsn0fOuIggVUqGort3T-9ODgZQkeo5nEPdCdnHfrf2HwST22bvIHuWnO_Tp-lxLYX8pkAtorgRREVCcPE3mx7eXY3nrJs_7Xz_t5_z_AoS8TZ12vdPSLJpPoxl070MPuzl0tDjQwwI09qCLhNMFqEf48E747R9KAONWTxEAAA */
|
|
14758
|
-
[data-rk] ._1pzt4231 {
|
|
14759
|
-
max-height: 525px;
|
|
14760
|
-
max-width: 100vw;
|
|
14761
|
-
width: 450px;
|
|
14762
|
-
}
|
|
14763
|
-
[data-rk] ._1pzt4231:has(#source-change-page) {
|
|
14764
|
-
max-height: 825px;
|
|
14765
|
-
}
|
|
14766
|
-
[data-rk] ._1pzt4231:has(#perps-transfer-page),
|
|
14767
|
-
[data-rk] ._1pzt4231:has(#polymarket-perps-transfer-content) {
|
|
14768
|
-
max-height: 825px;
|
|
14769
|
-
}
|
|
14770
|
-
[data-rk] ._1pzt4231:has(#token-transfer-page) {
|
|
14771
|
-
max-height: 825px;
|
|
14772
|
-
}
|
|
14773
|
-
[data-rk] ._1pzt4231:has(#lightning-invoice-page) {
|
|
14774
|
-
max-height: 825px;
|
|
14775
|
-
}
|
|
14776
|
-
[data-rk] ._1pzt4231:has(#fiat-detail-page) {
|
|
14777
|
-
max-height: 825px;
|
|
14778
|
-
}
|
|
14779
|
-
[data-rk] ._1pzt4231:has(#confirmation-page) {
|
|
14780
|
-
max-height: 825px;
|
|
14781
|
-
}
|
|
14782
|
-
[data-rk] ._1pzt4231:has(#complete-page) {
|
|
14783
|
-
max-height: 825px;
|
|
14784
|
-
}
|
|
14785
|
-
[data-rk] ._1pzt4231:has(#withdrawal-complete-page) {
|
|
14786
|
-
max-height: 825px;
|
|
14787
|
-
}
|
|
14788
|
-
[data-rk] ._1pzt4231:has(#withdrawal-flow) {
|
|
14789
|
-
max-height: 825px;
|
|
14790
|
-
}
|
|
14791
|
-
[data-rk] ._1pzt4231:has(#connect-exchange) {
|
|
14792
|
-
max-height: 825px;
|
|
14793
|
-
}
|
|
14794
|
-
[data-rk] ._1pzt4231:has(#withdrawal-modal-content) {
|
|
14795
|
-
max-height: 825px;
|
|
14796
|
-
}
|
|
14797
|
-
[data-rk] ._1pzt4231:has(#swapped-iframe),
|
|
14798
|
-
[data-rk] ._1pzt4231:has(#swapped-iframe-loading) {
|
|
14799
|
-
max-height: 525px;
|
|
14800
|
-
}
|
|
14801
|
-
[data-rk] ._1pzt4232 {
|
|
14802
|
-
min-width: 380px;
|
|
14803
|
-
width: 380px;
|
|
14804
|
-
}
|
|
14805
|
-
[data-rk] ._1pzt4233 {
|
|
14806
|
-
min-width: 380px;
|
|
14807
|
-
width: 380px;
|
|
14808
|
-
}
|
|
14809
|
-
[data-rk] ._1pzt4234 {
|
|
14810
|
-
min-width: 380px;
|
|
14811
|
-
width: 380px;
|
|
14812
|
-
}
|
|
14813
|
-
[data-rk] ._1pzt4235 {
|
|
14814
|
-
padding-right: 0;
|
|
14815
|
-
padding-left: 0;
|
|
14816
|
-
}
|
|
14817
|
-
[data-rk] ._1pzt4236 {
|
|
14818
|
-
border-width: 0 !important;
|
|
14819
|
-
}
|
|
14820
|
-
[data-rk] ._1pzt4238 {
|
|
14821
|
-
min-width: initial;
|
|
14822
|
-
width: calc(100vw - 30px);
|
|
14823
|
-
max-height: 80svh;
|
|
14824
|
-
}
|
|
14825
|
-
[data-rk] ._1pzt4238:has(#perps-transfer-page),
|
|
14826
|
-
[data-rk] ._1pzt4238:has(#polymarket-perps-transfer-content) {
|
|
14827
|
-
max-height: 80vh;
|
|
14828
|
-
max-height: 95svh;
|
|
14829
|
-
}
|
|
14830
|
-
[data-rk] ._1pzt4238:has(#token-transfer-page) {
|
|
14831
|
-
max-height: 80vh;
|
|
14832
|
-
max-height: 95svh;
|
|
14833
|
-
}
|
|
14834
|
-
[data-rk] ._1pzt4238:has(#lightning-invoice-page) {
|
|
14835
|
-
max-height: 80vh;
|
|
14836
|
-
max-height: 95svh;
|
|
14837
|
-
}
|
|
14838
|
-
[data-rk] ._1pzt4238:has(#fiat-detail-page) {
|
|
14839
|
-
max-height: 80vh;
|
|
14840
|
-
max-height: 95svh;
|
|
14841
|
-
}
|
|
14842
|
-
[data-rk] ._1pzt423a {
|
|
14843
|
-
min-width: initial;
|
|
14844
|
-
width: 100vw;
|
|
14845
|
-
padding-left: 20px;
|
|
14846
|
-
padding-right: 20px;
|
|
14847
|
-
max-height: 80svh;
|
|
14848
|
-
border-top-left-radius: var(--rk-radii-modalMobile);
|
|
14849
|
-
border-top-right-radius: var(--rk-radii-modalMobile);
|
|
14850
|
-
border-bottom-left-radius: 0;
|
|
14851
|
-
border-bottom-right-radius: 0;
|
|
14852
|
-
border-bottom-width: 0;
|
|
14853
|
-
overflow: hidden;
|
|
14854
|
-
min-height: 0;
|
|
14855
|
-
}
|
|
14856
|
-
[data-rk] ._1pzt423a:has(#source-change-page) {
|
|
14857
|
-
max-height: 80svh;
|
|
14858
|
-
}
|
|
14859
|
-
[data-rk] ._1pzt423a:has(#token-transfer-page) {
|
|
14860
|
-
max-height: 80svh;
|
|
14861
|
-
}
|
|
14862
|
-
[data-rk] ._1pzt423a:has(#lightning-invoice-page) {
|
|
14863
|
-
max-height: 80svh;
|
|
14864
|
-
}
|
|
14865
|
-
[data-rk] ._1pzt423a:has(#fiat-detail-page) {
|
|
14866
|
-
max-height: 80svh;
|
|
14867
|
-
}
|
|
14868
|
-
[data-rk] ._1pzt423a:has(#confirmation-page) {
|
|
14869
|
-
max-height: 80svh;
|
|
14870
|
-
}
|
|
14871
|
-
[data-rk] ._1pzt423a:has(#complete-page) {
|
|
14872
|
-
max-height: 80svh;
|
|
14873
|
-
}
|
|
14874
|
-
[data-rk] ._1pzt423a:has(#withdrawal-complete-page) {
|
|
14875
|
-
max-height: 80svh;
|
|
14876
|
-
}
|
|
14877
|
-
[data-rk] ._1pzt423a:has(#withdrawal-flow) {
|
|
14878
|
-
max-height: 80svh;
|
|
14879
|
-
}
|
|
14880
|
-
[data-rk] ._1pzt423a:has(#connect-exchange) {
|
|
14881
|
-
max-height: 80svh;
|
|
14882
|
-
}
|
|
14883
|
-
[data-rk] ._1pzt423b {
|
|
14884
|
-
min-width: 380px;
|
|
14885
|
-
width: 380px;
|
|
14886
|
-
}
|
|
14887
|
-
[data-rk] ._1pzt423d {
|
|
14888
|
-
overflow-x: hidden;
|
|
14889
|
-
overflow-y: auto;
|
|
14890
|
-
scrollbar-gutter: stable;
|
|
14891
|
-
scrollbar-width: unset;
|
|
14892
|
-
}
|
|
14893
|
-
[data-rk] ._1pzt423d::-webkit-scrollbar {
|
|
14894
|
-
display: unset;
|
|
14895
|
-
width: 6px;
|
|
14896
|
-
background-color: var(--rk-colors-modalBackground);
|
|
14897
|
-
}
|
|
14898
|
-
[data-rk] ._1pzt423d::-webkit-scrollbar-thumb {
|
|
14899
|
-
border-radius: var(--rk-radii-modal);
|
|
14900
|
-
background-color: var(--rk-colors-tertiaryText);
|
|
14901
|
-
}
|
|
14902
|
-
[data-rk] ._1pzt423d::-webkit-scrollbar-track {
|
|
14903
|
-
background-color: var(--rk-colors-modalBackground);
|
|
14904
|
-
}
|
|
14905
|
-
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb {
|
|
14906
|
-
background-color: var(--rk-colors-modalBackground);
|
|
14907
|
-
}
|
|
14908
|
-
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb:hover {
|
|
14909
|
-
background-color: var(--rk-colors-secondaryText);
|
|
14910
|
-
}
|
|
14911
|
-
[data-rk] ._1pzt423f {
|
|
14912
|
-
display: flex;
|
|
14913
|
-
flex-direction: column;
|
|
14914
|
-
height: 100vh;
|
|
14915
|
-
}
|
|
14916
|
-
[data-rk] ._1pzt423g {
|
|
14917
|
-
display: flex;
|
|
14918
|
-
flex-direction: column;
|
|
14919
|
-
scrollbar-gutter: unset;
|
|
14920
|
-
scrollbar-width: none;
|
|
14921
|
-
overflow-y: hidden;
|
|
14922
|
-
width: auto;
|
|
14923
|
-
}
|
|
14924
|
-
[data-rk] ._1pzt423h {
|
|
14925
|
-
padding-left: 0;
|
|
14926
|
-
padding-right: 0;
|
|
14927
|
-
}
|
|
14928
|
-
[data-rk] ._1pzt423a ._1pzt423d {
|
|
14929
|
-
padding-left: 0;
|
|
14930
|
-
padding-right: 0;
|
|
14931
|
-
}
|
|
14932
|
-
[data-rk] ._1pzt423a > div > div {
|
|
14933
|
-
max-height: 80svh !important;
|
|
14934
|
-
}
|
|
14935
|
-
[data-rk] ._1pzt423a #checkout-dialog-content {
|
|
14936
|
-
padding-left: 0 !important;
|
|
14937
|
-
padding-right: 0 !important;
|
|
14938
|
-
scrollbar-gutter: auto;
|
|
14939
|
-
overflow-y: auto;
|
|
14940
|
-
min-height: 0;
|
|
14941
|
-
flex: 1 1 auto;
|
|
14942
|
-
}
|
|
14943
|
-
[data-rk] ._1pzt423a #checkout-modal-bottom-bar {
|
|
14944
|
-
padding-left: 0;
|
|
14945
|
-
padding-right: 0;
|
|
14946
|
-
}
|
|
14947
|
-
[data-rk] ._1pzt423i {
|
|
14948
|
-
transition: opacity 0.2s ease-in-out;
|
|
14949
|
-
}
|
|
14950
|
-
[data-rk] ._1pzt423j {
|
|
14951
|
-
transition: all 0.5s ease-in-out;
|
|
14952
|
-
max-height: 250px;
|
|
14953
|
-
overflow: hidden;
|
|
14954
|
-
}
|
|
14955
|
-
[data-rk] ._1pzt423k {
|
|
14956
|
-
max-height: 0px;
|
|
14957
|
-
transition: all 0.4s ease-out;
|
|
14958
|
-
overflow: hidden;
|
|
14959
|
-
}
|
|
14960
|
-
@media screen and (min-width: 768px) {
|
|
14961
|
-
[data-rk] ._1pzt4231 {
|
|
14962
|
-
width: 450px;
|
|
14963
|
-
}
|
|
14964
|
-
[data-rk] ._1pzt4232 {
|
|
14965
|
-
min-width: 380px;
|
|
14966
|
-
width: 380px;
|
|
14967
|
-
}
|
|
14968
|
-
[data-rk] ._1pzt4233 {
|
|
14969
|
-
min-width: 420px;
|
|
14970
|
-
width: 420px;
|
|
14971
|
-
}
|
|
14972
|
-
[data-rk] ._1pzt4234 {
|
|
14973
|
-
min-width: 450px;
|
|
14974
|
-
width: 450px;
|
|
14975
|
-
}
|
|
14976
|
-
[data-rk] ._1pzt423b {
|
|
14977
|
-
min-width: 480px;
|
|
14978
|
-
width: 480px;
|
|
14979
|
-
}
|
|
14980
|
-
}
|
|
14981
|
-
|
|
14982
14757
|
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Cjp3aGVyZSguXzFyOGY1NzEpIDp3aGVyZShhdWRpbywgY2FudmFzLCBlbWJlZCwgaWZyYW1lLCBpbWcsIG9iamVjdCwgc3ZnLCB2aWRlbykgewogIGRpc3BsYXk6IGJsb2NrOwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KLl8xcjhmNTczIHsKICBtYXgtd2lkdGg6IDEwMHZ3Owp9Ci5fMXI4ZjU3NCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICB3aWR0aDogMTAwJTsKICBmbGV4LXNocmluazogMDsKICBtaW4taGVpZ2h0OiB2YXIoLS1yay1kaW1lbnNpb25zLW1vZGFsVG9wQmFySGVpZ2h0KTsKfQouXzFyOGY1NzYgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDE7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMjsKfQouXzFyOGY1NzkgewogIGJvdHRvbTogMDsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHRvcDogMDsKICB6LWluZGV4OiAtMTsKfQouXzFyOGY1N2EgewogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xcjhmNTdiIHsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7Cn0 */
|
|
14983
14758
|
[data-rk] ._1r8f571 {
|
|
14984
14759
|
bottom: -200px;
|
|
@@ -16425,6 +16200,231 @@
|
|
|
16425
16200
|
flex: 0 0 auto;
|
|
16426
16201
|
}
|
|
16427
16202
|
|
|
16203
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy27sNgzd369QcTcZoAo8D-dOHaAouu-u-4KWOLY6smTI8jxa5N8LP2NZnsS6bTcJTPGQR9IhqeT5j235lz3s9lvy9xdCCrjRHEWW24TEu7i8vfbGq-A2T8g2ii7XxtZ_H-Ko8Xn78jzGSXKonr5WujYMKctBZUhLyHDjJTh2CXxwiaasqDWgqhOaDv0j8by0vBdgzmjpDMC0sqhsQEarz6hmGdejZbOuhMqoUBctWPCGTwIs5WhByFAo0-okTAFWaBWOLUqJNpjuVdicG7iCpP9BiJPU17ANK2SW4q0T1_clLTRv2YcKpbpCWSKn4mSgWFKl60ClBi5U5meIvQy7zkeoodj2x6grQPd7AtmHQw7hkLiFlMCbnVDT8Y9eJzaJp840Qb20qFQbjmbIFZEfRFFqY0FZx_k4ZyWUsALkhBcDyZ7a_kMo2UflbfM6v7SouuRu2FX95Pj9_SRqErq2n-IHLNb1mJCIq_tOSNAVvWhVOPj8Ssdp4upo1wtyprjBvHDlo86sLtsg1AAXdZWQC5gnSs25NYiu7H_TqZC4mcHaLIG4VFurCzdj5K-7oRcchvJoVvQFTdMSE5ILzlG99qc4bNmtMggYt155QJAwH6DXi_BBgDWCewBdM_weYz-eXI9wAcNvRYgHw--DDX82_DxoGt7xeQsZlEhvUy2O1ntCoLa6sVXMaClTMDSrrUWTkMpCKtFd69PVqkK3-_MkoVdMz8LS0btlwEVVSriPmJHyS7eBFNg5M7pWnDIttZnUbftddYX76-i2-TQvtXldpNPZ9VFL2KxjYdFYAeb-O97sGgoG2Lmj8O82iJ9s8P-KnuSNSlbmqJBpxRdP5-Sq4CSxvfbmN-XCIGsKPyFMy7poxTlUQTNZ3CrIQkP5mh5F6ElaaYXz2nivmN6pK5YJpdx5V41vqKWnljNXZ2UaHuBnwsWl_7nYPx4904B8ZTmys64t5QKkzoa30RITJ4pParbsn_fQXZY6zmwidheZkC3Z-uc8Zd29-_uxO7SZ0BMULaodmKKTjS6BCXsn0fOuIggVUqGort3T-9ODgZQkeo5nEPdCdnHfrf2HwST22bvIHuWnO_Tp-lxLYX8pkAtorgRREVCcPE3mx7eXY3nrJs_7Xz_t5_z_AoS8TZ12vdPSLJpPoxl070MPuzl0tDjQwwI09qCLhNMFqEf48E747R9KAONWTxEAAA */
|
|
16204
|
+
[data-rk] ._1pzt4231 {
|
|
16205
|
+
max-height: 525px;
|
|
16206
|
+
max-width: 100vw;
|
|
16207
|
+
width: 450px;
|
|
16208
|
+
}
|
|
16209
|
+
[data-rk] ._1pzt4231:has(#source-change-page) {
|
|
16210
|
+
max-height: 825px;
|
|
16211
|
+
}
|
|
16212
|
+
[data-rk] ._1pzt4231:has(#perps-transfer-page),
|
|
16213
|
+
[data-rk] ._1pzt4231:has(#polymarket-perps-transfer-content) {
|
|
16214
|
+
max-height: 825px;
|
|
16215
|
+
}
|
|
16216
|
+
[data-rk] ._1pzt4231:has(#token-transfer-page) {
|
|
16217
|
+
max-height: 825px;
|
|
16218
|
+
}
|
|
16219
|
+
[data-rk] ._1pzt4231:has(#lightning-invoice-page) {
|
|
16220
|
+
max-height: 825px;
|
|
16221
|
+
}
|
|
16222
|
+
[data-rk] ._1pzt4231:has(#fiat-detail-page) {
|
|
16223
|
+
max-height: 825px;
|
|
16224
|
+
}
|
|
16225
|
+
[data-rk] ._1pzt4231:has(#confirmation-page) {
|
|
16226
|
+
max-height: 825px;
|
|
16227
|
+
}
|
|
16228
|
+
[data-rk] ._1pzt4231:has(#complete-page) {
|
|
16229
|
+
max-height: 825px;
|
|
16230
|
+
}
|
|
16231
|
+
[data-rk] ._1pzt4231:has(#withdrawal-complete-page) {
|
|
16232
|
+
max-height: 825px;
|
|
16233
|
+
}
|
|
16234
|
+
[data-rk] ._1pzt4231:has(#withdrawal-flow) {
|
|
16235
|
+
max-height: 825px;
|
|
16236
|
+
}
|
|
16237
|
+
[data-rk] ._1pzt4231:has(#connect-exchange) {
|
|
16238
|
+
max-height: 825px;
|
|
16239
|
+
}
|
|
16240
|
+
[data-rk] ._1pzt4231:has(#withdrawal-modal-content) {
|
|
16241
|
+
max-height: 825px;
|
|
16242
|
+
}
|
|
16243
|
+
[data-rk] ._1pzt4231:has(#swapped-iframe),
|
|
16244
|
+
[data-rk] ._1pzt4231:has(#swapped-iframe-loading) {
|
|
16245
|
+
max-height: 525px;
|
|
16246
|
+
}
|
|
16247
|
+
[data-rk] ._1pzt4232 {
|
|
16248
|
+
min-width: 380px;
|
|
16249
|
+
width: 380px;
|
|
16250
|
+
}
|
|
16251
|
+
[data-rk] ._1pzt4233 {
|
|
16252
|
+
min-width: 380px;
|
|
16253
|
+
width: 380px;
|
|
16254
|
+
}
|
|
16255
|
+
[data-rk] ._1pzt4234 {
|
|
16256
|
+
min-width: 380px;
|
|
16257
|
+
width: 380px;
|
|
16258
|
+
}
|
|
16259
|
+
[data-rk] ._1pzt4235 {
|
|
16260
|
+
padding-right: 0;
|
|
16261
|
+
padding-left: 0;
|
|
16262
|
+
}
|
|
16263
|
+
[data-rk] ._1pzt4236 {
|
|
16264
|
+
border-width: 0 !important;
|
|
16265
|
+
}
|
|
16266
|
+
[data-rk] ._1pzt4238 {
|
|
16267
|
+
min-width: initial;
|
|
16268
|
+
width: calc(100vw - 30px);
|
|
16269
|
+
max-height: 80svh;
|
|
16270
|
+
}
|
|
16271
|
+
[data-rk] ._1pzt4238:has(#perps-transfer-page),
|
|
16272
|
+
[data-rk] ._1pzt4238:has(#polymarket-perps-transfer-content) {
|
|
16273
|
+
max-height: 80vh;
|
|
16274
|
+
max-height: 95svh;
|
|
16275
|
+
}
|
|
16276
|
+
[data-rk] ._1pzt4238:has(#token-transfer-page) {
|
|
16277
|
+
max-height: 80vh;
|
|
16278
|
+
max-height: 95svh;
|
|
16279
|
+
}
|
|
16280
|
+
[data-rk] ._1pzt4238:has(#lightning-invoice-page) {
|
|
16281
|
+
max-height: 80vh;
|
|
16282
|
+
max-height: 95svh;
|
|
16283
|
+
}
|
|
16284
|
+
[data-rk] ._1pzt4238:has(#fiat-detail-page) {
|
|
16285
|
+
max-height: 80vh;
|
|
16286
|
+
max-height: 95svh;
|
|
16287
|
+
}
|
|
16288
|
+
[data-rk] ._1pzt423a {
|
|
16289
|
+
min-width: initial;
|
|
16290
|
+
width: 100vw;
|
|
16291
|
+
padding-left: 20px;
|
|
16292
|
+
padding-right: 20px;
|
|
16293
|
+
max-height: 80svh;
|
|
16294
|
+
border-top-left-radius: var(--rk-radii-modalMobile);
|
|
16295
|
+
border-top-right-radius: var(--rk-radii-modalMobile);
|
|
16296
|
+
border-bottom-left-radius: 0;
|
|
16297
|
+
border-bottom-right-radius: 0;
|
|
16298
|
+
border-bottom-width: 0;
|
|
16299
|
+
overflow: hidden;
|
|
16300
|
+
min-height: 0;
|
|
16301
|
+
}
|
|
16302
|
+
[data-rk] ._1pzt423a:has(#source-change-page) {
|
|
16303
|
+
max-height: 80svh;
|
|
16304
|
+
}
|
|
16305
|
+
[data-rk] ._1pzt423a:has(#token-transfer-page) {
|
|
16306
|
+
max-height: 80svh;
|
|
16307
|
+
}
|
|
16308
|
+
[data-rk] ._1pzt423a:has(#lightning-invoice-page) {
|
|
16309
|
+
max-height: 80svh;
|
|
16310
|
+
}
|
|
16311
|
+
[data-rk] ._1pzt423a:has(#fiat-detail-page) {
|
|
16312
|
+
max-height: 80svh;
|
|
16313
|
+
}
|
|
16314
|
+
[data-rk] ._1pzt423a:has(#confirmation-page) {
|
|
16315
|
+
max-height: 80svh;
|
|
16316
|
+
}
|
|
16317
|
+
[data-rk] ._1pzt423a:has(#complete-page) {
|
|
16318
|
+
max-height: 80svh;
|
|
16319
|
+
}
|
|
16320
|
+
[data-rk] ._1pzt423a:has(#withdrawal-complete-page) {
|
|
16321
|
+
max-height: 80svh;
|
|
16322
|
+
}
|
|
16323
|
+
[data-rk] ._1pzt423a:has(#withdrawal-flow) {
|
|
16324
|
+
max-height: 80svh;
|
|
16325
|
+
}
|
|
16326
|
+
[data-rk] ._1pzt423a:has(#connect-exchange) {
|
|
16327
|
+
max-height: 80svh;
|
|
16328
|
+
}
|
|
16329
|
+
[data-rk] ._1pzt423b {
|
|
16330
|
+
min-width: 380px;
|
|
16331
|
+
width: 380px;
|
|
16332
|
+
}
|
|
16333
|
+
[data-rk] ._1pzt423d {
|
|
16334
|
+
overflow-x: hidden;
|
|
16335
|
+
overflow-y: auto;
|
|
16336
|
+
scrollbar-gutter: stable;
|
|
16337
|
+
scrollbar-width: unset;
|
|
16338
|
+
}
|
|
16339
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar {
|
|
16340
|
+
display: unset;
|
|
16341
|
+
width: 6px;
|
|
16342
|
+
background-color: var(--rk-colors-modalBackground);
|
|
16343
|
+
}
|
|
16344
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar-thumb {
|
|
16345
|
+
border-radius: var(--rk-radii-modal);
|
|
16346
|
+
background-color: var(--rk-colors-tertiaryText);
|
|
16347
|
+
}
|
|
16348
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar-track {
|
|
16349
|
+
background-color: var(--rk-colors-modalBackground);
|
|
16350
|
+
}
|
|
16351
|
+
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb {
|
|
16352
|
+
background-color: var(--rk-colors-modalBackground);
|
|
16353
|
+
}
|
|
16354
|
+
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb:hover {
|
|
16355
|
+
background-color: var(--rk-colors-secondaryText);
|
|
16356
|
+
}
|
|
16357
|
+
[data-rk] ._1pzt423f {
|
|
16358
|
+
display: flex;
|
|
16359
|
+
flex-direction: column;
|
|
16360
|
+
height: 100vh;
|
|
16361
|
+
}
|
|
16362
|
+
[data-rk] ._1pzt423g {
|
|
16363
|
+
display: flex;
|
|
16364
|
+
flex-direction: column;
|
|
16365
|
+
scrollbar-gutter: unset;
|
|
16366
|
+
scrollbar-width: none;
|
|
16367
|
+
overflow-y: hidden;
|
|
16368
|
+
width: auto;
|
|
16369
|
+
}
|
|
16370
|
+
[data-rk] ._1pzt423h {
|
|
16371
|
+
padding-left: 0;
|
|
16372
|
+
padding-right: 0;
|
|
16373
|
+
}
|
|
16374
|
+
[data-rk] ._1pzt423a ._1pzt423d {
|
|
16375
|
+
padding-left: 0;
|
|
16376
|
+
padding-right: 0;
|
|
16377
|
+
}
|
|
16378
|
+
[data-rk] ._1pzt423a > div > div {
|
|
16379
|
+
max-height: 80svh !important;
|
|
16380
|
+
}
|
|
16381
|
+
[data-rk] ._1pzt423a #checkout-dialog-content {
|
|
16382
|
+
padding-left: 0 !important;
|
|
16383
|
+
padding-right: 0 !important;
|
|
16384
|
+
scrollbar-gutter: auto;
|
|
16385
|
+
overflow-y: auto;
|
|
16386
|
+
min-height: 0;
|
|
16387
|
+
flex: 1 1 auto;
|
|
16388
|
+
}
|
|
16389
|
+
[data-rk] ._1pzt423a #checkout-modal-bottom-bar {
|
|
16390
|
+
padding-left: 0;
|
|
16391
|
+
padding-right: 0;
|
|
16392
|
+
}
|
|
16393
|
+
[data-rk] ._1pzt423i {
|
|
16394
|
+
transition: opacity 0.2s ease-in-out;
|
|
16395
|
+
}
|
|
16396
|
+
[data-rk] ._1pzt423j {
|
|
16397
|
+
transition: all 0.5s ease-in-out;
|
|
16398
|
+
max-height: 250px;
|
|
16399
|
+
overflow: hidden;
|
|
16400
|
+
}
|
|
16401
|
+
[data-rk] ._1pzt423k {
|
|
16402
|
+
max-height: 0px;
|
|
16403
|
+
transition: all 0.4s ease-out;
|
|
16404
|
+
overflow: hidden;
|
|
16405
|
+
}
|
|
16406
|
+
@media screen and (min-width: 768px) {
|
|
16407
|
+
[data-rk] ._1pzt4231 {
|
|
16408
|
+
width: 450px;
|
|
16409
|
+
}
|
|
16410
|
+
[data-rk] ._1pzt4232 {
|
|
16411
|
+
min-width: 380px;
|
|
16412
|
+
width: 380px;
|
|
16413
|
+
}
|
|
16414
|
+
[data-rk] ._1pzt4233 {
|
|
16415
|
+
min-width: 420px;
|
|
16416
|
+
width: 420px;
|
|
16417
|
+
}
|
|
16418
|
+
[data-rk] ._1pzt4234 {
|
|
16419
|
+
min-width: 450px;
|
|
16420
|
+
width: 450px;
|
|
16421
|
+
}
|
|
16422
|
+
[data-rk] ._1pzt423b {
|
|
16423
|
+
min-width: 480px;
|
|
16424
|
+
width: 480px;
|
|
16425
|
+
}
|
|
16426
|
+
}
|
|
16427
|
+
|
|
16428
16428
|
/* vanilla-extract-css-ns:src/css/modalTransitionStyles.css.ts.vanilla.css?source=#H4sIAAAAAAAAA83US26DMBAG4D2nmE0lKoFlkvDe5BjdGmMit9hEBtSkFXevCqriPExp0passLBn5vMvwfqF7QtFBKuhbjbPuxLDuwWAH_oHQKOIrItKiQRqSkpmYxQ-pv1WtSWUN_sEMFp8vuksAA-bK73TOm-o6qz1KcL7BmFqBRCPyaMr5Rj5Z5VG-8po75cladiT7QXbnaGliaJV4-lJ-lM0pn4TKO7ITS5woimcsZ6_m078x-n8LBx6rBm9-oTL5YZ2l_jnOjQ0WfQHiOSCNLySbt6qfpFA6Is6PdpruOBy4xatpMMR2macuhl740zZGC0dwA5ghAMHhi_4UCuJYMnXLyg9zF_-0_yCl6UrqpwlUFTqlai8NgM9DRjMENBKmx_eY0C-BiQzBBRp87N7DCjWgOwWYMklI-oGCdUkxaySPLW6DyU2KSyPCAAA */
|
|
16429
16429
|
@keyframes stgjxl0 {
|
|
16430
16430
|
0% {
|
package/dist/clients/lighter.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6EU6CXNH.js";
|
|
6
6
|
import {
|
|
7
7
|
useFunkitConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YMBIRJQF.js";
|
|
9
9
|
import {
|
|
10
10
|
AsyncImage,
|
|
11
11
|
Box,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-RQALGV5U.js";
|
|
14
14
|
import {
|
|
15
15
|
useFunkitTranslation
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5GX6G7JR.js";
|
|
17
17
|
import "./chunk-OODIKHYE.js";
|
|
18
18
|
import "./chunk-2W2P3OS6.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-P6UM36G5.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/mallard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitTranslation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5GX6G7JR.js";
|
|
5
5
|
import {
|
|
6
6
|
getAccount,
|
|
7
7
|
sendTransaction,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
useAccount,
|
|
15
15
|
useConfig
|
|
16
16
|
} from "./chunk-2W2P3OS6.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-P6UM36G5.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/nado.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I75AI3N7.js";
|
|
5
|
+
import "./chunk-ZOQQL2QX.js";
|
|
5
6
|
import "./chunk-4DBUYTEE.js";
|
|
6
|
-
import "./chunk-WXHSEFYH.js";
|
|
7
7
|
import "./chunk-OODIKHYE.js";
|
|
8
8
|
import {
|
|
9
9
|
useAccount,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-2W2P3OS6.js";
|
|
12
12
|
import {
|
|
13
13
|
i18n_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P6UM36G5.js";
|
|
15
15
|
import "./chunk-I5GSXPFE.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
@@ -15,8 +15,13 @@ interface PaymentFeesSummaryProps {
|
|
|
15
15
|
isWithdrawal: boolean;
|
|
16
16
|
extraSourceChainGasUsd?: number;
|
|
17
17
|
step: FunCheckoutStep | WithdrawalModalStep;
|
|
18
|
+
/**
|
|
19
|
+
* Integrator rows rendered before the SDK's own rows.
|
|
20
|
+
* - Display-only: excluded from the total, expandability and analytics.
|
|
21
|
+
*/
|
|
22
|
+
extraFeeItems?: FeeItem[];
|
|
18
23
|
}
|
|
19
|
-
export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, step, }: PaymentFeesSummaryProps): React.JSX.Element;
|
|
24
|
+
export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, step, extraFeeItems, }: PaymentFeesSummaryProps): React.JSX.Element;
|
|
20
25
|
export interface FeeItem {
|
|
21
26
|
label: string;
|
|
22
27
|
value: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Borderless big-number input; the wrapper owns the (fitted) font size, so
|
|
3
|
+
* everything here inherits.
|
|
4
|
+
* - `!important` beats host pages that style bare `input` selectors.
|
|
5
|
+
* - The family comes from the wrapper's theme `inputAmount` font, like
|
|
6
|
+
* checkout's amount field.
|
|
7
|
+
*/
|
|
8
|
+
export declare const largeAmountInput: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LargeAmountInputProps {
|
|
3
|
+
/** Controlled amount string (raw user input). */
|
|
4
|
+
amount: string;
|
|
5
|
+
/** Omit together with `readOnly` for a display-only amount. */
|
|
6
|
+
onAmountChange?: (next: string) => void;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
/** Defaults to `center`. */
|
|
9
|
+
align?: 'center' | 'start';
|
|
10
|
+
/** Rendered outside the field so the caret sits on the digits, e.g. `$`. */
|
|
11
|
+
prefix?: string;
|
|
12
|
+
/** e.g. ` SOL` when the amount is in token units. */
|
|
13
|
+
suffix?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
/** Defaults to the theme `inputAmount` size. */
|
|
18
|
+
maxFontSize?: number;
|
|
19
|
+
/** Caps the width the text shrinks to fit, on top of the measured container. */
|
|
20
|
+
maxAvailableWidth?: number;
|
|
21
|
+
testId?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Big "$<amount>" field that shrinks its font to fit the available width.
|
|
25
|
+
*/
|
|
26
|
+
export declare function LargeAmountInput({ amount, onAmountChange, ariaLabel, align, prefix, suffix, placeholder, readOnly, autoFocus, maxFontSize: maxFontSizeProp, maxAvailableWidth, testId, }: LargeAmountInputProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SwapDirectionButtonShape = 'circle' | 'rounded';
|
|
3
|
+
export interface SwapDirectionButtonProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
/** Defaults to `circle`. */
|
|
6
|
+
shape?: SwapDirectionButtonShape;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Flips which side of a From/To pair is the source. */
|
|
12
|
+
export declare function SwapDirectionButton({ onClick, shape, ariaLabel, isDisabled, testId, }: SwapDirectionButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AmountUnitToggleProps {
|
|
3
|
+
/** The amount in the unit that isn't being typed, already formatted. */
|
|
4
|
+
convertedAmount: string;
|
|
5
|
+
/** Omit to show the amount without the switch (e.g. price unknown). */
|
|
6
|
+
onToggle?: () => void;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* "28.05 ⇅": shows the other unit and switches the input to it on click.
|
|
11
|
+
* Without `onToggle` it's plain text, so it isn't a dead tab stop.
|
|
12
|
+
*/
|
|
13
|
+
export declare function AmountUnitToggle({ convertedAmount, onToggle, testId, }: AmountUnitToggleProps): React.JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type AmountUnit = 'usd' | 'token';
|
|
2
|
+
/**
|
|
3
|
+
* The next input value reformatted like checkout's amount field (leading zeros
|
|
4
|
+
* dropped, group separators, decimals capped), or `null` when it holds
|
|
5
|
+
* anything but digits and separators (the caller keeps the previous value).
|
|
6
|
+
*/
|
|
7
|
+
export declare function sanitizeAmountInput(next: string, locale: Intl.LocalesArgument): string | null;
|
|
8
|
+
/** Floats, not base units: fine for display and quotes, not for an exact Max. */
|
|
9
|
+
export interface AmountInUnits {
|
|
10
|
+
/** `undefined` when the input is empty, or in token mode without a price. */
|
|
11
|
+
usdAmount: number | undefined;
|
|
12
|
+
/** `undefined` when the input is empty, or in USD mode without a price. */
|
|
13
|
+
tokenAmount: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function getAmountInUnits(inputValue: string, unit: AmountUnit, unitPriceUsd: number | undefined, locale: Intl.LocalesArgument): AmountInUnits;
|
|
16
|
+
/**
|
|
17
|
+
* The input value re-expressed in `nextUnit`, rounded the way checkout's
|
|
18
|
+
* reducer does (USD floors so it never exceeds what the tokens are worth).
|
|
19
|
+
*/
|
|
20
|
+
export declare function convertInputValue(inputValue: string, nextUnit: AmountUnit, unitPriceUsd: number, locale: Intl.LocalesArgument): string;
|
|
21
|
+
export interface AmountUnitToggleState extends AmountInUnits {
|
|
22
|
+
/**
|
|
23
|
+
* Locale-formatted text for the field ("1,000.50"). Display only: pass
|
|
24
|
+
* `tokenAmount`/`usdAmount` on, since this breaks `parseUnits` and quotes.
|
|
25
|
+
*/
|
|
26
|
+
inputValue: string;
|
|
27
|
+
unit: AmountUnit;
|
|
28
|
+
/** Ignores input that isn't digits and separators. */
|
|
29
|
+
setInputValue: (next: string) => void;
|
|
30
|
+
/** `undefined` while the token price is unknown, so there's nothing to convert with. */
|
|
31
|
+
toggleUnit: (() => void) | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Amount entry that can be typed in either USD or token units, converting the
|
|
35
|
+
* typed value when the unit flips.
|
|
36
|
+
* - Placeholder until checkout's exact-in amount logic is shared: no frozen
|
|
37
|
+
* price, no base-unit amount, no balance cap.
|
|
38
|
+
* - `initialUnit`/`initialInputValue` are read on mount only; the caller must
|
|
39
|
+
* reset or convert the value when the token changes (picker or direction swap).
|
|
40
|
+
*/
|
|
41
|
+
export declare function useAmountUnitToggle({ unitPriceUsd, initialUnit, initialInputValue, locale, }: {
|
|
42
|
+
unitPriceUsd: number | undefined;
|
|
43
|
+
initialUnit?: AmountUnit;
|
|
44
|
+
initialInputValue?: string;
|
|
45
|
+
locale?: Intl.LocalesArgument;
|
|
46
|
+
}): AmountUnitToggleState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TokenSwapToken {
|
|
3
|
+
symbol: string;
|
|
4
|
+
iconSrc?: string;
|
|
5
|
+
chainId?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface TokenSelectButtonProps {
|
|
8
|
+
token: TokenSwapToken;
|
|
9
|
+
/** Omit to render the token without the picker affordance. */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Token icon (with chain badge), symbol and ">" that opens the token picker.
|
|
15
|
+
* Without `onClick` it renders as plain content, so it isn't a dead tab stop.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TokenSelectButton({ token, onClick, testId, }: TokenSelectButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TokenSwapToken } from '../TokenSelectButton/TokenSelectButton';
|
|
3
|
+
export interface TokenSwapCardProps {
|
|
4
|
+
label: string;
|
|
5
|
+
token: TokenSwapToken;
|
|
6
|
+
onTokenClick?: () => void;
|
|
7
|
+
/** The big amount, without prefix/suffix. */
|
|
8
|
+
amount: string;
|
|
9
|
+
amountPrefix?: string;
|
|
10
|
+
/** Present only on the editable (source) card. */
|
|
11
|
+
onAmountChange?: (next: string) => void;
|
|
12
|
+
/** The amount in the other unit, already formatted. */
|
|
13
|
+
convertedAmount: string;
|
|
14
|
+
onToggleUnit?: () => void;
|
|
15
|
+
balance?: string;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
testId: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* One side of the swap widget.
|
|
21
|
+
* - Editable (has `onAmountChange`): filled background, unit toggle, highlighted balance.
|
|
22
|
+
* - Read-only: outlined, amount comes from the quote.
|
|
23
|
+
*/
|
|
24
|
+
export declare function TokenSwapCard({ label, token, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance, isLoading, testId, }: TokenSwapCardProps): React.JSX.Element;
|