@deframe-sdk/components 0.1.38 → 0.1.39
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 +72 -45
- package/dist/index.d.ts +72 -45
- package/dist/index.js +633 -317
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +631 -318
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +26 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8682,6 +8682,213 @@ function ChooseNetworkAndAssetViewSimple({
|
|
|
8682
8682
|
);
|
|
8683
8683
|
}
|
|
8684
8684
|
}
|
|
8685
|
+
|
|
8686
|
+
// src/types/history-list-item-data.ts
|
|
8687
|
+
function isAssetAmount(asset) {
|
|
8688
|
+
return "symbol" in asset;
|
|
8689
|
+
}
|
|
8690
|
+
function isFiatAmount(asset) {
|
|
8691
|
+
return "currency" in asset;
|
|
8692
|
+
}
|
|
8693
|
+
|
|
8694
|
+
// src/utils/history-item-display.ts
|
|
8695
|
+
function getAssetSymbol(asset) {
|
|
8696
|
+
if (!asset) return "\u2014";
|
|
8697
|
+
if (isAssetAmount(asset)) return asset.symbol;
|
|
8698
|
+
if (isFiatAmount(asset)) return asset.currency;
|
|
8699
|
+
return "\u2014";
|
|
8700
|
+
}
|
|
8701
|
+
function getChainName(asset) {
|
|
8702
|
+
var _a, _b;
|
|
8703
|
+
if (!asset) return "";
|
|
8704
|
+
if (isAssetAmount(asset)) return (_b = (_a = asset.chain) == null ? void 0 : _a.name) != null ? _b : "";
|
|
8705
|
+
return "";
|
|
8706
|
+
}
|
|
8707
|
+
function historyResolveLabel(item) {
|
|
8708
|
+
var _a, _b;
|
|
8709
|
+
const assetIn = (_a = item.amounts) == null ? void 0 : _a.assetIn;
|
|
8710
|
+
const assetOut = (_b = item.amounts) == null ? void 0 : _b.assetOut;
|
|
8711
|
+
const fromSymbol = getAssetSymbol(assetIn);
|
|
8712
|
+
const toSymbol = getAssetSymbol(assetOut);
|
|
8713
|
+
const fromChain = getChainName(assetIn);
|
|
8714
|
+
const toChain = getChainName(assetOut);
|
|
8715
|
+
const labelMap = {
|
|
8716
|
+
SAMECHAIN_SWAP: () => `Swap ${fromSymbol} \u2192 ${toSymbol}`,
|
|
8717
|
+
CROSSCHAIN_SWAP: () => {
|
|
8718
|
+
const route = fromChain && toChain ? ` (${fromChain} \u2192 ${toChain})` : "";
|
|
8719
|
+
return `Swap ${fromSymbol} \u2192 ${toSymbol}${route}`;
|
|
8720
|
+
},
|
|
8721
|
+
TRANSFER_IN: () => `Recebimento ${toSymbol}`,
|
|
8722
|
+
TRANSFER_OUT: () => `Envio ${fromSymbol}`,
|
|
8723
|
+
ON_RAMP_FIAT: () => `Dep\xF3sito ${fromSymbol} \u2192 ${toSymbol}`,
|
|
8724
|
+
OFF_RAMP_FIAT: () => `Saque ${fromSymbol} \u2192 ${toSymbol}`,
|
|
8725
|
+
SAMECHAIN_INVESTMENT_DEPOSIT: () => `Dep\xF3sito ${fromSymbol}`,
|
|
8726
|
+
SAMECHAIN_INVESTMENT_WITHDRAW: () => `Resgate ${toSymbol}`,
|
|
8727
|
+
CROSSCHAIN_INVESTMENT_DEPOSIT: () => {
|
|
8728
|
+
const route = fromChain && toChain ? ` (${fromChain} \u2192 ${toChain})` : "";
|
|
8729
|
+
return `Dep\xF3sito ${fromSymbol}${route}`;
|
|
8730
|
+
},
|
|
8731
|
+
CROSSCHAIN_INVESTMENT_WITHDRAW: () => {
|
|
8732
|
+
const route = fromChain && toChain ? ` (${fromChain} \u2192 ${toChain})` : "";
|
|
8733
|
+
return `Resgate ${toSymbol}${route}`;
|
|
8734
|
+
}
|
|
8735
|
+
};
|
|
8736
|
+
return labelMap[item.type]();
|
|
8737
|
+
}
|
|
8738
|
+
function historyResolveAmounts(item) {
|
|
8739
|
+
var _a, _b;
|
|
8740
|
+
const assetOut = (_a = item.amounts) == null ? void 0 : _a.assetOut;
|
|
8741
|
+
const assetIn = (_b = item.amounts) == null ? void 0 : _b.assetIn;
|
|
8742
|
+
const displayAsset = item.type === "TRANSFER_OUT" || item.type === "OFF_RAMP_FIAT" ? assetIn : assetOut;
|
|
8743
|
+
if (!displayAsset) return { primary: "\u2014", secondary: "" };
|
|
8744
|
+
if (isAssetAmount(displayAsset)) {
|
|
8745
|
+
const primary = `${displayAsset.amountHumanized} ${displayAsset.symbol}`;
|
|
8746
|
+
const secondary = displayAsset.amountInUSD ? `~$${displayAsset.amountInUSD}` : "";
|
|
8747
|
+
return { primary, secondary };
|
|
8748
|
+
}
|
|
8749
|
+
if (isFiatAmount(displayAsset)) {
|
|
8750
|
+
return { primary: `${displayAsset.amountHumanized} ${displayAsset.currency}`, secondary: "" };
|
|
8751
|
+
}
|
|
8752
|
+
return { primary: "\u2014", secondary: "" };
|
|
8753
|
+
}
|
|
8754
|
+
function historyFormatDate(isoDate) {
|
|
8755
|
+
const d = new Date(isoDate);
|
|
8756
|
+
if (isNaN(d.getTime())) return isoDate;
|
|
8757
|
+
return d.toLocaleDateString("pt-BR", {
|
|
8758
|
+
day: "2-digit",
|
|
8759
|
+
month: "short",
|
|
8760
|
+
year: "numeric",
|
|
8761
|
+
hour: "2-digit",
|
|
8762
|
+
minute: "2-digit"
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8765
|
+
var SWAP_TYPES = ["SAMECHAIN_SWAP", "CROSSCHAIN_SWAP"];
|
|
8766
|
+
var DEPOSIT_TYPES = [
|
|
8767
|
+
"TRANSFER_IN",
|
|
8768
|
+
"ON_RAMP_FIAT",
|
|
8769
|
+
"SAMECHAIN_INVESTMENT_DEPOSIT",
|
|
8770
|
+
"CROSSCHAIN_INVESTMENT_DEPOSIT"
|
|
8771
|
+
];
|
|
8772
|
+
function historyIsSwap(type) {
|
|
8773
|
+
return SWAP_TYPES.includes(type);
|
|
8774
|
+
}
|
|
8775
|
+
function historyIsDeposit(type) {
|
|
8776
|
+
return DEPOSIT_TYPES.includes(type);
|
|
8777
|
+
}
|
|
8778
|
+
function historyResolveIconUrl(item) {
|
|
8779
|
+
var _a, _b, _c, _d;
|
|
8780
|
+
const assetOut = (_a = item.amounts) == null ? void 0 : _a.assetOut;
|
|
8781
|
+
const assetIn = (_b = item.amounts) == null ? void 0 : _b.assetIn;
|
|
8782
|
+
const displayAsset = item.type === "TRANSFER_OUT" || item.type === "OFF_RAMP_FIAT" ? assetIn : assetOut;
|
|
8783
|
+
if (displayAsset && isAssetAmount(displayAsset)) return (_d = (_c = displayAsset.token) == null ? void 0 : _c.logoURI) != null ? _d : "";
|
|
8784
|
+
return "";
|
|
8785
|
+
}
|
|
8786
|
+
function historyResolveIconAlt(item) {
|
|
8787
|
+
var _a, _b;
|
|
8788
|
+
const assetOut = (_a = item.amounts) == null ? void 0 : _a.assetOut;
|
|
8789
|
+
const assetIn = (_b = item.amounts) == null ? void 0 : _b.assetIn;
|
|
8790
|
+
const displayAsset = item.type === "TRANSFER_OUT" || item.type === "OFF_RAMP_FIAT" ? assetIn : assetOut;
|
|
8791
|
+
if (displayAsset && isAssetAmount(displayAsset)) return displayAsset.symbol;
|
|
8792
|
+
if (displayAsset && isFiatAmount(displayAsset)) return displayAsset.currency;
|
|
8793
|
+
return "";
|
|
8794
|
+
}
|
|
8795
|
+
function historyResolveSubtitle(item) {
|
|
8796
|
+
var _a, _b;
|
|
8797
|
+
const assetIn = (_a = item.amounts) == null ? void 0 : _a.assetIn;
|
|
8798
|
+
const assetOut = (_b = item.amounts) == null ? void 0 : _b.assetOut;
|
|
8799
|
+
const fromChain = getChainName(assetIn);
|
|
8800
|
+
const toChain = getChainName(assetOut);
|
|
8801
|
+
if (historyIsSwap(item.type) && fromChain && toChain && fromChain !== toChain) {
|
|
8802
|
+
return `${fromChain} \u2192 ${toChain}`;
|
|
8803
|
+
}
|
|
8804
|
+
return fromChain || toChain || "";
|
|
8805
|
+
}
|
|
8806
|
+
function historyResolveSearchableText(item) {
|
|
8807
|
+
const label = historyResolveLabel(item);
|
|
8808
|
+
const { primary, secondary } = historyResolveAmounts(item);
|
|
8809
|
+
const date = historyFormatDate(item.createdAt);
|
|
8810
|
+
const status = item.status;
|
|
8811
|
+
return `${label} ${primary} ${secondary} ${date} ${status}`.toLowerCase();
|
|
8812
|
+
}
|
|
8813
|
+
var variantStyles = {
|
|
8814
|
+
primary: "text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)] text-text-md",
|
|
8815
|
+
secondary: "text-[color:var(--deframe-widget-color-text-secondary)] dark:text-[color:var(--deframe-widget-color-text-secondary-dark)] text-text-sm font-poppins"
|
|
8816
|
+
};
|
|
8817
|
+
var Label = ({ children, variant = "primary", className }) => {
|
|
8818
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge(variantStyles[variant], className), children });
|
|
8819
|
+
};
|
|
8820
|
+
var SwapIconWithBadge = ({ src, alt }) => {
|
|
8821
|
+
const fallbackText = encodeURIComponent((alt || "TOK").slice(0, 3).toUpperCase());
|
|
8822
|
+
const fallbackSrc = `https://placehold.co/40x40?text=${fallbackText}`;
|
|
8823
|
+
const resolvedSrc = src || fallbackSrc;
|
|
8824
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0", children: [
|
|
8825
|
+
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] dark:bg-[var(--deframe-widget-color-bg-tertiary-dark)] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
8826
|
+
"img",
|
|
8827
|
+
{
|
|
8828
|
+
src: resolvedSrc,
|
|
8829
|
+
alt,
|
|
8830
|
+
className: "w-full h-full object-cover",
|
|
8831
|
+
onError: (e) => {
|
|
8832
|
+
e.target.src = fallbackSrc;
|
|
8833
|
+
}
|
|
8834
|
+
}
|
|
8835
|
+
) }),
|
|
8836
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-[-2px] right-[-2px] w-[15px] h-[15px] rounded-full bg-[var(--deframe-widget-color-bg-secondary)] dark:bg-[var(--deframe-widget-color-bg-secondary-dark)] flex items-center justify-center border border-[color:var(--deframe-widget-color-bg-secondary)] dark:border-[color:var(--deframe-widget-color-bg-secondary-dark)]", children: /* @__PURE__ */ jsx(MdArrowUpward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) })
|
|
8837
|
+
] });
|
|
8838
|
+
};
|
|
8839
|
+
var ArrowBadge = ({ isDeposit }) => {
|
|
8840
|
+
return /* @__PURE__ */ jsx("div", { className: "absolute bottom-[-2px] right-[-2px] w-[15px] h-[15px] rounded-full bg-[var(--deframe-widget-color-bg-secondary)] dark:bg-[var(--deframe-widget-color-bg-secondary-dark)] flex items-center justify-center border border-[color:var(--deframe-widget-color-bg-secondary)] dark:border-[color:var(--deframe-widget-color-bg-secondary-dark)]", children: isDeposit ? /* @__PURE__ */ jsx(MdArrowDownward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) : /* @__PURE__ */ jsx(MdArrowUpward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) });
|
|
8841
|
+
};
|
|
8842
|
+
var TokenIconWithBadge2 = ({ src, alt, isDeposit }) => {
|
|
8843
|
+
const fallbackText = encodeURIComponent((alt || "TOK").slice(0, 3).toUpperCase());
|
|
8844
|
+
const fallbackSrc = `https://placehold.co/40x40?text=${fallbackText}`;
|
|
8845
|
+
const resolvedSrc = src || fallbackSrc;
|
|
8846
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0", children: [
|
|
8847
|
+
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] dark:bg-[var(--deframe-widget-color-bg-tertiary-dark)] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
8848
|
+
"img",
|
|
8849
|
+
{
|
|
8850
|
+
src: resolvedSrc,
|
|
8851
|
+
alt,
|
|
8852
|
+
className: "w-full h-full object-cover",
|
|
8853
|
+
onError: (e) => {
|
|
8854
|
+
e.target.src = fallbackSrc;
|
|
8855
|
+
}
|
|
8856
|
+
}
|
|
8857
|
+
) }),
|
|
8858
|
+
/* @__PURE__ */ jsx(ArrowBadge, { isDeposit })
|
|
8859
|
+
] });
|
|
8860
|
+
};
|
|
8861
|
+
var AmountDisplay = ({ amount, usdAmount }) => {
|
|
8862
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8863
|
+
/* @__PURE__ */ jsx(Label, { className: "text-accent-sm-mobile whitespace-nowrap", children: amount }),
|
|
8864
|
+
usdAmount ? /* @__PURE__ */ jsx(Label, { variant: "secondary", className: "whitespace-nowrap", children: usdAmount }) : null
|
|
8865
|
+
] });
|
|
8866
|
+
};
|
|
8867
|
+
var HistoryListItem = ({ item, onClick, className, statusLabel, statusTitle }) => {
|
|
8868
|
+
const label = historyResolveLabel(item);
|
|
8869
|
+
const subtitle = historyResolveSubtitle(item);
|
|
8870
|
+
const { primary, secondary } = historyResolveAmounts(item);
|
|
8871
|
+
const iconUrl = historyResolveIconUrl(item);
|
|
8872
|
+
const iconAlt = historyResolveIconAlt(item);
|
|
8873
|
+
const isSwap = historyIsSwap(item.type);
|
|
8874
|
+
const isDeposit = historyIsDeposit(item.type);
|
|
8875
|
+
return /* @__PURE__ */ jsxs(
|
|
8876
|
+
ListItem,
|
|
8877
|
+
{
|
|
8878
|
+
onClick,
|
|
8879
|
+
containerClassName: twMerge("!rounded-xs !border-0 !min-h-[72px]", className),
|
|
8880
|
+
children: [
|
|
8881
|
+
/* @__PURE__ */ jsx(ListItemLeftSide, { children: isSwap ? /* @__PURE__ */ jsx(SwapIconWithBadge, { src: iconUrl, alt: iconAlt }) : /* @__PURE__ */ jsx(TokenIconWithBadge2, { src: iconUrl, alt: iconAlt, isDeposit }) }),
|
|
8882
|
+
/* @__PURE__ */ jsxs(ListItemContent, { children: [
|
|
8883
|
+
/* @__PURE__ */ jsx(Label, { className: "text-text-lg-mobile", children: label }),
|
|
8884
|
+
subtitle && /* @__PURE__ */ jsx(Label, { variant: "secondary", className: "text-[color:var(--deframe-widget-color-text-tertiary)] dark:text-[color:var(--deframe-widget-color-text-tertiary-dark)]", children: subtitle }),
|
|
8885
|
+
item.status === "PENDING" && statusLabel ? /* @__PURE__ */ jsx("div", { className: "mt-[6px]", children: /* @__PURE__ */ jsx(ProcessingBadge, { label: statusLabel, title: statusTitle, size: "compact" }) }) : null
|
|
8886
|
+
] }),
|
|
8887
|
+
/* @__PURE__ */ jsx(ListItemRightSide, { children: /* @__PURE__ */ jsx(AmountDisplay, { amount: primary, usdAmount: secondary || void 0 }) })
|
|
8888
|
+
]
|
|
8889
|
+
}
|
|
8890
|
+
);
|
|
8891
|
+
};
|
|
8685
8892
|
var SkeletonItem = () => /* @__PURE__ */ jsxs("div", { className: "w-full bg-[var(--deframe-widget-color-bg-secondary)] rounded-[var(--deframe-widget-size-radius-xs)] min-h-[72px] flex items-center justify-between px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-sm)]", children: [
|
|
8686
8893
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--deframe-widget-size-gap-sm)] flex-1 min-w-0", children: [
|
|
8687
8894
|
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] animate-pulse flex-shrink-0" }),
|
|
@@ -8711,25 +8918,6 @@ var EmptyState = ({ title, description }) => /* @__PURE__ */ jsx("div", { classN
|
|
|
8711
8918
|
] }),
|
|
8712
8919
|
/* @__PURE__ */ jsx("div", { className: "self-stretch text-center", children: /* @__PURE__ */ jsx(TextBody, { variant: "text-small", children: description }) })
|
|
8713
8920
|
] }) });
|
|
8714
|
-
var SwapItemIcon = ({ src, alt }) => {
|
|
8715
|
-
const fallbackText = encodeURIComponent((alt || "TOK").slice(0, 3).toUpperCase());
|
|
8716
|
-
const fallbackSrc = `https://placehold.co/40x40?text=${fallbackText}`;
|
|
8717
|
-
const resolvedSrc = src || fallbackSrc;
|
|
8718
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0", children: [
|
|
8719
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
8720
|
-
"img",
|
|
8721
|
-
{
|
|
8722
|
-
src: resolvedSrc,
|
|
8723
|
-
alt,
|
|
8724
|
-
className: "w-full h-full object-cover",
|
|
8725
|
-
onError: (e) => {
|
|
8726
|
-
e.target.src = fallbackSrc;
|
|
8727
|
-
}
|
|
8728
|
-
}
|
|
8729
|
-
) }),
|
|
8730
|
-
/* @__PURE__ */ jsx("div", { className: "absolute bottom-[-2px] right-[-2px] w-[15px] h-[15px] rounded-[var(--deframe-widget-size-radius-full)] bg-[var(--deframe-widget-color-bg-secondary)] flex items-center justify-center border border-[var(--deframe-widget-color-bg-secondary)]", children: /* @__PURE__ */ jsx(MdArrowUpward, { className: "w-3 h-3 text-[var(--deframe-widget-color-text-primary)]" }) })
|
|
8731
|
-
] });
|
|
8732
|
-
};
|
|
8733
8921
|
var SwapHistoryView = ({
|
|
8734
8922
|
labels,
|
|
8735
8923
|
isLoading,
|
|
@@ -8737,21 +8925,29 @@ var SwapHistoryView = ({
|
|
|
8737
8925
|
onItemClick,
|
|
8738
8926
|
pageSize = 10
|
|
8739
8927
|
}) => {
|
|
8928
|
+
var _a, _b;
|
|
8740
8929
|
const [visibleCount, setVisibleCount] = React6__default.useState(pageSize);
|
|
8741
8930
|
if (isLoading) {
|
|
8742
8931
|
return /* @__PURE__ */ jsx(BackgroundContainer, { className: "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)] flex flex-col min-h-0 flex-1", children: /* @__PURE__ */ jsx(LoadingSkeleton, {}) });
|
|
8743
8932
|
}
|
|
8744
8933
|
if (items.length === 0) {
|
|
8745
|
-
return /* @__PURE__ */ jsx(BackgroundContainer, { className: "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)] flex flex-col min-h-0 flex-1", children: /* @__PURE__ */ jsx(
|
|
8934
|
+
return /* @__PURE__ */ jsx(BackgroundContainer, { className: "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)] flex flex-col min-h-0 flex-1", children: /* @__PURE__ */ jsx(
|
|
8935
|
+
EmptyState,
|
|
8936
|
+
{
|
|
8937
|
+
title: (_a = labels == null ? void 0 : labels.emptyTitle) != null ? _a : "Nenhuma transa\xE7\xE3o",
|
|
8938
|
+
description: (_b = labels == null ? void 0 : labels.emptyDescription) != null ? _b : "Quando voc\xEA realizar transa\xE7\xF5es, elas aparecer\xE3o aqui."
|
|
8939
|
+
}
|
|
8940
|
+
) });
|
|
8746
8941
|
}
|
|
8747
8942
|
const visibleItems = items.slice(0, visibleCount);
|
|
8748
8943
|
const grouped = /* @__PURE__ */ new Map();
|
|
8749
8944
|
for (const item of visibleItems) {
|
|
8750
|
-
const
|
|
8945
|
+
const dateKey = item.createdAt.slice(0, 10);
|
|
8946
|
+
const group = grouped.get(dateKey);
|
|
8751
8947
|
if (group) {
|
|
8752
8948
|
group.push(item);
|
|
8753
8949
|
} else {
|
|
8754
|
-
grouped.set(
|
|
8950
|
+
grouped.set(dateKey, [item]);
|
|
8755
8951
|
}
|
|
8756
8952
|
}
|
|
8757
8953
|
const sortedDates = Array.from(grouped.keys()).sort((a, b) => b.localeCompare(a));
|
|
@@ -8759,32 +8955,325 @@ var SwapHistoryView = ({
|
|
|
8759
8955
|
return /* @__PURE__ */ jsx(BackgroundContainer, { className: "px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)] flex flex-col min-h-0 flex-1", children: /* @__PURE__ */ jsxs("div", { className: "self-stretch flex flex-col gap-[16px]", children: [
|
|
8760
8956
|
sortedDates.map((dateKey) => {
|
|
8761
8957
|
const groupItems = grouped.get(dateKey);
|
|
8958
|
+
const dateLabel = historyFormatDate(groupItems[0].createdAt);
|
|
8762
8959
|
return /* @__PURE__ */ jsxs("div", { className: "self-stretch flex flex-col gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
8763
|
-
/* @__PURE__ */ jsx("div", { className: "[font-size:var(--deframe-widget-font-size-sm)] [line-height:var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-secondary)]", children:
|
|
8764
|
-
groupItems.map((item) => /* @__PURE__ */
|
|
8765
|
-
|
|
8960
|
+
/* @__PURE__ */ jsx("div", { className: "[font-size:var(--deframe-widget-font-size-sm)] [line-height:var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-secondary)]", children: dateLabel }),
|
|
8961
|
+
groupItems.map((item) => /* @__PURE__ */ jsx(
|
|
8962
|
+
HistoryListItem,
|
|
8766
8963
|
{
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
/* @__PURE__ */ jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsx(SwapItemIcon, { src: item.iconUrl, alt: item.iconAlt }) }),
|
|
8771
|
-
/* @__PURE__ */ jsxs(ListItemContent, { children: [
|
|
8772
|
-
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--deframe-widget-font-size-md)] [line-height:var(--deframe-widget-font-leading-md)] [font-weight:var(--deframe-widget-font-weight-medium)] text-[color:var(--deframe-widget-color-text-primary)]", children: item.title }),
|
|
8773
|
-
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--deframe-widget-font-size-sm)] [line-height:var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: item.subtitle })
|
|
8774
|
-
] }),
|
|
8775
|
-
/* @__PURE__ */ jsxs(ListItemRightSide, { children: [
|
|
8776
|
-
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--deframe-widget-font-size-sm)] [line-height:var(--deframe-widget-font-leading-sm)] [font-weight:var(--deframe-widget-font-weight-medium)] text-[color:var(--deframe-widget-color-text-primary)] whitespace-nowrap", children: item.amountFormatted }),
|
|
8777
|
-
item.amountUsd && /* @__PURE__ */ jsx("span", { className: "[font-size:var(--deframe-widget-font-size-sm)] [line-height:var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-secondary)] whitespace-nowrap", children: item.amountUsd })
|
|
8778
|
-
] })
|
|
8779
|
-
]
|
|
8964
|
+
item,
|
|
8965
|
+
onClick: onItemClick ? () => onItemClick(item.id) : void 0,
|
|
8966
|
+
className: "!rounded-[var(--deframe-widget-size-radius-xs)] !border-0 !min-h-[72px]"
|
|
8780
8967
|
},
|
|
8781
8968
|
item.id
|
|
8782
8969
|
))
|
|
8783
8970
|
] }, dateKey);
|
|
8784
8971
|
}),
|
|
8785
|
-
hasMore && /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-[var(--deframe-widget-size-padding-y-sm)]", children: /* @__PURE__ */ jsx(TertiaryButton, { onClick: () => setVisibleCount((c) => c + pageSize), children: labels.loadMoreLabel }) })
|
|
8972
|
+
hasMore && (labels == null ? void 0 : labels.loadMoreLabel) && /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-[var(--deframe-widget-size-padding-y-sm)]", children: /* @__PURE__ */ jsx(TertiaryButton, { onClick: () => setVisibleCount((c) => c + pageSize), children: labels.loadMoreLabel }) })
|
|
8786
8973
|
] }) });
|
|
8787
8974
|
};
|
|
8975
|
+
var variantConfig = {
|
|
8976
|
+
SUCCESS: {
|
|
8977
|
+
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_32%,transparent)]",
|
|
8978
|
+
dotClass: "bg-[var(--deframe-widget-color-brand-primary)]",
|
|
8979
|
+
labelClass: "text-[color:var(--deframe-widget-color-brand-primary)]",
|
|
8980
|
+
label: "Aprovado"
|
|
8981
|
+
},
|
|
8982
|
+
PENDING: {
|
|
8983
|
+
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-state-warning)_16%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-state-warning)_32%,transparent)]",
|
|
8984
|
+
dotClass: "bg-[var(--deframe-widget-color-state-warning)]",
|
|
8985
|
+
labelClass: "text-[color:var(--deframe-widget-color-state-warning)]",
|
|
8986
|
+
label: "Pendente"
|
|
8987
|
+
},
|
|
8988
|
+
FAILED: {
|
|
8989
|
+
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-state-error)_16%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-state-error)_32%,transparent)]",
|
|
8990
|
+
dotClass: "bg-[var(--deframe-widget-color-state-error)]",
|
|
8991
|
+
labelClass: "text-[color:var(--deframe-widget-color-state-error)]",
|
|
8992
|
+
label: "Falhou"
|
|
8993
|
+
},
|
|
8994
|
+
REFUNDED: {
|
|
8995
|
+
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-secondary)_12%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-secondary)_32%,transparent)]",
|
|
8996
|
+
dotClass: "bg-[var(--deframe-widget-color-brand-secondary)]",
|
|
8997
|
+
labelClass: "text-[color:var(--deframe-widget-color-brand-secondary)]",
|
|
8998
|
+
label: "Reembolsado"
|
|
8999
|
+
}
|
|
9000
|
+
};
|
|
9001
|
+
function StatusBadge2({ status, className }) {
|
|
9002
|
+
const config = variantConfig[status];
|
|
9003
|
+
return /* @__PURE__ */ jsxs(
|
|
9004
|
+
"span",
|
|
9005
|
+
{
|
|
9006
|
+
"data-test-id": "history-status-badge",
|
|
9007
|
+
className: twMerge(
|
|
9008
|
+
"inline-flex items-center gap-[5px]",
|
|
9009
|
+
"py-[3px] pr-[10px] pl-[7px]",
|
|
9010
|
+
"rounded-[var(--deframe-widget-size-radius-full)]",
|
|
9011
|
+
"border",
|
|
9012
|
+
config.wrapper,
|
|
9013
|
+
className
|
|
9014
|
+
),
|
|
9015
|
+
children: [
|
|
9016
|
+
/* @__PURE__ */ jsx(
|
|
9017
|
+
"span",
|
|
9018
|
+
{
|
|
9019
|
+
"data-test-id": "history-status-badge-dot",
|
|
9020
|
+
className: twMerge(
|
|
9021
|
+
"w-[7px] h-[7px] rounded-[var(--deframe-widget-size-radius-full)] flex-shrink-0 inline-block",
|
|
9022
|
+
config.dotClass
|
|
9023
|
+
)
|
|
9024
|
+
}
|
|
9025
|
+
),
|
|
9026
|
+
/* @__PURE__ */ jsx(
|
|
9027
|
+
"span",
|
|
9028
|
+
{
|
|
9029
|
+
"data-test-id": "history-status-badge-label",
|
|
9030
|
+
className: twMerge(
|
|
9031
|
+
"text-[11px] [font-weight:var(--deframe-widget-font-weight-medium)] font-[var(--deframe-widget-font-family)]",
|
|
9032
|
+
config.labelClass
|
|
9033
|
+
),
|
|
9034
|
+
children: config.label
|
|
9035
|
+
}
|
|
9036
|
+
)
|
|
9037
|
+
]
|
|
9038
|
+
}
|
|
9039
|
+
);
|
|
9040
|
+
}
|
|
9041
|
+
var HistoryListItemSimple = ({ item }) => {
|
|
9042
|
+
const label = historyResolveLabel(item);
|
|
9043
|
+
const { primary, secondary } = historyResolveAmounts(item);
|
|
9044
|
+
const date = historyFormatDate(item.createdAt);
|
|
9045
|
+
return /* @__PURE__ */ jsxs(
|
|
9046
|
+
"div",
|
|
9047
|
+
{
|
|
9048
|
+
"data-test-id": "history-list-item-simple",
|
|
9049
|
+
className: twMerge(
|
|
9050
|
+
"w-full flex flex-col gap-[6px]",
|
|
9051
|
+
"bg-[var(--deframe-widget-color-bg-secondary)]",
|
|
9052
|
+
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
9053
|
+
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
9054
|
+
"px-[var(--deframe-widget-size-padding-x-md)] py-[14px]"
|
|
9055
|
+
),
|
|
9056
|
+
children: [
|
|
9057
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
9058
|
+
/* @__PURE__ */ jsx(
|
|
9059
|
+
"span",
|
|
9060
|
+
{
|
|
9061
|
+
"data-test-id": "history-list-item-simple-date",
|
|
9062
|
+
className: "text-[12px] text-[color:var(--deframe-widget-color-text-tertiary)] leading-none",
|
|
9063
|
+
children: date
|
|
9064
|
+
}
|
|
9065
|
+
),
|
|
9066
|
+
/* @__PURE__ */ jsx(StatusBadge2, { status: item.status })
|
|
9067
|
+
] }),
|
|
9068
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
9069
|
+
/* @__PURE__ */ jsx(
|
|
9070
|
+
"span",
|
|
9071
|
+
{
|
|
9072
|
+
"data-test-id": "history-list-item-simple-label",
|
|
9073
|
+
className: twMerge(
|
|
9074
|
+
"text-[18px] leading-[1.2]",
|
|
9075
|
+
"[font-weight:var(--deframe-widget-font-weight-bold)]",
|
|
9076
|
+
"text-[color:var(--deframe-widget-color-text-primary)]"
|
|
9077
|
+
),
|
|
9078
|
+
children: label
|
|
9079
|
+
}
|
|
9080
|
+
),
|
|
9081
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-[2px] flex-shrink-0", children: [
|
|
9082
|
+
/* @__PURE__ */ jsx(
|
|
9083
|
+
"span",
|
|
9084
|
+
{
|
|
9085
|
+
"data-test-id": "history-list-item-simple-primary",
|
|
9086
|
+
className: twMerge(
|
|
9087
|
+
"text-[13px] leading-[1.3]",
|
|
9088
|
+
"[font-weight:var(--deframe-widget-font-weight-semibold)]",
|
|
9089
|
+
"text-[color:var(--deframe-widget-color-text-primary)]"
|
|
9090
|
+
),
|
|
9091
|
+
children: primary
|
|
9092
|
+
}
|
|
9093
|
+
),
|
|
9094
|
+
secondary && /* @__PURE__ */ jsx(
|
|
9095
|
+
"span",
|
|
9096
|
+
{
|
|
9097
|
+
"data-test-id": "history-list-item-simple-secondary",
|
|
9098
|
+
className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)] leading-none",
|
|
9099
|
+
children: secondary
|
|
9100
|
+
}
|
|
9101
|
+
)
|
|
9102
|
+
] })
|
|
9103
|
+
] })
|
|
9104
|
+
]
|
|
9105
|
+
}
|
|
9106
|
+
);
|
|
9107
|
+
};
|
|
9108
|
+
var DashboardTransactionsPlaceholder = () => {
|
|
9109
|
+
return /* @__PURE__ */ jsxs("div", { "data-test-id": "dashboard-transactions-placeholder", className: "flex flex-col items-center justify-center py-16 gap-4", children: [
|
|
9110
|
+
/* @__PURE__ */ jsx("div", { className: "w-20 h-20 bg-[var(--deframe-widget-color-bg-muted)] rounded-full flex justify-center items-center", children: /* @__PURE__ */ jsx(PiClockCountdownBold, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-tertiary)]" }) }),
|
|
9111
|
+
/* @__PURE__ */ jsx(TextHeading, { variant: "h3", children: "Nenhuma transa\xE7\xE3o ainda" }),
|
|
9112
|
+
/* @__PURE__ */ jsx(TextBody, { variant: "text-medium", className: "text-center text-[var(--deframe-widget-color-text-secondary)]", children: "Assim que voc\xEA come\xE7ar a movimentar fundos, seu hist\xF3rico de transa\xE7\xF5es aparecer\xE1 aqui." })
|
|
9113
|
+
] });
|
|
9114
|
+
};
|
|
9115
|
+
var SwapHistoryViewSimple = ({
|
|
9116
|
+
isLoading,
|
|
9117
|
+
items,
|
|
9118
|
+
onClose,
|
|
9119
|
+
className,
|
|
9120
|
+
title = "Hist\xF3rico de Swap",
|
|
9121
|
+
subtitle = "Todas as transa\xE7\xF5es de swap"
|
|
9122
|
+
}) => {
|
|
9123
|
+
const [query, setQuery] = useState("");
|
|
9124
|
+
const filtered = useMemo(() => {
|
|
9125
|
+
const q = query.trim().toLowerCase();
|
|
9126
|
+
if (!q) return items;
|
|
9127
|
+
return items.filter((item) => historyResolveSearchableText(item).includes(q));
|
|
9128
|
+
}, [items, query]);
|
|
9129
|
+
return /* @__PURE__ */ jsxs(
|
|
9130
|
+
"div",
|
|
9131
|
+
{
|
|
9132
|
+
"data-test-id": "swap-history-view-simple",
|
|
9133
|
+
className: twMerge(
|
|
9134
|
+
"bg-[var(--deframe-widget-color-bg-secondary)]",
|
|
9135
|
+
"rounded-[var(--deframe-widget-size-radius-md)]",
|
|
9136
|
+
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
9137
|
+
"px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]",
|
|
9138
|
+
"flex flex-col gap-[var(--deframe-widget-size-gap-md)] h-[calc(100vh-48px)]",
|
|
9139
|
+
"font-[var(--deframe-widget-font-family)]",
|
|
9140
|
+
`w-[${SWAP_SIMPLE_WIDTH}px] max-w-[calc(100%-32px)] shrink-0 box-border`,
|
|
9141
|
+
className
|
|
9142
|
+
),
|
|
9143
|
+
children: [
|
|
9144
|
+
/* @__PURE__ */ jsxs(
|
|
9145
|
+
"div",
|
|
9146
|
+
{
|
|
9147
|
+
"data-test-id": "swap-history-view-simple-header",
|
|
9148
|
+
className: "flex items-start justify-between gap-[var(--deframe-widget-size-gap-sm)]",
|
|
9149
|
+
children: [
|
|
9150
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[4px]", children: [
|
|
9151
|
+
/* @__PURE__ */ jsx(
|
|
9152
|
+
"h2",
|
|
9153
|
+
{
|
|
9154
|
+
"data-test-id": "swap-history-view-simple-title",
|
|
9155
|
+
className: twMerge(
|
|
9156
|
+
"m-0 text-[20px] leading-[1.25]",
|
|
9157
|
+
"[font-weight:var(--deframe-widget-font-weight-bold)]",
|
|
9158
|
+
"text-[color:var(--deframe-widget-color-text-primary)]"
|
|
9159
|
+
),
|
|
9160
|
+
children: title
|
|
9161
|
+
}
|
|
9162
|
+
),
|
|
9163
|
+
/* @__PURE__ */ jsx(
|
|
9164
|
+
"p",
|
|
9165
|
+
{
|
|
9166
|
+
"data-test-id": "swap-history-view-simple-subtitle",
|
|
9167
|
+
className: "m-0 text-[13px] text-[color:var(--deframe-widget-color-text-secondary)] leading-[1.4]",
|
|
9168
|
+
children: subtitle
|
|
9169
|
+
}
|
|
9170
|
+
)
|
|
9171
|
+
] }),
|
|
9172
|
+
/* @__PURE__ */ jsx(
|
|
9173
|
+
CloseButton_default,
|
|
9174
|
+
{
|
|
9175
|
+
onClick: onClose,
|
|
9176
|
+
ariaLabel: "Fechar",
|
|
9177
|
+
className: "flex-shrink-0 mt-[-4px]"
|
|
9178
|
+
}
|
|
9179
|
+
)
|
|
9180
|
+
]
|
|
9181
|
+
}
|
|
9182
|
+
),
|
|
9183
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-[var(--deframe-widget-color-border-secondary)]" }),
|
|
9184
|
+
/* @__PURE__ */ jsxs(
|
|
9185
|
+
"div",
|
|
9186
|
+
{
|
|
9187
|
+
"data-test-id": "swap-history-view-simple-search",
|
|
9188
|
+
className: "relative",
|
|
9189
|
+
children: [
|
|
9190
|
+
/* @__PURE__ */ jsx(
|
|
9191
|
+
"input",
|
|
9192
|
+
{
|
|
9193
|
+
"data-test-id": "swap-history-view-simple-search-input",
|
|
9194
|
+
type: "text",
|
|
9195
|
+
value: query,
|
|
9196
|
+
onChange: (e) => setQuery(e.target.value),
|
|
9197
|
+
placeholder: "Buscar por moeda, rede ou status...",
|
|
9198
|
+
"aria-label": "Buscar transa\xE7\xE3o",
|
|
9199
|
+
className: [
|
|
9200
|
+
"w-full box-border h-10",
|
|
9201
|
+
"bg-[var(--deframe-widget-color-bg-tertiary)]",
|
|
9202
|
+
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
9203
|
+
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
9204
|
+
"py-0 pr-[var(--deframe-widget-size-padding-x-xl)] pl-[14px]",
|
|
9205
|
+
"text-[14px] text-[color:var(--deframe-widget-color-text-primary)]",
|
|
9206
|
+
"outline-none focus:outline-none",
|
|
9207
|
+
"focus:border-[color:var(--deframe-widget-color-brand-primary)]",
|
|
9208
|
+
"transition-colors duration-150",
|
|
9209
|
+
"font-[var(--deframe-widget-font-family)]",
|
|
9210
|
+
"placeholder:text-[color:var(--deframe-widget-color-text-tertiary)]"
|
|
9211
|
+
].join(" ")
|
|
9212
|
+
}
|
|
9213
|
+
),
|
|
9214
|
+
/* @__PURE__ */ jsx("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-[color:var(--deframe-widget-color-text-tertiary)]", children: /* @__PURE__ */ jsxs(
|
|
9215
|
+
"svg",
|
|
9216
|
+
{
|
|
9217
|
+
width: "15",
|
|
9218
|
+
height: "15",
|
|
9219
|
+
viewBox: "0 0 24 24",
|
|
9220
|
+
fill: "none",
|
|
9221
|
+
stroke: "currentColor",
|
|
9222
|
+
strokeWidth: "2",
|
|
9223
|
+
strokeLinecap: "round",
|
|
9224
|
+
"aria-hidden": "true",
|
|
9225
|
+
children: [
|
|
9226
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
9227
|
+
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
9228
|
+
]
|
|
9229
|
+
}
|
|
9230
|
+
) })
|
|
9231
|
+
]
|
|
9232
|
+
}
|
|
9233
|
+
),
|
|
9234
|
+
/* @__PURE__ */ jsx(
|
|
9235
|
+
"div",
|
|
9236
|
+
{
|
|
9237
|
+
"data-test-id": "swap-history-view-simple-list",
|
|
9238
|
+
className: "flex flex-col gap-[var(--deframe-widget-size-gap-sm)] flex-1 min-h-0 overflow-y-auto [&::-webkit-scrollbar]:w-[6px] [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-[color:var(--deframe-widget-color-border-secondary)] [&::-webkit-scrollbar-thumb]:rounded-full",
|
|
9239
|
+
children: isLoading ? [1, 2, 3].map((i) => /* @__PURE__ */ jsxs(
|
|
9240
|
+
"div",
|
|
9241
|
+
{
|
|
9242
|
+
className: twMerge(
|
|
9243
|
+
"flex flex-col gap-[6px]",
|
|
9244
|
+
"px-[var(--deframe-widget-size-padding-x-md)] py-[14px]",
|
|
9245
|
+
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
9246
|
+
"border border-[color:var(--deframe-widget-color-border-secondary)]"
|
|
9247
|
+
),
|
|
9248
|
+
children: [
|
|
9249
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
9250
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "100px", height: "12px", shimmer: true }),
|
|
9251
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "80px", height: "20px", shimmer: true, className: "rounded-full" })
|
|
9252
|
+
] }),
|
|
9253
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
9254
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "160px", height: "18px", shimmer: true }),
|
|
9255
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-[4px]", children: [
|
|
9256
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "96px", height: "14px", shimmer: true }),
|
|
9257
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "72px", height: "12px", shimmer: true })
|
|
9258
|
+
] })
|
|
9259
|
+
] })
|
|
9260
|
+
]
|
|
9261
|
+
},
|
|
9262
|
+
i
|
|
9263
|
+
)) : items.length === 0 ? /* @__PURE__ */ jsx(DashboardTransactionsPlaceholder, {}) : filtered.length === 0 ? /* @__PURE__ */ jsx(
|
|
9264
|
+
"div",
|
|
9265
|
+
{
|
|
9266
|
+
"data-test-id": "swap-history-view-simple-no-results",
|
|
9267
|
+
className: "py-[var(--deframe-widget-size-padding-y-xl)] text-center text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)]",
|
|
9268
|
+
children: "Nenhuma transa\xE7\xE3o encontrada"
|
|
9269
|
+
}
|
|
9270
|
+
) : filtered.map((item) => /* @__PURE__ */ jsx(HistoryListItemSimple, { item }, item.id))
|
|
9271
|
+
}
|
|
9272
|
+
)
|
|
9273
|
+
]
|
|
9274
|
+
}
|
|
9275
|
+
);
|
|
9276
|
+
};
|
|
8788
9277
|
var HistorySwapDetailsView = (props) => {
|
|
8789
9278
|
const { labels, onBack, status } = props;
|
|
8790
9279
|
if (status === "not-found") {
|
|
@@ -8933,13 +9422,6 @@ var ChipGroup = ({
|
|
|
8933
9422
|
var ApyRange = ({ children }) => {
|
|
8934
9423
|
return /* @__PURE__ */ jsx("div", { className: "text-right justify-center text-text-highlight text-xs font-normal leading-4", children });
|
|
8935
9424
|
};
|
|
8936
|
-
var variantStyles = {
|
|
8937
|
-
primary: "text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)] text-text-md",
|
|
8938
|
-
secondary: "text-[color:var(--deframe-widget-color-text-secondary)] dark:text-[color:var(--deframe-widget-color-text-secondary-dark)] text-text-sm font-poppins"
|
|
8939
|
-
};
|
|
8940
|
-
var Label = ({ children, variant = "primary", className }) => {
|
|
8941
|
-
return /* @__PURE__ */ jsx("div", { className: twMerge(variantStyles[variant], className), children });
|
|
8942
|
-
};
|
|
8943
9425
|
var HistoryItemSkeleton = () => /* @__PURE__ */ jsxs("div", { className: "w-full bg-[var(--deframe-widget-color-bg-subtle)] rounded-xs min-h-[72px] flex items-center justify-between px-md py-sm", children: [
|
|
8944
9426
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-sm flex-1 min-w-0", children: [
|
|
8945
9427
|
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] dark:bg-[var(--deframe-widget-color-bg-tertiary-dark)] animate-pulse flex-shrink-0" }),
|
|
@@ -9989,58 +10471,12 @@ var GroupedStrategyListViewSimple = ({
|
|
|
9989
10471
|
var DateLabel = ({ children }) => {
|
|
9990
10472
|
return /* @__PURE__ */ jsx("div", { className: "text-text-sm-mobile font-poppins text-[color:var(--deframe-widget-color-text-secondary)] dark:text-[color:var(--deframe-widget-color-text-secondary-dark)]", children });
|
|
9991
10473
|
};
|
|
9992
|
-
var ArrowBadge = ({ isDeposit }) => {
|
|
9993
|
-
return /* @__PURE__ */ jsx("div", { className: "absolute bottom-[-2px] right-[-2px] w-[15px] h-[15px] rounded-full bg-[var(--deframe-widget-color-bg-secondary)] dark:bg-[var(--deframe-widget-color-bg-secondary-dark)] flex items-center justify-center border border-[color:var(--deframe-widget-color-bg-secondary)] dark:border-[color:var(--deframe-widget-color-bg-secondary-dark)]", children: isDeposit ? /* @__PURE__ */ jsx(MdArrowDownward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) : /* @__PURE__ */ jsx(MdArrowUpward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) });
|
|
9994
|
-
};
|
|
9995
|
-
var TokenIconWithBadge2 = ({ src, alt, isDeposit }) => {
|
|
9996
|
-
const fallbackText = encodeURIComponent((alt || "TOK").slice(0, 3).toUpperCase());
|
|
9997
|
-
const fallbackSrc = `https://placehold.co/40x40?text=${fallbackText}`;
|
|
9998
|
-
const resolvedSrc = src || fallbackSrc;
|
|
9999
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0", children: [
|
|
10000
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] dark:bg-[var(--deframe-widget-color-bg-tertiary-dark)] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
10001
|
-
"img",
|
|
10002
|
-
{
|
|
10003
|
-
src: resolvedSrc,
|
|
10004
|
-
alt,
|
|
10005
|
-
className: "w-full h-full object-cover",
|
|
10006
|
-
onError: (e) => {
|
|
10007
|
-
e.target.src = fallbackSrc;
|
|
10008
|
-
}
|
|
10009
|
-
}
|
|
10010
|
-
) }),
|
|
10011
|
-
/* @__PURE__ */ jsx(ArrowBadge, { isDeposit })
|
|
10012
|
-
] });
|
|
10013
|
-
};
|
|
10014
|
-
var SwapIconWithBadge = ({ src, alt }) => {
|
|
10015
|
-
const fallbackText = encodeURIComponent((alt || "TOK").slice(0, 3).toUpperCase());
|
|
10016
|
-
const fallbackSrc = `https://placehold.co/40x40?text=${fallbackText}`;
|
|
10017
|
-
const resolvedSrc = src || fallbackSrc;
|
|
10018
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative flex-shrink-0", children: [
|
|
10019
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-xl bg-[var(--deframe-widget-color-bg-tertiary)] dark:bg-[var(--deframe-widget-color-bg-tertiary-dark)] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
10020
|
-
"img",
|
|
10021
|
-
{
|
|
10022
|
-
src: resolvedSrc,
|
|
10023
|
-
alt,
|
|
10024
|
-
className: "w-full h-full object-cover",
|
|
10025
|
-
onError: (e) => {
|
|
10026
|
-
e.target.src = fallbackSrc;
|
|
10027
|
-
}
|
|
10028
|
-
}
|
|
10029
|
-
) }),
|
|
10030
|
-
/* @__PURE__ */ jsx("div", { className: "absolute bottom-[-2px] right-[-2px] w-[15px] h-[15px] rounded-full bg-[var(--deframe-widget-color-bg-secondary)] dark:bg-[var(--deframe-widget-color-bg-secondary-dark)] flex items-center justify-center border border-[color:var(--deframe-widget-color-bg-secondary)] dark:border-[color:var(--deframe-widget-color-bg-secondary-dark)]", children: /* @__PURE__ */ jsx(MdArrowUpward, { className: "w-3 h-3 text-[color:var(--deframe-widget-color-text-primary)] dark:text-[color:var(--deframe-widget-color-text-primary-dark)]" }) })
|
|
10031
|
-
] });
|
|
10032
|
-
};
|
|
10033
|
-
var AmountDisplay = ({ amount, usdAmount }) => {
|
|
10034
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10035
|
-
/* @__PURE__ */ jsx(Label, { className: "text-accent-sm-mobile whitespace-nowrap", children: amount }),
|
|
10036
|
-
usdAmount ? /* @__PURE__ */ jsx(Label, { variant: "secondary", className: "whitespace-nowrap", children: usdAmount }) : null
|
|
10037
|
-
] });
|
|
10038
|
-
};
|
|
10039
10474
|
var HistoryListView = ({
|
|
10040
10475
|
groups,
|
|
10041
10476
|
showLoadMore,
|
|
10042
10477
|
onLoadMore,
|
|
10043
10478
|
loadMoreLabel,
|
|
10479
|
+
onItemClick,
|
|
10044
10480
|
itemClassName
|
|
10045
10481
|
}) => {
|
|
10046
10482
|
if (groups.length === 0) {
|
|
@@ -10049,34 +10485,12 @@ var HistoryListView = ({
|
|
|
10049
10485
|
return /* @__PURE__ */ jsxs("div", { className: "self-stretch flex flex-col gap-[16px]", children: [
|
|
10050
10486
|
groups.map((group) => /* @__PURE__ */ jsxs("div", { className: "self-stretch flex flex-col gap-sm", children: [
|
|
10051
10487
|
/* @__PURE__ */ jsx(DateLabel, { children: group.dateLabel }),
|
|
10052
|
-
group.items.map((item) => /* @__PURE__ */
|
|
10053
|
-
|
|
10488
|
+
group.items.map((item) => /* @__PURE__ */ jsx(
|
|
10489
|
+
HistoryListItem,
|
|
10054
10490
|
{
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
/* @__PURE__ */ jsx(ListItemLeftSide, { children: item.isSwap ? /* @__PURE__ */ jsx(SwapIconWithBadge, { src: item.iconUrl, alt: item.iconAlt }) : /* @__PURE__ */ jsx(
|
|
10059
|
-
TokenIconWithBadge2,
|
|
10060
|
-
{
|
|
10061
|
-
src: item.iconUrl,
|
|
10062
|
-
alt: item.iconAlt,
|
|
10063
|
-
isDeposit: item.isDeposit
|
|
10064
|
-
}
|
|
10065
|
-
) }),
|
|
10066
|
-
/* @__PURE__ */ jsxs(ListItemContent, { children: [
|
|
10067
|
-
/* @__PURE__ */ jsx(Label, { className: "text-text-lg-mobile", children: item.title }),
|
|
10068
|
-
/* @__PURE__ */ jsx(Label, { variant: "secondary", className: "text-[color:var(--deframe-widget-color-text-tertiary)] dark:text-[color:var(--deframe-widget-color-text-tertiary-dark)]", children: item.subtitle }),
|
|
10069
|
-
item.status === "PENDING" && item.statusLabel ? /* @__PURE__ */ jsx("div", { className: "mt-[6px]", children: /* @__PURE__ */ jsx(
|
|
10070
|
-
ProcessingBadge,
|
|
10071
|
-
{
|
|
10072
|
-
label: item.statusLabel,
|
|
10073
|
-
title: item.statusTitle,
|
|
10074
|
-
size: "compact"
|
|
10075
|
-
}
|
|
10076
|
-
) }) : null
|
|
10077
|
-
] }),
|
|
10078
|
-
/* @__PURE__ */ jsx(ListItemRightSide, { children: /* @__PURE__ */ jsx(AmountDisplay, { amount: item.amountFormatted, usdAmount: item.amountUsd }) })
|
|
10079
|
-
]
|
|
10491
|
+
item,
|
|
10492
|
+
onClick: onItemClick ? () => onItemClick(item.id) : void 0,
|
|
10493
|
+
className: itemClassName
|
|
10080
10494
|
},
|
|
10081
10495
|
item.id
|
|
10082
10496
|
))
|
|
@@ -11270,6 +11684,7 @@ var EarnDepositFormViewSimple = ({
|
|
|
11270
11684
|
// Header / Layout
|
|
11271
11685
|
pageTitle,
|
|
11272
11686
|
onBack,
|
|
11687
|
+
onHistoryClick,
|
|
11273
11688
|
onSubmit,
|
|
11274
11689
|
// Token selector
|
|
11275
11690
|
selectedToken,
|
|
@@ -11366,21 +11781,24 @@ var EarnDepositFormViewSimple = ({
|
|
|
11366
11781
|
"data-test-id": "earn-deposit-form-view-simple",
|
|
11367
11782
|
className: panelBaseClasses,
|
|
11368
11783
|
children: [
|
|
11369
|
-
/* @__PURE__ */
|
|
11784
|
+
/* @__PURE__ */ jsxs(
|
|
11370
11785
|
"header",
|
|
11371
11786
|
{
|
|
11372
11787
|
"data-slot": "deposit-panel-simple-header",
|
|
11373
11788
|
"data-test-id": "earn-deposit-form-view-simple-header",
|
|
11374
11789
|
className: headerBaseClasses,
|
|
11375
|
-
children:
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11790
|
+
children: [
|
|
11791
|
+
/* @__PURE__ */ jsx(
|
|
11792
|
+
"span",
|
|
11793
|
+
{
|
|
11794
|
+
"data-slot": "deposit-panel-simple-title",
|
|
11795
|
+
"data-test-id": "earn-deposit-form-view-simple-title",
|
|
11796
|
+
className: titleBaseClasses,
|
|
11797
|
+
children: pageTitle
|
|
11798
|
+
}
|
|
11799
|
+
),
|
|
11800
|
+
onHistoryClick && /* @__PURE__ */ jsx(HistoryButton2, { onClick: onHistoryClick })
|
|
11801
|
+
]
|
|
11384
11802
|
}
|
|
11385
11803
|
),
|
|
11386
11804
|
/* @__PURE__ */ jsx(
|
|
@@ -11585,6 +12003,31 @@ var EarnDepositFormViewSimple = ({
|
|
|
11585
12003
|
}
|
|
11586
12004
|
);
|
|
11587
12005
|
};
|
|
12006
|
+
function HistoryButton2({ onClick }) {
|
|
12007
|
+
return /* @__PURE__ */ jsx(
|
|
12008
|
+
"button",
|
|
12009
|
+
{
|
|
12010
|
+
"data-test-id": "earn-deposit-form-simple-history-button",
|
|
12011
|
+
type: "button",
|
|
12012
|
+
onClick,
|
|
12013
|
+
"aria-label": "Hist\xF3rico de transa\xE7\xF5es",
|
|
12014
|
+
className: twMerge(
|
|
12015
|
+
"inline-flex items-center justify-center",
|
|
12016
|
+
"w-9 h-9",
|
|
12017
|
+
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
12018
|
+
"border-none cursor-pointer bg-transparent",
|
|
12019
|
+
"hover:bg-[color:color-mix(in_srgb,var(--deframe-widget-color-bg-tertiary)_92%,transparent)]",
|
|
12020
|
+
"transition-[background] duration-150",
|
|
12021
|
+
"flex-shrink-0 outline-none",
|
|
12022
|
+
"text-[color:var(--deframe-widget-color-text-secondary)]"
|
|
12023
|
+
),
|
|
12024
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
12025
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
12026
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
12027
|
+
] })
|
|
12028
|
+
}
|
|
12029
|
+
);
|
|
12030
|
+
}
|
|
11588
12031
|
var EarnWithdrawFormView = ({
|
|
11589
12032
|
// Header / Layout
|
|
11590
12033
|
headerTitle,
|
|
@@ -11734,6 +12177,7 @@ var EarnWithdrawFormViewSimple = ({
|
|
|
11734
12177
|
// Header / Layout
|
|
11735
12178
|
pageTitle,
|
|
11736
12179
|
onBack,
|
|
12180
|
+
onHistoryClick,
|
|
11737
12181
|
onSubmit,
|
|
11738
12182
|
// Position card (used for inline balance row)
|
|
11739
12183
|
positionBalanceToken,
|
|
@@ -11825,21 +12269,24 @@ var EarnWithdrawFormViewSimple = ({
|
|
|
11825
12269
|
"data-test-id": "earn-withdraw-form-view-simple",
|
|
11826
12270
|
className: panelBaseClasses,
|
|
11827
12271
|
children: [
|
|
11828
|
-
/* @__PURE__ */
|
|
12272
|
+
/* @__PURE__ */ jsxs(
|
|
11829
12273
|
"header",
|
|
11830
12274
|
{
|
|
11831
12275
|
"data-slot": "withdraw-panel-simple-header",
|
|
11832
12276
|
"data-test-id": "earn-withdraw-form-view-simple-header",
|
|
11833
12277
|
className: headerBaseClasses,
|
|
11834
|
-
children:
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
12278
|
+
children: [
|
|
12279
|
+
/* @__PURE__ */ jsx(
|
|
12280
|
+
"span",
|
|
12281
|
+
{
|
|
12282
|
+
"data-slot": "withdraw-panel-simple-title",
|
|
12283
|
+
"data-test-id": "earn-withdraw-form-view-simple-title",
|
|
12284
|
+
className: titleBaseClasses,
|
|
12285
|
+
children: pageTitle
|
|
12286
|
+
}
|
|
12287
|
+
),
|
|
12288
|
+
onHistoryClick && /* @__PURE__ */ jsx(HistoryButton3, { onClick: onHistoryClick })
|
|
12289
|
+
]
|
|
11843
12290
|
}
|
|
11844
12291
|
),
|
|
11845
12292
|
/* @__PURE__ */ jsx(
|
|
@@ -12034,6 +12481,31 @@ var EarnWithdrawFormViewSimple = ({
|
|
|
12034
12481
|
}
|
|
12035
12482
|
);
|
|
12036
12483
|
};
|
|
12484
|
+
function HistoryButton3({ onClick }) {
|
|
12485
|
+
return /* @__PURE__ */ jsx(
|
|
12486
|
+
"button",
|
|
12487
|
+
{
|
|
12488
|
+
"data-test-id": "earn-withdraw-form-simple-history-button",
|
|
12489
|
+
type: "button",
|
|
12490
|
+
onClick,
|
|
12491
|
+
"aria-label": "Hist\xF3rico de transa\xE7\xF5es",
|
|
12492
|
+
className: twMerge(
|
|
12493
|
+
"inline-flex items-center justify-center",
|
|
12494
|
+
"w-9 h-9",
|
|
12495
|
+
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
12496
|
+
"border-none cursor-pointer bg-transparent",
|
|
12497
|
+
"hover:bg-[color:color-mix(in_srgb,var(--deframe-widget-color-bg-tertiary)_92%,transparent)]",
|
|
12498
|
+
"transition-[background] duration-150",
|
|
12499
|
+
"flex-shrink-0 outline-none",
|
|
12500
|
+
"text-[color:var(--deframe-widget-color-text-secondary)]"
|
|
12501
|
+
),
|
|
12502
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
12503
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
12504
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
12505
|
+
] })
|
|
12506
|
+
}
|
|
12507
|
+
);
|
|
12508
|
+
}
|
|
12037
12509
|
var EarnDepositProcessingView = ({
|
|
12038
12510
|
progress,
|
|
12039
12511
|
title,
|
|
@@ -17204,13 +17676,6 @@ var OfframpFailedSimpleView = () => {
|
|
|
17204
17676
|
var DashboardCard = ({ children, className }) => {
|
|
17205
17677
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "dashboard-card", className: twMerge("bg-[var(--deframe-widget-color-bg-subtle)] rounded", className), children });
|
|
17206
17678
|
};
|
|
17207
|
-
var DashboardTransactionsPlaceholder = () => {
|
|
17208
|
-
return /* @__PURE__ */ jsxs("div", { "data-test-id": "dashboard-transactions-placeholder", className: "flex flex-col items-center justify-center py-16 gap-4", children: [
|
|
17209
|
-
/* @__PURE__ */ jsx("div", { className: "w-20 h-20 bg-[var(--deframe-widget-color-bg-muted)] rounded-full flex justify-center items-center", children: /* @__PURE__ */ jsx(PiClockCountdownBold, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-tertiary)]" }) }),
|
|
17210
|
-
/* @__PURE__ */ jsx(TextHeading, { variant: "h3", children: "Nenhuma transa\xE7\xE3o ainda" }),
|
|
17211
|
-
/* @__PURE__ */ jsx(TextBody, { variant: "text-medium", className: "text-center text-[var(--deframe-widget-color-text-secondary)]", children: "Assim que voc\xEA come\xE7ar a movimentar fundos, seu hist\xF3rico de transa\xE7\xF5es aparecer\xE1 aqui." })
|
|
17212
|
-
] });
|
|
17213
|
-
};
|
|
17214
17679
|
var DashboardBalancesBreakdown = ({
|
|
17215
17680
|
isLoadingBalances,
|
|
17216
17681
|
formattedTokenPositions,
|
|
@@ -17663,7 +18128,7 @@ var DUST_THRESHOLD_USD = 0.01;
|
|
|
17663
18128
|
function isDustValue(amountInUSD) {
|
|
17664
18129
|
return isNaN(amountInUSD) || amountInUSD < DUST_THRESHOLD_USD;
|
|
17665
18130
|
}
|
|
17666
|
-
function
|
|
18131
|
+
function HistoryButton4({ onClick }) {
|
|
17667
18132
|
return /* @__PURE__ */ jsx(
|
|
17668
18133
|
"button",
|
|
17669
18134
|
{
|
|
@@ -17914,7 +18379,7 @@ var DashboardTokensViewSimple = ({
|
|
|
17914
18379
|
children: "Seus ativos"
|
|
17915
18380
|
}
|
|
17916
18381
|
),
|
|
17917
|
-
onHistoryClick != null && /* @__PURE__ */ jsx(
|
|
18382
|
+
onHistoryClick != null && /* @__PURE__ */ jsx(HistoryButton4, { onClick: onHistoryClick })
|
|
17918
18383
|
]
|
|
17919
18384
|
}
|
|
17920
18385
|
),
|
|
@@ -18021,12 +18486,13 @@ var DashboardRecentTransactionsView = ({
|
|
|
18021
18486
|
isLoading,
|
|
18022
18487
|
isEmpty,
|
|
18023
18488
|
transactions,
|
|
18024
|
-
onViewAllClick
|
|
18489
|
+
onViewAllClick,
|
|
18490
|
+
onItemClick
|
|
18025
18491
|
}) => {
|
|
18026
18492
|
return /* @__PURE__ */ jsx(DashboardCard, { className: "p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
18027
18493
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
18028
18494
|
/* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "Transa\xE7\xF5es recentes" }),
|
|
18029
|
-
/* @__PURE__ */ jsx("button", { type: "button", onClick: onViewAllClick, children: /* @__PURE__ */ jsx(TextBody, { className: "text-[var(--deframe-widget-color-brand-primary)] cursor-pointer hover:underline", children: "Ver todas" }) })
|
|
18495
|
+
onViewAllClick && /* @__PURE__ */ jsx("button", { type: "button", onClick: onViewAllClick, children: /* @__PURE__ */ jsx(TextBody, { className: "text-[var(--deframe-widget-color-brand-primary)] cursor-pointer hover:underline", children: "Ver todas" }) })
|
|
18030
18496
|
] }),
|
|
18031
18497
|
/* @__PURE__ */ jsx("div", { className: "space-y-2 mt-[-16px]", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-4", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 p-2", children: [
|
|
18032
18498
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circle", width: "40px", height: "40px", shimmer: true }),
|
|
@@ -18035,106 +18501,17 @@ var DashboardRecentTransactionsView = ({
|
|
|
18035
18501
|
/* @__PURE__ */ jsx(Skeleton, { width: "220px", height: "12px", shimmer: true })
|
|
18036
18502
|
] }),
|
|
18037
18503
|
/* @__PURE__ */ jsx(Skeleton, { width: "96px", height: "14px", shimmer: true })
|
|
18038
|
-
] }, i)) }) : isEmpty ? /* @__PURE__ */ jsx(DashboardTransactionsPlaceholder, {}) : transactions.map((item) =>
|
|
18039
|
-
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
/* @__PURE__ */ jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
18048
|
-
/* @__PURE__ */ jsx("div", { className: `w-10 h-10 rounded-full ${item.iconBgColor} flex items-center justify-center`, children: /* @__PURE__ */ jsx(MainIcon, { className: `${item.iconColor}`, size: 20 }) }),
|
|
18049
|
-
/* @__PURE__ */ jsx("div", { className: "absolute -bottom-1 -right-1 w-5 h-5 rounded-full flex items-center justify-center border border-[var(--deframe-widget-color-border-secondary)]", children: /* @__PURE__ */ jsx(TypeIcon, { className: `${item.iconColor}`, size: 12 }) })
|
|
18050
|
-
] }) }),
|
|
18051
|
-
/* @__PURE__ */ jsxs(ListItemContent, { className: "ml-4", children: [
|
|
18052
|
-
/* @__PURE__ */ jsx(TextBody, { variant: "text-small", children: item.formattedDate }),
|
|
18053
|
-
/* @__PURE__ */ jsx(TextBody, { className: "text-xs text-[var(--deframe-widget-color-text-secondary)]", children: item.label })
|
|
18054
|
-
] }),
|
|
18055
|
-
/* @__PURE__ */ jsxs(ListItemRightSide, { className: "text-right", children: [
|
|
18056
|
-
/* @__PURE__ */ jsx(TextBody, { variant: "text-small", children: item.rightPrimary }),
|
|
18057
|
-
/* @__PURE__ */ jsx(TextBody, { className: "text-xs text-[var(--deframe-widget-color-text-secondary)]", children: item.rightSecondary })
|
|
18058
|
-
] })
|
|
18059
|
-
]
|
|
18060
|
-
},
|
|
18061
|
-
item.id
|
|
18062
|
-
);
|
|
18063
|
-
}) })
|
|
18504
|
+
] }, i)) }) : isEmpty ? /* @__PURE__ */ jsx(DashboardTransactionsPlaceholder, {}) : transactions.map((item) => /* @__PURE__ */ jsx(
|
|
18505
|
+
HistoryListItem,
|
|
18506
|
+
{
|
|
18507
|
+
item,
|
|
18508
|
+
onClick: onItemClick ? () => onItemClick(item.id) : void 0,
|
|
18509
|
+
className: "p-2 mt-4 bg-[var(--deframe-widget-color-bg-raised)] cursor-pointer"
|
|
18510
|
+
},
|
|
18511
|
+
item.id
|
|
18512
|
+
)) })
|
|
18064
18513
|
] }) });
|
|
18065
18514
|
};
|
|
18066
|
-
var variantConfig = {
|
|
18067
|
-
pending: {
|
|
18068
|
-
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-state-warning)_16%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-state-warning)_32%,transparent)]",
|
|
18069
|
-
dotClass: "bg-[var(--deframe-widget-color-state-warning)]",
|
|
18070
|
-
labelClass: "text-[color:var(--deframe-widget-color-state-warning)]",
|
|
18071
|
-
label: "Pendente"
|
|
18072
|
-
},
|
|
18073
|
-
confirmed: {
|
|
18074
|
-
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_32%,transparent)]",
|
|
18075
|
-
dotClass: "bg-[var(--deframe-widget-color-brand-primary)]",
|
|
18076
|
-
labelClass: "text-[color:var(--deframe-widget-color-brand-primary)]",
|
|
18077
|
-
label: "Confirmado"
|
|
18078
|
-
},
|
|
18079
|
-
approved: {
|
|
18080
|
-
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_32%,transparent)]",
|
|
18081
|
-
dotClass: "bg-[var(--deframe-widget-color-brand-primary)]",
|
|
18082
|
-
labelClass: "text-[color:var(--deframe-widget-color-brand-primary)]",
|
|
18083
|
-
label: "Aprovada"
|
|
18084
|
-
},
|
|
18085
|
-
failed: {
|
|
18086
|
-
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-state-error)_16%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-state-error)_32%,transparent)]",
|
|
18087
|
-
dotClass: "bg-[var(--deframe-widget-color-state-error)]",
|
|
18088
|
-
labelClass: "text-[color:var(--deframe-widget-color-state-error)]",
|
|
18089
|
-
label: "Falhou"
|
|
18090
|
-
},
|
|
18091
|
-
processing: {
|
|
18092
|
-
wrapper: "bg-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-secondary)_12%,transparent)] border-[color:color-mix(in_srgb,var(--deframe-widget-color-brand-secondary)_32%,transparent)]",
|
|
18093
|
-
dotClass: "bg-[var(--deframe-widget-color-brand-secondary)]",
|
|
18094
|
-
labelClass: "text-[color:var(--deframe-widget-color-brand-secondary)]",
|
|
18095
|
-
label: "Processando"
|
|
18096
|
-
}
|
|
18097
|
-
};
|
|
18098
|
-
function StatusBadge2({ status, label, className }) {
|
|
18099
|
-
const config = variantConfig[status];
|
|
18100
|
-
return /* @__PURE__ */ jsxs(
|
|
18101
|
-
"span",
|
|
18102
|
-
{
|
|
18103
|
-
"data-test-id": "status-badge",
|
|
18104
|
-
className: twMerge(
|
|
18105
|
-
"inline-flex items-center gap-[5px]",
|
|
18106
|
-
"py-[3px] pr-[10px] pl-[7px]",
|
|
18107
|
-
"rounded-[var(--deframe-widget-size-radius-full)]",
|
|
18108
|
-
"border",
|
|
18109
|
-
config.wrapper,
|
|
18110
|
-
className
|
|
18111
|
-
),
|
|
18112
|
-
children: [
|
|
18113
|
-
/* @__PURE__ */ jsx(
|
|
18114
|
-
"span",
|
|
18115
|
-
{
|
|
18116
|
-
"data-test-id": "status-badge-dot",
|
|
18117
|
-
className: twMerge(
|
|
18118
|
-
"w-[7px] h-[7px] rounded-[var(--deframe-widget-size-radius-full)] flex-shrink-0 inline-block",
|
|
18119
|
-
config.dotClass
|
|
18120
|
-
)
|
|
18121
|
-
}
|
|
18122
|
-
),
|
|
18123
|
-
/* @__PURE__ */ jsx(
|
|
18124
|
-
"span",
|
|
18125
|
-
{
|
|
18126
|
-
"data-test-id": "status-badge-label",
|
|
18127
|
-
className: twMerge(
|
|
18128
|
-
"text-[11px] [font-weight:var(--deframe-widget-font-weight-medium)] font-[var(--deframe-widget-font-family)]",
|
|
18129
|
-
config.labelClass
|
|
18130
|
-
),
|
|
18131
|
-
children: label != null ? label : config.label
|
|
18132
|
-
}
|
|
18133
|
-
)
|
|
18134
|
-
]
|
|
18135
|
-
}
|
|
18136
|
-
);
|
|
18137
|
-
}
|
|
18138
18515
|
var DashboardRecentTransactionsViewSimple = ({
|
|
18139
18516
|
isLoading,
|
|
18140
18517
|
isEmpty,
|
|
@@ -18145,9 +18522,7 @@ var DashboardRecentTransactionsViewSimple = ({
|
|
|
18145
18522
|
const filtered = useMemo(() => {
|
|
18146
18523
|
const q = query.trim().toLowerCase();
|
|
18147
18524
|
if (!q) return transactions;
|
|
18148
|
-
return transactions.filter(
|
|
18149
|
-
(tx) => tx.label.toLowerCase().includes(q) || tx.formattedDate.toLowerCase().includes(q) || tx.rightPrimary.toLowerCase().includes(q) || tx.rightSecondary.toLowerCase().includes(q)
|
|
18150
|
-
);
|
|
18525
|
+
return transactions.filter((item) => historyResolveSearchableText(item).includes(q));
|
|
18151
18526
|
}, [transactions, query]);
|
|
18152
18527
|
return /* @__PURE__ */ jsxs(
|
|
18153
18528
|
"div",
|
|
@@ -18158,7 +18533,7 @@ var DashboardRecentTransactionsViewSimple = ({
|
|
|
18158
18533
|
"rounded-[var(--deframe-widget-size-radius-md)]",
|
|
18159
18534
|
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
18160
18535
|
"px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]",
|
|
18161
|
-
"flex flex-col gap-[var(--deframe-widget-size-gap-md)] w-full",
|
|
18536
|
+
"flex flex-col gap-[var(--deframe-widget-size-gap-md)] w-full h-[calc(100vh-48px)]",
|
|
18162
18537
|
"font-[var(--deframe-widget-font-family)]"
|
|
18163
18538
|
),
|
|
18164
18539
|
children: [
|
|
@@ -18256,7 +18631,7 @@ var DashboardRecentTransactionsViewSimple = ({
|
|
|
18256
18631
|
"div",
|
|
18257
18632
|
{
|
|
18258
18633
|
"data-test-id": "dashboard-recent-transactions-simple-list",
|
|
18259
|
-
className: "flex flex-col gap-[var(--deframe-widget-size-gap-sm)]",
|
|
18634
|
+
className: "flex flex-col gap-[var(--deframe-widget-size-gap-sm)] flex-1 min-h-0 overflow-y-auto [&::-webkit-scrollbar]:w-[6px] [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-[color:var(--deframe-widget-color-border-secondary)] [&::-webkit-scrollbar-thumb]:rounded-full",
|
|
18260
18635
|
children: isLoading ? [1, 2, 3].map((i) => /* @__PURE__ */ jsxs(
|
|
18261
18636
|
"div",
|
|
18262
18637
|
{
|
|
@@ -18288,69 +18663,7 @@ var DashboardRecentTransactionsViewSimple = ({
|
|
|
18288
18663
|
className: "py-[var(--deframe-widget-size-padding-y-xl)] text-center text-[13px] text-[color:var(--deframe-widget-color-text-tertiary)]",
|
|
18289
18664
|
children: "Nenhuma transa\xE7\xE3o encontrada"
|
|
18290
18665
|
}
|
|
18291
|
-
) : filtered.map((item) => /* @__PURE__ */
|
|
18292
|
-
"div",
|
|
18293
|
-
{
|
|
18294
|
-
"data-test-id": "dashboard-recent-transactions-simple-item",
|
|
18295
|
-
className: twMerge(
|
|
18296
|
-
"w-full flex flex-col gap-[6px]",
|
|
18297
|
-
"bg-[var(--deframe-widget-color-bg-secondary)]",
|
|
18298
|
-
"border border-[color:var(--deframe-widget-color-border-secondary)]",
|
|
18299
|
-
"rounded-[var(--deframe-widget-size-radius-sm)]",
|
|
18300
|
-
"px-[var(--deframe-widget-size-padding-x-md)] py-[14px]"
|
|
18301
|
-
),
|
|
18302
|
-
children: [
|
|
18303
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
18304
|
-
/* @__PURE__ */ jsx(
|
|
18305
|
-
"span",
|
|
18306
|
-
{
|
|
18307
|
-
"data-test-id": "dashboard-recent-transactions-simple-item-date",
|
|
18308
|
-
className: "text-[12px] text-[color:var(--deframe-widget-color-text-tertiary)] leading-none",
|
|
18309
|
-
children: item.formattedDate
|
|
18310
|
-
}
|
|
18311
|
-
),
|
|
18312
|
-
/* @__PURE__ */ jsx(StatusBadge2, { status: "approved" })
|
|
18313
|
-
] }),
|
|
18314
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-[var(--deframe-widget-size-gap-sm)]", children: [
|
|
18315
|
-
/* @__PURE__ */ jsx(
|
|
18316
|
-
"span",
|
|
18317
|
-
{
|
|
18318
|
-
"data-test-id": "dashboard-recent-transactions-simple-item-label",
|
|
18319
|
-
className: twMerge(
|
|
18320
|
-
"text-[18px] leading-[1.2]",
|
|
18321
|
-
"[font-weight:var(--deframe-widget-font-weight-bold)]",
|
|
18322
|
-
"text-[color:var(--deframe-widget-color-text-primary)]"
|
|
18323
|
-
),
|
|
18324
|
-
children: item.label
|
|
18325
|
-
}
|
|
18326
|
-
),
|
|
18327
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-[2px] flex-shrink-0", children: [
|
|
18328
|
-
/* @__PURE__ */ jsx(
|
|
18329
|
-
"span",
|
|
18330
|
-
{
|
|
18331
|
-
"data-test-id": "dashboard-recent-transactions-simple-item-primary",
|
|
18332
|
-
className: twMerge(
|
|
18333
|
-
"text-[13px] leading-[1.3]",
|
|
18334
|
-
"[font-weight:var(--deframe-widget-font-weight-semibold)]",
|
|
18335
|
-
"text-[color:var(--deframe-widget-color-text-primary)]"
|
|
18336
|
-
),
|
|
18337
|
-
children: item.rightPrimary
|
|
18338
|
-
}
|
|
18339
|
-
),
|
|
18340
|
-
item.rightSecondary && /* @__PURE__ */ jsx(
|
|
18341
|
-
"span",
|
|
18342
|
-
{
|
|
18343
|
-
"data-test-id": "dashboard-recent-transactions-simple-item-secondary",
|
|
18344
|
-
className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)] leading-none",
|
|
18345
|
-
children: item.rightSecondary
|
|
18346
|
-
}
|
|
18347
|
-
)
|
|
18348
|
-
] })
|
|
18349
|
-
] })
|
|
18350
|
-
]
|
|
18351
|
-
},
|
|
18352
|
-
item.id
|
|
18353
|
-
))
|
|
18666
|
+
) : filtered.map((item) => /* @__PURE__ */ jsx(HistoryListItemSimple, { item }, item.id))
|
|
18354
18667
|
}
|
|
18355
18668
|
)
|
|
18356
18669
|
]
|
|
@@ -18486,6 +18799,6 @@ var DashboardViewSimple = ({
|
|
|
18486
18799
|
);
|
|
18487
18800
|
};
|
|
18488
18801
|
|
|
18489
|
-
export { ActionButton, ActionSheet, AddressDisplay, ApyRange, BackButton, BackgroundContainer, BannerNotification, Chip, ChipGroup, ChoiceCard, ChooseANetworkView, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, ChooseNetworkAndAssetViewSimple, CloseButton_default as CloseButton, CollapsibleInfoRow, CollapsibleSection, ConfirmSwapButtonView, ConfirmSwapButtonViewSimple, ConnectWalletList, Currency, DashboardBalancesBreakdown, DashboardCard, DashboardInvestmentOpportunitiesView, DashboardPortfolioView, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, DashboardTokenListView, DashboardTokensView, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, DashboardViewSimple, DeframeComponentsProvider, DepositSuccessIcon, DetailsHeader, EarnAmountInputView, EarnBalanceCard, EarnBytecodeErrorView, EarnDepositFailedSimpleView, EarnDepositFailedView, EarnDepositFormView, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, EarnDepositSuccessSimpleView, EarnDepositSuccessView, EarnDepositWarningSimpleView, EarnDepositWarningView, EarnDesktopView, EarnDesktopViewSimple, EarnExploreGridView, EarnFlowSkeletonSimple, EarnInvestedSectionView, EarnInvestmentDetailsView, EarnInvestmentSummaryView, EarnNoBalanceNotificationView, EarnOverviewView, EarnPercentageButtonsView, EarnPositionCardView, EarnRecentTransactionsView, EarnTokenSelectorView, EarnTxStatusCardView, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, EarnWithdrawFormView, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, EarnWithdrawTokenSelectorView, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, Currency as Fiat, FlexCol, FlexRow, GroupedStrategyListView, HighRiskBadge, HistoryDepositDetailsView, HistoryListSkeleton, HistoryListView, HistorySwapDetailsView, HistoryTabEmpty, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, InputField, InputLabel, Input as InputRoot, InvestmentCrossChainProcessingView, KYCActionRow, KYCAddressPage, KYCBasicDataPage, KYCChecklistCard, KYCChecklistItem, KYCDataCard, KYCDocumentPage, KYCEditPage, KYCFieldMessage, KYCFormPage, KYCInfoRow, KYCIntroPage, KYCLoadingPage, KYCMessageBanner, KYCPageHeader, KYCPageSection, KYCPageShell, KYCReviewPage, KYCReviewPageSkeleton, KYCStatusItemCard, KYCStatusPage, KYCStatusPanel, KYCStepIndicator, KycLoadingView, KycRequiredView, Label, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, OffchainMethodSelectionView, OfframpFailedSimpleView, OfframpInputFormSimpleView, OfframpInputFormView, OfframpProcessingSimpleView, OfframpProcessingView, OfframpSuccessSimpleView, OfframpSuccessView, OnchainDepositFormSimpleView, OnchainDepositFormView, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, OnchainWithdrawChainSelectorView, OnchainWithdrawFailedView, OnchainWithdrawFormSimpleView, OnchainWithdrawFormView, OnchainWithdrawProcessingSimpleView, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, OnchainWithdrawSuccessView, OnrampFormSimpleView, OnrampFormView, OnrampPixcodeView, OnrampSuccessSimpleView, OnrampSuccessView, PercentageButton, PrimaryButton, ProcessingBadge, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, StrategyGridCard, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAdvancedSettingsView, SwapAmountInputView, SwapCrossChainProcessingView, SwapFormView, SwapFormViewSimple, SwapFromCardView, SwapFromCardViewSimple, SwapHistoryView, SwapProcessingView, SwapProcessingViewSimple, SwapQuoteDetailsView, SwapSignatureWarningView, SwapSignatureWarningViewSimple, SwapSuccessView, SwapSuccessViewSimple, SwapToCardView, SwapToCardViewSimple, SwapTransactionFailedView, SwapTransactionFailedViewSimple, SwapWidgetFallbackView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, Text_default as Text, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletBalances, WalletConnectPanel, WalletItem, ConnectWalletList as WalletList, WalletListContainer, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
|
|
18802
|
+
export { ActionButton, ActionSheet, AddressDisplay, ApyRange, BackButton, BackgroundContainer, BannerNotification, Chip, ChipGroup, ChoiceCard, ChooseANetworkView, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, ChooseNetworkAndAssetViewSimple, CloseButton_default as CloseButton, CollapsibleInfoRow, CollapsibleSection, ConfirmSwapButtonView, ConfirmSwapButtonViewSimple, ConnectWalletList, Currency, DashboardBalancesBreakdown, DashboardCard, DashboardInvestmentOpportunitiesView, DashboardPortfolioView, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, DashboardTokenListView, DashboardTokensView, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, DashboardViewSimple, DeframeComponentsProvider, DepositSuccessIcon, DetailsHeader, EarnAmountInputView, EarnBalanceCard, EarnBytecodeErrorView, EarnDepositFailedSimpleView, EarnDepositFailedView, EarnDepositFormView, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, EarnDepositSuccessSimpleView, EarnDepositSuccessView, EarnDepositWarningSimpleView, EarnDepositWarningView, EarnDesktopView, EarnDesktopViewSimple, EarnExploreGridView, EarnFlowSkeletonSimple, EarnInvestedSectionView, EarnInvestmentDetailsView, EarnInvestmentSummaryView, EarnNoBalanceNotificationView, EarnOverviewView, EarnPercentageButtonsView, EarnPositionCardView, EarnRecentTransactionsView, EarnTokenSelectorView, EarnTxStatusCardView, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, EarnWithdrawFormView, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, EarnWithdrawTokenSelectorView, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, Currency as Fiat, FlexCol, FlexRow, GroupedStrategyListView, HighRiskBadge, HistoryDepositDetailsView, HistoryListItem, HistoryListItemSimple, HistoryListSkeleton, HistoryListView, HistorySwapDetailsView, HistoryTabEmpty, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, InputField, InputLabel, Input as InputRoot, InvestmentCrossChainProcessingView, KYCActionRow, KYCAddressPage, KYCBasicDataPage, KYCChecklistCard, KYCChecklistItem, KYCDataCard, KYCDocumentPage, KYCEditPage, KYCFieldMessage, KYCFormPage, KYCInfoRow, KYCIntroPage, KYCLoadingPage, KYCMessageBanner, KYCPageHeader, KYCPageSection, KYCPageShell, KYCReviewPage, KYCReviewPageSkeleton, KYCStatusItemCard, KYCStatusPage, KYCStatusPanel, KYCStepIndicator, KycLoadingView, KycRequiredView, Label, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, OffchainMethodSelectionView, OfframpFailedSimpleView, OfframpInputFormSimpleView, OfframpInputFormView, OfframpProcessingSimpleView, OfframpProcessingView, OfframpSuccessSimpleView, OfframpSuccessView, OnchainDepositFormSimpleView, OnchainDepositFormView, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, OnchainWithdrawChainSelectorView, OnchainWithdrawFailedView, OnchainWithdrawFormSimpleView, OnchainWithdrawFormView, OnchainWithdrawProcessingSimpleView, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, OnchainWithdrawSuccessView, OnrampFormSimpleView, OnrampFormView, OnrampPixcodeView, OnrampSuccessSimpleView, OnrampSuccessView, PercentageButton, PrimaryButton, ProcessingBadge, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, StrategyGridCard, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAdvancedSettingsView, SwapAmountInputView, SwapCrossChainProcessingView, SwapFormView, SwapFormViewSimple, SwapFromCardView, SwapFromCardViewSimple, SwapHistoryView, SwapHistoryViewSimple, SwapProcessingView, SwapProcessingViewSimple, SwapQuoteDetailsView, SwapSignatureWarningView, SwapSignatureWarningViewSimple, SwapSuccessView, SwapSuccessViewSimple, SwapToCardView, SwapToCardViewSimple, SwapTransactionFailedView, SwapTransactionFailedViewSimple, SwapWidgetFallbackView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, Text_default as Text, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletBalances, WalletConnectPanel, WalletItem, ConnectWalletList as WalletList, WalletListContainer, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
|
|
18490
18803
|
//# sourceMappingURL=index.mjs.map
|
|
18491
18804
|
//# sourceMappingURL=index.mjs.map
|