@chainberry/ui-components 1.0.34 → 1.0.35
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 +33 -1
- package/dist/index.mjs +6344 -6328
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -699,6 +699,9 @@ declare type DateField = 'createdAt' | 'confirmedAt';
|
|
|
699
699
|
/** Default (English) tier column headers; override via the `tierLabels` prop. */
|
|
700
700
|
export declare const DEFAULT_TIER_LABELS: Record<WalletTier, string>;
|
|
701
701
|
|
|
702
|
+
/** Default (English) copy; override any subset via the `labels` prop. */
|
|
703
|
+
export declare const DEFAULT_USER_WALLETS_LABELS: UserWalletsTableLabels;
|
|
704
|
+
|
|
702
705
|
/** Default (English) copy; override any subset via the `labels` prop. */
|
|
703
706
|
export declare const DEFAULT_V3_LABELS: WalletBalancesTableV3Labels;
|
|
704
707
|
|
|
@@ -2392,6 +2395,9 @@ export declare type UserWalletGroup = {
|
|
|
2392
2395
|
/** userId — group key + React key. */
|
|
2393
2396
|
id: string;
|
|
2394
2397
|
userId: string;
|
|
2398
|
+
/** Band heading, when the group is keyed by something other than an end user
|
|
2399
|
+
(e.g. a vault account). Defaults to `userId`. */
|
|
2400
|
+
label?: string;
|
|
2395
2401
|
rows: UserWalletRow[];
|
|
2396
2402
|
};
|
|
2397
2403
|
|
|
@@ -2407,6 +2413,17 @@ export declare type UserWalletRow = {
|
|
|
2407
2413
|
network: string;
|
|
2408
2414
|
/** Network label shown in the row, e.g. "TRON". */
|
|
2409
2415
|
networkName: string;
|
|
2416
|
+
/** Block-explorer URL for this address. Defaults to the "#" placeholder. */
|
|
2417
|
+
addressUrl?: string;
|
|
2418
|
+
/** Network logo URL, when the caller resolves its own chain artwork.
|
|
2419
|
+
Defaults to `coinSrc(network)`. */
|
|
2420
|
+
networkSrc?: string;
|
|
2421
|
+
/** Asset code (e.g. "USDT"). Rows carrying one render an asset chip before
|
|
2422
|
+
the address — needed when a group holds addresses across several coins,
|
|
2423
|
+
which the by-network sample data never does. */
|
|
2424
|
+
symbol?: string;
|
|
2425
|
+
/** Asset logo URL. Defaults to `coinSrc(symbol)`. */
|
|
2426
|
+
symbolSrc?: string;
|
|
2410
2427
|
};
|
|
2411
2428
|
|
|
2412
2429
|
export declare namespace userWalletsData {
|
|
@@ -2420,11 +2437,26 @@ export declare namespace userWalletsData {
|
|
|
2420
2437
|
|
|
2421
2438
|
export declare function UserWalletsPage(): JSX.Element;
|
|
2422
2439
|
|
|
2423
|
-
export declare function UserWalletsTable({ groups, className, }: {
|
|
2440
|
+
export declare function UserWalletsTable({ groups, labels, className, }: {
|
|
2424
2441
|
groups: UserWalletGroup[];
|
|
2442
|
+
/** Translated copy; unset keys fall back to English. */
|
|
2443
|
+
labels?: Partial<UserWalletsTableLabels>;
|
|
2425
2444
|
className?: string;
|
|
2426
2445
|
}): JSX.Element;
|
|
2427
2446
|
|
|
2447
|
+
/** Translatable strings the table renders itself. Everything else — the band
|
|
2448
|
+
headings, addresses, tags and network names — comes in through `groups`. */
|
|
2449
|
+
export declare type UserWalletsTableLabels = {
|
|
2450
|
+
/** Address column header. */
|
|
2451
|
+
address: string;
|
|
2452
|
+
/** Tag column header. */
|
|
2453
|
+
tag: string;
|
|
2454
|
+
/** Network column header. */
|
|
2455
|
+
network: string;
|
|
2456
|
+
/** A group's address count, e.g. (3) => "3 wallets". */
|
|
2457
|
+
wallets: (count: number) => string;
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2428
2460
|
/** A vault and the currency/network rows it holds. */
|
|
2429
2461
|
declare type Vault = {
|
|
2430
2462
|
kind: VaultKind;
|