@deframe-sdk/components 0.1.34 → 0.1.36
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 +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +282 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +282 -112
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +24 -0
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -8980,16 +9014,12 @@ var StrategyGridCard = ({
|
|
|
8980
9014
|
]
|
|
8981
9015
|
}
|
|
8982
9016
|
);
|
|
8983
|
-
var
|
|
8984
|
-
"w-full",
|
|
9017
|
+
var cardClasses = [
|
|
9018
|
+
"w-full flex flex-col gap-[var(--deframe-widget-size-gap-sm)]",
|
|
9019
|
+
"px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]",
|
|
8985
9020
|
"bg-[var(--deframe-widget-color-bg-secondary)]",
|
|
8986
9021
|
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
8987
|
-
"rounded-[var(--deframe-widget-size-radius-md)]"
|
|
8988
|
-
"p-[var(--deframe-widget-size-padding-x-md)]",
|
|
8989
|
-
"flex flex-row items-center justify-between",
|
|
8990
|
-
"gap-[var(--deframe-widget-size-gap-md)]",
|
|
8991
|
-
"hover:border-[color:var(--deframe-widget-color-border-primary)]",
|
|
8992
|
-
"transition-colors"
|
|
9022
|
+
"rounded-[var(--deframe-widget-size-radius-md)]"
|
|
8993
9023
|
].join(" ");
|
|
8994
9024
|
var StrategyGridCardSimple = ({
|
|
8995
9025
|
logoUrl,
|
|
@@ -9003,41 +9033,49 @@ var StrategyGridCardSimple = ({
|
|
|
9003
9033
|
var _a, _b, _c, _d, _e;
|
|
9004
9034
|
const investLabel = (_a = labels == null ? void 0 : labels.investLabel) != null ? _a : "Depositar";
|
|
9005
9035
|
const riskBadgeMap = {
|
|
9006
|
-
low: /* @__PURE__ */ jsx(LowRiskBadge, { label: (_b = labels == null ? void 0 : labels.riskLow) != null ? _b : "
|
|
9007
|
-
medium: /* @__PURE__ */ jsx(MediumRiskBadge, { label: (_c = labels == null ? void 0 : labels.riskMedium) != null ? _c : "
|
|
9008
|
-
high: /* @__PURE__ */ jsx(HighRiskBadge, { label: (_d = labels == null ? void 0 : labels.riskHigh) != null ? _d : "
|
|
9036
|
+
low: /* @__PURE__ */ jsx(LowRiskBadge, { label: (_b = labels == null ? void 0 : labels.riskLow) != null ? _b : "Baixo" }),
|
|
9037
|
+
medium: /* @__PURE__ */ jsx(MediumRiskBadge, { label: (_c = labels == null ? void 0 : labels.riskMedium) != null ? _c : "M\xE9dio" }),
|
|
9038
|
+
high: /* @__PURE__ */ jsx(HighRiskBadge, { label: (_d = labels == null ? void 0 : labels.riskHigh) != null ? _d : "Alto" })
|
|
9009
9039
|
};
|
|
9010
9040
|
return /* @__PURE__ */ jsxs(
|
|
9011
9041
|
"article",
|
|
9012
9042
|
{
|
|
9013
9043
|
"data-slot": "strategy-grid-card-simple",
|
|
9014
9044
|
"data-test-id": "strategy-grid-card-simple",
|
|
9015
|
-
className:
|
|
9045
|
+
className: cardClasses,
|
|
9016
9046
|
children: [
|
|
9017
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--deframe-widget-size-gap-sm)]
|
|
9047
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full flex items-center gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
9018
9048
|
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-[var(--deframe-widget-color-bg-tertiary)] flex items-center justify-center overflow-hidden shrink-0", children: /* @__PURE__ */ jsx("img", { alt: title, src: logoUrl, referrerPolicy: "no-referrer", className: "w-full h-full object-contain" }) }),
|
|
9019
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col min-w-0", children: [
|
|
9020
|
-
/* @__PURE__ */ jsx("span", { className: "text-[
|
|
9021
|
-
/* @__PURE__ */ jsx("span", { className: "text-[
|
|
9022
|
-
] })
|
|
9023
|
-
|
|
9024
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
9025
|
-
/* @__PURE__ */ jsx("span", { className: "text-[length:var(--deframe-widget-font-size-xs)] [font-weight:var(--deframe-widget-font-weight-medium)] uppercase tracking-[0.08em] text-[color:var(--deframe-widget-color-text-tertiary)]", children: (_e = labels == null ? void 0 : labels.apyLabel) != null ? _e : "Rendimento" }),
|
|
9026
|
-
/* @__PURE__ */ jsx("span", { className: "text-[length:var(--deframe-widget-font-size-lg)] [font-weight:var(--deframe-widget-font-weight-bold)] text-[color:var(--deframe-widget-color-brand-primary)] font-[var(--deframe-widget-font-family)] leading-none mt-[2px]", children: apyFormatted })
|
|
9049
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
9050
|
+
/* @__PURE__ */ jsx("span", { className: "text-[14px] [font-weight:var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-[1.3] font-[var(--deframe-widget-font-family)] truncate", children: title }),
|
|
9051
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)] leading-[1.4]", children: chainName })
|
|
9052
|
+
] }),
|
|
9053
|
+
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: riskBadgeMap[riskLevel] })
|
|
9027
9054
|
] }),
|
|
9028
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-
|
|
9029
|
-
/* @__PURE__ */ jsx("
|
|
9055
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
9056
|
+
/* @__PURE__ */ jsx("span", { className: "text-[11px] [font-weight:var(--deframe-widget-font-weight-medium)] uppercase tracking-[0.08em] text-[color:var(--deframe-widget-color-text-tertiary)]", children: (_e = labels == null ? void 0 : labels.apyLabel) != null ? _e : "Rendimento" }),
|
|
9030
9057
|
/* @__PURE__ */ jsx(
|
|
9031
|
-
|
|
9058
|
+
"span",
|
|
9032
9059
|
{
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9060
|
+
className: twMerge(
|
|
9061
|
+
"text-[22px] [font-weight:var(--deframe-widget-font-weight-bold)]",
|
|
9062
|
+
"text-[color:var(--deframe-widget-color-brand-primary)]",
|
|
9063
|
+
"font-[var(--deframe-widget-font-family)] leading-[1.1]"
|
|
9064
|
+
),
|
|
9065
|
+
children: apyFormatted
|
|
9038
9066
|
}
|
|
9039
9067
|
)
|
|
9040
|
-
] })
|
|
9068
|
+
] }),
|
|
9069
|
+
/* @__PURE__ */ jsx(
|
|
9070
|
+
PrimaryButton,
|
|
9071
|
+
{
|
|
9072
|
+
"data-test-id": "strategy-grid-card-simple-invest",
|
|
9073
|
+
"aria-label": `${investLabel} ${title}`,
|
|
9074
|
+
onClick: onInvestClick,
|
|
9075
|
+
className: "h-9 text-[13px] w-full",
|
|
9076
|
+
children: investLabel
|
|
9077
|
+
}
|
|
9078
|
+
)
|
|
9041
9079
|
]
|
|
9042
9080
|
}
|
|
9043
9081
|
);
|
|
@@ -10891,7 +10929,8 @@ var EarnTokenSelectorSimpleView = ({
|
|
|
10891
10929
|
isLoading,
|
|
10892
10930
|
selectTokenLabel,
|
|
10893
10931
|
chainLabel,
|
|
10894
|
-
chainImage
|
|
10932
|
+
chainImage,
|
|
10933
|
+
className
|
|
10895
10934
|
}) => {
|
|
10896
10935
|
const hasToken = selectedToken != null;
|
|
10897
10936
|
const isInteractive = !!onNetworkAndAssetClick;
|
|
@@ -10910,7 +10949,8 @@ var EarnTokenSelectorSimpleView = ({
|
|
|
10910
10949
|
};
|
|
10911
10950
|
const selectorClasses = twMerge(
|
|
10912
10951
|
baseClasses,
|
|
10913
|
-
stateClasses[isInteractive ? "interactive" : "static"]
|
|
10952
|
+
stateClasses[isInteractive ? "interactive" : "static"],
|
|
10953
|
+
className
|
|
10914
10954
|
);
|
|
10915
10955
|
return /* @__PURE__ */ jsx(
|
|
10916
10956
|
"button",
|
|
@@ -11037,9 +11077,10 @@ var EarnAmountInputSimpleView = ({
|
|
|
11037
11077
|
dollarAmountFormatted
|
|
11038
11078
|
}) => {
|
|
11039
11079
|
const isEmpty = !value || value === "0";
|
|
11080
|
+
const fontSizeClass = useResponsiveFontSize(value || "");
|
|
11040
11081
|
const inputBaseClasses = [
|
|
11041
11082
|
"bg-transparent border-none outline-none text-right",
|
|
11042
|
-
|
|
11083
|
+
`${fontSizeClass} [font-weight:var(--deframe-widget-font-weight-semibold)] [line-height:1.1]`,
|
|
11043
11084
|
"w-full",
|
|
11044
11085
|
"px-[var(--deframe-widget-size-padding-x-none)] py-[var(--deframe-widget-size-padding-y-none)]",
|
|
11045
11086
|
"font-[var(--deframe-widget-font-family)]",
|
|
@@ -11084,7 +11125,7 @@ var EarnAmountInputSimpleView = ({
|
|
|
11084
11125
|
{
|
|
11085
11126
|
"data-slot": "amount-input-simple-conversion",
|
|
11086
11127
|
"data-test-id": "earn-amount-input-simple-view-conversion",
|
|
11087
|
-
className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]",
|
|
11128
|
+
className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)] overflow-hidden text-ellipsis whitespace-nowrap max-w-full",
|
|
11088
11129
|
children: dollarAmountFormatted
|
|
11089
11130
|
}
|
|
11090
11131
|
)
|
|
@@ -11238,7 +11279,7 @@ var EarnInlineNotificationSimpleView = ({
|
|
|
11238
11279
|
};
|
|
11239
11280
|
var EarnDepositFormViewSimple = ({
|
|
11240
11281
|
// Header / Layout
|
|
11241
|
-
|
|
11282
|
+
pageTitle,
|
|
11242
11283
|
onBack,
|
|
11243
11284
|
onSubmit,
|
|
11244
11285
|
// Token selector
|
|
@@ -11346,7 +11387,7 @@ var EarnDepositFormViewSimple = ({
|
|
|
11346
11387
|
"data-slot": "deposit-panel-simple-title",
|
|
11347
11388
|
"data-test-id": "earn-deposit-form-view-simple-title",
|
|
11348
11389
|
className: titleBaseClasses,
|
|
11349
|
-
children:
|
|
11390
|
+
children: pageTitle
|
|
11350
11391
|
}
|
|
11351
11392
|
)
|
|
11352
11393
|
}
|
|
@@ -11701,7 +11742,7 @@ var EarnWithdrawFormView = ({
|
|
|
11701
11742
|
] });
|
|
11702
11743
|
var EarnWithdrawFormViewSimple = ({
|
|
11703
11744
|
// Header / Layout
|
|
11704
|
-
|
|
11745
|
+
pageTitle,
|
|
11705
11746
|
onBack,
|
|
11706
11747
|
onSubmit,
|
|
11707
11748
|
// Position card (used for inline balance row)
|
|
@@ -11804,7 +11845,7 @@ var EarnWithdrawFormViewSimple = ({
|
|
|
11804
11845
|
"data-slot": "withdraw-panel-simple-title",
|
|
11805
11846
|
"data-test-id": "earn-withdraw-form-view-simple-title",
|
|
11806
11847
|
className: titleBaseClasses,
|
|
11807
|
-
children:
|
|
11848
|
+
children: pageTitle
|
|
11808
11849
|
}
|
|
11809
11850
|
)
|
|
11810
11851
|
}
|
|
@@ -12063,7 +12104,18 @@ var EarnDepositProcessingView = ({
|
|
|
12063
12104
|
}
|
|
12064
12105
|
);
|
|
12065
12106
|
};
|
|
12066
|
-
function EarnFormSkeleton(
|
|
12107
|
+
function EarnFormSkeleton({
|
|
12108
|
+
headerTitle = "Deposit",
|
|
12109
|
+
tokenSymbol = "USDC",
|
|
12110
|
+
tokenLogoURI,
|
|
12111
|
+
chainLabel = "Arbitrum",
|
|
12112
|
+
chainImage,
|
|
12113
|
+
amount = "500",
|
|
12114
|
+
dollarAmount = "\u2248 $499.87",
|
|
12115
|
+
availableBalance = "Available: 1,250.00 USDC",
|
|
12116
|
+
cancelLabel = "Cancel",
|
|
12117
|
+
submitLabel = "Deposit"
|
|
12118
|
+
} = {}) {
|
|
12067
12119
|
const headerClasses = [
|
|
12068
12120
|
"flex items-center",
|
|
12069
12121
|
"px-[var(--deframe-widget-size-padding-x-md)]",
|
|
@@ -12099,7 +12151,7 @@ function EarnFormSkeleton() {
|
|
|
12099
12151
|
"data-test-id": "earn-form-skeleton",
|
|
12100
12152
|
className: "flex flex-col font-[var(--deframe-widget-font-family)]",
|
|
12101
12153
|
children: [
|
|
12102
|
-
/* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-header", className: headerClasses, children: /* @__PURE__ */ jsx("span", { className: titleClasses2, children:
|
|
12154
|
+
/* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-header", className: headerClasses, children: /* @__PURE__ */ jsx("span", { className: titleClasses2, children: headerTitle }) }),
|
|
12103
12155
|
/* @__PURE__ */ jsx("div", { "data-test-id": "earn-form-skeleton-divider", className: dividerClasses }),
|
|
12104
12156
|
/* @__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
12157
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
@@ -12115,29 +12167,43 @@ function EarnFormSkeleton() {
|
|
|
12115
12167
|
),
|
|
12116
12168
|
children: [
|
|
12117
12169
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0 w-[38px] h-[38px]", children: [
|
|
12118
|
-
/* @__PURE__ */ jsx(
|
|
12170
|
+
tokenLogoURI ? /* @__PURE__ */ jsx(
|
|
12171
|
+
"img",
|
|
12172
|
+
{
|
|
12173
|
+
src: tokenLogoURI,
|
|
12174
|
+
alt: tokenSymbol,
|
|
12175
|
+
className: "w-full h-full rounded-[var(--deframe-widget-size-radius-full)] object-cover"
|
|
12176
|
+
}
|
|
12177
|
+
) : /* @__PURE__ */ jsx(
|
|
12119
12178
|
"div",
|
|
12120
12179
|
{
|
|
12121
12180
|
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:
|
|
12181
|
+
children: tokenSymbol.slice(0, 2).toUpperCase()
|
|
12123
12182
|
}
|
|
12124
12183
|
),
|
|
12125
|
-
/* @__PURE__ */ jsx("div", { className: "absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-[var(--deframe-widget-size-radius-full)]
|
|
12184
|
+
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(
|
|
12185
|
+
"img",
|
|
12186
|
+
{
|
|
12187
|
+
src: chainImage,
|
|
12188
|
+
alt: chainLabel,
|
|
12189
|
+
className: "w-full h-full rounded-[var(--deframe-widget-size-radius-full)] object-cover"
|
|
12190
|
+
}
|
|
12191
|
+
) }) : /* @__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
12192
|
] }),
|
|
12127
12193
|
/* @__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:
|
|
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:
|
|
12194
|
+
/* @__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 }),
|
|
12195
|
+
/* @__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
12196
|
] })
|
|
12131
12197
|
]
|
|
12132
12198
|
}
|
|
12133
12199
|
),
|
|
12134
12200
|
/* @__PURE__ */ jsx("div", { className: "w-px h-10 bg-[var(--deframe-widget-color-border-secondary)] flex-shrink-0" }),
|
|
12135
12201
|
/* @__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:
|
|
12137
|
-
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children:
|
|
12202
|
+
/* @__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 }),
|
|
12203
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children: dollarAmount })
|
|
12138
12204
|
] })
|
|
12139
12205
|
] }),
|
|
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:
|
|
12206
|
+
/* @__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
12207
|
] }) }),
|
|
12142
12208
|
/* @__PURE__ */ jsxs("div", { "data-test-id": "earn-form-skeleton-footer", className: footerClasses, children: [
|
|
12143
12209
|
/* @__PURE__ */ jsx(
|
|
@@ -12152,7 +12218,7 @@ function EarnFormSkeleton() {
|
|
|
12152
12218
|
"text-[15px] [font-weight:var(--deframe-widget-font-weight-semibold)]",
|
|
12153
12219
|
"text-[color:var(--deframe-widget-color-text-secondary)]"
|
|
12154
12220
|
),
|
|
12155
|
-
children:
|
|
12221
|
+
children: cancelLabel
|
|
12156
12222
|
}
|
|
12157
12223
|
),
|
|
12158
12224
|
/* @__PURE__ */ jsx(
|
|
@@ -12167,7 +12233,7 @@ function EarnFormSkeleton() {
|
|
|
12167
12233
|
"text-[15px] [font-weight:var(--deframe-widget-font-weight-semibold)]",
|
|
12168
12234
|
"text-[color:var(--deframe-widget-color-text-primary-dark)]"
|
|
12169
12235
|
),
|
|
12170
|
-
children:
|
|
12236
|
+
children: submitLabel
|
|
12171
12237
|
}
|
|
12172
12238
|
)
|
|
12173
12239
|
] })
|
|
@@ -12178,7 +12244,8 @@ function EarnFormSkeleton() {
|
|
|
12178
12244
|
function EarnFeedbackOverlaySimpleView({
|
|
12179
12245
|
variant,
|
|
12180
12246
|
title,
|
|
12181
|
-
subtitle
|
|
12247
|
+
subtitle,
|
|
12248
|
+
formData
|
|
12182
12249
|
}) {
|
|
12183
12250
|
const isLoading = variant === "loading";
|
|
12184
12251
|
const wrapperClasses = twMerge(
|
|
@@ -12194,7 +12261,7 @@ function EarnFeedbackOverlaySimpleView({
|
|
|
12194
12261
|
"px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-lg)]",
|
|
12195
12262
|
"rounded-[inherit]",
|
|
12196
12263
|
"backdrop-blur-[12px] [-webkit-backdrop-filter:blur(12px)]",
|
|
12197
|
-
"bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-
|
|
12264
|
+
"bg-[color-mix(in_srgb,var(--deframe-widget-color-bg-secondary)_88%,transparent)]"
|
|
12198
12265
|
);
|
|
12199
12266
|
const textSectionClasses = twMerge(
|
|
12200
12267
|
"flex flex-col items-center",
|
|
@@ -12217,7 +12284,7 @@ function EarnFeedbackOverlaySimpleView({
|
|
|
12217
12284
|
"data-slot": "earn-feedback-overlay-wrapper",
|
|
12218
12285
|
className: wrapperClasses,
|
|
12219
12286
|
children: [
|
|
12220
|
-
/* @__PURE__ */ jsx("div", { "data-test-id": "earn-feedback-overlay-skeleton", children: /* @__PURE__ */ jsx(EarnFormSkeleton, {}) }),
|
|
12287
|
+
/* @__PURE__ */ jsx("div", { "data-test-id": "earn-feedback-overlay-skeleton", children: /* @__PURE__ */ jsx(EarnFormSkeleton, __spreadValues({}, formData)) }),
|
|
12221
12288
|
/* @__PURE__ */ jsxs(
|
|
12222
12289
|
motion.div,
|
|
12223
12290
|
{
|
|
@@ -12502,15 +12569,24 @@ function WarningIcon2() {
|
|
|
12502
12569
|
);
|
|
12503
12570
|
}
|
|
12504
12571
|
var EarnDepositProcessingSimpleView = ({
|
|
12505
|
-
|
|
12506
|
-
|
|
12572
|
+
amountToken,
|
|
12573
|
+
amountUSD,
|
|
12574
|
+
iconSrc,
|
|
12575
|
+
strategyName
|
|
12507
12576
|
}) => {
|
|
12508
12577
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-deposit-processing-simple-view", children: /* @__PURE__ */ jsx(
|
|
12509
12578
|
EarnFeedbackOverlaySimpleView,
|
|
12510
12579
|
{
|
|
12511
12580
|
variant: "loading",
|
|
12512
|
-
title,
|
|
12513
|
-
subtitle:
|
|
12581
|
+
title: "Processando Dep\xF3sito...",
|
|
12582
|
+
subtitle: "Aguarde enquanto seu dep\xF3sito \xE9 confirmado.",
|
|
12583
|
+
formData: {
|
|
12584
|
+
headerTitle: "Dep\xF3sito",
|
|
12585
|
+
tokenSymbol: strategyName,
|
|
12586
|
+
tokenLogoURI: iconSrc,
|
|
12587
|
+
amount: amountToken,
|
|
12588
|
+
dollarAmount: amountUSD
|
|
12589
|
+
}
|
|
12514
12590
|
}
|
|
12515
12591
|
) });
|
|
12516
12592
|
};
|
|
@@ -12588,9 +12664,12 @@ var EarnDepositSuccessView = ({
|
|
|
12588
12664
|
);
|
|
12589
12665
|
};
|
|
12590
12666
|
var EarnDepositSuccessSimpleView = ({
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12667
|
+
onClose,
|
|
12668
|
+
tokenSymbol,
|
|
12669
|
+
amountToken,
|
|
12670
|
+
amountUSD,
|
|
12671
|
+
iconSrc,
|
|
12672
|
+
strategyName
|
|
12594
12673
|
}) => {
|
|
12595
12674
|
React6__default.useEffect(() => {
|
|
12596
12675
|
if (!onClose) return;
|
|
@@ -12601,8 +12680,15 @@ var EarnDepositSuccessSimpleView = ({
|
|
|
12601
12680
|
EarnFeedbackOverlaySimpleView,
|
|
12602
12681
|
{
|
|
12603
12682
|
variant: "success",
|
|
12604
|
-
title,
|
|
12605
|
-
subtitle:
|
|
12683
|
+
title: "Dep\xF3sito Confirmado!",
|
|
12684
|
+
subtitle: "Seu saldo foi atualizado.",
|
|
12685
|
+
formData: {
|
|
12686
|
+
headerTitle: "Dep\xF3sito",
|
|
12687
|
+
tokenSymbol: tokenSymbol || strategyName,
|
|
12688
|
+
tokenLogoURI: iconSrc,
|
|
12689
|
+
amount: amountToken,
|
|
12690
|
+
dollarAmount: amountUSD
|
|
12691
|
+
}
|
|
12606
12692
|
}
|
|
12607
12693
|
) });
|
|
12608
12694
|
};
|
|
@@ -12666,9 +12752,11 @@ var EarnDepositWarningView = ({
|
|
|
12666
12752
|
);
|
|
12667
12753
|
};
|
|
12668
12754
|
var EarnDepositWarningSimpleView = ({
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12755
|
+
onBack,
|
|
12756
|
+
amountToken,
|
|
12757
|
+
amountUSD,
|
|
12758
|
+
iconSrc,
|
|
12759
|
+
strategyName
|
|
12672
12760
|
}) => {
|
|
12673
12761
|
React6__default.useEffect(() => {
|
|
12674
12762
|
if (!onBack) return;
|
|
@@ -12679,8 +12767,15 @@ var EarnDepositWarningSimpleView = ({
|
|
|
12679
12767
|
EarnFeedbackOverlaySimpleView,
|
|
12680
12768
|
{
|
|
12681
12769
|
variant: "warning",
|
|
12682
|
-
title,
|
|
12683
|
-
subtitle:
|
|
12770
|
+
title: "Assinatura Recusada",
|
|
12771
|
+
subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
|
|
12772
|
+
formData: {
|
|
12773
|
+
headerTitle: "Dep\xF3sito",
|
|
12774
|
+
tokenSymbol: strategyName,
|
|
12775
|
+
tokenLogoURI: iconSrc,
|
|
12776
|
+
amount: amountToken,
|
|
12777
|
+
dollarAmount: amountUSD
|
|
12778
|
+
}
|
|
12684
12779
|
}
|
|
12685
12780
|
) });
|
|
12686
12781
|
};
|
|
@@ -12747,9 +12842,11 @@ var EarnDepositFailedView = ({
|
|
|
12747
12842
|
);
|
|
12748
12843
|
};
|
|
12749
12844
|
var EarnDepositFailedSimpleView = ({
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12845
|
+
onBack,
|
|
12846
|
+
amountToken,
|
|
12847
|
+
amountUSD,
|
|
12848
|
+
iconSrc,
|
|
12849
|
+
strategyName
|
|
12753
12850
|
}) => {
|
|
12754
12851
|
React6__default.useEffect(() => {
|
|
12755
12852
|
if (!onBack) return;
|
|
@@ -12760,8 +12857,15 @@ var EarnDepositFailedSimpleView = ({
|
|
|
12760
12857
|
EarnFeedbackOverlaySimpleView,
|
|
12761
12858
|
{
|
|
12762
12859
|
variant: "error",
|
|
12763
|
-
title,
|
|
12764
|
-
subtitle:
|
|
12860
|
+
title: "Dep\xF3sito Falhou",
|
|
12861
|
+
subtitle: "A transa\xE7\xE3o foi revertida.",
|
|
12862
|
+
formData: {
|
|
12863
|
+
headerTitle: "Dep\xF3sito",
|
|
12864
|
+
tokenSymbol: strategyName,
|
|
12865
|
+
tokenLogoURI: iconSrc,
|
|
12866
|
+
amount: amountToken,
|
|
12867
|
+
dollarAmount: amountUSD
|
|
12868
|
+
}
|
|
12765
12869
|
}
|
|
12766
12870
|
) });
|
|
12767
12871
|
};
|
|
@@ -12831,15 +12935,24 @@ var EarnWithdrawProcessingView = ({
|
|
|
12831
12935
|
);
|
|
12832
12936
|
};
|
|
12833
12937
|
var EarnWithdrawProcessingSimpleView = ({
|
|
12834
|
-
|
|
12835
|
-
|
|
12938
|
+
amountToken,
|
|
12939
|
+
amountUSD,
|
|
12940
|
+
iconSrc,
|
|
12941
|
+
strategyName
|
|
12836
12942
|
}) => {
|
|
12837
12943
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-withdraw-processing-simple-view", children: /* @__PURE__ */ jsx(
|
|
12838
12944
|
EarnFeedbackOverlaySimpleView,
|
|
12839
12945
|
{
|
|
12840
12946
|
variant: "loading",
|
|
12841
|
-
title,
|
|
12842
|
-
subtitle:
|
|
12947
|
+
title: "Processando Saque...",
|
|
12948
|
+
subtitle: "Aguarde enquanto seu saque \xE9 confirmado.",
|
|
12949
|
+
formData: {
|
|
12950
|
+
headerTitle: "Saque",
|
|
12951
|
+
tokenSymbol: strategyName,
|
|
12952
|
+
tokenLogoURI: iconSrc,
|
|
12953
|
+
amount: amountToken,
|
|
12954
|
+
dollarAmount: amountUSD
|
|
12955
|
+
}
|
|
12843
12956
|
}
|
|
12844
12957
|
) });
|
|
12845
12958
|
};
|
|
@@ -12910,9 +13023,12 @@ var EarnWithdrawSuccessView = ({
|
|
|
12910
13023
|
);
|
|
12911
13024
|
};
|
|
12912
13025
|
var EarnWithdrawSuccessSimpleView = ({
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
13026
|
+
onClose,
|
|
13027
|
+
tokenSymbol,
|
|
13028
|
+
amountToken,
|
|
13029
|
+
amountUSD,
|
|
13030
|
+
iconSrc,
|
|
13031
|
+
strategyName
|
|
12916
13032
|
}) => {
|
|
12917
13033
|
React6__default.useEffect(() => {
|
|
12918
13034
|
if (!onClose) return;
|
|
@@ -12923,8 +13039,15 @@ var EarnWithdrawSuccessSimpleView = ({
|
|
|
12923
13039
|
EarnFeedbackOverlaySimpleView,
|
|
12924
13040
|
{
|
|
12925
13041
|
variant: "success",
|
|
12926
|
-
title,
|
|
12927
|
-
subtitle:
|
|
13042
|
+
title: "Saque Confirmado!",
|
|
13043
|
+
subtitle: "Seu saldo foi atualizado.",
|
|
13044
|
+
formData: {
|
|
13045
|
+
headerTitle: "Saque",
|
|
13046
|
+
tokenSymbol: tokenSymbol || strategyName,
|
|
13047
|
+
tokenLogoURI: iconSrc,
|
|
13048
|
+
amount: amountToken,
|
|
13049
|
+
dollarAmount: amountUSD
|
|
13050
|
+
}
|
|
12928
13051
|
}
|
|
12929
13052
|
) });
|
|
12930
13053
|
};
|
|
@@ -12988,9 +13111,11 @@ var EarnWithdrawWarningView = ({
|
|
|
12988
13111
|
);
|
|
12989
13112
|
};
|
|
12990
13113
|
var EarnWithdrawWarningSimpleView = ({
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
13114
|
+
onBack,
|
|
13115
|
+
amountToken,
|
|
13116
|
+
amountUSD,
|
|
13117
|
+
iconSrc,
|
|
13118
|
+
strategyName
|
|
12994
13119
|
}) => {
|
|
12995
13120
|
React6__default.useEffect(() => {
|
|
12996
13121
|
if (!onBack) return;
|
|
@@ -13001,8 +13126,15 @@ var EarnWithdrawWarningSimpleView = ({
|
|
|
13001
13126
|
EarnFeedbackOverlaySimpleView,
|
|
13002
13127
|
{
|
|
13003
13128
|
variant: "warning",
|
|
13004
|
-
title,
|
|
13005
|
-
subtitle:
|
|
13129
|
+
title: "Assinatura Recusada",
|
|
13130
|
+
subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
|
|
13131
|
+
formData: {
|
|
13132
|
+
headerTitle: "Saque",
|
|
13133
|
+
tokenSymbol: strategyName,
|
|
13134
|
+
tokenLogoURI: iconSrc,
|
|
13135
|
+
amount: amountToken,
|
|
13136
|
+
dollarAmount: amountUSD
|
|
13137
|
+
}
|
|
13006
13138
|
}
|
|
13007
13139
|
) });
|
|
13008
13140
|
};
|
|
@@ -13069,9 +13201,11 @@ var EarnWithdrawFailedView = ({
|
|
|
13069
13201
|
);
|
|
13070
13202
|
};
|
|
13071
13203
|
var EarnWithdrawFailedSimpleView = ({
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13204
|
+
onBack,
|
|
13205
|
+
amountToken,
|
|
13206
|
+
amountUSD,
|
|
13207
|
+
iconSrc,
|
|
13208
|
+
strategyName
|
|
13075
13209
|
}) => {
|
|
13076
13210
|
React6__default.useEffect(() => {
|
|
13077
13211
|
if (!onBack) return;
|
|
@@ -13082,8 +13216,15 @@ var EarnWithdrawFailedSimpleView = ({
|
|
|
13082
13216
|
EarnFeedbackOverlaySimpleView,
|
|
13083
13217
|
{
|
|
13084
13218
|
variant: "error",
|
|
13085
|
-
title,
|
|
13086
|
-
subtitle:
|
|
13219
|
+
title: "Saque Falhou",
|
|
13220
|
+
subtitle: "A transa\xE7\xE3o foi revertida.",
|
|
13221
|
+
formData: {
|
|
13222
|
+
headerTitle: "Saque",
|
|
13223
|
+
tokenSymbol: strategyName,
|
|
13224
|
+
tokenLogoURI: iconSrc,
|
|
13225
|
+
amount: amountToken,
|
|
13226
|
+
dollarAmount: amountUSD
|
|
13227
|
+
}
|
|
13087
13228
|
}
|
|
13088
13229
|
) });
|
|
13089
13230
|
};
|
|
@@ -13484,7 +13625,8 @@ var OnchainDepositFormSimpleView = ({
|
|
|
13484
13625
|
isLoading: false,
|
|
13485
13626
|
selectTokenLabel: "SELECIONE AQUI",
|
|
13486
13627
|
chainLabel: (_a = selectedChain == null ? void 0 : selectedChain.name) != null ? _a : "",
|
|
13487
|
-
chainImage: selectedChain == null ? void 0 : selectedChain.iconUrl
|
|
13628
|
+
chainImage: selectedChain == null ? void 0 : selectedChain.iconUrl,
|
|
13629
|
+
className: "w-full justify-between"
|
|
13488
13630
|
}
|
|
13489
13631
|
),
|
|
13490
13632
|
!hasToken && /* @__PURE__ */ jsx(
|
|
@@ -13781,7 +13923,12 @@ function OnchainDepositSuccessView({
|
|
|
13781
13923
|
);
|
|
13782
13924
|
}
|
|
13783
13925
|
var OnchainDepositSuccessSimpleView = ({
|
|
13784
|
-
onClose
|
|
13926
|
+
onClose,
|
|
13927
|
+
tokenSymbol,
|
|
13928
|
+
tokenLogoURI,
|
|
13929
|
+
chainName,
|
|
13930
|
+
chainIconUrl,
|
|
13931
|
+
formattedAmount
|
|
13785
13932
|
}) => {
|
|
13786
13933
|
React6.useEffect(() => {
|
|
13787
13934
|
if (!onClose) return;
|
|
@@ -13793,7 +13940,15 @@ var OnchainDepositSuccessSimpleView = ({
|
|
|
13793
13940
|
{
|
|
13794
13941
|
variant: "success",
|
|
13795
13942
|
title: "Dep\xF3sito Confirmado!",
|
|
13796
|
-
subtitle: "Seu saldo foi atualizado."
|
|
13943
|
+
subtitle: "Seu saldo foi atualizado.",
|
|
13944
|
+
formData: {
|
|
13945
|
+
headerTitle: "Dep\xF3sito",
|
|
13946
|
+
tokenSymbol,
|
|
13947
|
+
tokenLogoURI,
|
|
13948
|
+
chainLabel: chainName,
|
|
13949
|
+
chainImage: chainIconUrl,
|
|
13950
|
+
amount: formattedAmount
|
|
13951
|
+
}
|
|
13797
13952
|
}
|
|
13798
13953
|
) });
|
|
13799
13954
|
};
|
|
@@ -14823,14 +14978,16 @@ function OnchainWithdrawFailedView({
|
|
|
14823
14978
|
);
|
|
14824
14979
|
}
|
|
14825
14980
|
var OnchainWithdrawProcessingSimpleView = ({
|
|
14826
|
-
onClose: _onClose
|
|
14981
|
+
onClose: _onClose,
|
|
14982
|
+
formData
|
|
14827
14983
|
}) => {
|
|
14828
14984
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "onchain-withdraw-processing-simple-view", children: /* @__PURE__ */ jsx(
|
|
14829
14985
|
EarnFeedbackOverlaySimpleView,
|
|
14830
14986
|
{
|
|
14831
14987
|
variant: "loading",
|
|
14832
14988
|
title: "PROCESSANDO SAQUE...",
|
|
14833
|
-
subtitle: "Aguarde enquanto sua transa\xE7\xE3o \xE9 confirmada."
|
|
14989
|
+
subtitle: "Aguarde enquanto sua transa\xE7\xE3o \xE9 confirmada.",
|
|
14990
|
+
formData
|
|
14834
14991
|
}
|
|
14835
14992
|
) });
|
|
14836
14993
|
};
|
|
@@ -15097,7 +15254,12 @@ function OnchainWithdrawSignatureWarningView({
|
|
|
15097
15254
|
);
|
|
15098
15255
|
}
|
|
15099
15256
|
var OnchainWithdrawSignatureWarningSimpleView = ({
|
|
15100
|
-
onCancel
|
|
15257
|
+
onCancel,
|
|
15258
|
+
tokenSymbol,
|
|
15259
|
+
tokenLogoURI,
|
|
15260
|
+
chainName,
|
|
15261
|
+
chainIconUrl,
|
|
15262
|
+
formattedAmount
|
|
15101
15263
|
}) => {
|
|
15102
15264
|
React6.useEffect(() => {
|
|
15103
15265
|
if (!onCancel) return;
|
|
@@ -15109,7 +15271,15 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
|
|
|
15109
15271
|
{
|
|
15110
15272
|
variant: "warning",
|
|
15111
15273
|
title: "Saque n\xE3o assinado",
|
|
15112
|
-
subtitle: "A assinatura da transa\xE7\xE3o foi cancelada."
|
|
15274
|
+
subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
|
|
15275
|
+
formData: {
|
|
15276
|
+
headerTitle: "Saque",
|
|
15277
|
+
tokenSymbol,
|
|
15278
|
+
tokenLogoURI,
|
|
15279
|
+
chainLabel: chainName,
|
|
15280
|
+
chainImage: chainIconUrl,
|
|
15281
|
+
amount: formattedAmount
|
|
15282
|
+
}
|
|
15113
15283
|
}
|
|
15114
15284
|
) });
|
|
15115
15285
|
};
|
|
@@ -15430,7 +15600,7 @@ var OnrampFormSimpleView = ({
|
|
|
15430
15600
|
"px-[var(--deframe-widget-size-padding-x-md)]",
|
|
15431
15601
|
"pb-[var(--deframe-widget-size-padding-y-md)]"
|
|
15432
15602
|
].join(" ");
|
|
15433
|
-
const
|
|
15603
|
+
const cardClasses3 = twMerge(
|
|
15434
15604
|
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
15435
15605
|
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
15436
15606
|
"bg-[var(--deframe-widget-color-bg-secondary)]",
|
|
@@ -15528,7 +15698,7 @@ var OnrampFormSimpleView = ({
|
|
|
15528
15698
|
{
|
|
15529
15699
|
"data-slot": "onramp-form-simple-amount-card",
|
|
15530
15700
|
"data-test-id": "onramp-form-simple-view-amount-card",
|
|
15531
|
-
className:
|
|
15701
|
+
className: cardClasses3,
|
|
15532
15702
|
children: /* @__PURE__ */ jsxs(
|
|
15533
15703
|
"div",
|
|
15534
15704
|
{
|
|
@@ -15587,7 +15757,7 @@ var OnrampFormSimpleView = ({
|
|
|
15587
15757
|
"div",
|
|
15588
15758
|
{
|
|
15589
15759
|
"data-test-id": "onramp-form-simple-view-skeleton",
|
|
15590
|
-
className: twMerge(
|
|
15760
|
+
className: twMerge(cardClasses3, "space-y-3"),
|
|
15591
15761
|
children: [
|
|
15592
15762
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15593
15763
|
/* @__PURE__ */ jsx(Skeleton, { width: 96, height: 16, shimmer: true }),
|
|
@@ -17370,7 +17540,7 @@ var DashboardPortfolioView = ({
|
|
|
17370
17540
|
) })
|
|
17371
17541
|
] }) });
|
|
17372
17542
|
};
|
|
17373
|
-
var
|
|
17543
|
+
var cardClasses2 = twMerge(
|
|
17374
17544
|
"w-full self-start flex flex-col gap-[var(--deframe-widget-size-gap-sm)]",
|
|
17375
17545
|
"bg-[var(--deframe-widget-color-bg-secondary)] border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
17376
17546
|
"rounded-[var(--deframe-widget-size-radius-md)]",
|
|
@@ -17392,7 +17562,7 @@ function StatCardSkeletonBlock({ showDescription, className }) {
|
|
|
17392
17562
|
{
|
|
17393
17563
|
"data-test-id": "stat-card-skeleton",
|
|
17394
17564
|
"aria-busy": "true",
|
|
17395
|
-
className: twMerge(
|
|
17565
|
+
className: twMerge(cardClasses2, "self-stretch", className),
|
|
17396
17566
|
children: [
|
|
17397
17567
|
/* @__PURE__ */ jsx(Skeleton, { variant: "rect", width: 140, height: 11 }),
|
|
17398
17568
|
/* @__PURE__ */ jsx(Skeleton, { variant: "rect", width: "60%", height: 44 }),
|
|
@@ -17428,7 +17598,7 @@ var DashboardPortfolioViewSimple = ({
|
|
|
17428
17598
|
assetCount != null ? "grid-cols-[1fr_auto]" : "grid-cols-1"
|
|
17429
17599
|
),
|
|
17430
17600
|
children: [
|
|
17431
|
-
/* @__PURE__ */ jsxs("article", { className: twMerge(
|
|
17601
|
+
/* @__PURE__ */ jsxs("article", { className: twMerge(cardClasses2, "self-stretch"), children: [
|
|
17432
17602
|
/* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Total da Carteira (USD)" }),
|
|
17433
17603
|
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
|
|
17434
17604
|
motion.p,
|
|
@@ -17445,7 +17615,7 @@ var DashboardPortfolioViewSimple = ({
|
|
|
17445
17615
|
) }),
|
|
17446
17616
|
/* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-description", className: descriptionClasses, children: "Soma do saldo por token (em USD)." })
|
|
17447
17617
|
] }),
|
|
17448
|
-
assetCount != null && /* @__PURE__ */ jsxs("article", { className: twMerge(
|
|
17618
|
+
assetCount != null && /* @__PURE__ */ jsxs("article", { className: twMerge(cardClasses2, "self-stretch min-w-[160px]"), children: [
|
|
17449
17619
|
/* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Ativos" }),
|
|
17450
17620
|
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
|
|
17451
17621
|
motion.p,
|