tek-wallet 0.0.735 → 0.0.737

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.
Files changed (76) hide show
  1. package/dist/components/TekWallet/components/index.d.ts +2 -0
  2. package/dist/components/TekWallet/components/index.js +2 -0
  3. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +13 -12
  4. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +10 -11
  5. package/dist/components/TekWallet/components/ui/DrawerComponent/index.d.ts +2 -0
  6. package/dist/components/TekWallet/components/ui/DrawerComponent/index.js +9 -12
  7. package/dist/components/TekWallet/components/ui/Fees/index.d.ts +1 -1
  8. package/dist/components/TekWallet/components/ui/Fees/index.js +2 -2
  9. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +3 -2
  10. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.d.ts +8 -0
  11. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +87 -0
  12. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.d.ts +7 -0
  13. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +170 -0
  14. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.d.ts +11 -0
  15. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +29 -0
  16. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.d.ts +7 -0
  17. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +60 -0
  18. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.d.ts +13 -0
  19. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +69 -0
  20. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.d.ts +13 -0
  21. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +67 -0
  22. package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.d.ts +6 -0
  23. package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.js +13 -0
  24. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.d.ts +6 -0
  25. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +19 -0
  26. package/dist/components/TekWallet/components/ui/IncomeWallet/index.d.ts +8 -0
  27. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +57 -0
  28. package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.d.ts +2 -0
  29. package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.js +18 -0
  30. package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.d.ts +15 -0
  31. package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.js +2 -0
  32. package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.d.ts +12 -0
  33. package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.js +2 -0
  34. package/dist/components/TekWallet/components/ui/ModalLayout/index.d.ts +1 -1
  35. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +1 -1
  36. package/dist/components/TekWallet/components/ui/QRCode/index.js +1 -1
  37. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +1 -1
  38. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.d.ts +1 -3
  39. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +13 -27
  40. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +3 -2
  41. package/dist/components/TekWallet/components/ui/Spacer/index.d.ts +5 -0
  42. package/dist/components/TekWallet/components/ui/Spacer/index.js +7 -0
  43. package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +5 -0
  44. package/dist/components/TekWallet/components/ui/SvgPath/index.js +7 -2
  45. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.d.ts +1 -0
  46. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +21 -14
  47. package/dist/components/TekWallet/index.d.ts +10 -0
  48. package/dist/components/TekWallet/index.js +10 -0
  49. package/dist/components/TekWallet/theme/mui/theme.d.ts +5 -0
  50. package/dist/components/TekWallet/theme/mui/theme.js +5 -0
  51. package/dist/components/TekWallet/types/expose-type.d.ts +0 -46
  52. package/dist/components/TekWallet/utils/ref.extension.d.ts +3 -0
  53. package/dist/components/TekWallet/utils/ref.extension.js +8 -0
  54. package/package.json +1 -1
  55. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.d.ts +0 -8
  56. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +0 -149
  57. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.d.ts +0 -8
  58. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +0 -21
  59. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.d.ts +0 -9
  60. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +0 -125
  61. package/dist/components/TekWallet/components/ui/FiatDeposit/index.d.ts +0 -5
  62. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +0 -254
  63. package/dist/components/TekWallet/components/ui/TimeText/index.d.ts +0 -5
  64. package/dist/components/TekWallet/components/ui/TimeText/index.js +0 -22
  65. package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.d.ts +0 -13
  66. package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.js +0 -55
  67. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  68. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  69. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  70. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  71. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  72. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  73. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  74. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
  75. package/dist/components/TekWallet/utils/cn.d.ts +0 -2
  76. package/dist/components/TekWallet/utils/cn.js +0 -12
@@ -8,3 +8,5 @@ export * from "./views/ImportWalletView";
8
8
  export * from "./ui/Fees";
9
9
  export * from "./ui/ConfirmTransaction";
10
10
  export * from "./ui/SwapFunction";
11
+ export * from "./ui/IncomeWallet";
12
+ export * from "./ui/TransferConfirmation";
@@ -24,3 +24,5 @@ __exportStar(require("./views/ImportWalletView"), exports);
24
24
  __exportStar(require("./ui/Fees"), exports);
