sag_components 1.0.364 → 1.0.366
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.
|
@@ -144,7 +144,7 @@ var TotalBenchmarkAreachart = exports.TotalBenchmarkAreachart = function TotalBe
|
|
|
144
144
|
id: "ValueAndBenchmarkContainer"
|
|
145
145
|
}, value !== undefined && value != null ? getArrowSign(arrowSign) : '', /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValue, {
|
|
146
146
|
id: "FormattedValue"
|
|
147
|
-
}, value !== undefined && value != null ? "".concat(value, " %") : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValueNoDataMessage, null, value === undefined || value === null ? 'No Data' : ''), addingBenchmark && benchmarkTotalValue ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.BenchmarkContainer, {
|
|
147
|
+
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null, "".concat(value, " "), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.CurrencySign, null, "%")) : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValueNoDataMessage, null, value === undefined || value === null ? 'No Data' : ''), addingBenchmark && benchmarkTotalValue ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.BenchmarkContainer, {
|
|
148
148
|
id: "BenchmarkContainer"
|
|
149
149
|
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
150
150
|
id: "Benchmark",
|
|
@@ -162,9 +162,9 @@ var TotalBenchmarkAreachart = exports.TotalBenchmarkAreachart = function TotalBe
|
|
|
162
162
|
ref: anotherRef,
|
|
163
163
|
id: "AreaChartContainer"
|
|
164
164
|
}, /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
165
|
-
id: "ResponsiveContainer"
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
id: "ResponsiveContainer",
|
|
166
|
+
width: "100%",
|
|
167
|
+
height: "100%"
|
|
168
168
|
}, /*#__PURE__*/_react.default.createElement(_recharts.AreaChart, {
|
|
169
169
|
id: "SourceAreaChart",
|
|
170
170
|
data: areaChartData,
|
|
@@ -244,9 +244,61 @@ TotalBenchmarkAreachart.defaultProps = {
|
|
|
244
244
|
addingBenchmark: true,
|
|
245
245
|
benchmarkTotalValue: '',
|
|
246
246
|
benchmarkValue: null,
|
|
247
|
-
areaChartData:
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
areaChartData: [{
|
|
248
|
+
title: 'W20',
|
|
249
|
+
value1: 542366,
|
|
250
|
+
value2: 247715
|
|
251
|
+
}, {
|
|
252
|
+
title: 'W21',
|
|
253
|
+
value1: 699511,
|
|
254
|
+
value2: 252313
|
|
255
|
+
}, {
|
|
256
|
+
title: 'W22',
|
|
257
|
+
value1: 403092,
|
|
258
|
+
value2: 260822
|
|
259
|
+
}, {
|
|
260
|
+
title: 'W23',
|
|
261
|
+
value1: 396184,
|
|
262
|
+
value2: 264325
|
|
263
|
+
}, {
|
|
264
|
+
title: 'W24',
|
|
265
|
+
value1: 415317,
|
|
266
|
+
value2: 269243
|
|
267
|
+
}, {
|
|
268
|
+
title: 'W25',
|
|
269
|
+
value1: 568376,
|
|
270
|
+
value2: 269592
|
|
271
|
+
}, {
|
|
272
|
+
title: 'W26',
|
|
273
|
+
value1: 1078121,
|
|
274
|
+
value2: 269949
|
|
275
|
+
}, {
|
|
276
|
+
title: 'W27',
|
|
277
|
+
value1: 347930,
|
|
278
|
+
value2: 270735
|
|
279
|
+
}, {
|
|
280
|
+
title: 'W28',
|
|
281
|
+
value1: 346258,
|
|
282
|
+
value2: 271200
|
|
283
|
+
}, {
|
|
284
|
+
title: 'W29',
|
|
285
|
+
value1: 350184,
|
|
286
|
+
value2: 270324
|
|
287
|
+
}, {
|
|
288
|
+
title: 'W30',
|
|
289
|
+
value1: 312790,
|
|
290
|
+
value2: 266821
|
|
291
|
+
}, {
|
|
292
|
+
title: 'W31',
|
|
293
|
+
value1: 335076,
|
|
294
|
+
value2: 267064
|
|
295
|
+
}, {
|
|
296
|
+
title: 'W32',
|
|
297
|
+
value1: 311037,
|
|
298
|
+
value2: 266821
|
|
299
|
+
}],
|
|
300
|
+
width: '100%',
|
|
301
|
+
height: '100%',
|
|
250
302
|
textcolor: '#212121',
|
|
251
303
|
areaChart1Color: '#BD9EFF',
|
|
252
304
|
areaChart2Color: '#96B4FF',
|
|
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.DetailsRowArrowContainer = exports.
|
|
7
|
+
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.DetailsRowArrowContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.AreaChartContainer = 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, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
11
11
|
var ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n"])), function (props) {
|
|
12
12
|
return props.textColor;
|
|
13
13
|
}, function (props) {
|
|
@@ -15,17 +15,16 @@ var ControlsContainer = exports.ControlsContainer = _styledComponents.default.di
|
|
|
15
15
|
}, function (props) {
|
|
16
16
|
return props.height;
|
|
17
17
|
});
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items:
|
|
26
|
-
var DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width:
|
|
27
|
-
var FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var BottomDetailsRowTitle = exports.BottomDetailsRowTitle = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 0.77778rem;\n"])));
|
|
18
|
+
var Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n /* gap: 10px; */\n flex-direction: column;\n justify-content: space-between;\n background: #ffffff;\n border-radius: 12px;\n"])));
|
|
19
|
+
var AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n"])));
|
|
20
|
+
var TooltipDiv = exports.TooltipDiv = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 5px;\n background: #ffffff;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
21
|
+
var TooltipLabel = exports.TooltipLabel = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n"])));
|
|
22
|
+
var TooltipTitle = exports.TooltipTitle = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 600;\n line-height: normal;\n"])));
|
|
23
|
+
var TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 1rem;\n"])));
|
|
24
|
+
var Title = exports.Title = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
25
|
+
var ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
26
|
+
var DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n width: 22px;\n @media (max-width: 1366px) {\n width: 12px;\n }\n @media (max-width: 1536px) {\n width: 14px;\n }\n"])));
|
|
27
|
+
var FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
|
|
28
|
+
var CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
29
|
+
var FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0; \n"])));
|
|
30
|
+
var BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|