@chainberry/ui-components 1.0.32 → 1.0.34
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 +66 -0
- package/dist/index.mjs +12280 -11971
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -944,6 +944,11 @@ declare function filterMatches_2(r: TreasuryActivityRecord, f: ActivityFilter):
|
|
|
944
944
|
/** A short, human name summarizing the selection — used to prefill the preset name. */
|
|
945
945
|
declare function filterToName(f: TxFilter): string;
|
|
946
946
|
|
|
947
|
+
/** Filter the user groups by a query. A hit on the userId keeps the whole group;
|
|
948
|
+
otherwise only the address rows that match are kept, dropping empty groups.
|
|
949
|
+
Powers the page search box. */
|
|
950
|
+
export declare function filterUserGroups(groups: UserWalletGroup[], query: string): UserWalletGroup[];
|
|
951
|
+
|
|
947
952
|
export declare function findNavItem(id: string): NavItemConfig | undefined;
|
|
948
953
|
|
|
949
954
|
export declare type FooterAction = {
|
|
@@ -1111,6 +1116,11 @@ export declare const ICONS: {
|
|
|
1111
1116
|
}][] | readonly (readonly [string, {
|
|
1112
1117
|
readonly [key: string]: string | number;
|
|
1113
1118
|
}])[];
|
|
1119
|
+
company: [string, {
|
|
1120
|
+
[key: string]: string | number;
|
|
1121
|
+
}][] | readonly (readonly [string, {
|
|
1122
|
+
readonly [key: string]: string | number;
|
|
1123
|
+
}])[];
|
|
1114
1124
|
users: [string, {
|
|
1115
1125
|
[key: string]: string | number;
|
|
1116
1126
|
}][] | readonly (readonly [string, {
|
|
@@ -1136,6 +1146,11 @@ export declare const ICONS: {
|
|
|
1136
1146
|
}][] | readonly (readonly [string, {
|
|
1137
1147
|
readonly [key: string]: string | number;
|
|
1138
1148
|
}])[];
|
|
1149
|
+
coins02: [string, {
|
|
1150
|
+
[key: string]: string | number;
|
|
1151
|
+
}][] | readonly (readonly [string, {
|
|
1152
|
+
readonly [key: string]: string | number;
|
|
1153
|
+
}])[];
|
|
1139
1154
|
safe: [string, {
|
|
1140
1155
|
[key: string]: string | number;
|
|
1141
1156
|
}][] | readonly (readonly [string, {
|
|
@@ -1254,6 +1269,11 @@ declare const icons: {
|
|
|
1254
1269
|
}][] | readonly (readonly [string, {
|
|
1255
1270
|
readonly [key: string]: string | number;
|
|
1256
1271
|
}])[];
|
|
1272
|
+
company: [string, {
|
|
1273
|
+
[key: string]: string | number;
|
|
1274
|
+
}][] | readonly (readonly [string, {
|
|
1275
|
+
readonly [key: string]: string | number;
|
|
1276
|
+
}])[];
|
|
1257
1277
|
users: [string, {
|
|
1258
1278
|
[key: string]: string | number;
|
|
1259
1279
|
}][] | readonly (readonly [string, {
|
|
@@ -1279,6 +1299,11 @@ declare const icons: {
|
|
|
1279
1299
|
}][] | readonly (readonly [string, {
|
|
1280
1300
|
readonly [key: string]: string | number;
|
|
1281
1301
|
}])[];
|
|
1302
|
+
coins02: [string, {
|
|
1303
|
+
[key: string]: string | number;
|
|
1304
|
+
}][] | readonly (readonly [string, {
|
|
1305
|
+
readonly [key: string]: string | number;
|
|
1306
|
+
}])[];
|
|
1282
1307
|
safe: [string, {
|
|
1283
1308
|
[key: string]: string | number;
|
|
1284
1309
|
}][] | readonly (readonly [string, {
|
|
@@ -2336,6 +2361,9 @@ export declare function UiBadge({ className, variant, asChild, ...props }: React
|
|
|
2336
2361
|
|
|
2337
2362
|
export declare function useHeaderExtension(): HeaderStickyValue;
|
|
2338
2363
|
|
|
2364
|
+
/** Deposit addresses grouped by end user. */
|
|
2365
|
+
declare const USER_WALLET_GROUPS: UserWalletGroup[];
|
|
2366
|
+
|
|
2339
2367
|
export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, headerMode, onHeaderModeChange, onAccount, onLogout, onTakeTour, onResetDemo, collapsed, side, align, fullWidth, }: {
|
|
2340
2368
|
name?: string;
|
|
2341
2369
|
avatarSrc?: string;
|
|
@@ -2359,6 +2387,44 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
|
|
|
2359
2387
|
fullWidth?: boolean;
|
|
2360
2388
|
}): JSX.Element;
|
|
2361
2389
|
|
|
2390
|
+
/** An end user and the deposit addresses they hold across networks. */
|
|
2391
|
+
export declare type UserWalletGroup = {
|
|
2392
|
+
/** userId — group key + React key. */
|
|
2393
|
+
id: string;
|
|
2394
|
+
userId: string;
|
|
2395
|
+
rows: UserWalletRow[];
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
/** One deposit address held by a user — a single table row. */
|
|
2399
|
+
export declare type UserWalletRow = {
|
|
2400
|
+
id: string;
|
|
2401
|
+
/** On-chain deposit address (rendered as a link). */
|
|
2402
|
+
address: string;
|
|
2403
|
+
/** Destination tag / memo — only networks that share one address across users
|
|
2404
|
+
(e.g. TON) carry it; omitted elsewhere. */
|
|
2405
|
+
tag?: string;
|
|
2406
|
+
/** Network code for the badge logo (resolved via coinSrc), e.g. "TRX". */
|
|
2407
|
+
network: string;
|
|
2408
|
+
/** Network label shown in the row, e.g. "TRON". */
|
|
2409
|
+
networkName: string;
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
export declare namespace userWalletsData {
|
|
2413
|
+
export {
|
|
2414
|
+
filterUserGroups,
|
|
2415
|
+
UserWalletRow,
|
|
2416
|
+
UserWalletGroup,
|
|
2417
|
+
USER_WALLET_GROUPS
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
export declare function UserWalletsPage(): JSX.Element;
|
|
2422
|
+
|
|
2423
|
+
export declare function UserWalletsTable({ groups, className, }: {
|
|
2424
|
+
groups: UserWalletGroup[];
|
|
2425
|
+
className?: string;
|
|
2426
|
+
}): JSX.Element;
|
|
2427
|
+
|
|
2362
2428
|
/** A vault and the currency/network rows it holds. */
|
|
2363
2429
|
declare type Vault = {
|
|
2364
2430
|
kind: VaultKind;
|