25
25
  __exportStar(require("./ui/ConfirmTransaction"), exports);
26
26
  __exportStar(require("./ui/SwapFunction"), exports);
27
+ __exportStar(require("./ui/IncomeWallet"), exports);
28
+ __exportStar(require("./ui/TransferConfirmation"), exports);
@@ -24,9 +24,8 @@ var DelayMounted_1 = __importDefault(require("../DelayMounted"));
24
24
  var material_1 = require("@mui/material");
25
25
  var ThemeProvider_1 = require("../../../providers/ThemeProvider");
26
26
  var NeonLineChart_1 = __importDefault(require("../NeonLineChart"));
27
- var Icon_1 = __importDefault(require("../Icon"));
28
- var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
29
27
  var ContentHiddenProvider_1 = require("../../../providers/ContentHiddenProvider");
28
+ var SvgPath_1 = require("../SvgPath");
30
29
  var fakeSeries = [
31
30
  {
32
31
  name: "All",
@@ -123,15 +122,17 @@ var AmountGroupAndChart = function (props) {
123
122
  ease: "linear",
124
123
  delay: expandAreaChart ? 0.5 : 0.25,
125
124
  },
126
- }, children: (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 100, children: (0, jsx_runtime_1.jsx)(TimeFilter_1.default, { hideAll: true, initialValue: defaultTimeRange, onChange: handleChangeTimeRange }) }) })] }), (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 100, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { sx: {
127
- alignSelf: "center",
128
- transition: "all 500ms ease-in-out",
129
- cursor: "pointer",
130
- mt: theme.mixins.customMargin.m4,
131
- transform: !expandAreaChart
132
- ? "rotate(180deg) translateX(900%) translateY(120%)"
133
- : "translateX(-50%) translateY(100%)",
134
- zIndex: 20,
135
- }, width: 20, src: (0, getIcon_1.default)("".concat(!expandAreaChart ? "expand" : "collapse")), onClick: toggleExpand }) })] })] }) }));
125
+ }, children: (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 100, children: (0, jsx_runtime_1.jsx)(TimeFilter_1.default, { hideAll: true, initialValue: defaultTimeRange, onChange: handleChangeTimeRange }) }) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleExpand, sx: {
126
+ alignSelf: "center",
127
+ transition: "all 500ms ease-in-out",
128
+ cursor: "pointer",
129
+ mt: theme.mixins.customMargin.m4,
130
+ transform: !expandAreaChart
131
+ ? "rotate(180deg) translateX(900%) translateY(120%)"
132
+ : "translateX(-50%) translateY(100%)",
133
+ zIndex: 20,
134
+ width: 20,
135
+ height: 20,
136
+ }, children: SvgPath_1.IC_EXPANDER_ARROW })] })] }) }));
136
137
  };
137
138
  exports.default = AmountGroupAndChart;
@@ -17,11 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var Text_1 = __importDefault(require("../Text"));
19
19
  var Formatter_1 = __importDefault(require("../Formatter"));
20
- var Icon_1 = __importDefault(require("../Icon"));
21
20
  var material_1 = require("@mui/material");
22
21
  var providers_1 = require("../../../providers");
23
- var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
24
22
  var ContentHiddenProvider_1 = require("../../../providers/ContentHiddenProvider");
23
+ var SvgPath_1 = require("../SvgPath");
25
24
  var AnalyticGroup = function (props) {
26
25
  var theme = (0, providers_1.useTheme)();
27
26
  var _a = (0, ContentHiddenProvider_1.useContentHidden)(), isHidden = _a.isHidden, setIsHidden = _a.setIsHidden;
@@ -32,7 +31,7 @@ var AnalyticGroup = function (props) {
32
31
  fontSize: theme.typography.fontSize15,
33
32
  fontWeight: theme.typography.fontWeight500,
34
33
  color: theme.palette.text.accent2,
35
- }, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("not_see"), onClick: toggleHidden, width: 16, height: 16 })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
34
+ }, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleHidden, sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_NO_SEE })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
36
35
  display: "flex",
