@deframe-sdk/components 0.1.49 → 0.1.50

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.mts CHANGED
@@ -675,6 +675,8 @@ interface KYCPageHeaderProps {
675
675
  onBack?: () => void;
676
676
  onClose?: () => void;
677
677
  className?: string;
678
+ backLabel: string;
679
+ closeLabel: string;
678
680
  }
679
681
  interface KYCPageSectionProps {
680
682
  title: React__default.ReactNode;
@@ -720,6 +722,8 @@ interface KYCChecklistItemData {
720
722
  interface KYCIntroPageProps {
721
723
  screenId?: string;
722
724
  onClose?: () => void;
725
+ backLabel: string;
726
+ closeLabel: string;
723
727
  title?: React__default.ReactNode;
724
728
  description?: React__default.ReactNode;
725
729
  checklistItems?: KYCChecklistItemData[];
@@ -733,6 +737,8 @@ interface KYCFormPageProps {
733
737
  screenId?: string;
734
738
  onBack?: () => void;
735
739
  onClose?: () => void;
740
+ backLabel: string;
741
+ closeLabel: string;
736
742
  step?: number;
737
743
  totalSteps?: number;
738
744
  title: React__default.ReactNode;
@@ -747,6 +753,9 @@ interface KYCFormPageProps {
747
753
  interface KYCLoadingPageProps {
748
754
  screenId?: string;
749
755
  onClose?: () => void;
756
+ backLabel: string;
757
+ closeLabel: string;
758
+ loadingLabel: string;
750
759
  title: React__default.ReactNode;
751
760
  description?: React__default.ReactNode;
752
761
  note?: React__default.ReactNode;
@@ -761,6 +770,8 @@ interface KYCReviewPageProps {
761
770
  onClose?: () => void;
762
771
  step?: number;
763
772
  totalSteps?: number;
773
+ backLabel: string;
774
+ closeLabel: string;
764
775
  title: React__default.ReactNode;
765
776
  description?: React__default.ReactNode;
766
777
  cards: KYCReviewCard[];
@@ -775,6 +786,8 @@ interface KYCReviewPageSkeletonProps {
775
786
  step?: number;
776
787
  totalSteps?: number;
777
788
  containerMode?: 'fullscreen' | 'embedded';
789
+ backLabel: string;
790
+ closeLabel: string;
778
791
  }
779
792
  interface KYCStatusItem {
780
793
  icon?: React__default.ReactNode;
@@ -789,6 +802,8 @@ interface KYCStatusItemCardProps extends KYCStatusItem {
789
802
  interface KYCStatusPageProps {
790
803
  screenId?: string;
791
804
  onClose?: () => void;
805
+ backLabel: string;
806
+ closeLabel: string;
792
807
  status?: KYCPanelStatus;
793
808
  panelStatus?: KYCPanelStatus;
794
809
  panelTitle?: React__default.ReactNode;
@@ -811,6 +826,8 @@ interface BaseFormScreenProps {
811
826
  banners?: KYCMessageBannerProps[];
812
827
  actions?: KYCAction[];
813
828
  containerMode?: KYCPageShellProps['containerMode'];
829
+ backLabel: string;
830
+ closeLabel: string;
814
831
  }
815
832
  interface KYCBasicDataPageProps extends BaseFormScreenProps {
816
833
  title?: React__default.ReactNode;
@@ -890,7 +907,7 @@ declare function KYCFieldMessage({ tone, children, className, testId, }: KYCFiel
890
907
 
891
908
  declare function KYCMessageBanner({ variant, children, className, testId, }: KYCMessageBannerProps): react_jsx_runtime.JSX.Element;
892
909
 
893
- declare function KYCPageHeader({ step, totalSteps, onBack, onClose, className, }: KYCPageHeaderProps): react_jsx_runtime.JSX.Element;
910
+ declare function KYCPageHeader({ step, totalSteps, onBack, onClose, className, backLabel, closeLabel, }: KYCPageHeaderProps): react_jsx_runtime.JSX.Element;
894
911
 
895
912
  declare function KYCPageSection({ title, description, className }: KYCPageSectionProps): react_jsx_runtime.JSX.Element;
896
913
 
@@ -898,7 +915,7 @@ declare function KYCPageShell({ children, className, screenId, containerMode }:
898
915
 
899
916
  declare function KYCStepIndicator({ total, current, className }: KYCStepIndicatorProps): react_jsx_runtime.JSX.Element;
900
917
 
901
- declare function KYCAddressPage({ screenId, onBack, onClose, step, totalSteps, title, description, cepField, streetField, cityField, stateField, complementField, countryField, numberField, isLoading, loadingContent, banners, actions, containerMode, onNext, }: KYCAddressPageProps): react_jsx_runtime.JSX.Element;
918
+ declare function KYCAddressPage({ screenId, onBack, onClose, step, totalSteps, title, description, cepField, streetField, cityField, stateField, complementField, countryField, numberField, isLoading, loadingContent, banners, actions, containerMode, onNext, backLabel, closeLabel, }: KYCAddressPageProps): react_jsx_runtime.JSX.Element;
902
919
 
903
920
  declare function KYCBasicDataPage({ screenId, step, totalSteps, title, description, cpfField, phoneField, ...props }: KYCBasicDataPageProps): react_jsx_runtime.JSX.Element;
904
921
 
@@ -906,18 +923,18 @@ declare function KYCDocumentPage({ screenId, step, totalSteps, title, descriptio
906
923
 
907
924
  declare function KYCEditPage({ screenId, title, fullNameField, dateOfBirthField, cpfField, phoneField, emailField, ...props }: KYCEditPageProps): react_jsx_runtime.JSX.Element;
908
925
 
909
- declare function KYCFormPage({ screenId, onBack, onClose, step, totalSteps, title, description, children, banners, footer, actions, className, containerMode, }: KYCFormPageProps): react_jsx_runtime.JSX.Element;
926
+ declare function KYCFormPage({ screenId, onBack, onClose, step, totalSteps, title, description, children, banners, footer, actions, className, containerMode, backLabel, closeLabel, }: KYCFormPageProps): react_jsx_runtime.JSX.Element;
910
927
 
911
- declare function KYCIntroPage({ screenId, onClose, title, description, checklistItems, banners, legalNotice, primaryAction, className, containerMode, }: KYCIntroPageProps): react_jsx_runtime.JSX.Element;
928
+ declare function KYCIntroPage({ screenId, onClose, title, description, checklistItems, banners, legalNotice, primaryAction, className, containerMode, backLabel, closeLabel, }: KYCIntroPageProps): react_jsx_runtime.JSX.Element;
912
929
 
913
- declare function KYCLoadingPage({ screenId, onClose, title, description, note, className, containerMode, }: KYCLoadingPageProps): react_jsx_runtime.JSX.Element;
930
+ declare function KYCLoadingPage({ screenId, onClose, title, description, note, className, containerMode, backLabel, closeLabel, loadingLabel, }: KYCLoadingPageProps): react_jsx_runtime.JSX.Element;
914
931
 
915
- declare function KYCReviewPage({ screenId, onClose, step, totalSteps, title, description, cards, banners, actions, className, containerMode, }: KYCReviewPageProps): react_jsx_runtime.JSX.Element;
932
+ declare function KYCReviewPage({ screenId, onClose, step, totalSteps, title, description, cards, banners, actions, className, containerMode, backLabel, closeLabel, }: KYCReviewPageProps): react_jsx_runtime.JSX.Element;
916
933
 
917
- declare function KYCReviewPageSkeleton({ screenId, onClose, step, totalSteps, containerMode, }: KYCReviewPageSkeletonProps): react_jsx_runtime.JSX.Element;
934
+ declare function KYCReviewPageSkeleton({ screenId, onClose, step, totalSteps, containerMode, backLabel, closeLabel, }: KYCReviewPageSkeletonProps): react_jsx_runtime.JSX.Element;
918
935
 
919
936
  declare function KYCStatusItemCard({ icon, title, description, tone, testId, className, }: KYCStatusItemCardProps): react_jsx_runtime.JSX.Element;
920
- declare function KYCStatusPage({ screenId, onClose, status, panelStatus, panelTitle, panelDescription, panelAction, items, cards, banners, actions, footer, className, containerMode, }: KYCStatusPageProps): react_jsx_runtime.JSX.Element;
937
+ declare function KYCStatusPage({ screenId, onClose, status, panelStatus, panelTitle, panelDescription, panelAction, items, cards, banners, actions, footer, className, containerMode, backLabel, closeLabel, }: KYCStatusPageProps): react_jsx_runtime.JSX.Element;
921
938
 
922
939
  interface HistoryDetailsLabels {
923
940
  currencyLabel: string;
@@ -3062,6 +3079,21 @@ interface OnchainWithdrawProcessingSimpleViewProps extends OnchainWithdrawProces
3062
3079
  }
3063
3080
  declare const OnchainWithdrawProcessingSimpleView: React$1.FC<OnchainWithdrawProcessingSimpleViewProps>;
3064
3081
 
3082
+ interface OnchainWithdrawSignatureWarningLabels {
3083
+ closeAriaLabel: string;
3084
+ title: string;
3085
+ subtitle: string;
3086
+ sendingLabel: string;
3087
+ destinationLabel: string;
3088
+ detailsToggleLabel: string;
3089
+ detailsAriaLabel: string;
3090
+ withdrawAmountLabel: string;
3091
+ blockchainCostLabel: string;
3092
+ receiveLabel: string;
3093
+ cancelLabel: string;
3094
+ retryLabel: string;
3095
+ }
3096
+
3065
3097
  interface OnchainWithdrawSignatureWarningViewProps {
3066
3098
  tokenSymbol: string;
3067
3099
  tokenLogoURI?: string | null;
@@ -3073,13 +3105,14 @@ interface OnchainWithdrawSignatureWarningViewProps {
3073
3105
  onCancel: () => void;
3074
3106
  onTryAgain: () => void;
3075
3107
  className?: string;
3108
+ labels: OnchainWithdrawSignatureWarningLabels;
3076
3109
  }
3077
- declare function OnchainWithdrawSignatureWarningView({ tokenSymbol, tokenLogoURI, formattedAmount, chainName, chainIconUrl, destinationAddress, blockchainCost, onCancel, onTryAgain, className, }: OnchainWithdrawSignatureWarningViewProps): react_jsx_runtime.JSX.Element;
3110
+ declare function OnchainWithdrawSignatureWarningView({ tokenSymbol, tokenLogoURI, formattedAmount, chainName, chainIconUrl, destinationAddress, blockchainCost, onCancel, onTryAgain, className, labels, }: OnchainWithdrawSignatureWarningViewProps): react_jsx_runtime.JSX.Element;
3078
3111
 
3079
3112
  declare const OnchainWithdrawSignatureWarningSimpleView: React$1.FC<OnchainWithdrawSignatureWarningViewProps>;
3080
3113
 
3081
3114
  interface KycLoadingViewProps {
3082
- message?: string;
3115
+ message: string;
3083
3116
  }
3084
3117
  declare function KycLoadingView({ message }: KycLoadingViewProps): react_jsx_runtime.JSX.Element;
3085
3118
 
@@ -3171,6 +3204,16 @@ interface OnrampPixcodeViewProps {
3171
3204
  }
3172
3205
  declare function OnrampPixcodeView({ pixCode, summaryTitle, summaryItems, isLoadingQuote, remainingLabel, isExpired, copied, isRegenerating, onCopy, onRegenerate, qrCodeElement, className, }: OnrampPixcodeViewProps): react_jsx_runtime.JSX.Element;
3173
3206
 
3207
+ interface OnrampSuccessLabels {
3208
+ title: string;
3209
+ descriptionTemplate: string;
3210
+ depositLabel: string;
3211
+ newDepositAriaLabel: string;
3212
+ newDepositLabel: string;
3213
+ goToDashboardAriaLabel: string;
3214
+ goToDashboardLabel: string;
3215
+ }
3216
+
3174
3217
  interface OnrampSuccessViewProps {
3175
3218
  amount?: string;
3176
3219
  summaryTitle?: string;
@@ -3183,11 +3226,31 @@ interface OnrampSuccessViewProps {
3183
3226
  onNewDeposit?: () => void;
3184
3227
  onGoToDashboard?: () => void;
3185
3228
  className?: string;
3229
+ labels: OnrampSuccessLabels;
3186
3230
  }
3187
- declare function OnrampSuccessView({ amount, summaryTitle, summaryItems, onNewDeposit, onGoToDashboard, className, }: OnrampSuccessViewProps): react_jsx_runtime.JSX.Element;
3231
+ declare function OnrampSuccessView({ amount, summaryTitle, summaryItems, onNewDeposit, onGoToDashboard, className, labels, }: OnrampSuccessViewProps): react_jsx_runtime.JSX.Element;
3188
3232
 
3189
3233
  declare const OnrampSuccessSimpleView: React$1.FC<OnrampSuccessViewProps>;
3190
3234
 
3235
+ interface OfframpInputFormLabels {
3236
+ backAriaLabel: string;
3237
+ backLabel: string;
3238
+ title: string;
3239
+ subtitle: string;
3240
+ balanceLabel: string;
3241
+ amountQuestion: string;
3242
+ amountAriaLabel: string;
3243
+ maxAriaLabel: string;
3244
+ maxLabel: string;
3245
+ activeWithdrawalWarning: string;
3246
+ pixKeyQuestion: string;
3247
+ pixKeyPlaceholder: string;
3248
+ pixKeyAriaLabel: string;
3249
+ pixKeyInfo: string;
3250
+ signatureInfo: string;
3251
+ submitAriaLabel: string;
3252
+ }
3253
+
3191
3254
  interface OfframpInputFormViewProps {
3192
3255
  brlaBalance: string;
3193
3256
  amount: string;
@@ -3220,8 +3283,9 @@ interface OfframpInputFormViewProps {
3220
3283
  /** URL for the flag icon displayed in the amount input. Defaults to '/brazil-flag-rounded.png'. */
3221
3284
  flagIconUrl?: string;
3222
3285
  className?: string;
3286
+ labels: OfframpInputFormLabels;
3223
3287
  }
3224
- declare function OfframpInputFormView({ brlaBalance, amount, onAmountChange, pixKey, onPixKeyChange, onMaxClick, showMaxButton, summaryTitle, summaryItems, isLoadingQuote, amountWarningMessage, hasActiveWithdrawal, completedBanner, error, offrampError, submitLabel, submitDisabled, onSubmit, onBack, backIcon, tokenIconUrl, flagIconUrl, className, }: OfframpInputFormViewProps): react_jsx_runtime.JSX.Element;
3288
+ declare function OfframpInputFormView({ brlaBalance, amount, onAmountChange, pixKey, onPixKeyChange, onMaxClick, showMaxButton, summaryTitle, summaryItems, isLoadingQuote, amountWarningMessage, hasActiveWithdrawal, completedBanner, error, offrampError, submitLabel, submitDisabled, onSubmit, onBack, backIcon, tokenIconUrl, flagIconUrl, className, labels, }: OfframpInputFormViewProps): react_jsx_runtime.JSX.Element;
3225
3289
 
3226
3290
  interface OfframpInputFormSimpleViewProps extends OfframpInputFormViewProps {
3227
3291
  activeTab?: 'crypto' | 'pix';
@@ -3233,6 +3297,18 @@ interface OfframpInputFormSimpleViewProps extends OfframpInputFormViewProps {
3233
3297
  }
3234
3298
  declare const OfframpInputFormSimpleView: React__default.FC<OfframpInputFormSimpleViewProps>;
3235
3299
 
3300
+ interface OfframpProcessingLabels {
3301
+ closeAriaLabel: string;
3302
+ title: string;
3303
+ subtitle: string;
3304
+ amountLabel: string;
3305
+ prepareStepLabel: string;
3306
+ signatureStepLabel: string;
3307
+ pixTransferStepLabel: string;
3308
+ waitingButtonAriaLabel: string;
3309
+ waitingButtonLabel: string;
3310
+ }
3311
+
3236
3312
  interface OfframpProcessingViewProps {
3237
3313
  step?: 'creating_ticket' | 'transferring' | 'waiting_pix';
3238
3314
  amount?: string;
@@ -3250,11 +3326,29 @@ interface OfframpProcessingViewProps {
3250
3326
  /** URL for the token icon displayed in the summary row. Defaults to '/brladigital_32.webp'. */
3251
3327
  tokenIconUrl?: string;
3252
3328
  className?: string;
3329
+ labels: OfframpProcessingLabels;
3253
3330
  }
3254
- declare function OfframpProcessingView({ step, amount, summaryTitle, summaryItems, transferTxHash, onClose, closeIcon, tokenIconUrl, className, }: OfframpProcessingViewProps): react_jsx_runtime.JSX.Element;
3331
+ declare function OfframpProcessingView({ step, amount, summaryTitle, summaryItems, transferTxHash, onClose, closeIcon, tokenIconUrl, className, labels, }: OfframpProcessingViewProps): react_jsx_runtime.JSX.Element;
3255
3332
 
3256
3333
  declare const OfframpProcessingSimpleView: React$1.FC<OfframpProcessingViewProps>;
3257
3334
 
3335
+ interface OfframpSuccessLabels {
3336
+ closeAriaLabel: string;
3337
+ title: string;
3338
+ subtitle: string;
3339
+ amountLabel: string;
3340
+ withdrawAmountLabel: string;
3341
+ feeLabel: string;
3342
+ methodLabel: string;
3343
+ methodValue: string;
3344
+ statusLabel: string;
3345
+ statusValue: string;
3346
+ transactionIdLabel: string;
3347
+ dateLabel: string;
3348
+ confirmAriaLabel: string;
3349
+ confirmLabel: string;
3350
+ }
3351
+
3258
3352
  interface OfframpSuccessViewProps {
3259
3353
  amount?: string;
3260
3354
  feesFormatted?: string;
@@ -3270,8 +3364,9 @@ interface OfframpSuccessViewProps {
3270
3364
  /** URL for the token icon displayed in the summary row. Defaults to '/brladigital_32.webp'. */
3271
3365
  tokenIconUrl?: string;
3272
3366
  className?: string;
3367
+ labels: OfframpSuccessLabels;
3273
3368
  }
3274
- declare function OfframpSuccessView({ amount, feesFormatted, transactionId, date, onClose, onConfirm, closeIcon, arrowUpIcon, tokenIconUrl, className, }: OfframpSuccessViewProps): react_jsx_runtime.JSX.Element;
3369
+ declare function OfframpSuccessView({ amount, feesFormatted, transactionId, date, onClose, onConfirm, closeIcon, arrowUpIcon, tokenIconUrl, className, labels, }: OfframpSuccessViewProps): react_jsx_runtime.JSX.Element;
3275
3370
 
3276
3371
  declare const OfframpSuccessSimpleView: React$1.FC<OfframpSuccessViewProps>;
3277
3372
 
@@ -3323,12 +3418,23 @@ interface DashboardBalancesBreakdownProps {
3323
3418
  }
3324
3419
  declare const DashboardBalancesBreakdown: React__default.FC<DashboardBalancesBreakdownProps>;
3325
3420
 
3421
+ interface DashboardTokenListLabels {
3422
+ title: string;
3423
+ searchPlaceholder: string;
3424
+ emptySearchTitle: string;
3425
+ emptySearchDescription: string;
3426
+ emptyDepositTitle: string;
3427
+ emptyDepositDescription: string;
3428
+ depositCtaLabel: string;
3429
+ }
3430
+
3326
3431
  interface DashboardTokenListViewProps {
3327
3432
  tokens: DashboardTokenItem[];
3328
3433
  isLoading: boolean;
3329
3434
  className?: string;
3330
3435
  showCard?: boolean;
3331
3436
  onDepositClick?: () => void;
3437
+ labels: DashboardTokenListLabels;
3332
3438
  }
3333
3439
  declare const DashboardTokenListView: React__default.FC<DashboardTokenListViewProps>;
3334
3440
 
@@ -3341,6 +3447,18 @@ interface DashboardStrategiesListViewProps {
3341
3447
  }
3342
3448
  declare const DashboardStrategiesListView: React__default.FC<DashboardStrategiesListViewProps>;
3343
3449
 
3450
+ interface DashboardPortfolioLabels {
3451
+ title: string;
3452
+ depositLabel: string;
3453
+ withdrawLabel: string;
3454
+ swapLabel: string;
3455
+ }
3456
+ interface DashboardPortfolioSimpleLabels extends DashboardPortfolioLabels {
3457
+ totalLabel: string;
3458
+ totalDescription: string;
3459
+ assetsLabel: string;
3460
+ }
3461
+
3344
3462
  interface DashboardPortfolioViewProps {
3345
3463
  formattedTotalValue: string;
3346
3464
  isLoading: boolean;
@@ -3349,14 +3467,23 @@ interface DashboardPortfolioViewProps {
3349
3467
  onSwapClick: () => void;
3350
3468
  formattedTokenPositions: string;
3351
3469
  formattedEarnPositions: string;
3470
+ labels: DashboardPortfolioLabels;
3352
3471
  }
3353
3472
  declare const DashboardPortfolioView: React__default.FC<DashboardPortfolioViewProps>;
3354
3473
 
3355
- interface DashboardPortfolioViewSimpleProps extends DashboardPortfolioViewProps {
3474
+ interface DashboardPortfolioViewSimpleProps extends Omit<DashboardPortfolioViewProps, 'labels'> {
3356
3475
  assetCount?: number | string;
3476
+ labels: DashboardPortfolioSimpleLabels;
3357
3477
  }
3358
3478
  declare const DashboardPortfolioViewSimple: React__default.FC<DashboardPortfolioViewSimpleProps>;
3359
3479
 
3480
+ interface DashboardTokensLabels {
3481
+ tokensTabLabel: string;
3482
+ strategiesTabLabel: string;
3483
+ mobileTokensTitle: string;
3484
+ tokenList: DashboardTokenListLabels;
3485
+ }
3486
+
3360
3487
  interface AssetFilterOption {
3361
3488
  id: string;
3362
3489
  label: string;
@@ -3376,6 +3503,7 @@ interface DashboardTokensViewProps {
3376
3503
  onFilterSelect?: (id: string) => void;
3377
3504
  /** Called when history button is clicked */
3378
3505
  onHistoryClick?: () => void;
3506
+ labels: DashboardTokensLabels;
3379
3507
  }
3380
3508
  declare const DashboardTokensView: React__default.FC<DashboardTokensViewProps>;
3381
3509
 
@@ -3409,6 +3537,19 @@ interface DashboardInvestmentOpportunitiesViewProps {
3409
3537
  }
3410
3538
  declare const DashboardInvestmentOpportunitiesView: React__default.FC<DashboardInvestmentOpportunitiesViewProps>;
3411
3539
 
3540
+ interface DashboardLabels {
3541
+ quickActionsTitle: string;
3542
+ depositLabel: string;
3543
+ withdrawLabel: string;
3544
+ swapLabel: string;
3545
+ }
3546
+ interface DashboardSimpleLabels {
3547
+ pageTitle: string;
3548
+ pageSubtitle: string;
3549
+ depositLabel: string;
3550
+ withdrawLabel: string;
3551
+ }
3552
+
3412
3553
  interface DashboardViewProps {
3413
3554
  portfolio: DashboardPortfolioViewProps;
3414
3555
  tokens: DashboardTokensViewProps;
@@ -3423,10 +3564,16 @@ interface DashboardViewProps {
3423
3564
  imageUrl: string;
3424
3565
  altText: string;
3425
3566
  };
3567
+ labels: DashboardLabels;
3426
3568
  }
3427
3569
  declare const DashboardView: React__default.FC<DashboardViewProps>;
3428
3570
 
3429
- type DashboardViewSimpleProps = Omit<DashboardViewProps, 'investmentOpportunities' | 'banner'>;
3571
+ interface DashboardViewSimpleProps extends Omit<DashboardViewProps, 'investmentOpportunities' | 'banner' | 'portfolio' | 'labels'> {
3572
+ portfolio: Omit<DashboardPortfolioViewProps, 'labels'> & {
3573
+ labels: DashboardPortfolioSimpleLabels;
3574
+ };
3575
+ labels: DashboardSimpleLabels;
3576
+ }
3430
3577
  declare const DashboardViewSimple: React__default.FC<DashboardViewSimpleProps>;
3431
3578
 
3432
3579
  /**