@unifold/ui-react 0.1.37 → 0.1.38

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
@@ -52,6 +52,16 @@ interface DepositModalProps {
52
52
  userId: string;
53
53
  publishableKey: string;
54
54
  modalTitle?: string;
55
+ /** Main menu — Transfer Crypto row title. @default `"Transfer Crypto"` (from `i18n.depositModal.transferCrypto.title`) */
56
+ transferCryptoTitle?: string;
57
+ /** Main menu — Deposit with Card row title. @default `"Deposit with Card"` */
58
+ depositWithCardTitle?: string;
59
+ /** Main menu — Pay with Exchange row title. @default `"Pay with Exchange"` */
60
+ payWithExchangeTitle?: string;
61
+ /** Main menu — Deposit Tracker row title. @default `"Deposit Tracker"` */
62
+ depositTrackerTitle?: string;
63
+ /** Main menu — Deposit Tracker row description. @default `"Track your deposit progress"` */
64
+ depositTrackerSubTitle?: string;
55
65
  destinationTokenSymbol?: string;
56
66
  recipientAddress?: string;
57
67
  destinationChainType?: ChainType;
@@ -72,6 +82,10 @@ interface DepositModalProps {
72
82
  enableConnectWallet?: boolean;
73
83
  /** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
74
84
  enablePayWithExchange?: boolean;
85
+ /** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
86
+ hideDepositFlowInfo?: boolean;
87
+ /** Deposit with Card — onramp step: hide the temporary wallet address disclaimer. @default false */
88
+ hideDisplayDescription?: boolean;
75
89
  onDepositSuccess?: (data: {
76
90
  message: string;
77
91
  transaction?: unknown;
@@ -88,7 +102,7 @@ interface DepositModalProps {
88
102
  /** First screen when the modal opens. Default `main` (deposit menu). */
89
103
  initialScreen?: DepositModalInitialScreen;
90
104
  }
91
- declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, onDepositSuccess, onDepositError, theme, hideOverlay, initialScreen, }: DepositModalProps): react_jsx_runtime.JSX.Element;
105
+ declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
92
106
 
93
107
  interface DepositHeaderProps {
94
108
  title: string;
@@ -192,9 +206,13 @@ interface BuyWithCardProps {
192
206
  themeClass?: string;
193
207
  wallets?: Wallet[];
194
208
  assetCdnUrl?: string;
209
+ /** When true, hides the onramp “You use / You buy / You receive” flow card. @default false */
210
+ hideDepositFlowInfo?: boolean;
211
+ /** When true, hides the temporary wallet address disclaimer below the flow. @default false */
212
+ hideDisplayDescription?: boolean;
195
213
  }
196
214
  declare function BuyWithCard({ userId, publishableKey, view: externalView, onViewChange, maxAmountUsd, accentColor, // Keep prop for backward compatibility but don't use default
197
- destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, onDepositSuccess, onDepositError, themeClass, wallets: externalWallets, assetCdnUrl, }: BuyWithCardProps): react_jsx_runtime.JSX.Element;
215
+ destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, onDepositSuccess, onDepositError, themeClass, wallets: externalWallets, assetCdnUrl, hideDepositFlowInfo, hideDisplayDescription, }: BuyWithCardProps): react_jsx_runtime.JSX.Element;
198
216
 
199
217
  interface CurrencyModalProps {
200
218
  open: boolean;
@@ -720,4 +738,4 @@ declare function cn(...inputs: ClassValue[]): string;
720
738
  */
721
739
  declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
722
740
 
723
- export { type AllowedCountryResult, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type CardTokens, type ComponentConfig, type ComponentOverrides, type ComponentTokens, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, DepositPollingUi, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type FontConfig, type HeaderTokens, type InputTokens, type ListTokens, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, buttonVariants, cn, colors, defaultColors, getColors, mergeColors, resolveComponentTokens, truncateAddress, useAllowedCountry, useDepositPolling, useTheme };
741
+ export { type AllowedCountryResult, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, type ComponentConfig, type ComponentOverrides, type ComponentTokens, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositPollingUi, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type FontConfig, type HeaderTokens, type InputTokens, type ListTokens, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, buttonVariants, cn, colors, defaultColors, getColors, mergeColors, resolveComponentTokens, truncateAddress, useAllowedCountry, useDepositPolling, useTheme };
package/dist/index.d.ts CHANGED
@@ -52,6 +52,16 @@ interface DepositModalProps {
52
52
  userId: string;
53
53
  publishableKey: string;
54
54
  modalTitle?: string;
55
+ /** Main menu — Transfer Crypto row title. @default `"Transfer Crypto"` (from `i18n.depositModal.transferCrypto.title`) */
56
+ transferCryptoTitle?: string;
57
+ /** Main menu — Deposit with Card row title. @default `"Deposit with Card"` */
58
+ depositWithCardTitle?: string;
59
+ /** Main menu — Pay with Exchange row title. @default `"Pay with Exchange"` */
60
+ payWithExchangeTitle?: string;
61
+ /** Main menu — Deposit Tracker row title. @default `"Deposit Tracker"` */
62
+ depositTrackerTitle?: string;
63
+ /** Main menu — Deposit Tracker row description. @default `"Track your deposit progress"` */
64
+ depositTrackerSubTitle?: string;
55
65
  destinationTokenSymbol?: string;
56
66
  recipientAddress?: string;
57
67
  destinationChainType?: ChainType;
@@ -72,6 +82,10 @@ interface DepositModalProps {
72
82
  enableConnectWallet?: boolean;
73
83
  /** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
74
84
  enablePayWithExchange?: boolean;
85
+ /** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
86
+ hideDepositFlowInfo?: boolean;
87
+ /** Deposit with Card — onramp step: hide the temporary wallet address disclaimer. @default false */
88
+ hideDisplayDescription?: boolean;
75
89
  onDepositSuccess?: (data: {
76
90
  message: string;
77
91
  transaction?: unknown;
@@ -88,7 +102,7 @@ interface DepositModalProps {
88
102
  /** First screen when the modal opens. Default `main` (deposit menu). */
89
103
  initialScreen?: DepositModalInitialScreen;
90
104
  }
91
- declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, onDepositSuccess, onDepositError, theme, hideOverlay, initialScreen, }: DepositModalProps): react_jsx_runtime.JSX.Element;
105
+ declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
92
106
 
93
107
  interface DepositHeaderProps {
94
108
  title: string;
@@ -192,9 +206,13 @@ interface BuyWithCardProps {
192
206
  themeClass?: string;
193
207
  wallets?: Wallet[];
194
208
  assetCdnUrl?: string;
209
+ /** When true, hides the onramp “You use / You buy / You receive” flow card. @default false */
210
+ hideDepositFlowInfo?: boolean;
211
+ /** When true, hides the temporary wallet address disclaimer below the flow. @default false */
212
+ hideDisplayDescription?: boolean;
195
213
  }
196
214
  declare function BuyWithCard({ userId, publishableKey, view: externalView, onViewChange, maxAmountUsd, accentColor, // Keep prop for backward compatibility but don't use default
197
- destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, onDepositSuccess, onDepositError, themeClass, wallets: externalWallets, assetCdnUrl, }: BuyWithCardProps): react_jsx_runtime.JSX.Element;
215
+ destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, onDepositSuccess, onDepositError, themeClass, wallets: externalWallets, assetCdnUrl, hideDepositFlowInfo, hideDisplayDescription, }: BuyWithCardProps): react_jsx_runtime.JSX.Element;
198
216
 
199
217
  interface CurrencyModalProps {
200
218
  open: boolean;
@@ -720,4 +738,4 @@ declare function cn(...inputs: ClassValue[]): string;
720
738
  */
721
739
  declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
722
740
 
723
- export { type AllowedCountryResult, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type CardTokens, type ComponentConfig, type ComponentOverrides, type ComponentTokens, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, DepositPollingUi, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type FontConfig, type HeaderTokens, type InputTokens, type ListTokens, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, buttonVariants, cn, colors, defaultColors, getColors, mergeColors, resolveComponentTokens, truncateAddress, useAllowedCountry, useDepositPolling, useTheme };
741
+ export { type AllowedCountryResult, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, type ComponentConfig, type ComponentOverrides, type ComponentTokens, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositPollingUi, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type FontConfig, type HeaderTokens, type InputTokens, type ListTokens, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, buttonVariants, cn, colors, defaultColors, getColors, mergeColors, resolveComponentTokens, truncateAddress, useAllowedCountry, useDepositPolling, useTheme };
package/dist/index.js CHANGED
@@ -1382,6 +1382,10 @@ var en_default = {
1382
1382
  payWithExchange: {
1383
1383
  title: "Pay with Exchange",
1384
1384
  subtitle: "Transfer from exchange"
1385
+ },
1386
+ depositTracker: {
1387
+ title: "Deposit Tracker",
1388
+ subtitle: "Track your deposit progress"
1385
1389
  }
1386
1390
  },
1387
1391
  payWithExchange: {
@@ -2362,7 +2366,9 @@ function BuyWithCard({
2362
2366
  onDepositError,
2363
2367
  themeClass = "",
2364
2368
  wallets: externalWallets,
2365
- assetCdnUrl
2369
+ assetCdnUrl,
2370
+ hideDepositFlowInfo = false,
2371
+ hideDisplayDescription = false
2366
2372
  }) {
2367
2373
  const { colors: colors2, fonts, components } = useTheme();
2368
2374
  const [amount, setAmount] = (0, import_react7.useState)("");
@@ -3181,7 +3187,7 @@ function BuyWithCard({
3181
3187
  children: t.onramp.canCloseModal
3182
3188
  }
3183
3189
  ),
3184
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-center", children: [
3190
+ !hideDepositFlowInfo && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-center", children: [
3185
3191
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
3186
3192
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3187
3193
  "img",
@@ -3295,7 +3301,7 @@ function BuyWithCard({
3295
3301
  )
3296
3302
  ] })
3297
3303
  ] }) }),