37
36
  flexDirection: "column",
38
37
  alignItems: "flex-end",
@@ -41,7 +40,7 @@ var AnalyticGroup = function (props) {
41
40
  }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g6 }), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: 1000000 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
42
41
  fontWeight: theme.typography.fontWeight400,
43
42
  fontSize: "0.8em",
44
- }, children: "USDC" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8 })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
43
+ }, children: "USDC" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
45
44
  fontSize: theme.typography.fontSize24,
46
45
  fontWeight: theme.typography.fontWeight700,
47
46
  color: theme.palette.text.black,
@@ -51,7 +50,7 @@ var AnalyticGroup = function (props) {
51
50
  fontSize: theme.typography.fontSize12,
52
51
  textTransform: "capitalize",
53
52
  color: theme.palette.text.accent,
54
- }, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up"), width: 8 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
53
+ }, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
55
54
  fontSize: theme.typography.fontSize12,
56
55
  fontWeight: theme.typography.fontWeight600,
57
56
  color: theme.palette.text.accent2,
@@ -67,14 +66,14 @@ var AnalyticGroup = function (props) {
67
66
  fontSize: theme.typography.fontSize12,
68
67
  textTransform: "capitalize",
69
68
  color: theme.palette.text.accent,
70
- }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("approximately"), width: 15, height: 15 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
71
- fontSize: theme.typography.fontSize12,
72
- fontWeight: theme.typography.fontWeight600,
73
- color: theme.palette.text.accent2,
74
- }, children: "250k XP" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
69
+ }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
70
+ fontSize: theme.typography.fontSize12,
71
+ fontWeight: theme.typography.fontWeight600,
72
+ color: theme.palette.text.accent2,
73
+ }, children: "\u2248 250k XP" }) })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
75
74
  fontSize: theme.typography.fontSize12,
76
75
  fontWeight: theme.typography.fontWeight600,
77
76
  color: theme.palette.text.accent2,
78
- }, children: "****" })) }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("mark"), width: 15, height: 15 })] })] })] }));
77
+ }, children: "****" })) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_INFORMATION })] })] })] }));
79
78
  };
80
79
  exports.default = AnalyticGroup;
@@ -18,6 +18,8 @@ export interface DrawerComponentProps extends Omit<GeneralProps, "onClick" | "sx
18
18
  direction?: DRAWER_DIRECTION;
19
19
  disableSwipe?: boolean;
20
20
  triggerStatus?: DRAWER_TRIGGER_STATUS;
21
+ onDismiss?: () => void;
22
+ draggable?: boolean;
21
23
  }
22
24
  export interface DrawerComponentRef {
23
25
  open: () => void;
@@ -39,10 +39,9 @@ var DRAWER_TRIGGER_STATUS;
39
39
  DRAWER_TRIGGER_STATUS["DISABLED"] = "DISABLED";
40
40
  })(DRAWER_TRIGGER_STATUS || (exports.DRAWER_TRIGGER_STATUS = DRAWER_TRIGGER_STATUS = {}));
41
41
  var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
42
- var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, disableSwipe = props.disableSwipe, className = props.className, _a = props.triggerStatus, triggerStatus = _a === void 0 ? DRAWER_TRIGGER_STATUS.ENABLED : _a, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "disableSwipe", "className", "triggerStatus"]);
42
+ var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, _a = props.triggerStatus, triggerStatus = _a === void 0 ? DRAWER_TRIGGER_STATUS.ENABLED : _a, onDismiss = props.onDismiss, draggable = props.draggable, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "triggerStatus", "onDismiss", "draggable"]);
43
43
  var _b = (0, react_1.useState)(false), isShowDrawerComponent = _b[0], setIsShowDrawerComponent = _b[1];
44
44
  var _c = (0, react_1.useState)(undefined), isOpen = _c[0], setIsOpen = _c[1];
