@funkit/connect 5.2.1 → 5.3.2
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/{chunk-3LR6KLPU.js → chunk-AIST42FG.js} +8 -3
- package/dist/{chunk-QMPPK7HO.js → chunk-ZX757M5P.js} +8 -3
- package/dist/components/Box/Box.d.ts +28 -28
- package/dist/components/Dialog/Dialog.css.d.ts +4 -2
- package/dist/components/Dialog/Dialog.d.ts +10 -6
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +4 -5
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -3
- package/dist/components/FunAsset/FunAssetLoading.d.ts +6 -3
- package/dist/components/FunBadge/BridgeCustomerStatusBadge.d.ts +9 -0
- package/dist/components/FunBadge/FunBadge.d.ts +4 -2
- package/dist/components/FunButton/FunIconButton.d.ts +1 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +4 -0
- package/dist/components/FunCheckbox/FunCheckbox.d.ts +9 -0
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +11 -2
- package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +7 -0
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +9 -0
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +13 -0
- package/dist/components/FunFeatureList/FunFeatureListItem.d.ts +10 -0
- package/dist/components/FunGuarantees/FunGuarantees.d.ts +7 -3
- package/dist/components/FunInput/FunInput.d.ts +3 -1
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -1
- package/dist/components/FunInputButton/FunInputButton.d.ts +14 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -1
- package/dist/components/FunSelect/FunSelect.d.ts +3 -0
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +1 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +15 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -4
- package/dist/components/Icons/CheckIcon.d.ts +1 -1
- package/dist/components/Icons/HomeIcon.d.ts +4 -0
- package/dist/components/Icons/Icons.css.d.ts +0 -1
- package/dist/components/Icons/New/BankIcon.d.ts +7 -0
- package/dist/components/Icons/New/BanknoteIcon.d.ts +4 -0
- package/dist/components/Icons/New/CoinsHandIcon.d.ts +4 -0
- package/dist/components/Icons/New/FiatAccountIcon.d.ts +4 -0
- package/dist/components/Icons/New/HelpIcon.d.ts +2 -0
- package/dist/components/Icons/New/LightningBoltOutlineIcon.d.ts +4 -0
- package/dist/components/Icons/New/ShieldCheckIcon.d.ts +4 -0
- package/dist/components/Icons/New/TimeIcon.d.ts +4 -0
- package/dist/components/Icons/New/UserIcon.d.ts +4 -0
- package/dist/components/Icons/SpinnerIconWithBackground.d.ts +6 -4
- package/dist/components/Icons/SuccessIcon.d.ts +3 -1
- package/dist/components/Icons/UserSquareIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationFailedIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationPendingIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationSuccessIcon.d.ts +4 -0
- package/dist/components/Icons/VerifyIdentityIcon.d.ts +4 -0
- package/dist/components/QRCode/QRCodeSkeletonLoader.d.ts +3 -1
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +11 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -2
- package/dist/components/VirtualFiatAccount/CreateAccountScreen/CreateAccountScreen.d.ts +15 -0
- package/dist/components/VirtualFiatAccount/IntroScreen/IntroScreen.d.ts +6 -0
- package/dist/components/VirtualFiatAccount/VerifyAccountScreen/VerifyAccountScreen.d.ts +15 -0
- package/dist/consts/customers.d.ts +2 -0
- package/dist/consts/quote.d.ts +3 -10
- package/dist/css/sprinkles.css.d.ts +42 -32
- package/dist/domains/bridge.d.ts +25 -0
- package/dist/domains/fees.d.ts +14 -1
- package/dist/domains/paymentMethods.d.ts +25 -4
- package/dist/domains/quote.d.ts +13 -4
- package/dist/domains/relay.d.ts +35 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +10 -2
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +11 -0
- package/dist/hooks/useCopyToClipboard.d.ts +7 -3
- package/dist/hooks/useFrogAccount.d.ts +335 -0
- package/dist/hooks/useIsUsBankrUser.d.ts +1 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useReceiveAmountLabel.d.ts +4 -0
- package/dist/hooks/useRelayExecutionInfo.d.ts +7 -0
- package/dist/hooks/useTokenTransfer.d.ts +3 -2
- package/dist/index.css +2381 -2027
- package/dist/index.js +17519 -14287
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +8 -3
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +13 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +22 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +7 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +9 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +5 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +9 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +26 -1
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +9 -2
- package/dist/providers/FunkitConfigContext.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.d.ts +4 -1
- package/dist/providers/FunkitThemeProvider.d.ts +21 -6
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +18 -1
- package/dist/utils/flags/config.d.ts +50 -16
- package/dist/utils/flags/types.d.ts +2 -0
- package/dist/utils/mesh.d.ts +1 -0
- 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 +55 -55
- 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 +6 -6
- /package/dist/components/{TransferTokenDetails/TransferTokenDetails.css.d.ts → FunFeatureList/FunFeatureList.css.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BridgeCustomerStatus } from '@funkit/api-base';
|
|
3
|
+
interface BridgeCustomerStatusBadgeProps {
|
|
4
|
+
status?: BridgeCustomerStatus;
|
|
5
|
+
/** Complements customer status - if user has KYC in progress with possibly recoverable errors */
|
|
6
|
+
isSoftRejected?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const BridgeCustomerStatusBadge: ({ status, isSoftRejected, }: BridgeCustomerStatusBadgeProps) => React.JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
import { type TextProps } from '../Text/Text';
|
|
4
4
|
interface FunBadgeProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
paddingLeft?: BoxProps['paddingLeft'];
|
|
7
7
|
paddingRight?: BoxProps['paddingRight'];
|
|
8
|
+
paddingX?: BoxProps['paddingX'];
|
|
8
9
|
paddingY?: BoxProps['paddingY'];
|
|
9
10
|
background?: BoxProps['background'];
|
|
10
11
|
borderRadius?: BoxProps['borderRadius'];
|
|
@@ -13,8 +14,9 @@ interface FunBadgeProps {
|
|
|
13
14
|
weight?: TextProps['weight'];
|
|
14
15
|
iconSrc?: string;
|
|
15
16
|
shadow?: string;
|
|
17
|
+
textTransform?: CSSProperties['textTransform'];
|
|
16
18
|
}
|
|
17
|
-
export declare function FunBadge({ children, background, color, weight, paddingLeft, paddingRight, paddingY, borderRadius, borderColor, shadow, iconSrc, }: FunBadgeProps): React.JSX.Element;
|
|
19
|
+
export declare function FunBadge({ children, background, color, weight, paddingLeft, paddingRight, paddingY, paddingX, borderRadius, borderColor, shadow, textTransform, iconSrc, }: FunBadgeProps): React.JSX.Element;
|
|
18
20
|
interface NewTokenBadgeProps {
|
|
19
21
|
iconSymbol?: string;
|
|
20
22
|
}
|
|
@@ -37,6 +37,7 @@ export interface FunIconButtonProps extends Pick<BoxProps, 'as' | 'borderRadius'
|
|
|
37
37
|
variant?: FunIconButtonVariant;
|
|
38
38
|
isHighlighted?: boolean;
|
|
39
39
|
colorOverrides?: FunIconButtonCustomColors;
|
|
40
|
+
href?: string;
|
|
40
41
|
}
|
|
41
42
|
export declare const FunIconButton: ({ children, onClick, icon, iconVisualWeightCenter, size, width, gap, ariaLabel, color, as, isDisabled, borderRadius, style, variant, colorOverrides, ...props }: FunIconButtonProps) => React.JSX.Element;
|
|
42
43
|
export {};
|
|
@@ -14,4 +14,8 @@ interface FunLinkButtonProps {
|
|
|
14
14
|
* A button that looks like a link. Behavior can be customized with `href` (anchor) or `onClick` (button).
|
|
15
15
|
*/
|
|
16
16
|
export declare function FunLinkButton({ inline, href, onClick, text, size, weight, variant, }: FunLinkButtonProps): React.JSX.Element;
|
|
17
|
+
interface ContactSupportLinkProps extends Omit<FunLinkButtonProps, 'text'> {
|
|
18
|
+
text?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ContactSupportLink: ({ text, size, inline, href, ...rest }: ContactSupportLinkProps) => React.JSX.Element;
|
|
17
21
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FunCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Controlled checkbox component.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FunCheckbox: ({ label, onChange, ...props }: FunCheckboxProps) => React.JSX.Element;
|
|
@@ -5,6 +5,15 @@ interface FunCheckoutStatusProps {
|
|
|
5
5
|
onOrderDelayed?: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function FunCheckoutStatus({ checkoutHistoryItem, onOrderDelayed, }: FunCheckoutStatusProps): React.JSX.Element | null;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export declare function StatusInner({ showCompleted, showDelayed, showFailed, pendingComponent, }: {
|
|
9
|
+
showCompleted: boolean;
|
|
10
|
+
showDelayed: boolean;
|
|
11
|
+
showFailed: boolean;
|
|
12
|
+
pendingComponent: React.ReactNode;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export declare function PendingStatus({ totalSeconds, estimatedRemainingSeconds, onOrderDelayed, }: {
|
|
15
|
+
totalSeconds: number;
|
|
16
|
+
estimatedRemainingSeconds: number;
|
|
17
|
+
onOrderDelayed?: () => void;
|
|
18
|
+
}): React.JSX.Element;
|
|
10
19
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface FunDirectExecutionStatusProps {
|
|
4
|
+
directExecution: DirectExecution | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function FunDirectExecutionStatus({ directExecution, }: FunDirectExecutionStatusProps): React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FunCheckoutStep } from '~/modals/CheckoutModal/stepTransition';
|
|
3
|
+
interface FunCheckoutModalHeightAnimationWrapperProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
checkoutStep?: FunCheckoutStep;
|
|
6
|
+
}
|
|
7
|
+
export declare const mapHeightToCheckoutStep: Partial<Record<FunCheckoutStep, number>>;
|
|
8
|
+
export declare function FunCheckoutModalHeightAnimationWrapper({ children, checkoutStep, }: FunCheckoutModalHeightAnimationWrapperProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import { type FunFeatureListItemProps } from './FunFeatureListItem';
|
|
4
|
+
interface FunFeatureListProps {
|
|
5
|
+
items: FunFeatureListItemProps[];
|
|
6
|
+
/** if is expandable, the first `items` entry is used as the always displayed item, the rest will become collapsible */
|
|
7
|
+
isExpandable?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
withBackgroundContainer?: boolean;
|
|
10
|
+
gapBetweenItems?: Extract<BoxProps['gap'], string>;
|
|
11
|
+
}
|
|
12
|
+
export declare const FunFeatureList: ({ items, isExpandable, disabled, withBackgroundContainer, gapBetweenItems, }: FunFeatureListProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
export interface FunFeatureListItemProps extends BoxProps {
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
tooltip?: ReactNode;
|
|
6
|
+
value?: string | string[];
|
|
7
|
+
prefix?: string;
|
|
8
|
+
icon: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const FunFeatureListItem: ({ text, tooltip, value, prefix, icon, ...boxProps }: FunFeatureListItemProps) => React.JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
export interface FunGuaranteeProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
}
|
|
3
7
|
interface FunGuaranteesProps {
|
|
4
|
-
|
|
8
|
+
guarantees?: FunGuaranteeProps[];
|
|
5
9
|
}
|
|
6
|
-
export declare const FunGuarantees: ({
|
|
10
|
+
export declare const FunGuarantees: ({ guarantees }: FunGuaranteesProps) => React.JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -18,10 +18,12 @@ export interface FunInputProps<T = HTMLInputElement> {
|
|
|
18
18
|
};
|
|
19
19
|
error?: string | boolean;
|
|
20
20
|
alwaysFocused?: boolean;
|
|
21
|
-
|
|
21
|
+
/** Color meant for prefix & suffix elements. Defaults to secondaryText. */
|
|
22
|
+
adornmentColor?: BoxProps['color'];
|
|
22
23
|
textWeight?: BoxProps['fontWeight'];
|
|
23
24
|
overrideBorderWidth?: undefined | BoxProps['borderWidth'];
|
|
24
25
|
overrideBackground?: BoxProps['background'];
|
|
25
26
|
borderRadius?: BoxProps['borderRadius'];
|
|
27
|
+
isLoading?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare const FunInput: React.ForwardRefExoticComponent<FunInputProps<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FunInputProps } from './FunInput';
|
|
3
|
-
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit,
|
|
3
|
+
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textWeight, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, isLoading, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FunInputButtonProps {
|
|
3
|
+
text: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
isCopyable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wrapper around FunOptionBox providing tooltip functionality on click
|
|
11
|
+
* Should be grouped in FunOptionPill in new DS along with other components utilizing
|
|
12
|
+
* @see FunOptionBox
|
|
13
|
+
*/
|
|
14
|
+
export declare const FunInputButton: ({ text, label, isDisabled, isActive, isCopyable, }: FunInputButtonProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const funOptionBoxStyle: Record<"
|
|
1
|
+
export declare const funOptionBoxStyle: Record<"baseStyle" | "defaultBorder" | "transparentBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "activeBackground", string>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { PaymentMethod, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
2
|
+
import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
3
3
|
export declare const getDynamicValueIconComponent: () => React.JSX.Element;
|
|
4
|
+
export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
|
|
5
|
+
paymentIcon: ReactNode;
|
|
6
|
+
keyIconSize: number;
|
|
7
|
+
}): React.JSX.Element;
|
|
4
8
|
interface ConnectedMeshPaymentMethodItemProps {
|
|
5
9
|
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
6
10
|
isSelected: boolean;
|
|
@@ -16,6 +20,9 @@ export declare const ConnectedMeshPaymentMethodItem: ({ paymentMethodInfo, isSel
|
|
|
16
20
|
export declare const AccountBalancePaymentMethodItem: ({ isActive, customValueIcon, onClick, targetChainId, }: BasePaymentMethodItemProps & {
|
|
17
21
|
targetChainId: string;
|
|
18
22
|
}) => React.JSX.Element;
|
|
23
|
+
export declare const ActiveFiatAccountPaymentMethodItem: ({ isActive, onClick, paymentMethodInfo, customValueIcon, }: BasePaymentMethodItemProps & {
|
|
24
|
+
paymentMethodInfo: PaymentMethodVirtualBankInfo;
|
|
25
|
+
}) => React.JSX.Element;
|
|
19
26
|
type BasePaymentMethodItemProps = {
|
|
20
27
|
isActive: boolean;
|
|
21
28
|
onClick: () => void;
|
|
@@ -9,5 +9,8 @@ interface FunSelectProps {
|
|
|
9
9
|
options: FunSelectOption[];
|
|
10
10
|
onChange: (newValue: string) => void;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Utilize BaseDropdown instead
|
|
14
|
+
*/
|
|
12
15
|
export declare const FunSelect: ({ initValue, options, onChange }: FunSelectProps) => React.JSX.Element;
|
|
13
16
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const tooltipContainer: string;
|
|
2
2
|
export declare const tooltipStyle: string;
|
|
3
|
+
export declare const tooltipStyleBottom: string;
|
|
3
4
|
export declare const tooltipStyleCenter: string;
|
|
4
5
|
export declare const tooltipStyleRight: string;
|
|
5
6
|
export declare const tooltipStyleLeft: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
2
3
|
export interface FunTooltipProps {
|
|
3
4
|
content: ReactNode;
|
|
4
5
|
children?: ReactNode;
|
|
@@ -14,6 +15,19 @@ export interface FunTooltipProps {
|
|
|
14
15
|
* right: above children, right
|
|
15
16
|
*/
|
|
16
17
|
tooltipPosition?: 'center' | 'left' | 'right';
|
|
18
|
+
/**
|
|
19
|
+
* Bottom offset of the tooltip from the children element, by default it is 6px
|
|
20
|
+
* This is used to adjust the tooltip position when it is rendered in the center
|
|
21
|
+
*/
|
|
22
|
+
bottomOffset?: boolean;
|
|
17
23
|
maxWidth?: number;
|
|
24
|
+
/** Whether to display the tooltip on hover or after clicking */
|
|
25
|
+
displayType?: 'hover' | 'click';
|
|
26
|
+
/**
|
|
27
|
+
* Delay after which the tooltip is hidden. Defaults to 150ms
|
|
28
|
+
* Based on display type the countdown starts immediately ('click') or after no longer hovering ('hover')
|
|
29
|
+
*/
|
|
30
|
+
hideDelay?: number;
|
|
31
|
+
width?: BoxProps['width'];
|
|
18
32
|
}
|
|
19
|
-
export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, maxWidth, }: FunTooltipProps) => React.JSX.Element;
|
|
33
|
+
export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, bottomOffset, maxWidth, displayType, hideDelay, width, }: FunTooltipProps) => React.JSX.Element;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { DirectExecutionType } from '@funkit/api-base';
|
|
2
3
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
3
4
|
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
4
|
-
import { type FunkitTextCustomizationsConfig, type FunkitUiCustomizationsConfig } from '~/providers/FunkitConfigContext';
|
|
5
5
|
interface PaymentAmountSummaryProps {
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
targetChainId: string;
|
|
8
8
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
9
9
|
quote: FunkitCheckoutQuoteResult | null;
|
|
10
|
-
|
|
11
|
-
uiCustomizations: FunkitUiCustomizationsConfig['confirmationScreen'];
|
|
10
|
+
directExecutionType?: DirectExecutionType | null;
|
|
12
11
|
}
|
|
13
|
-
export declare function PaymentAmountSummary({ isLoading, targetChainId, quote, checkoutItem,
|
|
12
|
+
export declare function PaymentAmountSummary({ isLoading, targetChainId, quote, checkoutItem, directExecutionType, }: PaymentAmountSummaryProps): React.JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -2,4 +2,3 @@ export declare const SpinnerIconClassName: string;
|
|
|
2
2
|
export declare const SlowRotation: string;
|
|
3
3
|
export declare const SpinnerIconWithBackgroundOuterClassName: string;
|
|
4
4
|
export declare const SpinnerIconWithBackgroundInnerClassName: string;
|
|
5
|
-
export declare const SpinnerIconPathClassName: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
interface SpinnerIconWithBackgroundProps {
|
|
4
|
+
size?: BoxProps['width'];
|
|
5
|
+
color?: BoxProps['borderColor'];
|
|
6
|
+
}
|
|
7
|
+
export declare const SpinnerIconWithBackground: ({ size, color, }: SpinnerIconWithBackgroundProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
2
3
|
interface QRCodeSkeletonLoaderProps {
|
|
3
4
|
/** Dictates what square will be rendered, eg. diagonalDimension = 4 will render a 4x4 skeleton loader with 4 rows and 4 columns, diagonalDimension = 12 will render a 12x12 skeleton loader with 12 rows and 12 columns */
|
|
4
5
|
diagonalDimension?: number;
|
|
6
|
+
gapBetweenDots?: BoxProps['gap'];
|
|
5
7
|
}
|
|
6
|
-
declare const QRCodeSkeletonLoader: ({ diagonalDimension, }: QRCodeSkeletonLoaderProps) => React.JSX.Element;
|
|
8
|
+
declare const QRCodeSkeletonLoader: ({ diagonalDimension, gapBetweenDots, }: QRCodeSkeletonLoaderProps) => React.JSX.Element;
|
|
7
9
|
export default QRCodeSkeletonLoader;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PaymentMethod } from '~/domains/paymentMethods';
|
|
3
3
|
import { type FunPaymentMethodItemProps } from '../FunPaymentMethodItem/FunPaymentMethodItem';
|
|
4
|
-
export type SourcePaymentMethodItemType = PaymentMethod;
|
|
5
4
|
interface SourcePaymentMethodItemProps extends Omit<FunPaymentMethodItemProps, 'valueIcon'> {
|
|
6
|
-
type:
|
|
5
|
+
type: PaymentMethod;
|
|
7
6
|
}
|
|
8
7
|
export declare const SourcePaymentMethodItem: ({ keyIcon, keyText, disclaimerText, onClick, isError, isDisabled, isActive, type, }: SourcePaymentMethodItemProps) => React.JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -4,7 +4,7 @@ export type TextProps = {
|
|
|
4
4
|
id?: string;
|
|
5
5
|
as?: 'code' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'p' | 'span';
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
color?: BoxProps['color'];
|
|
7
|
+
color?: BoxProps['color'] | 'inherit';
|
|
8
8
|
font?: BoxProps['fontFamily'];
|
|
9
9
|
size?: BoxProps['fontSize'];
|
|
10
10
|
style?: React.CSSProperties;
|
|
@@ -3,8 +3,8 @@ import type { FeeValue } from '~/hooks/useTokenTransfer';
|
|
|
3
3
|
interface TransferTokenDetailsProps {
|
|
4
4
|
minAmount?: number;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
estPriceImpact: FeeValue;
|
|
7
|
-
maxSlippage: FeeValue;
|
|
6
|
+
estPriceImpact: FeeValue | undefined;
|
|
7
|
+
maxSlippage: FeeValue | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const TransferTokenDetails: ({ minAmount, disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BridgeAccount } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type CreateAccountFormData = Omit<BridgeAccount, 'guid'>;
|
|
4
|
+
interface CreateAccountScreenProps {
|
|
5
|
+
onNext: (params: {
|
|
6
|
+
kycLink: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
onError: (error: {
|
|
9
|
+
hasError: true;
|
|
10
|
+
errorCode: string;
|
|
11
|
+
rawErrorObject: unknown;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function CreateAccountScreen({ onNext, onError, }: CreateAccountScreenProps): React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BridgeCustomerStatus, type BridgeVirtualBankAccount } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface VerifyAccountScreenProps {
|
|
4
|
+
customerStatus: BridgeCustomerStatus | undefined;
|
|
5
|
+
/** Complements customer status - if user has KYC in progress with recoverable errors */
|
|
6
|
+
isSoftRejected?: boolean;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
withActionButton?: boolean;
|
|
9
|
+
onVirtualFiatCreated?: (account: BridgeVirtualBankAccount) => void;
|
|
10
|
+
onShowKyc?: () => void;
|
|
11
|
+
onError?: () => void;
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const VerifyAccountScreen: ({ customerStatus, isSoftRejected, isLoading, withActionButton, onVirtualFiatCreated, onShowKyc, onError, onBack, }: VerifyAccountScreenProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -2,3 +2,5 @@ export declare function isDydxCustomer(apiKey: string): apiKey is "NJq0CGrsE19xB
|
|
|
2
2
|
export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
|
|
3
3
|
export declare function isVertexCustomer(apiKey: string): apiKey is "OQXhzzkLHE2vHAK8nZBS76el5utuw3527RmnYn26";
|
|
4
4
|
export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
|
|
5
|
+
export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
|
6
|
+
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
package/dist/consts/quote.d.ts
CHANGED
|
@@ -13,18 +13,11 @@ export declare const PENDING_QUOTE_MESSAGE_GENERATOR: {
|
|
|
13
13
|
export declare enum QuoteCustomErrorType {
|
|
14
14
|
INSUFFICIENT_BALANCE_PRE_CHECK = 0,
|
|
15
15
|
INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK = 1,
|
|
16
|
-
INSUFFICIENT_BALANCE_POST_CHECK = 2
|
|
16
|
+
INSUFFICIENT_BALANCE_POST_CHECK = 2,
|
|
17
|
+
INSUFFICIENT_AMOUNT_POST_CHECK = 3
|
|
17
18
|
}
|
|
18
19
|
export declare const QUOTE_CUSTOM_ERROR_STRING_INFO: {
|
|
19
|
-
|
|
20
|
-
check: string;
|
|
21
|
-
display: string;
|
|
22
|
-
};
|
|
23
|
-
1: {
|
|
24
|
-
check: string;
|
|
25
|
-
display: string;
|
|
26
|
-
};
|
|
27
|
-
2: {
|
|
20
|
+
[type in QuoteCustomErrorType]: {
|
|
28
21
|
check: string;
|
|
29
22
|
display: string;
|
|
30
23
|
};
|