@spicenet-io/spiceflow-ui 3.3.59 → 3.3.61-next.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.
@@ -1,2 +1,2 @@
1
1
  export { AccountDisplay } from "./AccountDisplay";
2
- export type { AccountDisplayProps, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./types";
2
+ export type { AccountDisplayProps, AccountNotice, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./types";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { SpiceAsset, CustomSection } from "../types";
2
+ import { SpiceAsset, CustomSection, AccountNotice } from "../types";
3
3
  import { VerifiedPendingDeposit } from "../../../hooks/usePendingDeposit";
4
4
  import type { ResolvedDarkPalette } from "../../../utils/theme";
5
5
  interface AccountPanelProps {
@@ -13,6 +13,7 @@ interface AccountPanelProps {
13
13
  spiceAssetsLoading: boolean;
14
14
  pendingDeposits: VerifiedPendingDeposit[];
15
15
  customSections: CustomSection[];
16
+ notice?: AccountNotice | null;
16
17
  onDepositClick?: () => void;
17
18
  onWithdrawClick?: () => void;
18
19
  onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
@@ -1,5 +1,6 @@
1
1
  import type { CustomStyles } from "../../types/theme";
2
2
  import { VerifiedPendingDeposit } from "../../hooks/usePendingDeposit";
3
+ import type React from "react";
3
4
  export interface CustomSectionItem {
4
5
  tokenSymbol: string;
5
6
  tokenLogoURI?: string;
@@ -29,6 +30,10 @@ export interface BreakdownLabel {
29
30
  sectionTitle: string;
30
31
  label: string;
31
32
  }
33
+ export interface AccountNotice {
34
+ message: React.ReactNode;
35
+ tone?: "success" | "warning" | "info";
36
+ }
32
37
  export interface AccountDisplayProps {
33
38
  appName?: string;
34
39
  status?: "active" | "inactive";
@@ -37,6 +42,7 @@ export interface AccountDisplayProps {
37
42
  extraAssets?: SpiceAsset[];
38
43
  tokenPrices?: Record<string, number>;
39
44
  breakdownLabels?: BreakdownLabel[];
45
+ notice?: AccountNotice | null;
40
46
  styles?: CustomStyles;
41
47
  dark?: boolean;
42
48
  onDepositSuccess?: () => void;