45
- var DrawerComponent = (0, react_1.useMemo)(function () { return (isOpen !== undefined || disableSwipe ? material_1.Drawer : material_1.SwipeableDrawer); }, [isOpen, disableSwipe]);
46
45
  var lockStatus = function () {
47
46
  setIsOpen(isShowDrawerComponent);
48
47
  };
@@ -70,12 +69,6 @@ var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
70
69
  var newState = !isShowDrawerComponent;
71
70
  setIsShowDrawerComponent(newState);
72
71
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(newState);
73
- if (newState) {
74
- onOpen === null || onOpen === void 0 ? void 0 : onOpen();
75
- }
76
- else {
77
- onClose === null || onClose === void 0 ? void 0 : onClose();
78
- }
79
72
  };
80
73
  (0, react_1.useImperativeHandle)(ref, function () { return ({
81
74
  open: handleOpen,
@@ -83,21 +76,25 @@ var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
83
76
  lockStatus: lockStatus,
84
77
  unlockStatus: unlockStatus,
85
78
  }); });
86
- var onDrawerClose = function (e) {
79
+ var onDrawerClose = function () {
87
80
  setIsShowDrawerComponent(false);
88
- onClose === null || onClose === void 0 ? void 0 : onClose(e);
81
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
89
82
  };
90
83
  var onDrawerOpen = function (e) {
91
84
  setIsShowDrawerComponent(true);
92
85
  onOpen === null || onOpen === void 0 ? void 0 : onOpen(e);
93
86
  };
94
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "block" }, sx), className: className, onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(DrawerComponent, __assign({}, rest, { sx: {
87
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, sx), onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, __assign({}, rest, { disableSwipeToOpen: true, sx: {
95
88
  "& .MuiDrawer-paper": {
96
89
  backgroundColor: "transparent",
97
90
  overflow: "hidden",
98
91
  boxShadow: "none",
99
92
  },
100
- }, anchor: direction || DRAWER_DIRECTION.BOTTOM, open: isOpen !== null && isOpen !== void 0 ? isOpen : isShowDrawerComponent, onOpen: onDrawerOpen, onClose: onDrawerClose, children: children }))] }));
93
+ }, anchor: direction || "bottom", open: isOpen !== null && isOpen !== void 0 ? isOpen : isShowDrawerComponent, onOpen: onDrawerOpen, onClose: onDrawerClose, ModalProps: {
94
+ onBackdropClick: function () {
95
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
96
+ },
97
+ }, draggable: draggable, children: children }))] }));
101
98
  });
102
99
  DrawerComponent.displayName = "DrawerComponent";
103
100
  exports.default = DrawerComponent;
@@ -14,5 +14,5 @@ export interface FeesProps extends Omit<AccordionProps, "children"> {
14
14
  feesStyle?: FeesStyle;
15
15
  estimateReceive?: string | number;
16
16
  }
17
- declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element | null;
18
18
  export default Fees;
@@ -84,7 +84,7 @@ function Fees(props) {
84
84
  var totalfee_in_currency = (0, react_1.useMemo)(function () {
85
85
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
86
86
  }, [feesData]);
87
- return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
87
+ return feeCheckedBalance.length > 0 ? ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
88
88
  fontSize: theme.typography.fontSize11,
89
89
  fontWeight: theme.typography.fontWeight500,
90
90
  color: theme.palette.text.black,
@@ -119,7 +119,7 @@ function Fees(props) {
119
119
  fontSize: theme.typography.fontSize16,
120
120
  fontWeight: theme.typography.fontWeight700,
121
121
  color: theme.palette.text.black,
122
- }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] })));
122
+ }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) : null;
123
123
  }
124
124
  exports.default = Fees;
