@funkit/connect 9.2.1 → 9.3.1
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 +37 -0
- package/dist/__generated__/default_configs.d.ts +31 -2
- package/dist/__generated__/default_feature_gates.d.ts +1 -0
- package/dist/{chunk-3U6TWV25.js → chunk-JKGPN2BQ.js} +26 -7
- package/dist/{chunk-P6FYL3PM.js → chunk-VIJQ5A6W.js} +22 -1
- package/dist/{chunk-VLXKSNSJ.js → chunk-WXEL44DS.js} +22 -1
- package/dist/clients/fanatics.css +5437 -3993
- package/dist/clients/fanatics.d.ts +5 -0
- package/dist/clients/fanatics.js +15 -4
- package/dist/components/Box/Box.d.ts +45 -45
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +2 -2
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +10 -0
- package/dist/css/sprinkles.css.d.ts +153 -59
- package/dist/domains/relay.d.ts +2 -2
- package/dist/hooks/useSwappedPreload.d.ts +2 -3
- package/dist/index.css +5509 -4026
- package/dist/index.js +2138 -2055
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +2 -15
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +15 -0
- package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -5
- package/dist/providers/FunkitConfigContext.d.ts +7 -0
- package/dist/providers/FunkitThemeProvider.d.ts +162 -21
- package/dist/providers/SwappedProvider.d.ts +8 -8
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +4 -4
- package/dist/utils/swapped.d.ts +5 -3
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +48 -48
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +3 -2
- package/dist/hooks/useIframePool.d.ts +0 -38
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframePool.d.ts +0 -14
- package/dist/wallets/walletConnectors/{chunk-NEK7T3IC.js → chunk-4C7ER452.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVMMPRDM.js → chunk-53VYSPXK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-I7K6LUZR.js → chunk-6UCI7GM6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3Y2GG3PM.js → chunk-6YO27XOM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DWMUM4F6.js → chunk-7OARWILZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FDVJHNLL.js → chunk-CJJT7LMT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CT3QPTAU.js → chunk-EKJHJFRN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIT5F32X.js → chunk-GH4M6FTK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVYZSGIX.js → chunk-GSHSWVEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CMLFDRCP.js → chunk-GVOQTORD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3YCR2ZB4.js → chunk-HETS3KKI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-C4RP2DNH.js → chunk-HOPH3TQ3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CBI3SGOC.js → chunk-IICWJWGZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZMRIQOR5.js → chunk-KO56HCTI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-COX3VEDR.js → chunk-LI6QY2B5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RLLTYOWT.js → chunk-PKMAPNN6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UPUDLUBT.js → chunk-TTHM3WUR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N3UJMC3V.js → chunk-XBLHZICW.js} +3 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const WITH_EMPTY_STATE_DATA_ATTRIBUTE = "data-with-empty-state";
|
|
2
2
|
export declare const emptyStateStyles: string;
|
|
3
3
|
export declare const sourceListBoxStyles: string;
|
|
4
|
+
export declare const sourceListGroupContainerStyles: string;
|
|
5
|
+
export declare const sourceListGroupContainerNoLabelsStyles: string;
|
|
4
6
|
export declare const sourceListCompactBoxStyles: string;
|
|
5
7
|
export declare const removeBottomPaddingFromSurroundingDialog: string;
|
|
6
8
|
export declare const paymentMethodStaticArea: string;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type SwappedIframeState = CheckoutModalCommonState & {
|
|
6
|
-
/** The selected payment option from the fops API */
|
|
7
|
-
selectedPaymentOption: SwappedFormOfPayment;
|
|
8
|
-
/** Payment method type filter to restore when returning to SOURCE_CHANGE */
|
|
9
|
-
paymentMethodTypeFilter?: PaymentMethodType;
|
|
10
|
-
};
|
|
11
|
-
export type SwappedIframeNext = {
|
|
12
|
-
success?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
|
|
15
|
-
declare function SwappedIframe({ modalState, onNext, onBack, onClose, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
|
|
16
|
-
export default SwappedIframe;
|
|
2
|
+
declare const _default: React.MemoExoticComponent<() => React.JSX.Element | null>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
|
+
export type SwappedIframeState = CheckoutModalCommonState & {
|
|
6
|
+
/** The selected payment option from the fops API */
|
|
7
|
+
selectedPaymentOption: SwappedFormOfPayment;
|
|
8
|
+
/** Payment method type filter to restore when returning to SOURCE_CHANGE */
|
|
9
|
+
paymentMethodTypeFilter?: PaymentMethodType;
|
|
10
|
+
};
|
|
11
|
+
export type SwappedIframeNext = {
|
|
12
|
+
success?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
|
|
15
|
+
export declare function SwappedIframeContainer({ modalState, onNext, onBack, onClose, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SwappedIframeContainer, SwappedIframeInfo, type SwappedIframeNext, type SwappedIframeState, } from './SwappedIframeContainer';
|
|
@@ -16,13 +16,13 @@ export interface DynamicTargetAssetCandidate extends TokenInfo {
|
|
|
16
16
|
badgeText?: string;
|
|
17
17
|
targetAssetMinAmount?: number;
|
|
18
18
|
/**
|
|
19
|
-
* Exchange rate of the target asset in terms of the
|
|
20
|
-
* Represents how many
|
|
19
|
+
* Exchange rate of the target asset in terms of the finalized token.
|
|
20
|
+
* Represents how many finalized tokens one unit of the target asset can be exchanged for.
|
|
21
21
|
*
|
|
22
|
-
* Example: If `targetAsset`/`
|
|
22
|
+
* Example: If `targetAsset`/`finalizedToken` is USDT/hbUSDT and the rate is 1.01,
|
|
23
23
|
* 1 USDT can be exchanged for 1.01 hbUSDT.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
finalizedTokenRate?: number;
|
|
26
26
|
dynamicRoutingId?: string;
|
|
27
27
|
}
|
|
28
28
|
export declare enum FunCheckoutStartingStep {
|
|
@@ -74,7 +74,7 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
74
74
|
* to specify the onchain action to execute after deposit */
|
|
75
75
|
qrcodeActionType?: string;
|
|
76
76
|
/** set this if you want enable vault like deposit*/
|
|
77
|
-
|
|
77
|
+
finalizedToken?: DynamicTargetAssetCandidate;
|
|
78
78
|
/**
|
|
79
79
|
* For dynamic routing, the id of the dynamic route to use
|
|
80
80
|
*/
|
|
@@ -87,6 +87,8 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
87
87
|
alignTitle?: 'left' | 'center';
|
|
88
88
|
/** Always shows checkout modal top divider even if content cannot scroll - defaults to `false` */
|
|
89
89
|
alwaysShowTopDivider?: boolean;
|
|
90
|
+
/** Whether to show modal title in topbars - defaults to true */
|
|
91
|
+
showModalTitle?: boolean;
|
|
90
92
|
/** Whether to show CTA in uppercase - defaults to false */
|
|
91
93
|
callToActionsUppercase?: boolean;
|
|
92
94
|
/** Whether to enable compact list style for option boxes - defaults to false */
|
|
@@ -152,6 +154,10 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
152
154
|
/** Function that returns a custom React component to render before other UIs in the transfer crypto screen */
|
|
153
155
|
customTopComponent?: () => ReactNode;
|
|
154
156
|
};
|
|
157
|
+
withdrawalScreen?: {
|
|
158
|
+
/** Function that returns a custom React component to render before other UIs in the withdrawal amount screen */
|
|
159
|
+
customTopComponent?: () => ReactNode;
|
|
160
|
+
};
|
|
155
161
|
selectBrokerageScreen?: {
|
|
156
162
|
/** Function that returns a custom React component to render before other UIs in the select brokerage screen */
|
|
157
163
|
customTopComponent?: () => ReactNode;
|
|
@@ -217,6 +223,7 @@ export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizatio
|
|
|
217
223
|
inputAmountScreen: Required<FunkitUiCustomizationsConfig['inputAmountScreen'] & {}>;
|
|
218
224
|
selectAssetScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectAssetScreen']>;
|
|
219
225
|
transferCryptoScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['transferCryptoScreen']>;
|
|
226
|
+
withdrawalScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['withdrawalScreen']>;
|
|
220
227
|
selectBrokerageScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectBrokerageScreen']>;
|
|
221
228
|
connectExchangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['connectExchangeScreen']>;
|
|
222
229
|
sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']> & {
|
|
@@ -55,8 +55,9 @@ export declare const useActiveTheme: () => {
|
|
|
55
55
|
secondaryText: string;
|
|
56
56
|
tertiaryText: string;
|
|
57
57
|
textSelection: string;
|
|
58
|
-
|
|
58
|
+
inputLabel: string;
|
|
59
59
|
inputBackground: string;
|
|
60
|
+
inputBackgroundHover: string;
|
|
60
61
|
inputBorderBase: string;
|
|
61
62
|
inputBorderHover: string;
|
|
62
63
|
activeTabBorderColor: string;
|
|
@@ -131,12 +132,28 @@ export declare const useActiveTheme: () => {
|
|
|
131
132
|
fiatAccountGradientTo: string;
|
|
132
133
|
optionBoxBackground: string;
|
|
133
134
|
optionBoxBackgroundUninteractive: string;
|
|
135
|
+
optionBoxBorderBase: string;
|
|
134
136
|
optionBoxBorderHover: string;
|
|
137
|
+
optionBoxDefaultModeNotActiveBorderBase: string;
|
|
138
|
+
optionBoxDefaultModeNotActiveBorderHover: string;
|
|
135
139
|
openDropdownBackgroundColor: string;
|
|
136
140
|
dropdownActiveItemBackgroundBase: string;
|
|
137
141
|
dropdownActiveItemBackgroundHover: string;
|
|
138
142
|
dropdownActiveItemBackgroundDisabled: string;
|
|
143
|
+
dropdownActiveItemBorderBase: string;
|
|
144
|
+
dropdownActiveItemBorderHover: string;
|
|
139
145
|
selectedDropdownItemBackground: string;
|
|
146
|
+
alwaysVisibleLabelBackgroundHover: string;
|
|
147
|
+
selectedDropdownItemText: string;
|
|
148
|
+
copyButtonBackgroundBase: string;
|
|
149
|
+
copyButtonBackgroundHover: string;
|
|
150
|
+
copyButtonBackgroundActive: string;
|
|
151
|
+
copyButtonBorderBase: string;
|
|
152
|
+
copyButtonBorderHover: string;
|
|
153
|
+
funFeatureListBackgroundBase: string;
|
|
154
|
+
funFeatureListBackgroundHover: string;
|
|
155
|
+
funFeatureListBorderColor: string;
|
|
156
|
+
funFeatureListBorderColorHover: string;
|
|
140
157
|
spinnerBackground: string;
|
|
141
158
|
spinnerIndicator: string;
|
|
142
159
|
spinnerBackgroundVerifyAccount: string;
|
|
@@ -146,6 +163,9 @@ export declare const useActiveTheme: () => {
|
|
|
146
163
|
counterRingColor: string;
|
|
147
164
|
cryptoCashToggleContainerBorderColor: string;
|
|
148
165
|
cryptoCashToggleBackground: string;
|
|
166
|
+
withdrawalYouWillReceiveLabel: string;
|
|
167
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
168
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
149
169
|
};
|
|
150
170
|
dimensions: {
|
|
151
171
|
connectExchangeIconSize: string;
|
|
@@ -164,6 +184,7 @@ export declare const useActiveTheme: () => {
|
|
|
164
184
|
paymentAmountSkeletonCircleSize: string;
|
|
165
185
|
paymentMethodItemIconSize: string;
|
|
166
186
|
selectAssetItemIconSize: string;
|
|
187
|
+
sourceListGap: string;
|
|
167
188
|
txBreakdownSkeletonWidth: string;
|
|
168
189
|
txSummaryLineSkeletonHeight: string;
|
|
169
190
|
txSummaryLineSkeletonWidth: string;
|
|
@@ -187,20 +208,24 @@ export declare const useActiveTheme: () => {
|
|
|
187
208
|
heavy: string;
|
|
188
209
|
cryptoCashToggle: string;
|
|
189
210
|
inputAmount: string;
|
|
211
|
+
inputLabel: string;
|
|
212
|
+
inputValue: string;
|
|
190
213
|
modalTopbarTitle: string;
|
|
191
214
|
modalBottomBarButtonText: string;
|
|
192
215
|
paymentMethodItemSubtitle: string;
|
|
193
216
|
paymentMethodItemTitle: string;
|
|
194
217
|
selectAssetItemSubtitle: string;
|
|
195
218
|
selectAssetItemTitle: string;
|
|
196
|
-
|
|
219
|
+
sourceListSectionLabelFontWeight: string;
|
|
197
220
|
txBreakdown: string;
|
|
198
221
|
txStatusDescription: string;
|
|
199
222
|
txStatusTitle: string;
|
|
200
223
|
txSummaryLabel: string;
|
|
201
224
|
txSummaryValue: string;
|
|
202
|
-
sourceListSectionLabelFontWeight: string;
|
|
203
225
|
formOfPaymentsListSectionLabelFontWeight: string;
|
|
226
|
+
withdrawalYouWillReceiveLabel: string;
|
|
227
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
228
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
204
229
|
};
|
|
205
230
|
fontSize: {
|
|
206
231
|
'10': {
|
|
@@ -279,6 +304,14 @@ export declare const useActiveTheme: () => {
|
|
|
279
304
|
fontSize: string;
|
|
280
305
|
lineHeight: string;
|
|
281
306
|
};
|
|
307
|
+
inputLabel: {
|
|
308
|
+
fontSize: string;
|
|
309
|
+
lineHeight: string;
|
|
310
|
+
};
|
|
311
|
+
inputValue: {
|
|
312
|
+
fontSize: string;
|
|
313
|
+
lineHeight: string;
|
|
314
|
+
};
|
|
282
315
|
modalTopbarSubtitle: {
|
|
283
316
|
fontSize: string;
|
|
284
317
|
lineHeight: string;
|
|
@@ -327,15 +360,15 @@ export declare const useActiveTheme: () => {
|
|
|
327
360
|
fontSize: string;
|
|
328
361
|
lineHeight: string;
|
|
329
362
|
};
|
|
330
|
-
|
|
363
|
+
withdrawalYouWillReceive: {
|
|
331
364
|
fontSize: string;
|
|
332
365
|
lineHeight: string;
|
|
333
366
|
};
|
|
334
|
-
|
|
367
|
+
youPayYouReceivePrimaryFontSize: {
|
|
335
368
|
fontSize: string;
|
|
336
369
|
lineHeight: string;
|
|
337
370
|
};
|
|
338
|
-
|
|
371
|
+
youPayYouReceiveSecondaryFontSize: {
|
|
339
372
|
fontSize: string;
|
|
340
373
|
lineHeight: string;
|
|
341
374
|
};
|
|
@@ -359,6 +392,14 @@ export declare const useActiveTheme: () => {
|
|
|
359
392
|
fontSize: string;
|
|
360
393
|
lineHeight: string;
|
|
361
394
|
};
|
|
395
|
+
quickOptionFontSize: {
|
|
396
|
+
fontSize: string;
|
|
397
|
+
lineHeight: string;
|
|
398
|
+
};
|
|
399
|
+
useConnectedFontSize: {
|
|
400
|
+
fontSize: string;
|
|
401
|
+
lineHeight: string;
|
|
402
|
+
};
|
|
362
403
|
};
|
|
363
404
|
radii: {
|
|
364
405
|
actionButton: string;
|
|
@@ -380,6 +421,7 @@ export declare const useActiveTheme: () => {
|
|
|
380
421
|
dropdownList: string;
|
|
381
422
|
modalTopbarIcon: string;
|
|
382
423
|
withdrawalInput: string;
|
|
424
|
+
useConnected: string;
|
|
383
425
|
};
|
|
384
426
|
borderWidths: {
|
|
385
427
|
activeOptionBorderWidth: string;
|
|
@@ -421,11 +463,11 @@ export declare const useActiveTheme: () => {
|
|
|
421
463
|
cryptoCashToggleMarginTop: string;
|
|
422
464
|
cryptoCashToggleTabPaddingY: string;
|
|
423
465
|
modalBaseHorizontalPadding: string;
|
|
466
|
+
modalBottomBarButtonPaddingY: string;
|
|
424
467
|
modalBottomHorizontalPadding: string;
|
|
425
468
|
modalPaddingBottomUpper: string;
|
|
426
469
|
modalPaddingBottomLower: string;
|
|
427
470
|
modalTopBarVerticalTextSpacing: string;
|
|
428
|
-
modalBottomBarButtonPaddingY: string;
|
|
429
471
|
selectAssetItemPaddingX: string;
|
|
430
472
|
selectAssetItemPaddingY: string;
|
|
431
473
|
selectAssetItemTextGap: string;
|
|
@@ -439,9 +481,14 @@ export declare const useActiveTheme: () => {
|
|
|
439
481
|
txSummaryDividerMarginX: string;
|
|
440
482
|
txSummaryDividerMarginY: string;
|
|
441
483
|
verticalSectionGap: string;
|
|
484
|
+
withdrawalModalPaddingTop: string;
|
|
442
485
|
youPayYouReceivePaddingLeft: string;
|
|
443
486
|
youPayYouReceivePaddingRight: string;
|
|
444
487
|
youPayYouReceivePaddingY: string;
|
|
488
|
+
inputPaddingX: string;
|
|
489
|
+
inputPaddingY: string;
|
|
490
|
+
dropdownActiveItemRegularSizePaddingY: string;
|
|
491
|
+
assetListDefaultGap: string;
|
|
445
492
|
};
|
|
446
493
|
textTransforms: {
|
|
447
494
|
inputAmountQuickOptionButton: string;
|
|
@@ -497,8 +544,9 @@ export declare const useActiveTheme: () => {
|
|
|
497
544
|
secondaryText: string;
|
|
498
545
|
tertiaryText: string;
|
|
499
546
|
textSelection: string;
|
|
500
|
-
|
|
547
|
+
inputLabel: string;
|
|
501
548
|
inputBackground: string;
|
|
549
|
+
inputBackgroundHover: string;
|
|
502
550
|
inputBorderBase: string;
|
|
503
551
|
inputBorderHover: string;
|
|
504
552
|
activeTabBorderColor: string;
|
|
@@ -573,12 +621,28 @@ export declare const useActiveTheme: () => {
|
|
|
573
621
|
fiatAccountGradientTo: string;
|
|
574
622
|
optionBoxBackground: string;
|
|
575
623
|
optionBoxBackgroundUninteractive: string;
|
|
624
|
+
optionBoxBorderBase: string;
|
|
576
625
|
optionBoxBorderHover: string;
|
|
626
|
+
optionBoxDefaultModeNotActiveBorderBase: string;
|
|
627
|
+
optionBoxDefaultModeNotActiveBorderHover: string;
|
|
577
628
|
openDropdownBackgroundColor: string;
|
|
578
629
|
dropdownActiveItemBackgroundBase: string;
|
|
579
630
|
dropdownActiveItemBackgroundHover: string;
|
|
580
631
|
dropdownActiveItemBackgroundDisabled: string;
|
|
632
|
+
dropdownActiveItemBorderBase: string;
|
|
633
|
+
dropdownActiveItemBorderHover: string;
|
|
581
634
|
selectedDropdownItemBackground: string;
|
|
635
|
+
alwaysVisibleLabelBackgroundHover: string;
|
|
636
|
+
selectedDropdownItemText: string;
|
|
637
|
+
copyButtonBackgroundBase: string;
|
|
638
|
+
copyButtonBackgroundHover: string;
|
|
639
|
+
copyButtonBackgroundActive: string;
|
|
640
|
+
copyButtonBorderBase: string;
|
|
641
|
+
copyButtonBorderHover: string;
|
|
642
|
+
funFeatureListBackgroundBase: string;
|
|
643
|
+
funFeatureListBackgroundHover: string;
|
|
644
|
+
funFeatureListBorderColor: string;
|
|
645
|
+
funFeatureListBorderColorHover: string;
|
|
582
646
|
spinnerBackground: string;
|
|
583
647
|
spinnerIndicator: string;
|
|
584
648
|
spinnerBackgroundVerifyAccount: string;
|
|
@@ -588,6 +652,9 @@ export declare const useActiveTheme: () => {
|
|
|
588
652
|
counterRingColor: string;
|
|
589
653
|
cryptoCashToggleContainerBorderColor: string;
|
|
590
654
|
cryptoCashToggleBackground: string;
|
|
655
|
+
withdrawalYouWillReceiveLabel: string;
|
|
656
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
657
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
591
658
|
};
|
|
592
659
|
dimensions: {
|
|
593
660
|
connectExchangeIconSize: string;
|
|
@@ -606,6 +673,7 @@ export declare const useActiveTheme: () => {
|
|
|
606
673
|
paymentAmountSkeletonCircleSize: string;
|
|
607
674
|
paymentMethodItemIconSize: string;
|
|
608
675
|
selectAssetItemIconSize: string;
|
|
676
|
+
sourceListGap: string;
|
|
609
677
|
txBreakdownSkeletonWidth: string;
|
|
610
678
|
txSummaryLineSkeletonHeight: string;
|
|
611
679
|
txSummaryLineSkeletonWidth: string;
|
|
@@ -629,20 +697,24 @@ export declare const useActiveTheme: () => {
|
|
|
629
697
|
heavy: string;
|
|
630
698
|
cryptoCashToggle: string;
|
|
631
699
|
inputAmount: string;
|
|
700
|
+
inputLabel: string;
|
|
701
|
+
inputValue: string;
|
|
632
702
|
modalTopbarTitle: string;
|
|
633
703
|
modalBottomBarButtonText: string;
|
|
634
704
|
paymentMethodItemSubtitle: string;
|
|
635
705
|
paymentMethodItemTitle: string;
|
|
636
706
|
selectAssetItemSubtitle: string;
|
|
637
707
|
selectAssetItemTitle: string;
|
|
638
|
-
|
|
708
|
+
sourceListSectionLabelFontWeight: string;
|
|
639
709
|
txBreakdown: string;
|
|
640
710
|
txStatusDescription: string;
|
|
641
711
|
txStatusTitle: string;
|
|
642
712
|
txSummaryLabel: string;
|
|
643
713
|
txSummaryValue: string;
|
|
644
|
-
sourceListSectionLabelFontWeight: string;
|
|
645
714
|
formOfPaymentsListSectionLabelFontWeight: string;
|
|
715
|
+
withdrawalYouWillReceiveLabel: string;
|
|
716
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
717
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
646
718
|
};
|
|
647
719
|
fontSize: {
|
|
648
720
|
'10': {
|
|
@@ -721,6 +793,14 @@ export declare const useActiveTheme: () => {
|
|
|
721
793
|
fontSize: string;
|
|
722
794
|
lineHeight: string;
|
|
723
795
|
};
|
|
796
|
+
inputLabel: {
|
|
797
|
+
fontSize: string;
|
|
798
|
+
lineHeight: string;
|
|
799
|
+
};
|
|
800
|
+
inputValue: {
|
|
801
|
+
fontSize: string;
|
|
802
|
+
lineHeight: string;
|
|
803
|
+
};
|
|
724
804
|
modalTopbarSubtitle: {
|
|
725
805
|
fontSize: string;
|
|
726
806
|
lineHeight: string;
|
|
@@ -769,15 +849,15 @@ export declare const useActiveTheme: () => {
|
|
|
769
849
|
fontSize: string;
|
|
770
850
|
lineHeight: string;
|
|
771
851
|
};
|
|
772
|
-
|
|
852
|
+
withdrawalYouWillReceive: {
|
|
773
853
|
fontSize: string;
|
|
774
854
|
lineHeight: string;
|
|
775
855
|
};
|
|
776
|
-
|
|
856
|
+
youPayYouReceivePrimaryFontSize: {
|
|
777
857
|
fontSize: string;
|
|
778
858
|
lineHeight: string;
|
|
779
859
|
};
|
|
780
|
-
|
|
860
|
+
youPayYouReceiveSecondaryFontSize: {
|
|
781
861
|
fontSize: string;
|
|
782
862
|
lineHeight: string;
|
|
783
863
|
};
|
|
@@ -801,6 +881,14 @@ export declare const useActiveTheme: () => {
|
|
|
801
881
|
fontSize: string;
|
|
802
882
|
lineHeight: string;
|
|
803
883
|
};
|
|
884
|
+
quickOptionFontSize: {
|
|
885
|
+
fontSize: string;
|
|
886
|
+
lineHeight: string;
|
|
887
|
+
};
|
|
888
|
+
useConnectedFontSize: {
|
|
889
|
+
fontSize: string;
|
|
890
|
+
lineHeight: string;
|
|
891
|
+
};
|
|
804
892
|
};
|
|
805
893
|
radii: {
|
|
806
894
|
actionButton: string;
|
|
@@ -822,6 +910,7 @@ export declare const useActiveTheme: () => {
|
|
|
822
910
|
dropdownList: string;
|
|
823
911
|
modalTopbarIcon: string;
|
|
824
912
|
withdrawalInput: string;
|
|
913
|
+
useConnected: string;
|
|
825
914
|
};
|
|
826
915
|
borderWidths: {
|
|
827
916
|
activeOptionBorderWidth: string;
|
|
@@ -863,11 +952,11 @@ export declare const useActiveTheme: () => {
|
|
|
863
952
|
cryptoCashToggleMarginTop: string;
|
|
864
953
|
cryptoCashToggleTabPaddingY: string;
|
|
865
954
|
modalBaseHorizontalPadding: string;
|
|
955
|
+
modalBottomBarButtonPaddingY: string;
|
|
866
956
|
modalBottomHorizontalPadding: string;
|
|
867
957
|
modalPaddingBottomUpper: string;
|
|
868
958
|
modalPaddingBottomLower: string;
|
|
869
959
|
modalTopBarVerticalTextSpacing: string;
|
|
870
|
-
modalBottomBarButtonPaddingY: string;
|
|
871
960
|
selectAssetItemPaddingX: string;
|
|
872
961
|
selectAssetItemPaddingY: string;
|
|
873
962
|
selectAssetItemTextGap: string;
|
|
@@ -881,9 +970,14 @@ export declare const useActiveTheme: () => {
|
|
|
881
970
|
txSummaryDividerMarginX: string;
|
|
882
971
|
txSummaryDividerMarginY: string;
|
|
883
972
|
verticalSectionGap: string;
|
|
973
|
+
withdrawalModalPaddingTop: string;
|
|
884
974
|
youPayYouReceivePaddingLeft: string;
|
|
885
975
|
youPayYouReceivePaddingRight: string;
|
|
886
976
|
youPayYouReceivePaddingY: string;
|
|
977
|
+
inputPaddingX: string;
|
|
978
|
+
inputPaddingY: string;
|
|
979
|
+
dropdownActiveItemRegularSizePaddingY: string;
|
|
980
|
+
assetListDefaultGap: string;
|
|
887
981
|
};
|
|
888
982
|
textTransforms: {
|
|
889
983
|
inputAmountQuickOptionButton: string;
|
|
@@ -937,8 +1031,9 @@ export declare const useActiveTheme: () => {
|
|
|
937
1031
|
secondaryText: string;
|
|
938
1032
|
tertiaryText: string;
|
|
939
1033
|
textSelection: string;
|
|
940
|
-
|
|
1034
|
+
inputLabel: string;
|
|
941
1035
|
inputBackground: string;
|
|
1036
|
+
inputBackgroundHover: string;
|
|
942
1037
|
inputBorderBase: string;
|
|
943
1038
|
inputBorderHover: string;
|
|
944
1039
|
activeTabBorderColor: string;
|
|
@@ -1013,12 +1108,28 @@ export declare const useActiveTheme: () => {
|
|
|
1013
1108
|
fiatAccountGradientTo: string;
|
|
1014
1109
|
optionBoxBackground: string;
|
|
1015
1110
|
optionBoxBackgroundUninteractive: string;
|
|
1111
|
+
optionBoxBorderBase: string;
|
|
1016
1112
|
optionBoxBorderHover: string;
|
|
1113
|
+
optionBoxDefaultModeNotActiveBorderBase: string;
|
|
1114
|
+
optionBoxDefaultModeNotActiveBorderHover: string;
|
|
1017
1115
|
openDropdownBackgroundColor: string;
|
|
1018
1116
|
dropdownActiveItemBackgroundBase: string;
|
|
1019
1117
|
dropdownActiveItemBackgroundHover: string;
|
|
1020
1118
|
dropdownActiveItemBackgroundDisabled: string;
|
|
1119
|
+
dropdownActiveItemBorderBase: string;
|
|
1120
|
+
dropdownActiveItemBorderHover: string;
|
|
1021
1121
|
selectedDropdownItemBackground: string;
|
|
1122
|
+
alwaysVisibleLabelBackgroundHover: string;
|
|
1123
|
+
selectedDropdownItemText: string;
|
|
1124
|
+
copyButtonBackgroundBase: string;
|
|
1125
|
+
copyButtonBackgroundHover: string;
|
|
1126
|
+
copyButtonBackgroundActive: string;
|
|
1127
|
+
copyButtonBorderBase: string;
|
|
1128
|
+
copyButtonBorderHover: string;
|
|
1129
|
+
funFeatureListBackgroundBase: string;
|
|
1130
|
+
funFeatureListBackgroundHover: string;
|
|
1131
|
+
funFeatureListBorderColor: string;
|
|
1132
|
+
funFeatureListBorderColorHover: string;
|
|
1022
1133
|
spinnerBackground: string;
|
|
1023
1134
|
spinnerIndicator: string;
|
|
1024
1135
|
spinnerBackgroundVerifyAccount: string;
|
|
@@ -1028,6 +1139,9 @@ export declare const useActiveTheme: () => {
|
|
|
1028
1139
|
counterRingColor: string;
|
|
1029
1140
|
cryptoCashToggleContainerBorderColor: string;
|
|
1030
1141
|
cryptoCashToggleBackground: string;
|
|
1142
|
+
withdrawalYouWillReceiveLabel: string;
|
|
1143
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
1144
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
1031
1145
|
};
|
|
1032
1146
|
dimensions: {
|
|
1033
1147
|
connectExchangeIconSize: string;
|
|
@@ -1046,6 +1160,7 @@ export declare const useActiveTheme: () => {
|
|
|
1046
1160
|
paymentAmountSkeletonCircleSize: string;
|
|
1047
1161
|
paymentMethodItemIconSize: string;
|
|
1048
1162
|
selectAssetItemIconSize: string;
|
|
1163
|
+
sourceListGap: string;
|
|
1049
1164
|
txBreakdownSkeletonWidth: string;
|
|
1050
1165
|
txSummaryLineSkeletonHeight: string;
|
|
1051
1166
|
txSummaryLineSkeletonWidth: string;
|
|
@@ -1069,20 +1184,24 @@ export declare const useActiveTheme: () => {
|
|
|
1069
1184
|
heavy: string;
|
|
1070
1185
|
cryptoCashToggle: string;
|
|
1071
1186
|
inputAmount: string;
|
|
1187
|
+
inputLabel: string;
|
|
1188
|
+
inputValue: string;
|
|
1072
1189
|
modalTopbarTitle: string;
|
|
1073
1190
|
modalBottomBarButtonText: string;
|
|
1074
1191
|
paymentMethodItemSubtitle: string;
|
|
1075
1192
|
paymentMethodItemTitle: string;
|
|
1076
1193
|
selectAssetItemSubtitle: string;
|
|
1077
1194
|
selectAssetItemTitle: string;
|
|
1078
|
-
|
|
1195
|
+
sourceListSectionLabelFontWeight: string;
|
|
1079
1196
|
txBreakdown: string;
|
|
1080
1197
|
txStatusDescription: string;
|
|
1081
1198
|
txStatusTitle: string;
|
|
1082
1199
|
txSummaryLabel: string;
|
|
1083
1200
|
txSummaryValue: string;
|
|
1084
|
-
sourceListSectionLabelFontWeight: string;
|
|
1085
1201
|
formOfPaymentsListSectionLabelFontWeight: string;
|
|
1202
|
+
withdrawalYouWillReceiveLabel: string;
|
|
1203
|
+
withdrawalYouWillReceiveValueCrypto: string;
|
|
1204
|
+
withdrawalYouWillReceiveValueUsd: string;
|
|
1086
1205
|
};
|
|
1087
1206
|
fontSize: {
|
|
1088
1207
|
'10': {
|
|
@@ -1161,6 +1280,14 @@ export declare const useActiveTheme: () => {
|
|
|
1161
1280
|
fontSize: string;
|
|
1162
1281
|
lineHeight: string;
|
|
1163
1282
|
};
|
|
1283
|
+
inputLabel: {
|
|
1284
|
+
fontSize: string;
|
|
1285
|
+
lineHeight: string;
|
|
1286
|
+
};
|
|
1287
|
+
inputValue: {
|
|
1288
|
+
fontSize: string;
|
|
1289
|
+
lineHeight: string;
|
|
1290
|
+
};
|
|
1164
1291
|
modalTopbarSubtitle: {
|
|
1165
1292
|
fontSize: string;
|
|
1166
1293
|
lineHeight: string;
|
|
@@ -1209,15 +1336,15 @@ export declare const useActiveTheme: () => {
|
|
|
1209
1336
|
fontSize: string;
|
|
1210
1337
|
lineHeight: string;
|
|
1211
1338
|
};
|
|
1212
|
-
|
|
1339
|
+
withdrawalYouWillReceive: {
|
|
1213
1340
|
fontSize: string;
|
|
1214
1341
|
lineHeight: string;
|
|
1215
1342
|
};
|
|
1216
|
-
|
|
1343
|
+
youPayYouReceivePrimaryFontSize: {
|
|
1217
1344
|
fontSize: string;
|
|
1218
1345
|
lineHeight: string;
|
|
1219
1346
|
};
|
|
1220
|
-
|
|
1347
|
+
youPayYouReceiveSecondaryFontSize: {
|
|
1221
1348
|
fontSize: string;
|
|
1222
1349
|
lineHeight: string;
|
|
1223
1350
|
};
|
|
@@ -1241,6 +1368,14 @@ export declare const useActiveTheme: () => {
|
|
|
1241
1368
|
fontSize: string;
|
|
1242
1369
|
lineHeight: string;
|
|
1243
1370
|
};
|
|
1371
|
+
quickOptionFontSize: {
|
|
1372
|
+
fontSize: string;
|
|
1373
|
+
lineHeight: string;
|
|
1374
|
+
};
|
|
1375
|
+
useConnectedFontSize: {
|
|
1376
|
+
fontSize: string;
|
|
1377
|
+
lineHeight: string;
|
|
1378
|
+
};
|
|
1244
1379
|
};
|
|
1245
1380
|
radii: {
|
|
1246
1381
|
actionButton: string;
|
|
@@ -1262,6 +1397,7 @@ export declare const useActiveTheme: () => {
|
|
|
1262
1397
|
dropdownList: string;
|
|
1263
1398
|
modalTopbarIcon: string;
|
|
1264
1399
|
withdrawalInput: string;
|
|
1400
|
+
useConnected: string;
|
|
1265
1401
|
};
|
|
1266
1402
|
borderWidths: {
|
|
1267
1403
|
activeOptionBorderWidth: string;
|
|
@@ -1303,11 +1439,11 @@ export declare const useActiveTheme: () => {
|
|
|
1303
1439
|
cryptoCashToggleMarginTop: string;
|
|
1304
1440
|
cryptoCashToggleTabPaddingY: string;
|
|
1305
1441
|
modalBaseHorizontalPadding: string;
|
|
1442
|
+
modalBottomBarButtonPaddingY: string;
|
|
1306
1443
|
modalBottomHorizontalPadding: string;
|
|
1307
1444
|
modalPaddingBottomUpper: string;
|
|
1308
1445
|
modalPaddingBottomLower: string;
|
|
1309
1446
|
modalTopBarVerticalTextSpacing: string;
|
|
1310
|
-
modalBottomBarButtonPaddingY: string;
|
|
1311
1447
|
selectAssetItemPaddingX: string;
|
|
1312
1448
|
selectAssetItemPaddingY: string;
|
|
1313
1449
|
selectAssetItemTextGap: string;
|
|
@@ -1321,9 +1457,14 @@ export declare const useActiveTheme: () => {
|
|
|
1321
1457
|
txSummaryDividerMarginX: string;
|
|
1322
1458
|
txSummaryDividerMarginY: string;
|
|
1323
1459
|
verticalSectionGap: string;
|
|
1460
|
+
withdrawalModalPaddingTop: string;
|
|
1324
1461
|
youPayYouReceivePaddingLeft: string;
|
|
1325
1462
|
youPayYouReceivePaddingRight: string;
|
|
1326
1463
|
youPayYouReceivePaddingY: string;
|
|
1464
|
+
inputPaddingX: string;
|
|
1465
|
+
inputPaddingY: string;
|
|
1466
|
+
dropdownActiveItemRegularSizePaddingY: string;
|
|
1467
|
+
assetListDefaultGap: string;
|
|
1327
1468
|
};
|
|
1328
1469
|
textTransforms: {
|
|
1329
1470
|
inputAmountQuickOptionButton: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FormOfPaymentType } from '@funkit/api-base';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { type SwappedTheme } from '../utils/swapped';
|
|
3
4
|
export interface SwappedIframeCallbacks {
|
|
@@ -9,15 +10,14 @@ export interface SwappedIframeCallbacks {
|
|
|
9
10
|
onNavigation: (step: string) => void;
|
|
10
11
|
}
|
|
11
12
|
interface SwappedContextValue {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
activateIframe: (
|
|
13
|
+
iframeUrl: string | null;
|
|
14
|
+
isSwappedReady: boolean;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
setIframeUrl: (url: string | null) => void;
|
|
17
|
+
activateIframe: (fopType: FormOfPaymentType) => void;
|
|
17
18
|
deactivateIframe: () => void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
setIframeRef: (url: string, el: HTMLIFrameElement | null) => void;
|
|
19
|
+
resetIframe: () => void;
|
|
20
|
+
setIframeRef: (el: HTMLIFrameElement | null) => void;
|
|
21
21
|
setActiveCallbacks: (cb: SwappedIframeCallbacks | null) => void;
|
|
22
22
|
swappedTheme: SwappedTheme;
|
|
23
23
|
}
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED