@chainberry/ui-components 1.0.43 → 1.0.45
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 +46 -9
- package/dist/index.mjs +19689 -19633
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -175,7 +175,8 @@ export declare function AppHeaderV2({ user, navMode, onNavModeChange, headerMode
|
|
|
175
175
|
/** Extra px the frosted background grows downward, so a page's sticky
|
|
176
176
|
sub-header shares this ONE blurred surface (no second backdrop-filter). */
|
|
177
177
|
extension?: number;
|
|
178
|
-
/** navigate to
|
|
178
|
+
/** navigate to a route — the search "Go to" results and the account menu's
|
|
179
|
+
auth-screen previews both use this */
|
|
179
180
|
onNavigate?: (id: string) => void;
|
|
180
181
|
onAccount?: () => void;
|
|
181
182
|
onLogout?: () => void;
|
|
@@ -594,11 +595,13 @@ export declare namespace convertTypes {
|
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
597
|
|
|
597
|
-
export declare function CopyableId({ value, head, tail, revealOnHover, asLink, href, className, }: {
|
|
598
|
+
export declare function CopyableId({ value, head, tail, revealOnHover, asLink, mask, href, className, }: {
|
|
598
599
|
value: string;
|
|
599
600
|
head?: number;
|
|
600
601
|
tail?: number;
|
|
601
602
|
revealOnHover?: boolean;
|
|
603
|
+
/** show the hidden middle as bullets — for secrets, not ids */
|
|
604
|
+
mask?: boolean;
|
|
602
605
|
/** render the value as a TextLink instead of plain monospace text */
|
|
603
606
|
asLink?: boolean;
|
|
604
607
|
href?: string;
|
|
@@ -1445,11 +1448,13 @@ declare const KIND_OPTIONS: {
|
|
|
1445
1448
|
|
|
1446
1449
|
export declare function Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1447
1450
|
|
|
1448
|
-
export declare function Logo({ src, alt, href, collapsed, }: {
|
|
1451
|
+
export declare function Logo({ src, alt, href, collapsed, className: imgClassName, }: {
|
|
1449
1452
|
src?: string;
|
|
1450
1453
|
alt?: string;
|
|
1451
1454
|
href?: string;
|
|
1452
1455
|
collapsed?: boolean;
|
|
1456
|
+
/** classes merged onto the image — used to size the mark up (e.g. auth screens) */
|
|
1457
|
+
className?: string;
|
|
1453
1458
|
}): JSX.Element;
|
|
1454
1459
|
|
|
1455
1460
|
export declare function MonthlyUsageTable({ rows }: {
|
|
@@ -1797,8 +1802,11 @@ declare const PRESETS: PresetDef_2[];
|
|
|
1797
1802
|
/** PRIMARY_NAV — the trimmed MVP navigation. */
|
|
1798
1803
|
export declare const PRIMARY_NAV: NavGroupConfig[];
|
|
1799
1804
|
|
|
1800
|
-
export declare function QrCode({ value,
|
|
1805
|
+
export declare function QrCode({ value,
|
|
1806
|
+
/** accessible name — say what the code is for (deposit address, 2FA setup…) */
|
|
1807
|
+
label, className, }: {
|
|
1801
1808
|
value: string;
|
|
1809
|
+
label?: string;
|
|
1802
1810
|
className?: string;
|
|
1803
1811
|
}): JSX.Element;
|
|
1804
1812
|
|
|
@@ -1915,6 +1923,8 @@ export declare function ReportSummaryGroup({ summaries, className, }: {
|
|
|
1915
1923
|
|
|
1916
1924
|
declare type ReportView = 'volume' | 'transactions';
|
|
1917
1925
|
|
|
1926
|
+
export declare const RISK_ICONS: Record<RiskLevel, string>;
|
|
1927
|
+
|
|
1918
1928
|
declare const RISK_OPTIONS: {
|
|
1919
1929
|
value: RiskLevel_2;
|
|
1920
1930
|
label: string;
|
|
@@ -1945,10 +1955,16 @@ declare interface RiskAssessment_2 {
|
|
|
1945
1955
|
/** Outcome of the KYT/risk engine — drives the RiskAssessment status chip. */
|
|
1946
1956
|
declare type RiskDecision = 'auto-approved' | 'approved' | 'manual-review' | 'flagged' | 'rejected' | 'pending';
|
|
1947
1957
|
|
|
1958
|
+
export declare const riskHighSrc: string;
|
|
1959
|
+
|
|
1948
1960
|
export declare type RiskLevel = "low" | "medium" | "high";
|
|
1949
1961
|
|
|
1950
1962
|
declare type RiskLevel_2 = 'low' | 'medium' | 'high';
|
|
1951
1963
|
|
|
1964
|
+
export declare const riskLowSrc: string;
|
|
1965
|
+
|
|
1966
|
+
export declare const riskMediumSrc: string;
|
|
1967
|
+
|
|
1952
1968
|
export declare function RiskSignal({ level, score, colored, className, }: {
|
|
1953
1969
|
level: RiskLevel;
|
|
1954
1970
|
score?: number;
|
|
@@ -1957,6 +1973,9 @@ export declare function RiskSignal({ level, score, colored, className, }: {
|
|
|
1957
1973
|
className?: string;
|
|
1958
1974
|
}): JSX.Element;
|
|
1959
1975
|
|
|
1976
|
+
/** Asset src for a risk level; `undefined` for anything off the scale. */
|
|
1977
|
+
export declare function riskSrc(level: string): string | undefined;
|
|
1978
|
+
|
|
1960
1979
|
export declare const SAMPLE_NOTIFICATIONS: NotificationItemData[];
|
|
1961
1980
|
|
|
1962
1981
|
/** Saved / named destination addresses (allow-list). Scoped per coin+network. */
|
|
@@ -2158,6 +2177,10 @@ export declare const tabsListVariants: (props?: ({
|
|
|
2158
2177
|
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof Tabs_2.Trigger>): React_2.JSX.Element;
|
|
2159
2178
|
|
|
2160
2179
|
export declare function TextField({ id, label, value, onChange, placeholder,
|
|
2180
|
+
/** input type — "text" unless a field needs email/password semantics */
|
|
2181
|
+
type,
|
|
2182
|
+
/** control rendered inside the input, at its right edge (e.g. an eye toggle) */
|
|
2183
|
+
trailing,
|
|
2161
2184
|
/** right-aligned note beside the label */
|
|
2162
2185
|
hint,
|
|
2163
2186
|
/** helper / error line under the input */
|
|
@@ -2169,6 +2192,8 @@ export declare function TextField({ id, label, value, onChange, placeholder,
|
|
|
2169
2192
|
value: string;
|
|
2170
2193
|
onChange: (value: string) => void;
|
|
2171
2194
|
placeholder?: string;
|
|
2195
|
+
type?: React.ComponentProps<"input">["type"];
|
|
2196
|
+
trailing?: ReactNode;
|
|
2172
2197
|
hint?: ReactNode;
|
|
2173
2198
|
helper?: ReactNode;
|
|
2174
2199
|
disabled?: boolean;
|
|
@@ -2327,13 +2352,17 @@ export declare namespace transactionsData {
|
|
|
2327
2352
|
}
|
|
2328
2353
|
}
|
|
2329
2354
|
|
|
2330
|
-
export declare function TransactionsFilterPanel({ open, onOpenChange, value, assets, onApply, onSave, }: {
|
|
2355
|
+
export declare function TransactionsFilterPanel({ open, onOpenChange, value, assets, onApply, onSave, riskOptions, }: {
|
|
2331
2356
|
open: boolean;
|
|
2332
2357
|
onOpenChange: (open: boolean) => void;
|
|
2333
2358
|
value: TxFilter;
|
|
2334
2359
|
assets: AssetOption[];
|
|
2335
2360
|
onApply: (filter: TxFilter) => void;
|
|
2336
2361
|
onSave: (filter: TxFilter) => void;
|
|
2362
|
+
riskOptions?: {
|
|
2363
|
+
value: RiskLevel_2;
|
|
2364
|
+
label: string;
|
|
2365
|
+
}[];
|
|
2337
2366
|
/**
|
|
2338
2367
|
* @deprecated No longer invoked. Reset now clears the in-drawer draft only and
|
|
2339
2368
|
* never mutates applied filters or the table — commit changes via Apply
|
|
@@ -2514,7 +2543,7 @@ declare const USER_WALLET_GROUPS: UserWalletGroup[];
|
|
|
2514
2543
|
|
|
2515
2544
|
declare type UserActionId = 'edit' | 'delete';
|
|
2516
2545
|
|
|
2517
|
-
export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, headerMode, onHeaderModeChange, onAccount, onLogout, onTakeTour, onResetDemo, collapsed, side, align, fullWidth, }: {
|
|
2546
|
+
export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, headerMode, onHeaderModeChange, variant, onAccount, onNavigate, onLogout, onTakeTour, onResetDemo, collapsed, side, align, fullWidth, }: {
|
|
2518
2547
|
name?: string;
|
|
2519
2548
|
avatarSrc?: string;
|
|
2520
2549
|
/** current navigation preset — MVP ("primary") or Full ("full") */
|
|
@@ -2523,7 +2552,11 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
|
|
|
2523
2552
|
/** current app-header version — V1 (no search) or V2 (search) */
|
|
2524
2553
|
headerMode?: HeaderMode;
|
|
2525
2554
|
onHeaderModeChange?: (mode: HeaderMode) => void;
|
|
2555
|
+
/** "minimal" drops every prototype switch, leaving Account information · Logout */
|
|
2556
|
+
variant?: UserMenuVariant;
|
|
2526
2557
|
onAccount?: () => void;
|
|
2558
|
+
/** navigate to a route id — powers the auth-screen previews */
|
|
2559
|
+
onNavigate?: (id: string) => void;
|
|
2527
2560
|
onLogout?: () => void;
|
|
2528
2561
|
onTakeTour?: () => void;
|
|
2529
2562
|
onResetDemo?: () => void;
|
|
@@ -2537,6 +2570,10 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
|
|
|
2537
2570
|
fullWidth?: boolean;
|
|
2538
2571
|
}): JSX.Element;
|
|
2539
2572
|
|
|
2573
|
+
/** Which items the menu carries — the full prototype menu with all the demo
|
|
2574
|
+
switches, or the short production-shaped list (Account information · Logout). */
|
|
2575
|
+
declare type UserMenuVariant = "full" | "minimal";
|
|
2576
|
+
|
|
2540
2577
|
export declare function UserRowActions({ label, onAction, hideEdit, hideDelete, }: {
|
|
2541
2578
|
/** context for the accessible label, e.g. the user's name */
|
|
2542
2579
|
label?: string;
|
|
@@ -2856,13 +2893,13 @@ export declare namespace withdrawData {
|
|
|
2856
2893
|
}
|
|
2857
2894
|
}
|
|
2858
2895
|
|
|
2859
|
-
export declare function WithdrawHistoryTable({ data, className, onRowClick,
|
|
2896
|
+
export declare function WithdrawHistoryTable({ data, className, onRowClick, direction, emptyMessage, }: {
|
|
2860
2897
|
data: WithdrawalRecord[];
|
|
2861
2898
|
className?: string;
|
|
2862
2899
|
/** click a row to open its Activity details panel */
|
|
2863
2900
|
onRowClick?: (row: WithdrawalRecord) => void;
|
|
2864
|
-
/**
|
|
2865
|
-
|
|
2901
|
+
/** money-movement direction behind the amount's sign — "neutral" gives none */
|
|
2902
|
+
direction?: PaymentDirection;
|
|
2866
2903
|
emptyMessage?: string;
|
|
2867
2904
|
}): JSX.Element;
|
|
2868
2905
|
|