@deframe-sdk/components 0.1.34 → 0.1.35

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.mjs CHANGED
@@ -4879,7 +4879,7 @@ var SwapProcessingViewSimple = () => {
4879
4879
  "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
4880
4880
  "rounded-[inherit]",
4881
4881
  "backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
4882
- "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-primary)_88%,transparent)]"
4882
+ "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
4883
4883
  ),
4884
4884
  children: [
4885
4885
  /* @__PURE__ */ jsx(LoadingIcon, {}),
@@ -5231,7 +5231,7 @@ var SwapSignatureWarningViewSimple = ({
5231
5231
  "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
5232
5232
  "rounded-[inherit]",
5233
5233
  "backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
5234
- "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-primary)_88%,transparent)]"
5234
+ "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
5235
5235
  ),
5236
5236
  children: [
5237
5237
  /* @__PURE__ */ jsx(WarningIcon, {}),
@@ -5421,7 +5421,7 @@ var SwapSuccessViewSimple = () => {
5421
5421
  "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
5422
5422
  "rounded-[inherit]",
5423
5423
  "backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
5424
- "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-primary)_88%,transparent)]"
5424
+ "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
5425
5425
  ),
5426
5426
  children: [
5427
5427
  /* @__PURE__ */ jsx(SuccessIcon, {}),
@@ -5624,7 +5624,7 @@ var SwapTransactionFailedViewSimple = ({
5624
5624
  "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
5625
5625
  "rounded-[inherit]",
5626
5626
  "backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
5627
- "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-primary)_88%,transparent)]"
5627
+ "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
5628
5628
  ),
5629
5629
  children: [
5630
5630
  /* @__PURE__ */ jsx(ErrorIcon, {}),
@@ -6321,6 +6321,35 @@ var SwapFormView = ({
6321
6321
  )
6322
6322
  ] });
6323
6323
  };
6324
+ var FONT_SIZE_CLASSES = [
6325
+ "text-[36px]",
6326
+ // 0–7 chars
6327
+ "text-[34px]",
6328
+ // 8 chars
6329
+ "text-[32px]",
6330
+ // 9 chars
6331
+ "text-[30px]",
6332
+ // 10 chars
6333
+ "text-[28px]",
6334
+ // 11 chars
6335
+ "text-[26px]",
6336
+ // 12 chars
6337
+ "text-[24px]",
6338
+ // 13 chars
6339
+ "text-[22px]",
6340
+ // 14 chars
6341
+ "text-[20px]"
6342
+ // 15+ chars
6343
+ ];
6344
+ function getResponsiveFontSizeClass(value) {
6345
+ const len = value.length;
6346
+ if (len <= 7) return FONT_SIZE_CLASSES[0];
6347
+ const index = Math.min(len - 7, FONT_SIZE_CLASSES.length - 1);
6348
+ return FONT_SIZE_CLASSES[index];
6349
+ }
6350
+ function useResponsiveFontSize(value) {
6351
+ return useMemo(() => getResponsiveFontSizeClass(value), [value]);
6352
+ }
6324
6353
  var SwapFromCardViewSimple = ({
6325
6354
  labels,
6326
6355
  selectedToken,
@@ -6344,6 +6373,7 @@ var SwapFromCardViewSimple = ({
6344
6373
  errorActionLabel = "Adicionar via PIX",
6345
6374
  onErrorAction
6346
6375
  }) => {
6376
+ const fontSizeClass = useResponsiveFontSize(amountValue || "");
6347
6377
  const [isHovered, setIsHovered] = useState(false);
6348
6378
  const hideTimeout = useRef(null);
6349
6379
  const handleMouseEnter = useCallback(() => {
@@ -6415,9 +6445,11 @@ var SwapFromCardViewSimple = ({
6415
6445
  className: twMerge(
6416
6446
  "bg-transparent border-none outline-none",
6417
6447
  "text-right",
6418
- "text-[36px] [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]",
6448
+ fontSizeClass,
6449
+ "[font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]",
6419
6450
  "w-full px-[var(--deframe-widget-size-padding-x-none)] py-[var(--deframe-widget-size-padding-y-none)]",
6420
6451
  "font-[var(--deframe-widget-font-family)]",
6452
+ "overflow-hidden text-ellipsis",
6421
6453
  "placeholder:text-[color:var(--deframe-widget-color-text-tertiary)]",
6422
6454
  isEmpty ? "text-[color:var(--deframe-widget-color-text-tertiary)]" : "text-[color:var(--deframe-widget-color-text-primary)]"
6423
6455
  )
@@ -6906,6 +6938,7 @@ var SwapToCardViewSimple = ({
6906
6938
  }) => {
6907
6939
  const handleTokenClick = onNetworkAndAssetClick != null ? onNetworkAndAssetClick : onTokenClick;
6908
6940
  const isEmpty = !outputAmount || Number(outputAmount) === 0;
6941
+ const fontSizeClass = useResponsiveFontSize(outputAmount || "");
6909
6942
  const wrapperClasses = twMerge(
6910
6943
  "rounded-[var(--deframe-widget-size-radius-sm)]",
6911
6944
  "border",
@@ -7071,9 +7104,10 @@ var SwapToCardViewSimple = ({
7071
7104
  {
7072
7105
  "data-test-id": "swap-to-simple-output-amount",
7073
7106
  className: twMerge(
7074
- "text-[36px] [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]",
7107
+ fontSizeClass,
7108
+ "[font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]",
7075
7109
  "font-[var(--deframe-widget-font-family)]",
7076
- "text-right w-full",
7110
+ "text-right w-full overflow-hidden text-ellipsis",
7077
7111
  isEmpty ? "text-[color:var(--deframe-widget-color-text-tertiary)]" : "text-[color:var(--deframe-widget-color-text-primary)]"
7078
7112
  ),
7079
7113
  children: isEmpty ? "0" : outputAmount
@@ -10891,7 +10925,8 @@ var EarnTokenSelectorSimpleView = ({
10891
10925
  isLoading,
10892
10926
  selectTokenLabel,
10893
10927
  chainLabel,
10894
- chainImage
10928
+ chainImage,
10929
+ className
10895
10930
  }) => {
10896
10931
  const hasToken = selectedToken != null;
10897
10932
  const isInteractive = !!onNetworkAndAssetClick;
@@ -10910,7 +10945,8 @@ var EarnTokenSelectorSimpleView = ({
10910
10945
  };
10911
10946
  const selectorClasses = twMerge(
10912
10947
  baseClasses,
10913
- stateClasses[isInteractive ? "interactive" : "static"]
10948
+ stateClasses[isInteractive ? "interactive" : "static"],
10949
+ className
10914
10950
  );
10915
10951
  return /* @__PURE__ */ jsx(
10916
10952
  "button",
@@ -11037,9 +11073,10 @@ var EarnAmountInputSimpleView = ({
11037
11073
  dollarAmountFormatted
11038
11074
  }) => {
11039
11075
  const isEmpty = !value || value === "0";
11076
+ const fontSizeClass = useResponsiveFontSize(value || "");
11040
11077
  const inputBaseClasses = [
11041
11078
  "bg-transparent border-none outline-none text-right",
11042
- "text-[36px] [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]",
11079
+ `${fontSizeClass} [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]`,
11043
11080
  "w-full",
11044
11081
  "px-[var(--deframe-widget-size-padding-x-none)] py-[var(--deframe-widget-size-padding-y-none)]",
11045
11082
  "font-[var(--deframe-widget-font-family)]",
@@ -12063,7 +12100,18 @@ var EarnDepositProcessingView = ({
12063
12100
  }
12064
12101
  );
12065
12102
  };
12066
- function EarnFormSkeleton() {
12103
+ function EarnFormSkeleton({
12104
+ headerTitle = "Deposit",
12105
+ tokenSymbol = "USDC",
12106
+ tokenLogoURI,
12107
+ chainLabel = "Arbitrum",
12108
+ chainImage,
12109
+ amount = "500",
12110
+ dollarAmount = "\u2248 $499.87",
12111
+ availableBalance = "Available: 1,250.00 USDC",
12112
+ cancelLabel = "Cancel",
12113
+ submitLabel = "Deposit"
12114
+ } = {}) {
12067
12115
  const headerClasses = [
12068
12116
  "flex items-center",
12069
12117
  "px-[var(--deframe-widget-size-padding-x-md)]",
@@ -12099,7 +12147,7 @@ function EarnFormSkeleton() {
12099
12147
  "data-test-id": "earn-form-skeleton",
12100
12148
  className: "flex flex-col font-[var(--deframe-widget-font-family)]",
12101
12149
  children: [
12102
- /* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-header", className: headerClasses, children: /* @__PURE__ */ jsx("span", { className: titleClasses2, children: "Deposit" }) }),
12150
+ /* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-header", className: headerClasses, children: /* @__PURE__ */ jsx("span", { className: titleClasses2, children: headerTitle }) }),
12103
12151
  /* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-divider", className: dividerClasses }),
12104
12152
  /* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-body", className: bodyClasses, children: /* @__PURE__ */ jsxs("div", { "data-test-id": "earn-form-skeleton-input-card", className: inputCardClasses, children: [
12105
12153
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--deframe-widget-size-gap-sm)]", children: [
@@ -12115,29 +12163,43 @@ function EarnFormSkeleton() {
12115
12163
  ),
12116
12164
  children: [
12117
12165
  /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0 w-[38px] h-[38px]", children: [
12118
- /* @__PURE__ */ jsx(
12166
+ tokenLogoURI ? /* @__PURE__ */ jsx(
12167
+ "img",
12168
+ {
12169
+ src: tokenLogoURI,
12170
+ alt: tokenSymbol,
12171
+ className: "w-full h-full rounded-[var(--deframe-widget-size-radius-full)] object-cover"
12172
+ }
12173
+ ) : /* @__PURE__ */ jsx(
12119
12174
  "div",
12120
12175
  {
12121
12176
  className: "w-full h-full rounded-[var(--deframe-widget-size-radius-full)] bg-[var(--deframe-widget-color-bg-tertiary)] flex items-center justify-center text-[12px] [font-weight:var(--deframe-widget-font-weight-bold)] text-[color:var(--deframe-widget-color-text-primary)]",
12122
- children: "US"
12177
+ children: tokenSymbol.slice(0, 2).toUpperCase()
12123
12178
  }
12124
12179
  ),
12125
- /* @__PURE__ */ jsx("div", { className: "absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-[var(--deframe-widget-size-radius-full)] bg-[var(--deframe-widget-color-bg-tertiary)] shadow-[0_0_0_2px_var(--deframe-widget-color-bg-secondary)]" })
12180
+ chainImage ? /* @__PURE__ */ jsx("div", { className: "absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-[var(--deframe-widget-size-radius-full)] shadow-[0_0_0_2px_var(--deframe-widget-color-bg-secondary)]", children: /* @__PURE__ */ jsx(
12181
+ "img",
12182
+ {
12183
+ src: chainImage,
12184
+ alt: chainLabel,
12185
+ className: "w-full h-full rounded-[var(--deframe-widget-size-radius-full)] object-cover"
12186
+ }
12187
+ ) }) : /* @__PURE__ */ jsx("div", { className: "absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-[var(--deframe-widget-size-radius-full)] bg-[var(--deframe-widget-color-bg-tertiary)] shadow-[0_0_0_2px_var(--deframe-widget-color-bg-secondary)]" })
12126
12188
  ] }),
12127
12189
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
12128
- /* @__PURE__ */ jsx("span", { className: "text-[16px] [font-weight:var(--deframe-widget-font-weight-semibold)] leading-[1.2] font-[var(--deframe-widget-font-family)] text-[color:var(--deframe-widget-color-text-primary)]", children: "USDC" }),
12129
- /* @__PURE__ */ jsx("span", { className: "text-[11px] [font-weight:var(--deframe-widget-font-weight-medium)] text-[color:var(--deframe-widget-color-text-tertiary)] uppercase tracking-[0.04em] font-[var(--deframe-widget-font-family)] leading-[1.2]", children: "Arbitrum" })
12190
+ /* @__PURE__ */ jsx("span", { className: "text-[16px] [font-weight:var(--deframe-widget-font-weight-semibold)] leading-[1.2] font-[var(--deframe-widget-font-family)] text-[color:var(--deframe-widget-color-text-primary)]", children: tokenSymbol }),
12191
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] [font-weight:var(--deframe-widget-font-weight-medium)] text-[color:var(--deframe-widget-color-text-tertiary)] uppercase tracking-[0.04em] font-[var(--deframe-widget-font-family)] leading-[1.2]", children: chainLabel })
12130
12192
  ] })
12131
12193
  ]
12132
12194
  }
12133
12195
  ),
12134
12196
  /* @__PURE__ */ jsx("div", { className: "w-px h-10 bg-[var(--deframe-widget-color-border-secondary)] flex-shrink-0" }),
12135
12197
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end flex-1 min-w-0", children: [
12136
- /* @__PURE__ */ jsx("span", { className: "text-[36px] [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1] text-[color:var(--deframe-widget-color-text-primary)] text-right w-full font-[var(--deframe-widget-font-family)]", children: "500" }),
12137
- /* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children: "\u2248 $499.87" })
12198
+ /* @__PURE__ */ jsx("span", { className: "text-[36px] [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1] text-[color:var(--deframe-widget-color-text-primary)] text-right w-full font-[var(--deframe-widget-font-family)]", children: amount }),
12199
+ /* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children: dollarAmount })
12138
12200
  ] })
12139
12201
  ] }),
12140
- /* @__PURE__ */ jsx("div", { className: "mt-[var(--deframe-widget-size-gap-sm)]", children: /* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)]", children: "Available: 1,250.00 USDC" }) })
12202
+ /* @__PURE__ */ jsx("div", { className: "mt-[var(--deframe-widget-size-gap-sm)]", children: /* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)]", children: availableBalance }) })
12141
12203
  ] }) }),
12142
12204
  /* @__PURE__ */ jsxs("div", { "data-test-id": "earn-form-skeleton-footer", className: footerClasses, children: [
12143
12205
  /* @__PURE__ */ jsx(
@@ -12152,7 +12214,7 @@ function EarnFormSkeleton() {
12152
12214
  "text-[15px] [font-weight:var(--deframe-widget-font-weight-semibold)]",
12153
12215
  "text-[color:var(--deframe-widget-color-text-secondary)]"
12154
12216
  ),
12155
- children: "Cancel"
12217
+ children: cancelLabel
12156
12218
  }
12157
12219
  ),
12158
12220
  /* @__PURE__ */ jsx(
@@ -12167,7 +12229,7 @@ function EarnFormSkeleton() {
12167
12229
  "text-[15px] [font-weight:var(--deframe-widget-font-weight-semibold)]",
12168
12230
  "text-[color:var(--deframe-widget-color-text-primary-dark)]"
12169
12231
  ),
12170
- children: "Deposit"
12232
+ children: submitLabel
12171
12233
  }
12172
12234
  )
12173
12235
  ] })
@@ -12178,7 +12240,8 @@ function EarnFormSkeleton() {
12178
12240
  function EarnFeedbackOverlaySimpleView({
12179
12241
  variant,
12180
12242
  title,
12181
- subtitle
12243
+ subtitle,
12244
+ formData
12182
12245
  }) {
12183
12246
  const isLoading = variant === "loading";
12184
12247
  const wrapperClasses = twMerge(
@@ -12194,7 +12257,7 @@ function EarnFeedbackOverlaySimpleView({
12194
12257
  "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
12195
12258
  "rounded-[inherit]",
12196
12259
  "backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
12197
- "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-primary)_88%,transparent)]"
12260
+ "bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
12198
12261
  );
12199
12262
  const textSectionClasses = twMerge(
12200
12263
  "flex flex-col items-center",
@@ -12217,7 +12280,7 @@ function EarnFeedbackOverlaySimpleView({
12217
12280
  "data-slot": "earn-feedback-overlay-wrapper",
12218
12281
  className: wrapperClasses,
12219
12282
  children: [
12220
- /* @__PURE__ */ jsx("div", { "data-test-id": "earn-feedback-overlay-skeleton", children: /* @__PURE__ */ jsx(EarnFormSkeleton, {}) }),
12283
+ /* @__PURE__ */ jsx("div", { "data-test-id": "earn-feedback-overlay-skeleton", children: /* @__PURE__ */ jsx(EarnFormSkeleton, __spreadValues({}, formData)) }),
12221
12284
  /* @__PURE__ */ jsxs(
12222
12285
  motion.div,
12223
12286
  {
@@ -12502,15 +12565,24 @@ function WarningIcon2() {
12502
12565
  );
12503
12566
  }
12504
12567
  var EarnDepositProcessingSimpleView = ({
12505
- title,
12506
- descriptionPrefix
12568
+ amountToken,
12569
+ amountUSD,
12570
+ iconSrc,
12571
+ strategyName
12507
12572
  }) => {
12508
12573
  return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-deposit-processing-simple-view", children: /* @__PURE__ */ jsx(
12509
12574
  EarnFeedbackOverlaySimpleView,
12510
12575
  {
12511
12576
  variant: "loading",
12512
- title,
12513
- subtitle: descriptionPrefix
12577
+ title: "Processando Dep\xF3sito...",
12578
+ subtitle: "Aguarde enquanto seu dep\xF3sito \xE9 confirmado.",
12579
+ formData: {
12580
+ headerTitle: "Dep\xF3sito",
12581
+ tokenSymbol: strategyName,
12582
+ tokenLogoURI: iconSrc,
12583
+ amount: amountToken,
12584
+ dollarAmount: amountUSD
12585
+ }
12514
12586
  }
12515
12587
  ) });
12516
12588
  };
@@ -12588,9 +12660,12 @@ var EarnDepositSuccessView = ({
12588
12660
  );
12589
12661
  };
12590
12662
  var EarnDepositSuccessSimpleView = ({
12591
- title,
12592
- descriptionSuffix,
12593
- onClose
12663
+ onClose,
12664
+ tokenSymbol,
12665
+ amountToken,
12666
+ amountUSD,
12667
+ iconSrc,
12668
+ strategyName
12594
12669
  }) => {
12595
12670
  React6__default.useEffect(() => {
12596
12671
  if (!onClose) return;
@@ -12601,8 +12676,15 @@ var EarnDepositSuccessSimpleView = ({
12601
12676
  EarnFeedbackOverlaySimpleView,
12602
12677
  {
12603
12678
  variant: "success",
12604
- title,
12605
- subtitle: descriptionSuffix
12679
+ title: "Dep\xF3sito Confirmado!",
12680
+ subtitle: "Seu saldo foi atualizado.",
12681
+ formData: {
12682
+ headerTitle: "Dep\xF3sito",
12683
+ tokenSymbol: tokenSymbol || strategyName,
12684
+ tokenLogoURI: iconSrc,
12685
+ amount: amountToken,
12686
+ dollarAmount: amountUSD
12687
+ }
12606
12688
  }
12607
12689
  ) });
12608
12690
  };
@@ -12666,9 +12748,11 @@ var EarnDepositWarningView = ({
12666
12748
  );
12667
12749
  };
12668
12750
  var EarnDepositWarningSimpleView = ({
12669
- title,
12670
- description,
12671
- onBack
12751
+ onBack,
12752
+ amountToken,
12753
+ amountUSD,
12754
+ iconSrc,
12755
+ strategyName
12672
12756
  }) => {
12673
12757
  React6__default.useEffect(() => {
12674
12758
  if (!onBack) return;
@@ -12679,8 +12763,15 @@ var EarnDepositWarningSimpleView = ({
12679
12763
  EarnFeedbackOverlaySimpleView,
12680
12764
  {
12681
12765
  variant: "warning",
12682
- title,
12683
- subtitle: description
12766
+ title: "Assinatura Recusada",
12767
+ subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
12768
+ formData: {
12769
+ headerTitle: "Dep\xF3sito",
12770
+ tokenSymbol: strategyName,
12771
+ tokenLogoURI: iconSrc,
12772
+ amount: amountToken,
12773
+ dollarAmount: amountUSD
12774
+ }
12684
12775
  }
12685
12776
  ) });
12686
12777
  };
@@ -12747,9 +12838,11 @@ var EarnDepositFailedView = ({
12747
12838
  );
12748
12839
  };
12749
12840
  var EarnDepositFailedSimpleView = ({
12750
- title,
12751
- description,
12752
- onBack
12841
+ onBack,
12842
+ amountToken,
12843
+ amountUSD,
12844
+ iconSrc,
12845
+ strategyName
12753
12846
  }) => {
12754
12847
  React6__default.useEffect(() => {
12755
12848
  if (!onBack) return;
@@ -12760,8 +12853,15 @@ var EarnDepositFailedSimpleView = ({
12760
12853
  EarnFeedbackOverlaySimpleView,
12761
12854
  {
12762
12855
  variant: "error",
12763
- title,
12764
- subtitle: description
12856
+ title: "Dep\xF3sito Falhou",
12857
+ subtitle: "A transa\xE7\xE3o foi revertida.",
12858
+ formData: {
12859
+ headerTitle: "Dep\xF3sito",
12860
+ tokenSymbol: strategyName,
12861
+ tokenLogoURI: iconSrc,
12862
+ amount: amountToken,
12863
+ dollarAmount: amountUSD
12864
+ }
12765
12865
  }
12766
12866
  ) });
12767
12867
  };
@@ -12831,15 +12931,24 @@ var EarnWithdrawProcessingView = ({
12831
12931
  );
12832
12932
  };
12833
12933
  var EarnWithdrawProcessingSimpleView = ({
12834
- title,
12835
- descriptionPrefix
12934
+ amountToken,
12935
+ amountUSD,
12936
+ iconSrc,
12937
+ strategyName
12836
12938
  }) => {
12837
12939
  return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-withdraw-processing-simple-view", children: /* @__PURE__ */ jsx(
12838
12940
  EarnFeedbackOverlaySimpleView,
12839
12941
  {
12840
12942
  variant: "loading",
12841
- title,
12842
- subtitle: descriptionPrefix
12943
+ title: "Processando Saque...",
12944
+ subtitle: "Aguarde enquanto seu saque \xE9 confirmado.",
12945
+ formData: {
12946
+ headerTitle: "Saque",
12947
+ tokenSymbol: strategyName,
12948
+ tokenLogoURI: iconSrc,
12949
+ amount: amountToken,
12950
+ dollarAmount: amountUSD
12951
+ }
12843
12952
  }
12844
12953
  ) });
12845
12954
  };
@@ -12910,9 +13019,12 @@ var EarnWithdrawSuccessView = ({
12910
13019
  );
12911
13020
  };
12912
13021
  var EarnWithdrawSuccessSimpleView = ({
12913
- title,
12914
- descriptionSuffix,
12915
- onClose
13022
+ onClose,
13023
+ tokenSymbol,
13024
+ amountToken,
13025
+ amountUSD,
13026
+ iconSrc,
13027
+ strategyName
12916
13028
  }) => {
12917
13029
  React6__default.useEffect(() => {
12918
13030
  if (!onClose) return;
@@ -12923,8 +13035,15 @@ var EarnWithdrawSuccessSimpleView = ({
12923
13035
  EarnFeedbackOverlaySimpleView,
12924
13036
  {
12925
13037
  variant: "success",
12926
- title,
12927
- subtitle: descriptionSuffix
13038
+ title: "Saque Confirmado!",
13039
+ subtitle: "Seu saldo foi atualizado.",
13040
+ formData: {
13041
+ headerTitle: "Saque",
13042
+ tokenSymbol: tokenSymbol || strategyName,
13043
+ tokenLogoURI: iconSrc,
13044
+ amount: amountToken,
13045
+ dollarAmount: amountUSD
13046
+ }
12928
13047
  }
12929
13048
  ) });
12930
13049
  };
@@ -12988,9 +13107,11 @@ var EarnWithdrawWarningView = ({
12988
13107
  );
12989
13108
  };
12990
13109
  var EarnWithdrawWarningSimpleView = ({
12991
- title,
12992
- description,
12993
- onBack
13110
+ onBack,
13111
+ amountToken,
13112
+ amountUSD,
13113
+ iconSrc,
13114
+ strategyName
12994
13115
  }) => {
12995
13116
  React6__default.useEffect(() => {
12996
13117
  if (!onBack) return;
@@ -13001,8 +13122,15 @@ var EarnWithdrawWarningSimpleView = ({
13001
13122
  EarnFeedbackOverlaySimpleView,
13002
13123
  {
13003
13124
  variant: "warning",
13004
- title,
13005
- subtitle: description
13125
+ title: "Assinatura Recusada",
13126
+ subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
13127
+ formData: {
13128
+ headerTitle: "Saque",
13129
+ tokenSymbol: strategyName,
13130
+ tokenLogoURI: iconSrc,
13131
+ amount: amountToken,
13132
+ dollarAmount: amountUSD
13133
+ }
13006
13134
  }
13007
13135
  ) });
13008
13136
  };
@@ -13069,9 +13197,11 @@ var EarnWithdrawFailedView = ({
13069
13197
  );
13070
13198
  };
13071
13199
  var EarnWithdrawFailedSimpleView = ({
13072
- title,
13073
- description,
13074
- onBack
13200
+ onBack,
13201
+ amountToken,
13202
+ amountUSD,
13203
+ iconSrc,
13204
+ strategyName
13075
13205
  }) => {
13076
13206
  React6__default.useEffect(() => {
13077
13207
  if (!onBack) return;
@@ -13082,8 +13212,15 @@ var EarnWithdrawFailedSimpleView = ({
13082
13212
  EarnFeedbackOverlaySimpleView,
13083
13213
  {
13084
13214
  variant: "error",
13085
- title,
13086
- subtitle: description
13215
+ title: "Saque Falhou",
13216
+ subtitle: "A transa\xE7\xE3o foi revertida.",
13217
+ formData: {
13218
+ headerTitle: "Saque",
13219
+ tokenSymbol: strategyName,
13220
+ tokenLogoURI: iconSrc,
13221
+ amount: amountToken,
13222
+ dollarAmount: amountUSD
13223
+ }
13087
13224
  }
13088
13225
  ) });
13089
13226
  };
@@ -13484,7 +13621,8 @@ var OnchainDepositFormSimpleView = ({
13484
13621
  isLoading: false,
13485
13622
  selectTokenLabel: "SELECIONE AQUI",
13486
13623
  chainLabel: (_a = selectedChain == null ? void 0 : selectedChain.name) != null ? _a : "",
13487
- chainImage: selectedChain == null ? void 0 : selectedChain.iconUrl
13624
+ chainImage: selectedChain == null ? void 0 : selectedChain.iconUrl,
13625
+ className: "w-full justify-between"
13488
13626
  }
13489
13627
  ),
13490
13628
  !hasToken && /* @__PURE__ */ jsx(
@@ -13781,7 +13919,12 @@ function OnchainDepositSuccessView({
13781
13919
  );
13782
13920
  }
13783
13921
  var OnchainDepositSuccessSimpleView = ({
13784
- onClose
13922
+ onClose,
13923
+ tokenSymbol,
13924
+ tokenLogoURI,
13925
+ chainName,
13926
+ chainIconUrl,
13927
+ formattedAmount
13785
13928
  }) => {
13786
13929
  React6.useEffect(() => {
13787
13930
  if (!onClose) return;
@@ -13793,7 +13936,15 @@ var OnchainDepositSuccessSimpleView = ({
13793
13936
  {
13794
13937
  variant: "success",
13795
13938
  title: "Dep\xF3sito Confirmado!",
13796
- subtitle: "Seu saldo foi atualizado."
13939
+ subtitle: "Seu saldo foi atualizado.",
13940
+ formData: {
13941
+ headerTitle: "Dep\xF3sito",
13942
+ tokenSymbol,
13943
+ tokenLogoURI,
13944
+ chainLabel: chainName,
13945
+ chainImage: chainIconUrl,
13946
+ amount: formattedAmount
13947
+ }
13797
13948
  }
13798
13949
  ) });
13799
13950
  };
@@ -14823,14 +14974,16 @@ function OnchainWithdrawFailedView({
14823
14974
  );
14824
14975
  }
14825
14976
  var OnchainWithdrawProcessingSimpleView = ({
14826
- onClose: _onClose
14977
+ onClose: _onClose,
14978
+ formData
14827
14979
  }) => {
14828
14980
  return /* @__PURE__ */ jsx("div", { "data-test-id": "onchain-withdraw-processing-simple-view", children: /* @__PURE__ */ jsx(
14829
14981
  EarnFeedbackOverlaySimpleView,
14830
14982
  {
14831
14983
  variant: "loading",
14832
14984
  title: "PROCESSANDO SAQUE...",
14833
- subtitle: "Aguarde enquanto sua transa\xE7\xE3o \xE9 confirmada."
14985
+ subtitle: "Aguarde enquanto sua transa\xE7\xE3o \xE9 confirmada.",
14986
+ formData
14834
14987
  }
14835
14988
  ) });
14836
14989
  };
@@ -15097,7 +15250,12 @@ function OnchainWithdrawSignatureWarningView({
15097
15250
  );
15098
15251
  }
15099
15252
  var OnchainWithdrawSignatureWarningSimpleView = ({
15100
- onCancel
15253
+ onCancel,
15254
+ tokenSymbol,
15255
+ tokenLogoURI,
15256
+ chainName,
15257
+ chainIconUrl,
15258
+ formattedAmount
15101
15259
  }) => {
15102
15260
  React6.useEffect(() => {
15103
15261
  if (!onCancel) return;
@@ -15109,7 +15267,15 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15109
15267
  {
15110
15268
  variant: "warning",
15111
15269
  title: "Saque n\xE3o assinado",
15112
- subtitle: "A assinatura da transa\xE7\xE3o foi cancelada."
15270
+ subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
15271
+ formData: {
15272
+ headerTitle: "Saque",
15273
+ tokenSymbol,
15274
+ tokenLogoURI,
15275
+ chainLabel: chainName,
15276
+ chainImage: chainIconUrl,
15277
+ amount: formattedAmount
15278
+ }
15113
15279
  }
15114
15280
  ) });
15115
15281
  };