@ammarkhalidfarooq/dashboard-package 0.6.48 → 0.6.50
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 +24 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +24 -24
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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: {
|
|
@@ -18598,7 +18589,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
18598
18589
|
sx: {
|
|
18599
18590
|
paddingTop: "0px !important",
|
|
18600
18591
|
paddingLeft: {
|
|
18601
|
-
xs: "
|
|
18592
|
+
xs: "24px !important",
|
|
18602
18593
|
md: "6px !important"
|
|
18603
18594
|
},
|
|
18604
18595
|
marginTop: {
|
|
@@ -18641,7 +18632,10 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
18641
18632
|
md: 4,
|
|
18642
18633
|
sx: {
|
|
18643
18634
|
paddingTop: "0px !important",
|
|
18644
|
-
paddingLeft:
|
|
18635
|
+
paddingLeft: {
|
|
18636
|
+
xs: "24px !important",
|
|
18637
|
+
md: "6px !important"
|
|
18638
|
+
},
|
|
18645
18639
|
marginTop: {
|
|
18646
18640
|
xs: "6px",
|
|
18647
18641
|
md: "0px"
|
|
@@ -18685,7 +18679,10 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
18685
18679
|
md: 4,
|
|
18686
18680
|
sx: {
|
|
18687
18681
|
paddingTop: "0px !important",
|
|
18688
|
-
paddingLeft:
|
|
18682
|
+
paddingLeft: {
|
|
18683
|
+
xs: "24px !important",
|
|
18684
|
+
md: "6px !important"
|
|
18685
|
+
},
|
|
18689
18686
|
marginTop: {
|
|
18690
18687
|
xs: "6px",
|
|
18691
18688
|
md: "0px"
|
|
@@ -18700,7 +18697,10 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
18700
18697
|
md: 4,
|
|
18701
18698
|
sx: {
|
|
18702
18699
|
paddingTop: "0px !important",
|
|
18703
|
-
paddingLeft:
|
|
18700
|
+
paddingLeft: {
|
|
18701
|
+
xs: "24px !important",
|
|
18702
|
+
md: "6px !important"
|
|
18703
|
+
},
|
|
18704
18704
|
marginTop: {
|
|
18705
18705
|
xs: "6px",
|
|
18706
18706
|
md: "0px"
|