@deframe-sdk/components 0.1.24 → 0.1.25
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.js +8 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ import { motion, AnimatePresence } from 'framer-motion';
|
|
|
7
7
|
import { MdClose, MdOutlineSearch, MdOutlineSearchOff, MdOutlineSwapHoriz, MdHistory, MdOutlineSwapVert, MdArrowRight, MdArrowDropDown, MdQrCodeScanner, MdOutlineArrowUpward, MdOutlineArrowDownward, MdCheckCircleOutline, MdErrorOutline, MdWarningAmber, MdInfoOutline, MdArrowUpward, MdArrowDownward } from 'react-icons/md';
|
|
8
8
|
import { IoAlertCircleOutline, IoTimeOutline, IoCheckmarkOutline } from 'react-icons/io5';
|
|
9
9
|
import { PiClockCountdownBold } from 'react-icons/pi';
|
|
10
|
-
import Link2 from 'next/link';
|
|
11
10
|
|
|
12
11
|
var __defProp = Object.defineProperty;
|
|
13
12
|
var __defProps = Object.defineProperties;
|
|
@@ -9533,15 +9532,15 @@ var DashboardPortfolioView = ({
|
|
|
9533
9532
|
"value"
|
|
9534
9533
|
) }) }),
|
|
9535
9534
|
/* @__PURE__ */ jsxs("div", { className: "flex lg:hidden flex-row gap-2 sm:gap-4 mt-6 w-full", children: [
|
|
9536
|
-
/* @__PURE__ */ jsx(
|
|
9535
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-deposit-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onDepositClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
9537
9536
|
/* @__PURE__ */ jsx(MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
|
|
9538
9537
|
"Depositar"
|
|
9539
9538
|
] }) }),
|
|
9540
|
-
/* @__PURE__ */ jsx(
|
|
9539
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-withdraw-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onWithdrawClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
9541
9540
|
/* @__PURE__ */ jsx(MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
|
|
9542
9541
|
"Sacar"
|
|
9543
9542
|
] }) }),
|
|
9544
|
-
/* @__PURE__ */ jsx(
|
|
9543
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-swap-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onSwapClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
9545
9544
|
/* @__PURE__ */ jsx(MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
|
|
9546
9545
|
"Trocar"
|
|
9547
9546
|
] }) })
|
|
@@ -10060,7 +10059,7 @@ var DashboardRecentTransactionsView = ({
|
|
|
10060
10059
|
return /* @__PURE__ */ jsx(DashboardCard, { className: "p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
10061
10060
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
10062
10061
|
/* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "Transa\xE7\xF5es recentes" }),
|
|
10063
|
-
/* @__PURE__ */ jsx(
|
|
10062
|
+
/* @__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" }) })
|
|
10064
10063
|
] }),
|
|
10065
10064
|
/* @__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: [
|
|
10066
10065
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circle", width: "40px", height: "40px", shimmer: true }),
|
|
@@ -10404,7 +10403,7 @@ var DashboardInvestmentOpportunitiesView = ({
|
|
|
10404
10403
|
isLoadingBalances ? /* @__PURE__ */ jsx("div", { className: "flex items-baseline gap-2", children: /* @__PURE__ */ jsx(Skeleton, { width: "80px", height: "24px", shimmer: true }) }) : /* @__PURE__ */ jsx("div", { className: "flex items-baseline gap-2", children: /* @__PURE__ */ jsx(TextBody, { variant: "text-large", children: formattedTotalProfit }) })
|
|
10405
10404
|
] }),
|
|
10406
10405
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: strategiesContent }),
|
|
10407
|
-
/* @__PURE__ */ jsx(
|
|
10406
|
+
/* @__PURE__ */ jsx("div", { className: "w-full", onClick: onViewAllStrategiesClick, children: /* @__PURE__ */ jsx(SecondaryButton, { children: "Ver todas as estrat\xE9gias" }) })
|
|
10408
10407
|
] }) });
|
|
10409
10408
|
};
|
|
10410
10409
|
var DashboardView = ({
|
|
@@ -10421,15 +10420,15 @@ var DashboardView = ({
|
|
|
10421
10420
|
/* @__PURE__ */ jsx(DashboardCard, { "data-testid": "dashboard-quick-actions-card", className: "hidden lg:block p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-3", children: [
|
|
10422
10421
|
/* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "A\xE7\xF5es r\xE1pidas" }),
|
|
10423
10422
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4 w-full", children: [
|
|
10424
|
-
/* @__PURE__ */ jsx(
|
|
10423
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-deposit", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onDepositClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
10425
10424
|
/* @__PURE__ */ jsx(MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
|
|
10426
10425
|
"Depositar"
|
|
10427
10426
|
] }) }),
|
|
10428
|
-
/* @__PURE__ */ jsx(
|
|
10427
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-withdraw", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onWithdrawClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
10429
10428
|
/* @__PURE__ */ jsx(MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
|
|
10430
10429
|
"Sacar"
|
|
10431
10430
|
] }) }),
|
|
10432
|
-
/* @__PURE__ */ jsx(
|
|
10431
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-swap", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onSwapClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
|
|
10433
10432
|
/* @__PURE__ */ jsx(MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
|
|
10434
10433
|
"Trocar"
|
|
10435
10434
|
] }) })
|