3298
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3304
+ !hideDisplayDescription && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3299
3305
  "p",
3300
3306
  {
3301
3307
  className: "uf-text-xs uf-leading-relaxed",
@@ -10992,11 +10998,18 @@ function DepositModal({
10992
10998
  depositConfirmationMode = "auto_ui",
10993
10999
  enableConnectWallet = false,
10994
11000
  enablePayWithExchange,
11001
+ hideDepositFlowInfo = false,
11002
+ hideDisplayDescription = false,
10995
11003
  onDepositSuccess,
10996
11004
  onDepositError,
10997
11005
  theme = "dark",
10998
11006
  hideOverlay = false,
10999
- initialScreen = "main"
11007
+ initialScreen = "main",
11008
+ transferCryptoTitle = t6.transferCrypto.title,
11009
+ depositWithCardTitle = t6.depositWithCard.title,
11010
+ payWithExchangeTitle = t6.payWithExchange.title,
11011
+ depositTrackerTitle = t6.depositTracker.title,
11012
+ depositTrackerSubTitle = t6.depositTracker.subtitle
11000
11013
  }) {
11001
11014
  const { colors: colors2, fonts, components } = useTheme();
11002
11015
  const effectiveInitialScreen = (0, import_react16.useMemo)(() => {
@@ -11334,7 +11347,7 @@ function DepositModal({
11334
11347
  TransferCryptoButton,
11335
11348
  {
11336
11349
  onClick: () => setView("transfer"),
11337
- title: t6.transferCrypto.title,
11350
+ title: transferCryptoTitle,
11338
11351
  subtitle: t6.transferCrypto.subtitle,
11339
11352
  featuredTokens: projectConfig?.transfer_crypto.networks
11340
11353
  }
@@ -11353,7 +11366,7 @@ function DepositModal({
11353
11366
  DepositWithCardButton,
11354
11367
  {
11355
11368
  onClick: () => setView("card"),
11356
- title: t6.depositWithCard.title,
11369
+ title: depositWithCardTitle,
11357
11370
  subtitle: t6.depositWithCard.subtitle,
11358
11371
  paymentNetworks: projectConfig?.payment_networks.networks
11359
11372
  }
@@ -11362,7 +11375,7 @@ function DepositModal({
11362
11375
  PayWithExchangeButton,
11363
11376
  {
11364
11377
  onClick: () => setView("exchange"),
11365
- title: t6.payWithExchange.title,
11378
+ title: payWithExchangeTitle,
11366
11379
  subtitle: t6.payWithExchange.subtitle,
11367
11380
  exchanges,
11368
11381
  loading: exchangesLoading
@@ -11375,8 +11388,8 @@ function DepositModal({
11375
11388
  setAllExecutions(depositExecutions);
11376
11389
  setView("tracker");
11377
11390
  },
11378
- title: "Deposit Tracker",
11379
- subtitle: "Track your deposit progress",
11391
+ title: depositTrackerTitle,
11392
+ subtitle: depositTrackerSubTitle,
11380
11393
  badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
11381
11394
  }
11382
11395
  )
@@ -11387,7 +11400,7 @@ function DepositModal({
11387
11400
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11388
11401
  DepositHeader,
11389
11402
  {
11390
- title: t6.transferCrypto.title,
11403
+ title: transferCryptoTitle,
11391
11404
  showBack: showBackTransfer,
11392
11405
  onBack: handleBack,
11393
11406
  onClose: handleClose,
@@ -11438,7 +11451,7 @@ function DepositModal({
11438
11451
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11439
11452
  DepositHeader,
11440
11453
  {
11441
- title: selectedExecution ? "Deposit Details" : "Deposit Tracker",
11454
+ title: selectedExecution ? "Deposit Details" : depositTrackerTitle,
11442
11455
  showBack: showBackTracker,
11443
11456
  onBack: handleBack,
11444
11457
  onClose: handleClose
@@ -11466,7 +11479,7 @@ function DepositModal({
11466
11479
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11467
11480
  DepositHeader,
11468
11481
  {
11469
- title: cardView === "quotes" ? t6.quotes : t6.depositWithCard.title,
11482
+ title: cardView === "quotes" ? t6.quotes : depositWithCardTitle,
11470
11483
  showBack: showBackCard,
11471
11484
  onBack: handleBack,
11472
11485
  onClose: handleClose,
@@ -11497,7 +11510,9 @@ function DepositModal({
11497
11510
  onDepositError,
11498
11511
  themeClass,
11499
11512
  wallets,
11500
- assetCdnUrl: projectConfig?.asset_cdn_url
11513
+ assetCdnUrl: projectConfig?.asset_cdn_url,
11514
+ hideDepositFlowInfo,
11515
+ hideDisplayDescription
11501
11516
  }
11502
11517
  ),
11503
11518
  depositPoweredByFooter
@@ -11506,7 +11521,7 @@ function DepositModal({
11506
11521
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11507
11522
  DepositHeader,
11508
11523
  {
11509
- title: t6.payWithExchange.title,
11524
+ title: payWithExchangeTitle,
11510
11525
  showBack: true,
11511
11526
  onBack: handleBack,
11512
11527
  onClose: handleClose
package/dist/index.mjs CHANGED
@@ -1311,6 +1311,10 @@ var en_default = {
1311
1311
  payWithExchange: {
1312
1312
  title: "Pay with Exchange",
1313
1313
  subtitle: "Transfer from exchange"
1314
+ },
1315
+ depositTracker: {
1316
+ title: "Deposit Tracker",
1317
+ subtitle: "Track your deposit progress"
1314
1318
  }
1315
1319
  },
1316
1320
  payWithExchange: {
@@ -2303,7 +2307,9 @@ function BuyWithCard({
2303
2307
  onDepositError,
2304
2308
  themeClass = "",
2305
2309
  wallets: externalWallets,
2306
- assetCdnUrl
2310
+ assetCdnUrl,
2311
+ hideDepositFlowInfo = false,
2312
+ hideDisplayDescription = false
2307
2313
  }) {
2308
2314
  const { colors: colors2, fonts, components } = useTheme();
2309
2315
  const [amount, setAmount] = useState9("");
@@ -3122,7 +3128,7 @@ function BuyWithCard({
3122
3128
  children: t.onramp.canCloseModal
3123
3129
  }
3124
3130
  ),
3125
- /* @__PURE__ */ jsx10("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-justify-center", children: [
3131
+ !hideDepositFlowInfo && /* @__PURE__ */ jsx10("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-justify-center", children: [
3126
3132
  /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
3127
3133
  /* @__PURE__ */ jsx10("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ jsx10(
3128
3134
  "img",
@@ -3236,7 +3242,7 @@ function BuyWithCard({
3236
3242
  )
3237
3243
  ] })
3238
3244
  ] }) }),
3239
- /* @__PURE__ */ jsx10("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ jsx10(
3245
+ !hideDisplayDescription && /* @__PURE__ */ jsx10("div", { className: "uf-w-full uf-p-4 uf-mb-4", style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ jsx10(
3240
3246
  "p",
3241
3247
  {
3242
3248
  className: "uf-text-xs uf-leading-relaxed",
@@ -10980,11 +10986,18 @@ function DepositModal({
10980
10986
  depositConfirmationMode = "auto_ui",
10981
10987
  enableConnectWallet = false,
10982
10988
  enablePayWithExchange,
10989
+ hideDepositFlowInfo = false,
10990
+ hideDisplayDescription = false,
10983
10991
  onDepositSuccess,
10984
10992
  onDepositError,
10985
10993
  theme = "dark",
10986
10994
  hideOverlay = false,
10987
- initialScreen = "main"
10995
+ initialScreen = "main",
10996
+ transferCryptoTitle = t6.transferCrypto.title,
10997
+ depositWithCardTitle = t6.depositWithCard.title,
10998
+ payWithExchangeTitle = t6.payWithExchange.title,
10999
+ depositTrackerTitle = t6.depositTracker.title,
11000
+ depositTrackerSubTitle = t6.depositTracker.subtitle
10988
11001
  }) {
10989
11002
  const { colors: colors2, fonts, components } = useTheme();
10990
11003
  const effectiveInitialScreen = useMemo8(() => {
@@ -11322,7 +11335,7 @@ function DepositModal({
11322
11335
  TransferCryptoButton,
11323
11336
  {
11324
11337
  onClick: () => setView("transfer"),
11325
- title: t6.transferCrypto.title,
11338
+ title: transferCryptoTitle,
11326
11339
  subtitle: t6.transferCrypto.subtitle,
11327
11340
  featuredTokens: projectConfig?.transfer_crypto.networks
11328
11341
  }
@@ -11341,7 +11354,7 @@ function DepositModal({
11341
11354
  DepositWithCardButton,
11342
11355
  {
11343
11356
  onClick: () => setView("card"),
11344
- title: t6.depositWithCard.title,
11357
+ title: depositWithCardTitle,
11345
11358
  subtitle: t6.depositWithCard.subtitle,
11346
11359
  paymentNetworks: projectConfig?.payment_networks.networks
11347
11360
  }
@@ -11350,7 +11363,7 @@ function DepositModal({
11350
11363
  PayWithExchangeButton,
11351
11364
  {
11352
11365
  onClick: () => setView("exchange"),
11353
- title: t6.payWithExchange.title,
11366
+ title: payWithExchangeTitle,
11354
11367
  subtitle: t6.payWithExchange.subtitle,
11355
11368
  exchanges,
11356
11369
  loading: exchangesLoading
@@ -11363,8 +11376,8 @@ function DepositModal({
11363
11376
  setAllExecutions(depositExecutions);
11364
11377
  setView("tracker");
11365
11378
  },
11366
- title: "Deposit Tracker",
11367
- subtitle: "Track your deposit progress",
11379
+ title: depositTrackerTitle,
11380
+ subtitle: depositTrackerSubTitle,
11368
11381
  badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
11369
11382
  }
11370
11383
  )
@@ -11375,7 +11388,7 @@ function DepositModal({
11375
11388
  /* @__PURE__ */ jsx49(
11376
11389
  DepositHeader,
11377
11390
  {
11378
- title: t6.transferCrypto.title,
11391
+ title: transferCryptoTitle,
11379
11392
  showBack: showBackTransfer,
11380
11393
  onBack: handleBack,
11381
11394
  onClose: handleClose,
@@ -11426,7 +11439,7 @@ function DepositModal({
11426
11439
  /* @__PURE__ */ jsx49(
11427
11440
  DepositHeader,
11428
11441
  {
11429
- title: selectedExecution ? "Deposit Details" : "Deposit Tracker",
11442
+ title: selectedExecution ? "Deposit Details" : depositTrackerTitle,
11430
11443
  showBack: showBackTracker,
11431
11444
  onBack: handleBack,
11432
11445
  onClose: handleClose
@@ -11454,7 +11467,7 @@ function DepositModal({
11454
11467
  /* @__PURE__ */ jsx49(
11455
11468
  DepositHeader,
11456
11469
  {
11457
- title: cardView === "quotes" ? t6.quotes : t6.depositWithCard.title,
11470
+ title: cardView === "quotes" ? t6.quotes : depositWithCardTitle,
11458
11471
  showBack: showBackCard,
11459
11472
  onBack: handleBack,
11460
11473
  onClose: handleClose,
@@ -11485,7 +11498,9 @@ function DepositModal({
11485
11498
  onDepositError,
11486
11499
  themeClass,
11487
11500
  wallets,
11488
- assetCdnUrl: projectConfig?.asset_cdn_url
11501
+ assetCdnUrl: projectConfig?.asset_cdn_url,
11502
+ hideDepositFlowInfo,
11503
+ hideDisplayDescription
11489
11504
  }
11490
11505
  ),
11491
11506
  depositPoweredByFooter
@@ -11494,7 +11509,7 @@ function DepositModal({
11494
11509
  /* @__PURE__ */ jsx49(
11495
11510
  DepositHeader,
11496
11511
  {
11497
- title: t6.payWithExchange.title,
11512
+ title: payWithExchangeTitle,
11498
11513
  showBack: true,
11499
11514
  onBack: handleBack,
11500
11515
  onClose: handleClose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/ui-react",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Unifold UI React - Deposit and onramp components for React applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -43,7 +43,7 @@
43
43
  "lucide-react": "^0.454.0",
44
44
  "qr-code-styling": "^1.6.0-rc.1",
45
45
  "tailwind-merge": "^2.0.0",
46
- "@unifold/core": "0.1.37"
46
+ "@unifold/core": "0.1.38"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@solana/spl-token": "^0.3.8",