sag_components 1.0.112 → 1.0.114

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.
@@ -23,7 +23,7 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
23
23
  _ref$height = _ref.height,
24
24
  height = _ref$height === void 0 ? "350px" : _ref$height,
25
25
  _ref$textColor = _ref.textColor,
26
- textColor = _ref$textColor === void 0 ? "black" : _ref$textColor,
26
+ textColor = _ref$textColor === void 0 ? "#212121" : _ref$textColor,
27
27
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
28
  var DEFAULT_ROOT_FONT = 16;
29
29
  var DEFAULT_COMPONENT_WIDTH = 250;
@@ -31,7 +31,7 @@ var TotalBenchmarkAreachart = function TotalBenchmarkAreachart(_ref) {
31
31
  _ref$height = _ref.height,
32
32
  height = _ref$height === void 0 ? "280px" : _ref$height,
33
33
  _ref$textColor = _ref.textColor,
34
- textColor = _ref$textColor === void 0 ? "black" : _ref$textColor,
34
+ textColor = _ref$textColor === void 0 ? "#212121" : _ref$textColor,
35
35
  _ref$areaChart1Color = _ref.areaChart1Color,
36
36
  areaChart1Color = _ref$areaChart1Color === void 0 ? "#BD9EFF" : _ref$areaChart1Color,
37
37
  _ref$areaChart2Color = _ref.areaChart2Color,
@@ -74,16 +74,16 @@ var TotalBenchmarkAreachart = function TotalBenchmarkAreachart(_ref) {
74
74
  return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachartStyle.DetailsRowArrowContainer, {
75
75
  id: "DetailsRowArrowContainer",
76
76
  value: value,
77
- height: 25 * getSizeFactor
77
+ height: 25 * getSizeFactor()
78
78
  }, /*#__PURE__*/_react.default.createElement(_ArrowUpIcon.ArrowUpIcon, {
79
79
  width: 25 * getSizeFactor(),
80
- height: 25 * getSizeFactor
80
+ height: 25 * getSizeFactor()
81
81
  }));
82
82
  } else {
83
83
  return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachartStyle.DetailsRowArrowContainer, {
84
84
  id: "DetailsRowArrowContainer",
85
85
  value: value,
86
- height: 25 * getSizeFactor
86
+ height: 25 * getSizeFactor()
87
87
  }, /*#__PURE__*/_react.default.createElement(_ArrowDownIcon.ArrowDownIcon, {
88
88
  width: 25 * getSizeFactor(),
89
89
  height: 25 * getSizeFactor()
@@ -130,9 +130,9 @@ var TotalBenchmarkAreachart = function TotalBenchmarkAreachart(_ref) {
130
130
  data: areaChartData,
131
131
  margin: {
132
132
  top: 0,
133
- right: 12,
133
+ right: 18,
134
134
  bottom: 0,
135
- left: 12
135
+ left: 18
136
136
  }
137
137
  }, /*#__PURE__*/_react.default.createElement(_recharts.CartesianGrid, {
138
138
  strokeDasharray: "3 3",
@@ -30,7 +30,7 @@ var FormattedValue = _styledComponents.default.div(_templateObject6 || (_templat
30
30
  exports.FormattedValue = FormattedValue;
31
31
  var BenchmarkContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 0.7em;\n /* width: 5.35em; */\n"])));
32
32
  exports.BenchmarkContainer = BenchmarkContainer;
33
- var AreaChartContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 14em;\n height: 50%;\n \n"])));
33
+ var AreaChartContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 14em;\n height: 50%;\n\n"])));
34
34
  exports.AreaChartContainer = AreaChartContainer;
35
35
  var BottomDetailsRowContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n text-align: center;\n"])));
36
36
  exports.BottomDetailsRowContainer = BottomDetailsRowContainer;
@@ -31,7 +31,7 @@ var TotalBenchmarkArrows = function TotalBenchmarkArrows(_ref) {
31
31
  _ref$height = _ref.height,
32
32
  height = _ref$height === void 0 ? "280px" : _ref$height,
33
33
  _ref$textColor = _ref.textColor,
34
- textColor = _ref$textColor === void 0 ? "black" : _ref$textColor,
34
+ textColor = _ref$textColor === void 0 ? "#212121" : _ref$textColor,
35
35
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  var DEFAULT_ROOT_FONT = 16;
37
37
  var DEFAULT_COMPONENT_WIDTH = 250;
@@ -70,16 +70,16 @@ var TotalBenchmarkArrows = function TotalBenchmarkArrows(_ref) {
70
70
  return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowArrowContainer, {
71
71
  id: "DetailsRowArrowContainer",
72
72
  value: value,
73
- height: 12 * getSizeFactor
73
+ height: 12 * getSizeFactor()
74
74
  }, /*#__PURE__*/_react.default.createElement(_ArrowUpIcon.ArrowUpIcon, {
75
75
  width: 12 * getSizeFactor(),
76
- height: 12 * getSizeFactor
76
+ height: 12 * getSizeFactor()
77
77
  }));
78
78
  } else {
79
79
  return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowArrowContainer, {
80
80
  id: "DetailsRowArrowContainer",
81
81
  value: value,
82
- height: 12 * getSizeFactor
82
+ height: 12 * getSizeFactor()
83
83
  }, /*#__PURE__*/_react.default.createElement(_ArrowDownIcon.ArrowDownIcon, {
84
84
  width: 12 * getSizeFactor(),
85
85
  height: 12 * getSizeFactor()
@@ -121,7 +121,7 @@ var TotalBenchmarkArrows = function TotalBenchmarkArrows(_ref) {
121
121
  }, detailsTitle), detailsData.map(function (item, index) {
122
122
  return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowContainer, {
123
123
  id: "DetailsRowContainer"
124
- }, getArrowSign(item.value), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowFormattedValue, {
124
+ }, getArrowSign(item.value >= 0 ? "up" : "down"), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowFormattedValue, {
125
125
  id: "DetailsRowFormattedValue"
126
126
  }, item.value ? Math.abs(item.value) : ""), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrowsStyle.DetailsRowPercentSign, {
127
127
  id: "DetailsRowPercentSign"
@@ -32,7 +32,7 @@ var TotalBenchmarkBarchart = function TotalBenchmarkBarchart(_ref) {
32
32
  _ref$height = _ref.height,
33
33
  height = _ref$height === void 0 ? "280px" : _ref$height,
34
34
  _ref$textColor = _ref.textColor,
35
- textColor = _ref$textColor === void 0 ? "black" : _ref$textColor,
35
+ textColor = _ref$textColor === void 0 ? "#212121" : _ref$textColor,
36
36
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
37
37
  var DEFAULT_ROOT_FONT = 16;
38
38
  var DEFAULT_COMPONENT_WIDTH = 250;
@@ -31,7 +31,7 @@ var TotalDoughnutChart = function TotalDoughnutChart(_ref) {
31
31
  _ref$height = _ref.height,
32
32
  height = _ref$height === void 0 ? "280px" : _ref$height,
33
33
  _ref$textColor = _ref.textColor,
34
- textColor = _ref$textColor === void 0 ? "black" : _ref$textColor,
34
+ textColor = _ref$textColor === void 0 ? "#212121" : _ref$textColor,
35
35
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  var DEFAULT_ROOT_FONT = 16;
37
37
  var DEFAULT_COMPONENT_WIDTH = 250;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {