tek-wallet 0.0.244 → 0.0.246

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.
@@ -83,7 +83,7 @@ var AmountGroupAndChart = function (props) {
83
83
  setTimeRangeData(data);
84
84
  };
85
85
  var toggleExpand = function () {
86
- setExpandAreaChart(!expandAreaChart);
86
+ setExpandAreaChart(function (prev) { return !prev; });
87
87
  };
88
88
  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(__assign({}, theme.mixins.column), { position: "relative" }), children: [(0, jsx_runtime_1.jsx)(AnalyticGroup_1.default, { timeRange: timeRangeData === null || timeRangeData === void 0 ? void 0 : timeRangeData.type }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
89
89
  width: "100%",
@@ -92,6 +92,8 @@ var AmountGroupAndChart = function (props) {
92
92
  aspectRatio: "1.47317073171",
93
93
  zIndex: 10,
94
94
  maxHeight: expandAreaChart ? "28rem" : "0",
95
+ overflow: "hidden",
96
+ border: "1px red solid",
95
97
  }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
96
98
  position: "absolute",
97
99
  right: 0,
@@ -99,13 +101,13 @@ var AmountGroupAndChart = function (props) {
99
101
  bottom: 0,
100
102
  transition: "all 500ms ease-in-out",
101
103
  transform: !expandAreaChart
102
- ? "translateY(0) translateX(25%) scale(0.5)"
104
+ ? "translateY(-100%) translateX(25%) scale(0.5)"
103
105
  : "none",
104
106
  }, 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: {
105
107
  width: "100%",
106
108
  height: "fit-content",
107
109
  transition: "all 500ms ease-in-out",
108
- transform: !expandAreaChart ? "translateY(-100%)" : "none",
110
+ // transform: !expandAreaChart ? "translateY(-100%)" : "none",
109
111
  my: theme.mixins.customMargin.m3,
110
112
  } }) }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", bottom: 0 }, children: (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: "hidden", animate: expandAreaChart ? "visible" : "hidden", variants: variants, transition: {
111
113
  opacity: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.244",
3
+ "version": "0.0.246",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",