@chainberry/ui-components 1.0.18 → 1.0.20

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.d.ts CHANGED
@@ -74,10 +74,12 @@ declare type ActivityFilter = {
74
74
  statuses: TxStatus[];
75
75
  };
76
76
 
77
- export declare function ActivityFilterPanel({ open, onOpenChange, value, statuses, onApply, }: {
77
+ export declare function ActivityFilterPanel({ open, onOpenChange, value, kinds, statuses, onApply, }: {
78
78
  open: boolean;
79
79
  onOpenChange: (open: boolean) => void;
80
80
  value: ActivityFilter;
81
+ /** kinds present in the feed; omit to offer all of them */
82
+ kinds?: ActivityKind[];
81
83
  /** statuses present in the feed, in display order */
82
84
  statuses: TxStatus[];
83
85
  onApply: (filter: ActivityFilter) => void;
@@ -318,6 +320,7 @@ declare function balancesTotals(balances: CurrencyBalance[]): {
318
320
 
319
321
  export declare namespace balancesTypes {
320
322
  export {
323
+ WalletTier,
321
324
  Wallet,
322
325
  CurrencyBalance
323
326
  }
@@ -670,6 +673,9 @@ export declare type DataTableProps<T> = {
670
673
 
671
674
  declare type DateField = 'createdAt' | 'confirmedAt';
672
675
 
676
+ /** Default (English) tier column headers; override via the `tierLabels` prop. */
677
+ export declare const DEFAULT_TIER_LABELS: Record<WalletTier, string>;
678
+
673
679
  /** Past incoming deposits — the audit trail of received funds. Mixed senders,
674
680
  receiving wallets, chains and statuses (confirmed / processing / pending). */
675
681
  declare const DEPOSIT_HISTORY: DepositRecord[];
@@ -2300,8 +2306,13 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
2300
2306
  /** A named wallet within a currency, on a specific network. */
2301
2307
  declare type Wallet = {
2302
2308
  id: string;
2303
- /** "Main" | "Payout". */
2309
+ /** Display name, e.g. "Main" | "Payout" | "Low Risk". Human-facing and
2310
+ translatable — never branch on its contents; use `tier` instead. */
2304
2311
  name: string;
2312
+ /** Risk tier for the V2 four-tier view. Optional so V1 Main/Payout data
2313
+ stays valid; when absent WalletBalancesTableV2 falls back to inferring
2314
+ it from `name`, which only works for untranslated English names. */
2315
+ tier?: WalletTier;
2305
2316
  /** Optional secondary line under the name, e.g. "min $5,000". */
2306
2317
  note?: string;
2307
2318
  /** Network code for the icon (resolved via coinSrc), e.g. "ETH", "TRON". */
@@ -2331,9 +2342,11 @@ export declare function WalletBalancesTable({ balances, actionsVariant, classNam
2331
2342
  className?: string;
2332
2343
  }): JSX.Element;
2333
2344
 
2334
- export declare function WalletBalancesTableV2({ balances, actionsVariant, className, }: {
2345
+ export declare function WalletBalancesTableV2({ balances, actionsVariant, tierLabels, className, }: {
2335
2346
  balances: CurrencyBalance[];
2336
2347
  actionsVariant?: "icons" | "menu";
2348
+ /** Translated tier column headers; unset keys fall back to English. */
2349
+ tierLabels?: Partial<Record<WalletTier, string>>;
2337
2350
  className?: string;
2338
2351
  }): JSX.Element;
2339
2352
 
@@ -2383,6 +2396,11 @@ export declare function WalletRowActions({ variant,
2383
2396
  onAction?: (id: WalletActionId) => void;
2384
2397
  }): JSX.Element;
2385
2398
 
2399
+ /** The risk tier a wallet belongs to in the V2 (four-tier) treasury split.
2400
+ Machine-readable and locale-independent — `name` is display text and must
2401
+ not be parsed to derive this. */
2402
+ declare type WalletTier = "low" | "medium" | "high" | "payout";
2403
+
2386
2404
  /** Past withdrawals — the team audit trail. Mixed members, wallets and chains. */
2387
2405
  declare const WITHDRAWAL_HISTORY: WithdrawalRecord[];
2388
2406