@funkit/connect 12.18.1 → 12.20.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 +46 -0
- package/dist/clients/{chunk-FOXMRDKD.js → chunk-2BBOZQLZ.js} +1 -1
- package/dist/clients/{chunk-FLREOB24.js → chunk-5NYKSTGH.js} +1 -1
- package/dist/clients/{chunk-AHYOV7AV.js → chunk-GTPMJGCF.js} +1 -1
- package/dist/clients/{chunk-RQALGV5U.js → chunk-N46CL4ZT.js} +1 -1
- package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
- package/dist/clients/{chunk-YSAAJSWT.js → chunk-R5VAX6YA.js} +8 -0
- package/dist/clients/{chunk-L6JL2XJY.js → chunk-TFIJZTGQ.js} +1 -1
- package/dist/clients/{chunk-G6A62MZO.js → chunk-TLFE74BL.js} +6 -6
- package/dist/clients/{chunk-AELXD5XA.js → chunk-VFKEUHZT.js} +1 -1
- package/dist/clients/{chunk-IUVVGGP4.js → chunk-Y7ONHWCW.js} +2 -2
- package/dist/clients/fanatics.js +4 -4
- package/dist/clients/internal/nado/withdrawalCallback.js +5 -5
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +5 -5
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
- package/dist/clients/lighter.css +8 -1
- package/dist/clients/lighter.js +6 -6
- package/dist/clients/lighterRh.d.ts +44 -0
- package/dist/clients/lighterRh.js +51 -0
- package/dist/clients/mallard.js +3 -3
- package/dist/clients/nado.js +5 -5
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/clients/solana-transfer.d.ts +1 -0
- package/dist/clients/solana-transfer.js +13 -0
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
- package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +1 -1
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +14 -4
- package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +4 -2
- package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
- package/dist/consts/customers.d.ts +5 -1
- package/dist/domains/bridge.d.ts +1 -2
- package/dist/domains/convert/assets.d.ts +32 -0
- package/dist/domains/convert/inputAmount.d.ts +24 -21
- package/dist/domains/convert/reducer.d.ts +11 -6
- package/dist/domains/convert/screen.d.ts +6 -1
- package/dist/domains/convert/view.d.ts +4 -0
- package/dist/index.css +8 -1
- package/dist/index.js +1336 -1160
- package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
- package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -14
- package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +5 -2
- package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
- package/dist/providers/ConvertProvider.d.ts +2 -0
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/walletConnectors/index.js +40 -40
- package/package.json +10 -5
|
@@ -22,18 +22,28 @@ interface TokenSwapCardContentProps {
|
|
|
22
22
|
convertedAmount: string;
|
|
23
23
|
onToggleUnit?: () => void;
|
|
24
24
|
balance?: string;
|
|
25
|
-
/**
|
|
26
|
-
|
|
25
|
+
/** Shows the percentage presets beside the label; 100 is Max. */
|
|
26
|
+
onPercentSelect?: (percent: number) => void;
|
|
27
27
|
isLoading?: boolean;
|
|
28
28
|
/** Keeps the layout but makes every control inert. */
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
testId: string;
|
|
31
31
|
}
|
|
32
32
|
export type TokenSwapCardProps = TokenSwapCardContentProps & TokenSwapDepositState;
|
|
33
|
+
/** A swap card's shell: `from` is outlined, `to` filled. Shared with the skeleton so both line up. */
|
|
34
|
+
export declare function TokenSwapCardFrame({ variant, testId, children, }: {
|
|
35
|
+
variant: 'from' | 'to';
|
|
36
|
+
testId?: string;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
}): React.JSX.Element;
|
|
39
|
+
/** One row of a swap card: content at the start, content at the end. */
|
|
40
|
+
export declare function TokenSwapCardRow({ children }: {
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
}): React.JSX.Element;
|
|
33
43
|
/**
|
|
34
44
|
* One card of the swap widget.
|
|
35
|
-
* - `from`: outlined, unit toggle,
|
|
45
|
+
* - `from`: outlined, unit toggle, percentage presets; editable unless a deposit is required.
|
|
36
46
|
* - `to`: filled background, read-only, amount comes from the quote.
|
|
37
47
|
*/
|
|
38
|
-
export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance,
|
|
48
|
+
export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance, onPercentSelect, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element;
|
|
39
49
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TokenSwapPercentOptionsProps {
|
|
3
|
+
/** Fired with the chosen share of the balance (100 = Max). */
|
|
4
|
+
onSelect: (percent: number) => void;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
testId: string;
|
|
7
|
+
}
|
|
8
|
+
/** The 25% / 50% / 75% / Max row on the source card. */
|
|
9
|
+
export declare function TokenSwapPercentOptions({ onSelect, isDisabled, testId, }: TokenSwapPercentOptionsProps): React.JSX.Element;
|
|
@@ -16,8 +16,8 @@ export type TokenSwapFrom = TokenSwapAmounts & TokenSwapDepositState & {
|
|
|
16
16
|
/** What the user typed, in `unit`. */
|
|
17
17
|
inputValue: string;
|
|
18
18
|
onInputChange: (next: string) => void;
|
|
19
|
-
/** Omit
|
|
20
|
-
|
|
19
|
+
/** Omit to hide the percentage presets (e.g. nothing to take a share of); 100 is Max. */
|
|
20
|
+
onPercentSelect?: (percent: number) => void;
|
|
21
21
|
};
|
|
22
22
|
export interface TokenSwapTo extends TokenSwapAmounts {
|
|
23
23
|
/** Shows a skeleton in place of the amount while the quote loads. */
|
|
@@ -41,3 +41,5 @@ export interface TokenSwapWidgetProps {
|
|
|
41
41
|
* caller owns amounts, quotes and token selection.
|
|
42
42
|
*/
|
|
43
43
|
export declare function TokenSwapWidget({ from, to, unit, onToggleUnit, onSwapDirection, isSwapDirectionDisabled, isDisabled, }: TokenSwapWidgetProps): React.JSX.Element;
|
|
44
|
+
/** The swap icon as decoration only, for a widget that can't swap. */
|
|
45
|
+
export declare function SwapDirectionIcon(): React.JSX.Element;
|
|
@@ -24,7 +24,11 @@ export declare function isFanaticsCustomer(apiKey: string): apiKey is "lI7amueGK
|
|
|
24
24
|
export declare function isAaveCustomer(apiKey: string): apiKey is "EWzSv8tWnQ7UcZ2IsDqFw1dYo3Df56FX6KBJ5ztS";
|
|
25
25
|
export declare function isNadoCustomer(apiKey: string): apiKey is "iFwbI36PWs6egzqjemCVz8PRmDwaANr51WtaARhV";
|
|
26
26
|
export declare function isMallardCustomer(apiKey: string): apiKey is "hxiC33LDFN9BekjyOXfYo597NQ6TdkBG9soUGyW2";
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Whether a wallet balance must be kept out of this customer's balance UI.
|
|
29
|
+
* Robinhood stock tokens show only where the customer's Relay key routes them:
|
|
30
|
+
* every stock for Lighter RH, Arcus's own eight for Mallard.
|
|
31
|
+
*/
|
|
28
32
|
export declare function isTokenHiddenForCustomer(apiKey: string, chainId: string, tokenAddress: string): boolean;
|
|
29
33
|
/**
|
|
30
34
|
* Gates the source-select "Native" fast-path: when the connected wallet
|
package/dist/domains/bridge.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - Bridge Bank Account: corresponds to a payment route for a user
|
|
7
7
|
* https://docs.google.com/document/d/1A0GVWMIe1aLHtblMYJZfFP3C-DybMo47l4vvoxcbpcs/edit?tab=t.0
|
|
8
8
|
*/
|
|
9
|
-
import { type BaseApiRequest, type BridgeCustomer, BridgeCustomerStatus,
|
|
9
|
+
import { type BaseApiRequest, type BridgeCustomer, BridgeCustomerStatus, type BridgeSubAccount, type BridgeVirtualBankAccount, type CreateBridgeBankAccountRequest, type FunAddress } from '@funkit/api-base';
|
|
10
10
|
/** Bridge only supports a handful of chains so we need to normalize other chains to the supported chain*/
|
|
11
11
|
export declare const findBridgeSupportedChain: (chainId: string) => CreateBridgeBankAccountRequest["chainName"];
|
|
12
12
|
export interface AllFiatAccounts {
|
|
@@ -17,7 +17,6 @@ export declare function fetchFrogAccounts(walletAddress: string, params: BaseApi
|
|
|
17
17
|
export declare function fetchAllFiatAccounts(bridgeSubAccount: BridgeSubAccount | undefined, params: BaseApiRequest): Promise<AllFiatAccounts>;
|
|
18
18
|
export declare function getMatchingBankAccount(accounts: AllFiatAccounts, targetChain: string, targetAddress: FunAddress): BridgeVirtualBankAccount | undefined;
|
|
19
19
|
export declare const getFiatAccountLabel: (defaultLabel: string, account?: BridgeVirtualBankAccount) => string;
|
|
20
|
-
export declare const mapBridgeCustomerStatusToKycStatus: (customerStatus?: BridgeCustomerStatus) => BridgeKycStatus | undefined;
|
|
21
20
|
export declare function isKycUninitialized(customerStatus: BridgeCustomerStatus): customerStatus is BridgeCustomerStatus.AWAITING_QUESTIONNAIRE | BridgeCustomerStatus.AWAITING_UBO | BridgeCustomerStatus.INCOMPLETE | BridgeCustomerStatus.NOT_STARTED;
|
|
22
21
|
/**
|
|
23
22
|
* When KYC is in the initial state (passed KYC that has to be retried doesn't have a special customer state) but we already get some rejection reasons from bridge
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GetSupportedAssetsResponse, SupportedAssetInfo } from '@funkit/api-base';
|
|
2
2
|
import type { Config } from '../../wagmi/hooks';
|
|
3
|
+
import { type ConvertBalanceState, type ConvertBalances } from './balances';
|
|
3
4
|
import type { ConvertAsset, ConvertResolvedAsset } from './types';
|
|
4
5
|
/** Where the host's asset list and balances stand: still loading, failed, or readable. */
|
|
5
6
|
export type ConvertAssetListStatus = 'loading' | 'error' | 'ready';
|
|
@@ -28,3 +29,34 @@ export declare function resolveConvertAssets({ assets, supportedAssets, wagmiCon
|
|
|
28
29
|
}): Promise<ConvertResolvedAsset[]>;
|
|
29
30
|
/** The listed asset with this {@link convertAssetKey}, if any. */
|
|
30
31
|
export declare function findConvertAsset(assets: ConvertResolvedAsset[] | undefined, assetKey: string | undefined): ConvertResolvedAsset | undefined;
|
|
32
|
+
/** One row on a Convert token screen. */
|
|
33
|
+
export interface ConvertAssetOption {
|
|
34
|
+
asset: ConvertResolvedAsset;
|
|
35
|
+
key: string;
|
|
36
|
+
/** `undefined` until the first balance read lands. */
|
|
37
|
+
balance: ConvertBalanceState | undefined;
|
|
38
|
+
/** The balance in USD; `undefined` when the balance is unknown. */
|
|
39
|
+
usdAmount: number | undefined;
|
|
40
|
+
isDisabled: boolean;
|
|
41
|
+
/** Worth less than the minimum Convert quotes, so it can't be a source. */
|
|
42
|
+
isBelowMinimum?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Pickable rows first, then by USD value. An unknown value sorts last, and the
|
|
46
|
+
* stable sort keeps the host's order among equal values.
|
|
47
|
+
*/
|
|
48
|
+
export declare function compareConvertAssetOptions(a: ConvertAssetOption, b: ConvertAssetOption): number;
|
|
49
|
+
/**
|
|
50
|
+
* The source screen's rows: held tokens by USD value, disabled ones last.
|
|
51
|
+
* - Under the $1 minimum is disabled ("Low Balance"): Relay won't quote it.
|
|
52
|
+
* - An unreadable balance stays listed but disabled, so funds never look gone.
|
|
53
|
+
*/
|
|
54
|
+
export declare function getConvertSourceOptions({ assets, balances, }: {
|
|
55
|
+
assets: ConvertResolvedAsset[];
|
|
56
|
+
balances: ConvertBalances;
|
|
57
|
+
}): ConvertAssetOption[];
|
|
58
|
+
/**
|
|
59
|
+
* The source Convert opens on: the most valuable token the user can convert
|
|
60
|
+
* from, i.e. the source screen's top row. `undefined` when no row is pickable.
|
|
61
|
+
*/
|
|
62
|
+
export declare function getConvertPreselectedSource(options: ConvertAssetOption[]): ConvertAssetOption | undefined;
|
|
@@ -12,42 +12,45 @@ export declare function parseConvertInputToBaseUnits({ inputValue, unit, tokenAm
|
|
|
12
12
|
decimals: number;
|
|
13
13
|
}): bigint | undefined;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* shows more than the user has. Display only: the exact amount is
|
|
17
|
-
* Empty in USD mode without a price, rather than a token amount under a `$`.
|
|
15
|
+
* A preset amount as plain field text in the current unit, rounded down so the
|
|
16
|
+
* field never shows more than the user has. Display only: the exact amount is
|
|
17
|
+
* kept apart. Empty in USD mode without a price, rather than a token amount under a `$`.
|
|
18
18
|
*/
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function formatConvertPresetInput({ baseUnits, decimals, unit, unitPriceUsd, }: {
|
|
20
20
|
baseUnits: bigint;
|
|
21
21
|
decimals: number;
|
|
22
22
|
unit: AmountUnit;
|
|
23
23
|
unitPriceUsd: number | undefined;
|
|
24
24
|
}): string;
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
25
|
+
/**
|
|
26
|
+
* A percentage preset's exact amount, or `undefined` when there's nothing to fill.
|
|
27
|
+
* - Max keeps the gas reserve, so it always fits. Like checkout, it falls back to
|
|
28
|
+
* the full balance while the reserve loads, and is 0 when gas takes it all.
|
|
29
|
+
* - The rest take a share of the full balance, so on a native token they can
|
|
30
|
+
* exceed Max, which raises the usual insufficient-balance issue.
|
|
31
|
+
* - A share that rounds to 0 (dust) fills nothing rather than a silent "0".
|
|
32
|
+
*/
|
|
33
|
+
export declare function getConvertPercentBaseUnits({ percent, balanceBaseUnits, maxBaseUnits, }: {
|
|
34
|
+
percent: number;
|
|
35
|
+
balanceBaseUnits: bigint;
|
|
36
|
+
maxBaseUnits: bigint | null;
|
|
37
|
+
}): bigint | undefined;
|
|
34
38
|
export interface ConvertAmount extends AmountInUnits {
|
|
35
|
-
/** The field text;
|
|
39
|
+
/** The field text; the preset's rounded-down display while a preset is on. */
|
|
36
40
|
inputValue: string;
|
|
37
41
|
unit: AmountUnit;
|
|
38
|
-
/** What to quote:
|
|
42
|
+
/** What to quote: the preset's exact amount, or the typed one. */
|
|
39
43
|
baseUnits: bigint | undefined;
|
|
40
|
-
isMax: boolean;
|
|
41
44
|
}
|
|
42
45
|
/**
|
|
43
|
-
* The amount a draft describes at `unitPriceUsd`. While
|
|
44
|
-
* and converted amounts derive from it, so a price change or unit flip
|
|
45
|
-
* leaves them stale.
|
|
46
|
+
* The amount a draft describes at `unitPriceUsd`. While a preset is on, the
|
|
47
|
+
* field and converted amounts derive from it, so a price change or unit flip
|
|
48
|
+
* never leaves them stale.
|
|
46
49
|
*/
|
|
47
|
-
export declare function getConvertAmount({ inputValue, unit,
|
|
50
|
+
export declare function getConvertAmount({ inputValue, unit, presetBaseUnits, decimals, unitPriceUsd, }: {
|
|
48
51
|
inputValue: string;
|
|
49
52
|
unit: AmountUnit;
|
|
50
|
-
|
|
53
|
+
presetBaseUnits: bigint | undefined;
|
|
51
54
|
decimals: number;
|
|
52
55
|
unitPriceUsd: number | undefined;
|
|
53
56
|
}): ConvertAmount;
|
|
@@ -9,11 +9,11 @@ import type { ConvertResolvedAsset } from './types';
|
|
|
9
9
|
export interface ConvertDraft {
|
|
10
10
|
sourceKey: string | undefined;
|
|
11
11
|
destinationKey: string | undefined;
|
|
12
|
-
/** The field text as typed; stale while
|
|
12
|
+
/** The field text as typed; stale while a preset is on, which derives its own. */
|
|
13
13
|
inputValue: string;
|
|
14
14
|
unit: AmountUnit;
|
|
15
|
-
/**
|
|
16
|
-
|
|
15
|
+
/** A percentage preset's exact amount (Max included); typing clears it. */
|
|
16
|
+
presetBaseUnits: bigint | undefined;
|
|
17
17
|
}
|
|
18
18
|
/** What the user converted, frozen when they did; a locked screen reads only this. */
|
|
19
19
|
export interface ConvertSnapshot {
|
|
@@ -51,8 +51,8 @@ export type ConvertEvent = {
|
|
|
51
51
|
type: 'AMOUNT_EDITED';
|
|
52
52
|
inputValue: string;
|
|
53
53
|
} | {
|
|
54
|
-
type: '
|
|
55
|
-
|
|
54
|
+
type: 'PRESET_SET';
|
|
55
|
+
presetBaseUnits: bigint;
|
|
56
56
|
}
|
|
57
57
|
/** Converts the field at the live price; ignored without one. */
|
|
58
58
|
| {
|
|
@@ -61,6 +61,11 @@ export type ConvertEvent = {
|
|
|
61
61
|
} | {
|
|
62
62
|
type: 'SOURCE_PICKED';
|
|
63
63
|
sourceKey: string;
|
|
64
|
+
}
|
|
65
|
+
/** Balances loaded with no source picked: opens on the most valuable token. */
|
|
66
|
+
| {
|
|
67
|
+
type: 'SOURCE_PRESELECTED';
|
|
68
|
+
sourceKey: string;
|
|
64
69
|
} | {
|
|
65
70
|
type: 'DESTINATION_PICKED';
|
|
66
71
|
destinationKey: string;
|
|
@@ -104,7 +109,7 @@ export declare const INITIAL_CONVERT_STATE: ConvertState;
|
|
|
104
109
|
/**
|
|
105
110
|
* Convert's draft and submission. Pure: the provider runs the wallet steps
|
|
106
111
|
* and polling, and dispatches what they report.
|
|
107
|
-
* - An edit,
|
|
112
|
+
* - An edit, preset, pick or retry ends a `failed` submission; a locked one ignores them.
|
|
108
113
|
* - `CONVERT_STARTED` freezes the snapshot; nothing live reaches it after.
|
|
109
114
|
* - `untrackable` is final; `completed` ends with `SUCCESS_SHOWN`, which keeps
|
|
110
115
|
* the tokens and drops the amount, since it was converted.
|
|
@@ -125,6 +125,10 @@ export type ConvertActionButton =
|
|
|
125
125
|
| {
|
|
126
126
|
action: 'converted';
|
|
127
127
|
}
|
|
128
|
+
/** The first balance read is out, so there's no source yet. */
|
|
129
|
+
| {
|
|
130
|
+
action: 'loadingBalance';
|
|
131
|
+
}
|
|
128
132
|
/** A native EVM source's gas price is loading, so Max and the reserve are unknown. */
|
|
129
133
|
| {
|
|
130
134
|
action: 'estimatingGas';
|
|
@@ -150,10 +154,11 @@ export type ConvertActionButton =
|
|
|
150
154
|
* arrives, and waits out a refresh like checkout's confirmation screen. A
|
|
151
155
|
* submission in flight overrides all of it.
|
|
152
156
|
*/
|
|
153
|
-
export declare function getConvertActionButton({ submission, issue, quote, isQuoteFetching, isLookupFetching, isFeeReserveLoading, }: {
|
|
157
|
+
export declare function getConvertActionButton({ submission, issue, quote, isAwaitingBalances, isQuoteFetching, isLookupFetching, isFeeReserveLoading, }: {
|
|
154
158
|
submission: ConvertSubmission | undefined;
|
|
155
159
|
issue: ConvertScreenIssue | undefined;
|
|
156
160
|
quote: ConvertQuote | undefined;
|
|
161
|
+
isAwaitingBalances?: boolean;
|
|
157
162
|
isQuoteFetching: boolean;
|
|
158
163
|
/** A source wallet, recipient or balance read is running. */
|
|
159
164
|
isLookupFetching: boolean;
|
|
@@ -56,12 +56,16 @@ export interface ConvertView {
|
|
|
56
56
|
balances: ConvertBalances | undefined;
|
|
57
57
|
sourceAsset: ConvertResolvedAsset | undefined;
|
|
58
58
|
destinationAsset: ConvertResolvedAsset | undefined;
|
|
59
|
+
/** The first balance read is out, so there's no source to show yet. */
|
|
60
|
+
isAwaitingBalances: boolean;
|
|
59
61
|
/** Token units; `undefined` while unknown, so it never reads as 0. */
|
|
60
62
|
sourceTokenBalance: number | undefined;
|
|
61
63
|
destinationTokenBalance: number | undefined;
|
|
62
64
|
amount: ConvertAmount;
|
|
63
65
|
/** The source's Max; `null` while unknown or locked. */
|
|
64
66
|
maxBaseUnits: bigint | null;
|
|
67
|
+
/** Shows the percentage presets: the source has a balance to take a share of. */
|
|
68
|
+
canSelectPercent: boolean;
|
|
65
69
|
/** Shows the unit switch; off without a price to convert with. Locked, the widget disables it. */
|
|
66
70
|
canToggleUnit: boolean;
|
|
67
71
|
quote: ConvertQuote | undefined;
|
package/dist/index.css
CHANGED
|
@@ -14701,7 +14701,7 @@
|
|
|
14701
14701
|
}
|
|
14702
14702
|
}
|
|
14703
14703
|
|
|
14704
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#
|
|
14704
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy47rNgzd369QcTcToBo4r7m5HqAouu-u-4KWGFuNLBmynEeL-ffCz7EsZ2JNezcJTPOQlHTIo-T5z3Xxt91ttmvyzxdCcrjSDEWa2ZjsN_vi-toZL4LbLCbrKDpfalv3vNtHtc_bl-chTpxB-fS11JVhSFkGKkVaQIorL8GhTeCDCzRFSa0BVR7RtOifieel5S0Hc0JLJwCmlUVlAzJafUI1ybgcLev3SqiUCnXWggUv-CjAUo4WhAyFMq2OwuRghVafwJ7R2HBYXki0wau8CJtxAxeQ9H8IcZT6ErZWhcxSvLac_FzSXPOm-lB-lRcoCuRUHA3kc2R2HajUwIVK_Qx7L8Om9RGq79HtIWr71n0eQbbhkF04ZN9ACuD1Sqhp649eRzaJx9Y0Qr00qEQbjqbPFZGfRF5oY0FZx_kwrUooYQXIUV0MJHtqxhahZBsV19Xr9NCi8py5YReNocPnx1BUJ3Rt3_d3qlg2mkIiLh5XIUEXjLCQcA9G06JQ8Jgdg565lNx03J6QtzfPsGegrNVFE4Qa4KIqY3IG80SpOTUG0U6Q33UiJK4msCZLIC7R1urczRj5793QMw59p9Vv9BlNPV1jkgnOUb12u9gv2W1YCBB8r9MgiON30Mv5fCfAEu7egS6R3_vYj0XwHi5ARxeEuKOjHyz4kY560CRcPHgD6ZlIr2MuDtZbTKCyuraVzGgpEzA0raxFE5PSQiLRfdelq1SJrpDwOKYXTE7C0sG7qYCLspBwGzBDyS_tAhJgp9ToSnHKtNRm1LfNc9k27m-D2-phXmqzKk_GMvjRSFgtq8KisQLM7Q-82iUlGGCntoT_tkB8sMAfFT3OapYszFEi04rP7s7RZcFRYnPs9TflwiCrGz8mTMsqb8jZd0GtLG4XpKGhfE4PJPQorbTCaW-8d0zn1DbLqKTMuaIN17G5W5ujq5M2DQ_wC-Hi3H3Ozo97Nz4gX1mG7KQrS7kAqdP-mjVXiRPFL2ry2t_vfrrMTZyJIrYHGZM1Wfv7PK66_QnRyW4_ZkJ3UDSoRjBFSxtdABP2RqLnTUkQSqRCUV25u_eXBwMpSfS8n0DcA9nsu2ntXwxGsU_eQXYoP92uS9flmgv7a45cQH0kiIqA4uRppB_fXg7FtVWe9x9SzeP0nwlC3sZOm85pToumajSBbn3objOFDhYHupuB7j3obMHJDNQrePde8Nu_p8xgx9ERAAA */
|
|
14705
14705
|
[data-rk] ._1pzt4231 {
|
|
14706
14706
|
max-height: 525px;
|
|
14707
14707
|
max-width: 100vw;
|
|
@@ -14726,6 +14726,9 @@
|
|
|
14726
14726
|
[data-rk] ._1pzt4231:has(#confirmation-page) {
|
|
14727
14727
|
max-height: 825px;
|
|
14728
14728
|
}
|
|
14729
|
+
[data-rk] ._1pzt4231:has(#convert-page) {
|
|
14730
|
+
max-height: 825px;
|
|
14731
|
+
}
|
|
14729
14732
|
[data-rk] ._1pzt4231:has(#complete-page) {
|
|
14730
14733
|
max-height: 825px;
|
|
14731
14734
|
}
|
|
@@ -14786,6 +14789,10 @@
|
|
|
14786
14789
|
max-height: 80vh;
|
|
14787
14790
|
max-height: 95svh;
|
|
14788
14791
|
}
|
|
14792
|
+
[data-rk] ._1pzt4238:has(#convert-page) {
|
|
14793
|
+
max-height: 80vh;
|
|
14794
|
+
max-height: 95svh;
|
|
14795
|
+
}
|
|
14789
14796
|
[data-rk] ._1pzt423a {
|
|
14790
14797
|
min-width: initial;
|
|
14791
14798
|
width: 100vw;
|