125
125
  var FeeDetails = function (_a) {
@@ -199,6 +199,7 @@ var HistorySwap = function (props) {
199
199
  return [3 /*break*/, 5];
200
200
  case 4:
201
201
  setLoading(false);
202
+ console.error("Error fetching swap history.");
202
203
  return [7 /*endfinally*/];
203
204
  case 5: return [2 /*return*/];
204
205
  }
@@ -409,13 +410,13 @@ var HistorySwap = function (props) {
409
410
  timestamp: selectedItem.date_created,
410
411
  success: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.transaction_status,
411
412
  message: "",
412
- } }, "detail-".concat(currentId))) }) }, "drawer-".concat(currentId)), resultData.map(function (item, i) {
413
+ } }, "detail-".concat(currentId))) }) }, "drawer-".concat(currentId)), resultData.map(function (item) {
413
414
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
414
415
  return ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: function () {
415
416
  handleTransactionClick(item.id);
416
417
  }, sx: {
417
418
  mt: theme.mixins.customMargin.m8,
418
- }, children: (0, jsx_runtime_1.jsx)(CardHistorySwap_1.default, { amount: item.amount, status: item.transaction_status, fromCurrency: (_a = item.currency_data) === null || _a === void 0 ? void 0 : _a.full_name, toCurrency: (_f = (_e = (_d = (_c = (_b = item.fee_info) === null || _b === void 0 ? void 0 : _b.fee_detail) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.currency) === null || _e === void 0 ? void 0 : _e.outputs[0]) === null || _f === void 0 ? void 0 : _f.full_name, swapAmount: (_l = (_k = (_j = (_h = (_g = item.fee_info) === null || _g === void 0 ? void 0 : _g.fee_detail) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.currency) === null || _k === void 0 ? void 0 : _k.outputs[0]) === null || _l === void 0 ? void 0 : _l.swap_amount, date: item.date_created, description: item.description }, item.id) }, i));
419
+ }, children: (0, jsx_runtime_1.jsx)(CardHistorySwap_1.default, { amount: item.amount, status: item.transaction_status, fromCurrency: (_a = item.currency_data) === null || _a === void 0 ? void 0 : _a.full_name, toCurrency: (_f = (_e = (_d = (_c = (_b = item.fee_info) === null || _b === void 0 ? void 0 : _b.fee_detail) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.currency) === null || _e === void 0 ? void 0 : _e.outputs[0]) === null || _f === void 0 ? void 0 : _f.full_name, swapAmount: (_l = (_k = (_j = (_h = (_g = item.fee_info) === null || _g === void 0 ? void 0 : _g.fee_detail) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.currency) === null || _k === void 0 ? void 0 : _k.outputs[0]) === null || _l === void 0 ? void 0 : _l.swap_amount, date: item.date_created, description: item.description }, item.id) }, item.id));
419
420
  })] })) : (resultData.length == 0 &&
420
421
  !isLoading && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign(__assign({}, theme.mixins.center), { padding: theme.mixins.customPadding.p24 }), theme.mixins.column), { gap: theme.mixins.gaps.g4, textAlign: "center" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("result"), width: 62, height: 62, sx: {
421
422
  mx: "auto",
@@ -0,0 +1,8 @@
1
+ import { GeneralProps } from "../../../../types/ui";
2
+ import { WealthsUserInfoDto } from "../types/userinfo.dto";
3
+ interface AnalyticGroupProps extends GeneralProps {
4
+ timeRange?: string;
5
+ userInfo?: WealthsUserInfoDto;
6
+ }
7
+ declare const AnalyticGroup: (props: AnalyticGroupProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default AnalyticGroup;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var material_1 = require("@mui/material");
19
+ var Text_1 = __importDefault(require("../../Text"));
20
+ var Formatter_1 = __importDefault(require("../../Formatter"));
21
+ var providers_1 = require("../../../../providers");
22
+ var ContentHiddenProvider_1 = require("../../../../providers/ContentHiddenProvider");
23
+ var SvgPath_1 = require("../../SvgPath");
24
+ var Column_1 = __importDefault(require("../../Column"));
25
+ var Spacer_1 = __importDefault(require("../../Spacer"));
26
+ var AnalyticGroup = function (props) {
27
+ var _a;
28
+ var theme = (0, providers_1.useTheme)();
29
+ var _b = (0, ContentHiddenProvider_1.useContentHidden)(), isHidden = _b.isHidden, setIsHidden = _b.setIsHidden;
30
+ var userInfo = props.userInfo;
31
+ var toggleHidden = function () {
32
+ setIsHidden(!isHidden);
33
+ };
34
+ return ((0, jsx_runtime_1.jsxs)(Column_1.default, { children: [(0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
35
+ fontSize: theme.typography.fontSize12,
36
+ fontWeight: theme.typography.fontWeight500,
37
+ color: theme.palette.text.accent2,
38
+ }, children: ["Welcome, ", userInfo === null || userInfo === void 0 ? void 0 : userInfo.accountName, "!"] }), (0, jsx_runtime_1.jsx)(Spacer_1.default, { value: "0.25rem" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, position: "relative", bottom: "30px" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
39
+ fontSize: theme.typography.fontSize15,
40
+ fontWeight: theme.typography.fontWeight500,
41
+ color: theme.palette.text.accent2,
42
+ }, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleHidden, sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_NO_SEE })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
43
+ display: "flex",
44
+ flexDirection: "column",
45
+ alignItems: "flex-end",
46
+ gap: theme.mixins.gaps.g6,
47
+ fontSize: theme.typography.fontSize12,
48
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g6 }), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: (_a = userInfo === null || userInfo === void 0 ? void 0 : userInfo.amount) !== null && _a !== void 0 ? _a : 0 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
49
+ fontWeight: theme.typography.fontWeight400,
50
+ fontSize: "0.8em",
51
+ }, children: "WealthS" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
52
+ fontSize: theme.typography.fontSize24,
53
+ fontWeight: theme.typography.fontWeight700,
54
+ color: theme.palette.text.black,
55
+ }, children: "*****" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
56
+ fontWeight: theme.typography.fontWeight600,
57
+ leading: theme.typography.leading140,
58
+ fontSize: theme.typography.fontSize12,
59
+ textTransform: "capitalize",
60
+ color: theme.palette.text.accent,
61
+ }, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
62
+ fontSize: theme.typography.fontSize12,
63
+ fontWeight: theme.typography.fontWeight600,
64
+ color: theme.palette.text.accent2,
65
+ display: theme.mixins.row,
66
+ }, children: "****" }))] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
67
+ width: "110%",
68
+ borderColor: "".concat(theme.palette.border.accent),
69
+ opacity: 0.2,
70
+ marginTop: theme.mixins.customMargin.m4,
71
+ } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
72
+ fontWeight: theme.typography.fontWeight500,
73
+ leading: theme.typography.leading140,
74
+ fontSize: theme.typography.fontSize12,
75
+ textTransform: "capitalize",
76
+ color: theme.palette.text.accent,
77
+ }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
78
+ fontSize: theme.typography.fontSize12,
79
+ fontWeight: theme.typography.fontWeight600,
80
+ color: theme.palette.text.accent2,
81
+ }, children: "\u2248 250 WealthS" }) })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
82
+ fontSize: theme.typography.fontSize12,
83
+ fontWeight: theme.typography.fontWeight600,
84
+ color: theme.palette.text.accent2,
85
+ }, children: "****" })) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_INFORMATION })] })] })] })] }));
86
+ };
87
+ exports.default = AnalyticGroup;
@@ -0,0 +1,7 @@
1
+ import { GeneralProps } from "../../../../types/ui";
2
+ import { WealthsUserInfoDto } from "../types/userinfo.dto";
3
+ interface BalanceChartProps extends GeneralProps {
4
+ userInfo?: WealthsUserInfoDto;
5
+ }
6
+ declare const BalanceChart: (props: BalanceChartProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default BalanceChart;
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ var __importDefault = (this && this.__importDefault) || function (mod) {
47
+ return (mod && mod.__esModule) ? mod : { "default": mod };
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ var jsx_runtime_1 = require("react/jsx-runtime");
51
+ var react_1 = require("react");
52
+ var framer_motion_1 = require("framer-motion");
53
+ var material_1 = require("@mui/material");
54
+ var TimeFilter_1 = __importStar(require("../../TimeFilter"));
55
+ var ContentHiddenProvider_1 = require("../../../../providers/ContentHiddenProvider");
56
+ var providers_1 = require("../../../../providers");
57
+ var DelayMounted_1 = __importDefault(require("../../DelayMounted"));
58
+ var NeonLineChart_1 = __importDefault(require("../../NeonLineChart"));
59
+ var SvgPath_1 = require("../../SvgPath");
60
+ var AnalyticGroup_1 = __importDefault(require("./AnalyticGroup"));
61
+ var fakeSeries = [
62
+ {
63
+ name: "All",
64
+ data: [
65
+ 1003785.6864951615, 1003795.988344575, 1003827.99766239, 1003899.7426850981,
66
+ 1003891.7710159089, 1003810.6439517767, 1003780.7195320514, 1003797.9506016063,
67
+ 1003781.455378438, 1003782.0072632281, 1003715.167883104, 1003724.9791682598,
68
+ 1003716.6018329085, 1003711.3282671372, 1003686.1868489254, 1003625.4795220237,
69
+ 1003584.3334449014, 1003498.9139435134, 1003310.7825506503, 1003339.72584186,
70
+ 1003334.3069939599, 1003364.3540547496, 1003394.4011155394, 1003398.386950134,
71
+ 1003233.005474726, 1003185.2981006557, 1003165.7981714085,
72
+ ],
73
+ },
74
+ ];
75
+ var labels = [
76
+ "2025-03-04T08:10:17.311Z",
77
+ "2025-03-04T12:10:18.859Z",
78
+ "2025-03-04T16:10:19.118Z",
79
+ "2025-03-04T20:10:18.246Z",
80
+ "2025-03-05T00:10:18.371Z",
81
+ "2025-03-05T10:12:40.882Z",
82
+ "2025-03-05T14:12:42.832Z",
83
+ "2025-03-05T18:12:41.114Z",
84
+ "2025-03-05T22:12:40.544Z",
85
+ "2025-03-06T02:12:40.718Z",
86
+ "2025-03-08T10:35:52.596Z",
87
+ "2025-03-08T14:35:52.979Z",
88
+ "2025-03-08T16:01:31.209Z",
89
+ "2025-03-08T18:35:52.824Z",
90
+ "2025-03-08T22:35:52.901Z",
91
+ "2025-03-09T06:35:53.327Z",
92
+ "2025-03-09T10:35:52.682Z",
93
+ "2025-03-09T14:35:53.001Z",
94
+ "2025-03-09T18:35:52.886Z",
95
+ "2025-03-09T22:35:52.880Z",
96
+ "2025-03-10T03:43:34.153Z",
97
+ "2025-03-10T06:35:52.944Z",
98
+ "2025-03-10T10:35:52.253Z",
99
+ "2025-03-10T14:35:52.727Z",
100
+ "2025-03-10T18:35:52.865Z",
101
+ "2025-03-10T22:35:53.563Z",
102
+ "2025-03-11T04:16:45.409Z",
103
+ ];
104
+ var defaultTimeRange = TimeFilter_1.TimeFilterType.SEVEN_DAYS;
105
+ var variants = {
106
+ hidden: { opacity: 0, display: "none" },
107
+ visible: { opacity: 1, display: "block" },
108
+ };
109
+ var BalanceChart = function (props) {
110
+ var _a = (0, react_1.useState)(false), expandAreaChart = _a[0], setExpandAreaChart = _a[1];
111
+ var _b = (0, react_1.useState)(), timeRangeData = _b[0], setTimeRangeData = _b[1];
112
+ var isHidden = (0, ContentHiddenProvider_1.useContentHidden)().isHidden;
113
+ var theme = (0, providers_1.useTheme)();
114
+ var handleChangeTimeRange = function (data) {
115
+ setTimeRangeData(data);
116
+ };
117
+ var toggleExpand = function () {
118
+ setExpandAreaChart(function (prev) { return !prev; });
119
+ };
120
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, props.sx), { width: "100%" }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(AnalyticGroup_1.default, { timeRange: timeRangeData === null || timeRangeData === void 0 ? void 0 : timeRangeData.type, userInfo: props.userInfo }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { position: "relative", marginTop: theme.mixins.customMargin.m12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
121
+ width: "100%",
122
+ position: "relative",
123
+ transition: "all 500ms ease-in-out",
124
+ // aspectRatio: expandAreaChart ? "1.47317073171" : 999999,
125
+ zIndex: 10,
126
+ minHeight: expandAreaChart ? "16rem" : "0",
127
+ maxHeight: expandAreaChart ? "28rem" : "0",
128
+ }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
129
+ position: "absolute",
130
+ top: 0,
131
+ right: 0,
132
+ left: 0,
133
+ bottom: 0,
134
+ transition: "all 500ms ease-in-out",
135
+ transform: !expandAreaChart ? "translateX(-25%) scale(0.5)" : "none",
136
+ display: isHidden && !expandAreaChart ? "none" : "block",
137
+ }, children: (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 800, children: (0, jsx_runtime_1.jsx)(NeonLineChart_1.default, { showMinMaxValues: expandAreaChart, series: fakeSeries, categories: labels, sx: {
138
+ width: "100%",
139
+ height: "fit-content",
140
+ transition: "all 500ms ease-in-out",
141
+ transform: !expandAreaChart ? "translateY(-100%)" : "none",
142
+ my: theme.mixins.customMargin.m3,
143
+ } }) }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { style: {
144
+ position: "relative",
145
+ transform: "translateY(350%)",
146
+ }, initial: "hidden", animate: expandAreaChart ? "visible" : "hidden", variants: variants, transition: {
147
+ opacity: {
148
+ duration: expandAreaChart ? 0.5 : 0.25,
149
+ ease: "linear",
150
+ delay: expandAreaChart ? 0.5 : 0,
151
+ },
152
+ display: {
153
+ duration: 0,
154
+ ease: "linear",
155
+ delay: expandAreaChart ? 0.5 : 0.25,
156
+ },
157
+ }, children: (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 100, children: (0, jsx_runtime_1.jsx)(TimeFilter_1.default, { hideAll: true, initialValue: defaultTimeRange, onChange: handleChangeTimeRange }) }) })] }), (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 100, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleExpand, sx: {
158
+ alignSelf: "center",
159
+ transition: "all 500ms ease-in-out",
160
+ cursor: "pointer",
161
+ mt: theme.mixins.customMargin.m4,
162
+ transform: !expandAreaChart
163
+ ? "rotate(180deg) translateX(900%) translateY(120%)"
164
+ : "translateX(-50%) translateY(100%)",
165
+ zIndex: 20,
166
+ width: 20,
167
+ height: 20,
168
+ }, children: SvgPath_1.IC_EXPANDER_ARROW }) })] })] }) }));
169
+ };
170
+ exports.default = BalanceChart;
@@ -0,0 +1,11 @@
1
+ import { GeneralProps } from "../../../../types/ui";
2
+ import { JSX } from "react";
3
+ interface FunctionItemProps extends GeneralProps {
4
+ className?: string;
5
+ icon?: JSX.Element;
6
+ label?: string;
7
+ width?: number;
8
+ height?: number;
9
+ }
10
+ declare const FunctionItem: (props: FunctionItemProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default FunctionItem;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var material_1 = require("@mui/material");
19
+ var providers_1 = require("../../../../providers");
20
+ var Text_1 = __importDefault(require("../../Text"));
21
+ var FunctionItem = function (props) {
22
+ var theme = (0, providers_1.useTheme)();
23
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g6 }), props.sx), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: props.width, height: props.height }, children: props.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
24
+ color: "text.white",
25
+ fontSize: theme.typography.fontSize13,
26
+ lineHeight: theme.typography.leading140,
27
+ }, children: props.label })] }));
28
+ };
29
+ exports.default = FunctionItem;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { TransactionHistoryDto } from "../types/transaction.history.dto";
3
+ type Props = {
4
+ tradeHistory: TransactionHistoryDto;
5
+ };
6
+ declare const HistoryItem: React.FC<Props>;
7
+ export default HistoryItem;