@ammarkhalidfarooq/dashboard-package 0.4.77 → 0.4.79
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 +28 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +28 -11
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3250,7 +3250,10 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
3250
3250
|
_ref$chartColor = _ref.chartColor,
|
|
3251
3251
|
chartColor = _ref$chartColor === void 0 ? "rgb(99, 99, 230)" : _ref$chartColor,
|
|
3252
3252
|
_ref$footerMetrics = _ref.footerMetrics,
|
|
3253
|
-
footerMetrics = _ref$footerMetrics === void 0 ? [] : _ref$footerMetrics
|
|
3253
|
+
footerMetrics = _ref$footerMetrics === void 0 ? [] : _ref$footerMetrics,
|
|
3254
|
+
sx = _ref.sx,
|
|
3255
|
+
_ref$bottomSection = _ref.bottomSection,
|
|
3256
|
+
bottomSection = _ref$bottomSection === void 0 ? false : _ref$bottomSection;
|
|
3254
3257
|
// Extract values for chart series
|
|
3255
3258
|
var series = [{
|
|
3256
3259
|
name: title,
|
|
@@ -3323,7 +3326,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
3323
3326
|
}
|
|
3324
3327
|
};
|
|
3325
3328
|
return /*#__PURE__*/jsxRuntime.jsxs(material.Card, {
|
|
3326
|
-
sx: {
|
|
3329
|
+
sx: _objectSpread2({
|
|
3327
3330
|
p: 3,
|
|
3328
3331
|
borderRadius: 4,
|
|
3329
3332
|
border: "1px solid #f0f0f0",
|
|
@@ -3331,7 +3334,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
3331
3334
|
bgcolor: "#fff",
|
|
3332
3335
|
display: "flex",
|
|
3333
3336
|
flexDirection: "column"
|
|
3334
|
-
},
|
|
3337
|
+
}, sx),
|
|
3335
3338
|
children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
3336
3339
|
sx: {
|
|
3337
3340
|
mb: 1
|
|
@@ -3415,7 +3418,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
3415
3418
|
}), /*#__PURE__*/jsxRuntime.jsx(material.Box, {
|
|
3416
3419
|
sx: {
|
|
3417
3420
|
mt: "auto",
|
|
3418
|
-
pt: 3,
|
|
3421
|
+
pt: bottomSection ? 1.5 : 3,
|
|
3419
3422
|
display: "flex",
|
|
3420
3423
|
justifyContent: "space-between"
|
|
3421
3424
|
},
|
|
@@ -3454,7 +3457,8 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
|
|
|
3454
3457
|
raisedVal = _ref.raisedVal,
|
|
3455
3458
|
raisedTrend = _ref.raisedTrend,
|
|
3456
3459
|
_ref$chartColors = _ref.chartColors,
|
|
3457
|
-
chartColors = _ref$chartColors === void 0 ? ["rgb(99, 99, 230)", "#88bfd290"] : _ref$chartColors
|
|
3460
|
+
chartColors = _ref$chartColors === void 0 ? ["rgb(99, 99, 230)", "#88bfd290"] : _ref$chartColors,
|
|
3461
|
+
sx = _ref.sx;
|
|
3458
3462
|
var chartOptions = {
|
|
3459
3463
|
chart: {
|
|
3460
3464
|
type: "radialBar",
|
|
@@ -3509,7 +3513,7 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
|
|
|
3509
3513
|
};
|
|
3510
3514
|
var series = [acceptanceRate];
|
|
3511
3515
|
return /*#__PURE__*/jsxRuntime.jsxs(material.Card, {
|
|
3512
|
-
sx: {
|
|
3516
|
+
sx: _objectSpread2({
|
|
3513
3517
|
p: 3,
|
|
3514
3518
|
borderRadius: 4,
|
|
3515
3519
|
border: "1px solid #f0f0f0",
|
|
@@ -3518,7 +3522,7 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
|
|
|
3518
3522
|
// height: "100%",
|
|
3519
3523
|
display: "flex",
|
|
3520
3524
|
flexDirection: "column"
|
|
3521
|
-
},
|
|
3525
|
+
}, sx),
|
|
3522
3526
|
children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
3523
3527
|
sx: {},
|
|
3524
3528
|
children: [/*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
@@ -5755,7 +5759,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5755
5759
|
value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalValue) || 0)),
|
|
5756
5760
|
trend: "\u25B2 ".concat(orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$prevTr = orderBumpData.prevTrend) === null || _orderBumpData$prevTr === void 0 ? void 0 : _orderBumpData$prevTr.toFixed(1), "% vs last month"),
|
|
5757
5761
|
chartData: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.orderBumpMetrics,
|
|
5758
|
-
footerMetrics: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.footerMetrics
|
|
5762
|
+
footerMetrics: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.footerMetrics,
|
|
5763
|
+
sx: {
|
|
5764
|
+
maxHeight: 280
|
|
5765
|
+
},
|
|
5766
|
+
bottomSection: true
|
|
5759
5767
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricDonutCard, {
|
|
5760
5768
|
title: "Upsell",
|
|
5761
5769
|
subtitle: "Acceptance & raised",
|
|
@@ -5763,7 +5771,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5763
5771
|
acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
|
|
5764
5772
|
acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
|
|
5765
5773
|
raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
|
|
5766
|
-
raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
|
|
5774
|
+
raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%"),
|
|
5775
|
+
sx: {
|
|
5776
|
+
maxHeight: 280
|
|
5777
|
+
}
|
|
5767
5778
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricDonutCard, {
|
|
5768
5779
|
title: "Downsell",
|
|
5769
5780
|
subtitle: "Acceptance & raised",
|
|
@@ -5771,7 +5782,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5771
5782
|
acceptanceVal: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceVal) || 0), "%"),
|
|
5772
5783
|
acceptanceTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceTrend) || 0), "%"),
|
|
5773
5784
|
raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedVal) || 0)),
|
|
5774
|
-
raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%")
|
|
5785
|
+
raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%"),
|
|
5786
|
+
sx: {
|
|
5787
|
+
maxHeight: 280
|
|
5788
|
+
}
|
|
5775
5789
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricSparklineCard, {
|
|
5776
5790
|
title: "Referrals",
|
|
5777
5791
|
subtitle: "Revenue trend \xB7 last 30 days",
|
|
@@ -5787,7 +5801,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5787
5801
|
}, {
|
|
5788
5802
|
label: "Conv. rate",
|
|
5789
5803
|
value: "27.5%"
|
|
5790
|
-
}]
|
|
5804
|
+
}],
|
|
5805
|
+
sx: {
|
|
5806
|
+
maxHeight: 280
|
|
5807
|
+
}
|
|
5791
5808
|
})]
|
|
5792
5809
|
})]
|
|
5793
5810
|
});
|