@chainberry/ui-components 1.0.49 → 1.0.51
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 +113 -0
- package/dist/index.mjs +21092 -20549
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -221,6 +221,42 @@ export declare function AssetValue({ value, code, icon, className, }: {
|
|
|
221
221
|
className?: string;
|
|
222
222
|
}): JSX.Element;
|
|
223
223
|
|
|
224
|
+
/** The languages the interface ships in — feeds the language picker. The flag is
|
|
225
|
+
* a plain emoji so it needs no icon set and renders in the picker's `leading`
|
|
226
|
+
* slot (shown both in the closed trigger and in the open list). */
|
|
227
|
+
export declare const AUTH_LANGUAGES: {
|
|
228
|
+
value: AuthLanguage;
|
|
229
|
+
label: string;
|
|
230
|
+
flag: string;
|
|
231
|
+
}[];
|
|
232
|
+
|
|
233
|
+
export declare function AuthFormShell({ title, description,
|
|
234
|
+
/** badge above the title — result screens put an `AuthStatusIcon` here */
|
|
235
|
+
icon, children,
|
|
236
|
+
/** closing line under the form — links back into the flow */
|
|
237
|
+
footer,
|
|
238
|
+
/** hides the logo for screens that lead with their own icon */
|
|
239
|
+
brand, className, }: {
|
|
240
|
+
title: ReactNode;
|
|
241
|
+
description?: ReactNode;
|
|
242
|
+
icon?: ReactNode;
|
|
243
|
+
children: ReactNode;
|
|
244
|
+
footer?: ReactNode;
|
|
245
|
+
brand?: boolean;
|
|
246
|
+
className?: string;
|
|
247
|
+
}): JSX.Element;
|
|
248
|
+
|
|
249
|
+
export declare type AuthLanguage = "en" | "ru";
|
|
250
|
+
|
|
251
|
+
export declare function authLanguageLabel(value: AuthLanguage): string;
|
|
252
|
+
|
|
253
|
+
export declare function AuthUtilityBar({ language, onLanguageChange, supportEmail, className, }: {
|
|
254
|
+
language?: AuthLanguage;
|
|
255
|
+
onLanguageChange?: (language: AuthLanguage) => void;
|
|
256
|
+
supportEmail?: string;
|
|
257
|
+
className?: string;
|
|
258
|
+
}): JSX.Element;
|
|
259
|
+
|
|
224
260
|
/** One run of a scheduled automation rule — bundles many on-chain transactions
|
|
225
261
|
into a single activity row (Amount shows the batch total + a tx count). */
|
|
226
262
|
declare type AutomationActivity = ActivityBase & {
|
|
@@ -502,6 +538,10 @@ declare type ConversionActivity = ActivityBase & {
|
|
|
502
538
|
initiator?: string;
|
|
503
539
|
};
|
|
504
540
|
|
|
541
|
+
export declare function ConversionAmounts({ record }: {
|
|
542
|
+
record: ConversionActivity;
|
|
543
|
+
}): JSX.Element;
|
|
544
|
+
|
|
505
545
|
/** One past conversion — the team audit trail. */
|
|
506
546
|
declare type ConversionRecord = {
|
|
507
547
|
id: string;
|
|
@@ -599,6 +639,17 @@ export declare namespace convertTypes {
|
|
|
599
639
|
}
|
|
600
640
|
}
|
|
601
641
|
|
|
642
|
+
declare const COPY: {
|
|
643
|
+
readonly reset: {
|
|
644
|
+
readonly label: "New password";
|
|
645
|
+
readonly submit: "Reset password";
|
|
646
|
+
};
|
|
647
|
+
readonly invite: {
|
|
648
|
+
readonly label: "Choose a password";
|
|
649
|
+
readonly submit: "Set password";
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
|
|
602
653
|
export declare function CopyableId({ value, head, tail, revealOnHover, asLink, mask, href, className, }: {
|
|
603
654
|
value: string;
|
|
604
655
|
head?: number;
|
|
@@ -1024,6 +1075,14 @@ export declare type FooterAction = {
|
|
|
1024
1075
|
className?: string;
|
|
1025
1076
|
};
|
|
1026
1077
|
|
|
1078
|
+
export declare function ForgotPasswordForm({ onSubmit, onBack, defaultEmail, className, }: {
|
|
1079
|
+
/** runs after the spinner with the address the link went to */
|
|
1080
|
+
onSubmit?: (email: string) => void;
|
|
1081
|
+
onBack?: () => void;
|
|
1082
|
+
defaultEmail?: string;
|
|
1083
|
+
className?: string;
|
|
1084
|
+
}): JSX.Element;
|
|
1085
|
+
|
|
1027
1086
|
/** Grouped crypto figure, 2–8 decimals, e.g. 6229.32 → "6,229.32". */
|
|
1028
1087
|
declare function formatCrypto(value: number): string;
|
|
1029
1088
|
|
|
@@ -1452,6 +1511,23 @@ declare const KIND_OPTIONS: {
|
|
|
1452
1511
|
|
|
1453
1512
|
export declare function Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1454
1513
|
|
|
1514
|
+
export declare function LoginForm({ onSubmit, onForgotPassword, defaultEmail,
|
|
1515
|
+
/** message shown in the banner regardless of validation (for stories/errors) */
|
|
1516
|
+
error, submitLabel, className, }: {
|
|
1517
|
+
/** runs after the spinner, once the form is considered valid */
|
|
1518
|
+
onSubmit?: (result: LoginSubmit) => void;
|
|
1519
|
+
onForgotPassword?: () => void;
|
|
1520
|
+
defaultEmail?: string;
|
|
1521
|
+
error?: ReactNode;
|
|
1522
|
+
submitLabel?: string;
|
|
1523
|
+
className?: string;
|
|
1524
|
+
}): JSX.Element;
|
|
1525
|
+
|
|
1526
|
+
declare type LoginSubmit = {
|
|
1527
|
+
email: string;
|
|
1528
|
+
password: string;
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1455
1531
|
export declare function Logo({ src, alt, href, collapsed, className: imgClassName, }: {
|
|
1456
1532
|
src?: string;
|
|
1457
1533
|
alt?: string;
|
|
@@ -1927,6 +2003,16 @@ export declare function ReportSummaryGroup({ summaries, className, }: {
|
|
|
1927
2003
|
|
|
1928
2004
|
declare type ReportView = 'volume' | 'transactions';
|
|
1929
2005
|
|
|
2006
|
+
export declare function ResetPasswordForm({ mode, onSubmit, onBack, className, }: {
|
|
2007
|
+
mode?: ResetPasswordMode;
|
|
2008
|
+
/** runs after the spinner, once the rules pass and both fields match */
|
|
2009
|
+
onSubmit?: (password: string) => void;
|
|
2010
|
+
onBack?: () => void;
|
|
2011
|
+
className?: string;
|
|
2012
|
+
}): JSX.Element;
|
|
2013
|
+
|
|
2014
|
+
declare type ResetPasswordMode = keyof typeof COPY;
|
|
2015
|
+
|
|
1930
2016
|
export declare const RISK_ICONS: Record<RiskLevel, string>;
|
|
1931
2017
|
|
|
1932
2018
|
declare const RISK_OPTIONS: {
|
|
@@ -2150,6 +2236,9 @@ declare type SummaryFigure = {
|
|
|
2150
2236
|
strong?: boolean;
|
|
2151
2237
|
};
|
|
2152
2238
|
|
|
2239
|
+
/** Where "Contact support" points. */
|
|
2240
|
+
export declare const SUPPORT_EMAIL = "support@chainberry.io";
|
|
2241
|
+
|
|
2153
2242
|
export declare function Table({ className, containerClassName, ...props }: React_2.ComponentProps<"table"> & {
|
|
2154
2243
|
containerClassName?: string;
|
|
2155
2244
|
}): React_2.JSX.Element;
|
|
@@ -2501,6 +2590,30 @@ declare const TREASURY_ACTIVITY: TreasuryActivityRecord[];
|
|
|
2501
2590
|
/** One row in the Treasury Activity feed — a discriminated union over `kind`. */
|
|
2502
2591
|
declare type TreasuryActivityRecord = DepositActivity | WithdrawalActivity | TransferActivity | ConversionActivity | AutomationActivity;
|
|
2503
2592
|
|
|
2593
|
+
export declare function TwoFactorForm({ onVerify, onResend, onUseRecoveryCode, onBack, length, className, }: {
|
|
2594
|
+
/** runs after the spinner, with the code that was entered */
|
|
2595
|
+
onVerify?: (code: string) => void;
|
|
2596
|
+
onResend?: () => void;
|
|
2597
|
+
onUseRecoveryCode?: () => void;
|
|
2598
|
+
/** back to the credentials step */
|
|
2599
|
+
onBack?: () => void;
|
|
2600
|
+
length?: number;
|
|
2601
|
+
className?: string;
|
|
2602
|
+
}): JSX.Element;
|
|
2603
|
+
|
|
2604
|
+
export declare function TwoFactorSetupForm({
|
|
2605
|
+
/** otpauth:// URI the QR encodes */
|
|
2606
|
+
secret,
|
|
2607
|
+
/** base64-encoded PNG data URL for the QR code */
|
|
2608
|
+
qrDataUrl, onSubmit, submitLabel, className, }: {
|
|
2609
|
+
secret?: string;
|
|
2610
|
+
qrDataUrl?: string;
|
|
2611
|
+
/** runs after the spinner, with the code that was entered */
|
|
2612
|
+
onSubmit?: (code: string) => void;
|
|
2613
|
+
submitLabel?: string;
|
|
2614
|
+
className?: string;
|
|
2615
|
+
}): JSX.Element;
|
|
2616
|
+
|
|
2504
2617
|
declare type TxFilter = {
|
|
2505
2618
|
types: TxType[];
|
|
2506
2619
|
statuses: TxStatus[];
|