@chainberry/ui-components 1.0.44 → 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 +35 -9
- package/dist/index.mjs +17201 -17155
- 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
|
|
|
@@ -2169,6 +2177,10 @@ export declare const tabsListVariants: (props?: ({
|
|
|
2169
2177
|
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof Tabs_2.Trigger>): React_2.JSX.Element;
|
|
2170
2178
|
|
|
2171
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,
|
|
2172
2184
|
/** right-aligned note beside the label */
|
|
2173
2185
|
hint,
|
|
2174
2186
|
/** helper / error line under the input */
|
|
@@ -2180,6 +2192,8 @@ export declare function TextField({ id, label, value, onChange, placeholder,
|
|
|
2180
2192
|
value: string;
|
|
2181
2193
|
onChange: (value: string) => void;
|
|
2182
2194
|
placeholder?: string;
|
|
2195
|
+
type?: React.ComponentProps<"input">["type"];
|
|
2196
|
+
trailing?: ReactNode;
|
|
2183
2197
|
hint?: ReactNode;
|
|
2184
2198
|
helper?: ReactNode;
|
|
2185
2199
|
disabled?: boolean;
|
|
@@ -2338,13 +2352,17 @@ export declare namespace transactionsData {
|
|
|
2338
2352
|
}
|
|
2339
2353
|
}
|
|
2340
2354
|
|
|
2341
|
-
export declare function TransactionsFilterPanel({ open, onOpenChange, value, assets, onApply, onSave, }: {
|
|
2355
|
+
export declare function TransactionsFilterPanel({ open, onOpenChange, value, assets, onApply, onSave, riskOptions, }: {
|
|
2342
2356
|
open: boolean;
|
|
2343
2357
|
onOpenChange: (open: boolean) => void;
|
|
2344
2358
|
value: TxFilter;
|
|
2345
2359
|
assets: AssetOption[];
|
|
2346
2360
|
onApply: (filter: TxFilter) => void;
|
|
2347
2361
|
onSave: (filter: TxFilter) => void;
|
|
2362
|
+
riskOptions?: {
|
|
2363
|
+
value: RiskLevel_2;
|
|
2364
|
+
label: string;
|
|
2365
|
+
}[];
|
|
2348
2366
|
/**
|
|
2349
2367
|
* @deprecated No longer invoked. Reset now clears the in-drawer draft only and
|
|
2350
2368
|
* never mutates applied filters or the table — commit changes via Apply
|
|
@@ -2525,7 +2543,7 @@ declare const USER_WALLET_GROUPS: UserWalletGroup[];
|
|
|
2525
2543
|
|
|
2526
2544
|
declare type UserActionId = 'edit' | 'delete';
|
|
2527
2545
|
|
|
2528
|
-
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, }: {
|
|
2529
2547
|
name?: string;
|
|
2530
2548
|
avatarSrc?: string;
|
|
2531
2549
|
/** current navigation preset — MVP ("primary") or Full ("full") */
|
|
@@ -2534,7 +2552,11 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
|
|
|
2534
2552
|
/** current app-header version — V1 (no search) or V2 (search) */
|
|
2535
2553
|
headerMode?: HeaderMode;
|
|
2536
2554
|
onHeaderModeChange?: (mode: HeaderMode) => void;
|
|
2555
|
+
/** "minimal" drops every prototype switch, leaving Account information · Logout */
|
|
2556
|
+
variant?: UserMenuVariant;
|
|
2537
2557
|
onAccount?: () => void;
|
|
2558
|
+
/** navigate to a route id — powers the auth-screen previews */
|
|
2559
|
+
onNavigate?: (id: string) => void;
|
|
2538
2560
|
onLogout?: () => void;
|
|
2539
2561
|
onTakeTour?: () => void;
|
|
2540
2562
|
onResetDemo?: () => void;
|
|
@@ -2548,6 +2570,10 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
|
|
|
2548
2570
|
fullWidth?: boolean;
|
|
2549
2571
|
}): JSX.Element;
|
|
2550
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
|
+
|
|
2551
2577
|
export declare function UserRowActions({ label, onAction, hideEdit, hideDelete, }: {
|
|
2552
2578
|
/** context for the accessible label, e.g. the user's name */
|
|
2553
2579
|
label?: string;
|
|
@@ -2867,13 +2893,13 @@ export declare namespace withdrawData {
|
|
|
2867
2893
|
}
|
|
2868
2894
|
}
|
|
2869
2895
|
|
|
2870
|
-
export declare function WithdrawHistoryTable({ data, className, onRowClick,
|
|
2896
|
+
export declare function WithdrawHistoryTable({ data, className, onRowClick, direction, emptyMessage, }: {
|
|
2871
2897
|
data: WithdrawalRecord[];
|
|
2872
2898
|
className?: string;
|
|
2873
2899
|
/** click a row to open its Activity details panel */
|
|
2874
2900
|
onRowClick?: (row: WithdrawalRecord) => void;
|
|
2875
|
-
/**
|
|
2876
|
-
|
|
2901
|
+
/** money-movement direction behind the amount's sign — "neutral" gives none */
|
|
2902
|
+
direction?: PaymentDirection;
|
|
2877
2903
|
emptyMessage?: string;
|
|
2878
2904
|
}): JSX.Element;
|
|
2879
2905
|
|