sag_components 1.0.49 → 1.0.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.
|
@@ -31,13 +31,13 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
|
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.Controls, {
|
|
32
32
|
index: index,
|
|
33
33
|
width: width
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.Title, {
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.TitleAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.Title, {
|
|
35
35
|
width: width
|
|
36
36
|
}, item.title), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.FormattedValue, {
|
|
37
37
|
width: width
|
|
38
|
-
}, dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : ""),
|
|
38
|
+
}, dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : "")), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.BenchmarkContainerParent, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.BenchmarkContainer, {
|
|
39
39
|
width: width
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
40
|
+
}, item.totalValue && /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
41
41
|
totalValue: item.totalValue,
|
|
42
42
|
currentValue: item.value,
|
|
43
43
|
benchmarkValue: item.benchmarkValue,
|
|
@@ -48,7 +48,7 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
|
|
|
48
48
|
linearGradientUnderAvarageColor: "#FDB1B1",
|
|
49
49
|
underAvarageColor: "#FD5959",
|
|
50
50
|
backgroundColor: "#F2F2F2"
|
|
51
|
-
}))
|
|
51
|
+
}))));
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
54
|
exports.TotalBenchmark = TotalBenchmark;
|
|
@@ -4,13 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Title = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = void 0;
|
|
7
|
+
exports.TitleAndValueContainer = exports.Title = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainerParent = exports.BenchmarkContainer = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
11
11
|
var MIN_HEIGHT = 300;
|
|
12
12
|
var MIN_WIDTH = 260;
|
|
13
|
-
var ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: relative;\n margin: 0px 0 0px;\n font-family: \"Lato\", sans-serif;\n font-style: normal;\n color: ", ";\n width: ", ";\n height: ", ";\n //box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n border-radius: 12px;\n //border: 1px solid red;\n"])), function (props) {
|
|
13
|
+
var ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: relative;\n margin: 0px 0 0px;\n font-family: \"Lato\", sans-serif;\n font-style: normal;\n color: ", ";\n width: ", ";\n height: ", ";\n //box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n border-radius: 12px;\n //border: 1px solid red;\n align-content: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), function (props) {
|
|
14
14
|
return props.textColor;
|
|
15
15
|
}, function (props) {
|
|
16
16
|
return (props.width - MIN_WIDTH <= 0 ? MIN_WIDTH : props.width).toString().concat("", "px");
|
|
@@ -18,21 +18,15 @@ var ControlsContainer = _styledComponents.default.div(_templateObject || (_templ
|
|
|
18
18
|
return (props.height - MIN_HEIGHT <= 0 ? MIN_HEIGHT : props.height).toString().concat("", "px");
|
|
19
19
|
});
|
|
20
20
|
exports.ControlsContainer = ControlsContainer;
|
|
21
|
-
var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
22
|
-
return (props.width - MIN_WIDTH <= 0 ? 217 : 217 + (props.width - MIN_WIDTH)).toString().concat("", "px");
|
|
23
|
-
}, function (props) {
|
|
24
|
-
return (68 + 120 * props.index).toString().concat("", "px");
|
|
25
|
-
});
|
|
21
|
+
var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n border-radius: 12px;\n width: 100%;\n height: 100px;\n justify-content: center;\n align-items: center;\n background: #ffffff;\n"])));
|
|
26
22
|
exports.Controls = Controls;
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
var TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n width: 200px;\n"])));
|
|
24
|
+
exports.TitleAndValueContainer = TitleAndValueContainer;
|
|
25
|
+
var Title = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 22px;\n font-weight: 600;\n font-size: 18px;\n line-height: 22px;\n"])));
|
|
30
26
|
exports.Title = Title;
|
|
31
|
-
var FormattedValue = _styledComponents.default.div(
|
|
32
|
-
return (props.width - MIN_WIDTH <= 0 ? 200 : 200 + (props.width - MIN_WIDTH)).toString().concat("", "px");
|
|
33
|
-
});
|
|
27
|
+
var FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 48px;\n font-weight: 500;\n font-size: 40px;\n line-height: 48px;\n //border: 1px solid red;\n"])));
|
|
34
28
|
exports.FormattedValue = FormattedValue;
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
var BenchmarkContainerParent = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n width: 100px;\n height: 100%;\n"])));
|
|
30
|
+
exports.BenchmarkContainerParent = BenchmarkContainerParent;
|
|
31
|
+
var BenchmarkContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n width: 100px;\n height: 12px;\n"])));
|
|
38
32
|
exports.BenchmarkContainer = BenchmarkContainer;
|