@chainberry/ui-components 1.0.5 → 1.0.6
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +16 -7
- package/dist/index.mjs +1334 -1330
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -318,6 +318,7 @@ export declare namespace convertData {
|
|
|
318
318
|
formatUsd,
|
|
319
319
|
formatCrypto,
|
|
320
320
|
CONVERT_FEE_RATE,
|
|
321
|
+
WALLET_TIERS,
|
|
321
322
|
NETWORK_NAMES,
|
|
322
323
|
COINS,
|
|
323
324
|
HOLDINGS,
|
|
@@ -363,7 +364,7 @@ export declare type ConvertPickerOption = {
|
|
|
363
364
|
disabled?: boolean;
|
|
364
365
|
};
|
|
365
366
|
|
|
366
|
-
export declare function ConvertSummary({ fromCoin, toCoin, payAmount, payFiat, receiveAmount, receiveFiat, rateLabel, feeLabel, fromWalletName, fromWalletAddress, toWalletName, toWalletAddress, footer, className, }: {
|
|
367
|
+
export declare function ConvertSummary({ fromCoin, toCoin, payAmount, payFiat, receiveAmount, receiveFiat, rateLabel, rateCountdown, rateTtl, rateVersion, feeLabel, fromWalletName, fromWalletAddress, toWalletName, toWalletAddress, footer, className, }: {
|
|
367
368
|
fromCoin: string | null;
|
|
368
369
|
toCoin: string | null;
|
|
369
370
|
payAmount?: string | null;
|
|
@@ -371,6 +372,12 @@ export declare function ConvertSummary({ fromCoin, toCoin, payAmount, payFiat, r
|
|
|
371
372
|
receiveAmount?: string | null;
|
|
372
373
|
receiveFiat?: string | null;
|
|
373
374
|
rateLabel?: string | null;
|
|
375
|
+
/** seconds until the quoted rate re-rolls; null hides the countdown */
|
|
376
|
+
rateCountdown?: number | null;
|
|
377
|
+
/** full length of the rate window, for the ring's progress */
|
|
378
|
+
rateTtl?: number;
|
|
379
|
+
/** increments each time a fresh rate lands — replays the flash on the value */
|
|
380
|
+
rateVersion?: number;
|
|
374
381
|
feeLabel?: string | null;
|
|
375
382
|
fromWalletName?: string | null;
|
|
376
383
|
fromWalletAddress?: string | null;
|
|
@@ -1424,12 +1431,6 @@ declare type RecentTransaction = {
|
|
|
1424
1431
|
txHash: string;
|
|
1425
1432
|
};
|
|
1426
1433
|
|
|
1427
|
-
export declare function RecentTransactionsPanel({ transactions, open, onOpenChange, }: {
|
|
1428
|
-
transactions: RecentTransaction[];
|
|
1429
|
-
open: boolean;
|
|
1430
|
-
onOpenChange: (open: boolean) => void;
|
|
1431
|
-
}): JSX.Element;
|
|
1432
|
-
|
|
1433
1434
|
/** Direction drives the header icon and the amount color. */
|
|
1434
1435
|
declare type RecentTxDirection = "in" | "out" | "transfer";
|
|
1435
1436
|
|
|
@@ -2031,6 +2032,14 @@ declare type Wallet = {
|
|
|
2031
2032
|
pendingFiat?: string;
|
|
2032
2033
|
};
|
|
2033
2034
|
|
|
2035
|
+
/** The source wallets you can convert FROM — the four treasury risk tiers.
|
|
2036
|
+
Currency + network are chosen separately, so these carry no coin/balance. */
|
|
2037
|
+
declare const WALLET_TIERS: {
|
|
2038
|
+
id: string;
|
|
2039
|
+
name: string;
|
|
2040
|
+
purpose: Holding["purpose"];
|
|
2041
|
+
}[];
|
|
2042
|
+
|
|
2034
2043
|
export declare type WalletActionId = "withdraw" | "deposit" | "convert";
|
|
2035
2044
|
|
|
2036
2045
|
export declare function WalletBalancesTable({ balances, actionsVariant, className, }: {
|