@ammarkhalidfarooq/dashboard-package 0.6.49 → 0.6.51
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.cjs.js +12 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -21
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2677,7 +2677,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2677
2677
|
fontWeight: 800,
|
|
2678
2678
|
color: "#111827"
|
|
2679
2679
|
},
|
|
2680
|
-
children:
|
|
2680
|
+
children: kpi$(mixAvgGift)
|
|
2681
2681
|
}), /*#__PURE__*/jsx("div", {
|
|
2682
2682
|
style: {
|
|
2683
2683
|
fontSize: 8.5,
|
|
@@ -4252,6 +4252,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
4252
4252
|
var categories = chartData.map(function (item) {
|
|
4253
4253
|
return item.label;
|
|
4254
4254
|
});
|
|
4255
|
+
var axisLabels = categories.length <= 1 ? categories : categories.length === 2 ? [categories[0], categories[categories.length - 1]] : [categories[0], categories[Math.floor(categories.length / 2)], categories[categories.length - 1]];
|
|
4255
4256
|
var chartOptions = {
|
|
4256
4257
|
chart: {
|
|
4257
4258
|
type: "area",
|
|
@@ -4376,31 +4377,21 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
4376
4377
|
series: series,
|
|
4377
4378
|
type: "area",
|
|
4378
4379
|
height: "100%"
|
|
4379
|
-
}), /*#__PURE__*/
|
|
4380
|
+
}), axisLabels.length > 0 && /*#__PURE__*/jsx(Box, {
|
|
4380
4381
|
sx: {
|
|
4381
4382
|
display: "flex",
|
|
4382
4383
|
justifyContent: "space-between",
|
|
4383
4384
|
mt: 0.5
|
|
4384
4385
|
},
|
|
4385
|
-
children:
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
color: "rgba(0, 0, 0, 0.3)"
|
|
4395
|
-
},
|
|
4396
|
-
children: categories[Math.floor(categories.length / 2)]
|
|
4397
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
4398
|
-
sx: {
|
|
4399
|
-
fontSize: "10px",
|
|
4400
|
-
color: "rgba(0, 0, 0, 0.3)"
|
|
4401
|
-
},
|
|
4402
|
-
children: categories[categories.length - 1]
|
|
4403
|
-
})]
|
|
4386
|
+
children: axisLabels.map(function (label, idx) {
|
|
4387
|
+
return /*#__PURE__*/jsx(Typography, {
|
|
4388
|
+
sx: {
|
|
4389
|
+
fontSize: "10px",
|
|
4390
|
+
color: "rgba(0, 0, 0, 0.3)"
|
|
4391
|
+
},
|
|
4392
|
+
children: label
|
|
4393
|
+
}, "".concat(label, "-").concat(idx));
|
|
4394
|
+
})
|
|
4404
4395
|
})]
|
|
4405
4396
|
}), /*#__PURE__*/jsx(Box, {
|
|
4406
4397
|
sx: {
|