sag_components 1.0.421 → 1.0.423
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/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +1 -0
- package/.history/.env_20231003143620 +1 -0
- package/.history/.eslintrc_20230928112617.js +26 -0
- package/.history/.eslintrc_20230928130534.js +27 -0
- package/.history/.eslintrc_20230928133400.js +28 -0
- package/.history/.eslintrc_20230928133404.js +28 -0
- package/.history/.eslintrc_20230928133416.js +28 -0
- package/.history/.eslintrc_20230928133419.js +28 -0
- package/.history/.eslintrc_20230928133432.js +28 -0
- package/.history/.eslintrc_20230928133439.js +28 -0
- package/.history/.eslintrc_20230928133458.js +29 -0
- package/.history/.eslintrc_20230928133500.js +28 -0
- package/.history/.eslintrc_20230928134009.js +28 -0
- package/.history/.eslintrc_20230928135318.js +34 -0
- package/.history/.eslintrc_20230928135321.js +34 -0
- package/.history/.eslintrc_20230928135323.js +34 -0
- package/.history/.eslintrc_20230928135332.js +34 -0
- package/.history/.eslintrc_20230928135333.js +34 -0
- package/.history/.eslintrc_20230928135352.js +29 -0
- package/.history/.eslintrc_20230928135353.js +29 -0
- package/.history/.eslintrc_20230928135355.js +29 -0
- package/.history/.eslintrc_20230928135408.js +29 -0
- package/.history/.eslintrc_20230928135538.js +30 -0
- package/.history/.eslintrc_20230928135539.js +30 -0
- package/.history/.eslintrc_20230928135543.js +30 -0
- package/.history/.gitignore_20230921093332 +119 -0
- package/.history/.gitignore_20230921111638 +120 -0
- package/.history/.gitignore_20230921111650 +120 -0
- package/.history/.gitignore_20230921111810 +121 -0
- package/.history/package-lock_20231114111138.json +47810 -0
- package/.history/package-lock_20231114111158.json +47802 -0
- package/.history/package_20231029152422.json +82 -0
- package/.history/package_20231029153420.json +82 -0
- package/.history/package_20231029154416.json +82 -0
- package/.history/package_20231030094127.json +82 -0
- package/.history/package_20231030114707.json +82 -0
- package/.history/package_20231030130704.json +82 -0
- package/.history/package_20231030132422.json +82 -0
- package/.history/package_20231030134051.json +82 -0
- package/.history/package_20231030142913.json +82 -0
- package/.history/package_20231030143556.json +82 -0
- package/.history/package_20231030144210.json +82 -0
- package/.history/package_20231101113942.json +82 -0
- package/.history/package_20231101114544.json +82 -0
- package/.history/package_20231101151518.json +82 -0
- package/.history/package_20231101154501.json +82 -0
- package/.history/package_20231101155811.json +82 -0
- package/.history/package_20231101160235.json +82 -0
- package/.history/package_20231101160406.json +82 -0
- package/.history/package_20231101161325.json +82 -0
- package/.history/package_20231101161333.json +82 -0
- package/.history/package_20231102123623.json +82 -0
- package/.history/package_20231102125741.json +82 -0
- package/.history/package_20231102130857.json +82 -0
- package/.history/package_20231102132227.json +82 -0
- package/.history/package_20231102142340.json +82 -0
- package/.history/package_20231102143256.json +82 -0
- package/.history/package_20231105153539.json +82 -0
- package/.history/package_20231105154332.json +82 -0
- package/.history/package_20231105171201.json +82 -0
- package/.history/package_20231106123849.json +82 -0
- package/.history/package_20231107170638.json +82 -0
- package/.history/package_20231109103647.json +82 -0
- package/.history/package_20231109103911.json +82 -0
- package/.history/package_20231109105426.json +82 -0
- package/.history/package_20231109132014.json +82 -0
- package/.history/package_20231109132115.json +82 -0
- package/.history/package_20231114100517.json +82 -0
- package/.history/package_20231114100859.json +82 -0
- package/.history/package_20231114101553.json +82 -0
- package/.history/package_20231114102545.json +82 -0
- package/.history/package_20231114111208.json +83 -0
- package/.history/package_20231114111515.json +83 -0
- package/.history/package_20231114112931.json +83 -0
- package/.history/package_20231114113014.json +83 -0
- package/.history/package_20231114113155.json +83 -0
- package/.history/package_20231114124318.json +83 -0
- package/.history/package_20231114125107.json +83 -0
- package/.history/package_20231114125510.json +83 -0
- package/.history/package_20231114132634.json +83 -0
- package/.history/package_20231116165815.json +83 -0
- package/.history/package_20231116165916.json +83 -0
- package/.history/package_20231119113637.json +83 -0
- package/.history/package_20231120100907.json +83 -0
- package/.history/package_20231121151523.json +77 -0
- package/.history/package_20231121155513.json +77 -0
- package/.history/package_20231121162434.json +77 -0
- package/.history/package_20231122100718.json +77 -0
- package/.history/package_20231128125149.json +82 -0
- package/.history/package_20231128125208.json +82 -0
- package/dist/stories/components/CommonFunctions.js +18 -28
- package/dist/stories/components/IconButton.js +16 -35
- package/dist/stories/components/IconButton.style.js +2 -2
- package/dist/stories/components/TotalBenchmarkAreachart.js +56 -94
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +6 -9
- package/package.json +9 -9
|
@@ -10,9 +10,9 @@ var _recharts = require("recharts");
|
|
|
10
10
|
var _ArrowUpIcon = require("./icons/ArrowUpIcon");
|
|
11
11
|
var _ArrowDownIcon = require("./icons/ArrowDownIcon");
|
|
12
12
|
var _NoDataFoundMessage = require("./NoDataFoundMessage");
|
|
13
|
-
var _CommonFunctions = require("./CommonFunctions");
|
|
14
13
|
var _Benchmark = require("./Benchmark");
|
|
15
14
|
var _TotalBenchmarkAreachart = require("./TotalBenchmarkAreachart.style");
|
|
15
|
+
var _CommonFunctions = require("./CommonFunctions");
|
|
16
16
|
/* TotalBenchmarkAreachart */
|
|
17
17
|
const TotalBenchmarkAreachart = props => {
|
|
18
18
|
const {
|
|
@@ -36,16 +36,14 @@ const TotalBenchmarkAreachart = props => {
|
|
|
36
36
|
opacity,
|
|
37
37
|
value1Title,
|
|
38
38
|
value2Title,
|
|
39
|
-
noDataText
|
|
40
|
-
startWeekRange = 0,
|
|
41
|
-
endWeekRange = 0
|
|
39
|
+
noDataText
|
|
42
40
|
} = props;
|
|
43
41
|
const DEFAULT_ROOT_FONT = 16;
|
|
44
42
|
const DEFAULT_COMPONENT_WIDTH = 250;
|
|
45
43
|
const DEFAULT_COMPONENT_HEIGHT = 280;
|
|
46
|
-
const [rootFont, setRootFont] = (0, _react.useState)(DEFAULT_ROOT_FONT.toString().concat(
|
|
44
|
+
const [rootFont, setRootFont] = (0, _react.useState)(DEFAULT_ROOT_FONT.toString().concat('', 'px'));
|
|
47
45
|
const anotherRef = (0, _react.useRef)(null);
|
|
48
|
-
const [activeLabel, setActiveLabel] = (0, _react.useState)(
|
|
46
|
+
const [activeLabel, setActiveLabel] = (0, _react.useState)('');
|
|
49
47
|
const controlsContainerRef = (0, _react.useRef)();
|
|
50
48
|
(0, _react.useEffect)(() => {
|
|
51
49
|
const {
|
|
@@ -54,16 +52,16 @@ const TotalBenchmarkAreachart = props => {
|
|
|
54
52
|
setRootFont(getRootFont(offsetWidth));
|
|
55
53
|
}, [width]);
|
|
56
54
|
const getRootFont = width => {
|
|
57
|
-
const relation = width.toString().replace(
|
|
58
|
-
const fontRoot = (DEFAULT_ROOT_FONT * relation).toString().concat(
|
|
55
|
+
const relation = width.toString().replace('px', '').replace('%', '') / DEFAULT_COMPONENT_WIDTH;
|
|
56
|
+
const fontRoot = (DEFAULT_ROOT_FONT * relation).toString().concat('', 'px');
|
|
59
57
|
return fontRoot;
|
|
60
58
|
};
|
|
61
|
-
const getSizeFactor = () => rootFont.toString().replace(
|
|
59
|
+
const getSizeFactor = () => rootFont.toString().replace('px', '') / DEFAULT_ROOT_FONT;
|
|
62
60
|
const getArrowSign = arrowSign => {
|
|
63
61
|
if (!arrowSign) {
|
|
64
|
-
return
|
|
62
|
+
return '';
|
|
65
63
|
}
|
|
66
|
-
if (arrowSign ===
|
|
64
|
+
if (arrowSign === 'up') {
|
|
67
65
|
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.DetailsRowArrowContainer, {
|
|
68
66
|
id: "DetailsRowArrowContainer",
|
|
69
67
|
value: value
|
|
@@ -80,49 +78,24 @@ const TotalBenchmarkAreachart = props => {
|
|
|
80
78
|
height: 25 * getSizeFactor()
|
|
81
79
|
}));
|
|
82
80
|
};
|
|
83
|
-
const CustomTick =
|
|
84
|
-
|
|
85
|
-
const {
|
|
81
|
+
const CustomTick = _ref => {
|
|
82
|
+
let {
|
|
86
83
|
x,
|
|
87
84
|
y,
|
|
88
85
|
stroke,
|
|
89
86
|
payload
|
|
90
|
-
} =
|
|
91
|
-
const currentWeek = (payload === null || payload === void 0 ? void 0 : (_payload$value = payload.value) === null || _payload$value === void 0 ? void 0 : _payload$value.length) > 1 ? payload === null || payload === void 0 ? void 0 : (_payload$value2 = payload.value) === null || _payload$value2 === void 0 ? void 0 : _payload$value2.substring(1, payload === null || payload === void 0 ? void 0 : (_payload$value3 = payload.value) === null || _payload$value3 === void 0 ? void 0 : _payload$value3.length) : 0;
|
|
92
|
-
console.log("payload?.value", currentWeek);
|
|
93
|
-
if (!(0, _CommonFunctions.isNumericValue)(currentWeek) || !(0, _CommonFunctions.isNumericValue)(startWeekRange) || !(0, _CommonFunctions.isNumericValue)(endWeekRange)) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const currentWeekNumeric = Number(currentWeek);
|
|
97
|
-
const startWeekRangeNumeric = Number(startWeekRange);
|
|
98
|
-
const endWeekRangeNumeric = Number(endWeekRange);
|
|
87
|
+
} = _ref;
|
|
99
88
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
100
89
|
transform: "translate(".concat(x, ",").concat(y, ")")
|
|
101
|
-
},
|
|
90
|
+
}, activeLabel === payload.value && /*#__PURE__*/_react.default.createElement("rect", {
|
|
102
91
|
x: -15,
|
|
103
92
|
y: 0,
|
|
104
|
-
width: "
|
|
93
|
+
width: "40",
|
|
105
94
|
height: "18",
|
|
106
95
|
rx: 9,
|
|
107
|
-
fill: xselectedColor
|
|
108
|
-
|
|
109
|
-
})
|
|
110
|
-
x: -30,
|
|
111
|
-
y: 0,
|
|
112
|
-
width: "80",
|
|
113
|
-
height: "18",
|
|
114
|
-
rx: 9,
|
|
115
|
-
fill: xselectedColor
|
|
116
|
-
//fillOpacity="0.30"
|
|
117
|
-
}) : currentWeekNumeric === endWeekRangeNumeric ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
118
|
-
x: -30,
|
|
119
|
-
y: 0,
|
|
120
|
-
width: "55",
|
|
121
|
-
height: "18",
|
|
122
|
-
rx: 9,
|
|
123
|
-
fill: xselectedColor
|
|
124
|
-
// fillOpacity="0.30"
|
|
125
|
-
}) : "", /*#__PURE__*/_react.default.createElement("text", {
|
|
96
|
+
fill: xselectedColor,
|
|
97
|
+
fillOpacity: "0.30"
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement("text", {
|
|
126
99
|
x: 0,
|
|
127
100
|
y: 14,
|
|
128
101
|
dx: -10,
|
|
@@ -130,27 +103,18 @@ const TotalBenchmarkAreachart = props => {
|
|
|
130
103
|
fontSize: "14px"
|
|
131
104
|
}, payload.value));
|
|
132
105
|
};
|
|
133
|
-
const CustomTooltip =
|
|
106
|
+
const CustomTooltip = _ref2 => {
|
|
134
107
|
let {
|
|
135
108
|
active,
|
|
136
109
|
payload,
|
|
137
110
|
label
|
|
138
|
-
} =
|
|
111
|
+
} = _ref2;
|
|
139
112
|
if (active && payload && payload.length) {
|
|
140
113
|
setActiveLabel(label);
|
|
141
114
|
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipTitle, null, "".concat(label)), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, "".concat(value1Title, " ").concat((0, _CommonFunctions.getFormattedValue)(payload[0].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[0].value))), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, "".concat(value2Title, " ").concat((0, _CommonFunctions.getFormattedValue)(payload[1].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[1].value))));
|
|
142
115
|
}
|
|
143
116
|
return null;
|
|
144
117
|
};
|
|
145
|
-
const getEventWeeksLegendData = () => /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendDataContainer, {
|
|
146
|
-
id: "EventWeeksLegendDataContainer"
|
|
147
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendColorRectangle, {
|
|
148
|
-
id: "EventWeeksLegendColorRectangle",
|
|
149
|
-
color: xselectedColor
|
|
150
|
-
}), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendTitle, {
|
|
151
|
-
id: "EventWeeksLegendTitle",
|
|
152
|
-
width: width
|
|
153
|
-
}, "Event weeks"));
|
|
154
118
|
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.ControlsContainer, {
|
|
155
119
|
id: "ControlsContainer",
|
|
156
120
|
height: height,
|
|
@@ -165,9 +129,9 @@ const TotalBenchmarkAreachart = props => {
|
|
|
165
129
|
id: "Title"
|
|
166
130
|
}, title), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.ValueAndBenchmarkContainer, {
|
|
167
131
|
id: "ValueAndBenchmarkContainer"
|
|
168
|
-
}, value !== undefined && value != null ? getArrowSign(arrowSign) :
|
|
132
|
+
}, value !== undefined && value != null ? getArrowSign(arrowSign) : '', /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValue, {
|
|
169
133
|
id: "FormattedValue"
|
|
170
|
-
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null, "".concat(value, " "), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.CurrencySign, null, "%")) :
|
|
134
|
+
}, 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, {
|
|
171
135
|
id: "BenchmarkContainer"
|
|
172
136
|
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
173
137
|
id: "Benchmark",
|
|
@@ -181,7 +145,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
181
145
|
linearGradientUnderAvarageColor: "#FDB1B1",
|
|
182
146
|
underAvarageColor: "#FD5959",
|
|
183
147
|
backgroundColor: "#F2F2F2"
|
|
184
|
-
})) :
|
|
148
|
+
})) : '')), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.AreaChartContainer, {
|
|
185
149
|
ref: anotherRef,
|
|
186
150
|
id: "AreaChartContainer"
|
|
187
151
|
}, /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
@@ -233,9 +197,9 @@ const TotalBenchmarkAreachart = props => {
|
|
|
233
197
|
tick: item => /*#__PURE__*/_react.default.createElement(CustomTick, item),
|
|
234
198
|
tickLine: false,
|
|
235
199
|
style: {
|
|
236
|
-
fontWeight:
|
|
237
|
-
stroke:
|
|
238
|
-
strokeWidth:
|
|
200
|
+
fontWeight: '700',
|
|
201
|
+
stroke: '#D0D0D0',
|
|
202
|
+
strokeWidth: '1px'
|
|
239
203
|
}
|
|
240
204
|
}), /*#__PURE__*/_react.default.createElement(_recharts.CartesianGrid, {
|
|
241
205
|
strokeDasharray: "3 3"
|
|
@@ -253,86 +217,84 @@ const TotalBenchmarkAreachart = props => {
|
|
|
253
217
|
fill: "url(#colorValue2)"
|
|
254
218
|
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
255
219
|
content: /*#__PURE__*/_react.default.createElement(CustomTooltip, null)
|
|
256
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, null))))
|
|
220
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, null))))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
257
221
|
noDataText: noDataText
|
|
258
222
|
}));
|
|
259
223
|
};
|
|
260
224
|
exports.TotalBenchmarkAreachart = TotalBenchmarkAreachart;
|
|
261
225
|
var _default = exports.default = TotalBenchmarkAreachart;
|
|
262
226
|
TotalBenchmarkAreachart.defaultProps = {
|
|
263
|
-
title:
|
|
227
|
+
title: 'String',
|
|
264
228
|
value: 300,
|
|
265
|
-
arrowSign:
|
|
229
|
+
arrowSign: '$',
|
|
266
230
|
addingBenchmark: true,
|
|
267
|
-
benchmarkTotalValue:
|
|
231
|
+
benchmarkTotalValue: '',
|
|
268
232
|
benchmarkValue: null,
|
|
269
233
|
areaChartData: [{
|
|
270
|
-
title:
|
|
234
|
+
title: 'W20',
|
|
271
235
|
value1: 542366,
|
|
272
236
|
value2: 247715
|
|
273
237
|
}, {
|
|
274
|
-
title:
|
|
238
|
+
title: 'W21',
|
|
275
239
|
value1: 699511,
|
|
276
240
|
value2: 252313
|
|
277
241
|
}, {
|
|
278
|
-
title:
|
|
242
|
+
title: 'W22',
|
|
279
243
|
value1: 403092,
|
|
280
244
|
value2: 260822
|
|
281
245
|
}, {
|
|
282
|
-
title:
|
|
246
|
+
title: 'W23',
|
|
283
247
|
value1: 396184,
|
|
284
248
|
value2: 264325
|
|
285
249
|
}, {
|
|
286
|
-
title:
|
|
250
|
+
title: 'W24',
|
|
287
251
|
value1: 415317,
|
|
288
252
|
value2: 269243
|
|
289
253
|
}, {
|
|
290
|
-
title:
|
|
254
|
+
title: 'W25',
|
|
291
255
|
value1: 568376,
|
|
292
256
|
value2: 269592
|
|
293
257
|
}, {
|
|
294
|
-
title:
|
|
258
|
+
title: 'W26',
|
|
295
259
|
value1: 1078121,
|
|
296
260
|
value2: 269949
|
|
297
261
|
}, {
|
|
298
|
-
title:
|
|
262
|
+
title: 'W27',
|
|
299
263
|
value1: 347930,
|
|
300
264
|
value2: 270735
|
|
301
265
|
}, {
|
|
302
|
-
title:
|
|
266
|
+
title: 'W28',
|
|
303
267
|
value1: 346258,
|
|
304
268
|
value2: 271200
|
|
305
269
|
}, {
|
|
306
|
-
title:
|
|
270
|
+
title: 'W29',
|
|
307
271
|
value1: 350184,
|
|
308
272
|
value2: 270324
|
|
309
273
|
}, {
|
|
310
|
-
title:
|
|
274
|
+
title: 'W30',
|
|
311
275
|
value1: 312790,
|
|
312
276
|
value2: 266821
|
|
313
277
|
}, {
|
|
314
|
-
title:
|
|
278
|
+
title: 'W31',
|
|
315
279
|
value1: 335076,
|
|
316
280
|
value2: 267064
|
|
317
281
|
}, {
|
|
318
|
-
title:
|
|
282
|
+
title: 'W32',
|
|
319
283
|
value1: 311037,
|
|
320
284
|
value2: 266821
|
|
321
285
|
}],
|
|
322
|
-
width:
|
|
323
|
-
height:
|
|
324
|
-
textcolor:
|
|
325
|
-
areaChart1Color:
|
|
326
|
-
areaChart2Color:
|
|
327
|
-
xselectedColor:
|
|
328
|
-
fillChart1Color:
|
|
329
|
-
fillChart2Color:
|
|
330
|
-
startOffset:
|
|
331
|
-
endOffset:
|
|
332
|
-
opacity:
|
|
333
|
-
value1Title:
|
|
334
|
-
value2Title:
|
|
335
|
-
noDataText:
|
|
336
|
-
startWeekRange: 0,
|
|
337
|
-
endWeekRange: 0
|
|
286
|
+
width: '100%',
|
|
287
|
+
height: '100%',
|
|
288
|
+
textcolor: '#212121',
|
|
289
|
+
areaChart1Color: '#BD9EFF',
|
|
290
|
+
areaChart2Color: '#96B4FF',
|
|
291
|
+
xselectedColor: '#42977A',
|
|
292
|
+
fillChart1Color: 'rgba(34, 158, 56, 0.20)',
|
|
293
|
+
fillChart2Color: 'rgba(255, 84, 84, 0.2)',
|
|
294
|
+
startOffset: '17.04%',
|
|
295
|
+
endOffset: '17.04%',
|
|
296
|
+
opacity: '191',
|
|
297
|
+
value1Title: 'Actual Sales',
|
|
298
|
+
value2Title: 'Baseline Sales',
|
|
299
|
+
noDataText: ''
|
|
338
300
|
};
|
|
@@ -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.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = 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
|
const 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"])), props => props.textColor, props => props.width, props => props.height);
|
|
12
|
-
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n
|
|
13
|
-
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
12
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background: #ffffff;\n border-radius: 12px;\n flex-basis: 100%;\n"])));
|
|
13
|
+
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 50%;\n"])));
|
|
14
14
|
const 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"])));
|
|
15
15
|
const 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"])));
|
|
16
16
|
const 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"])));
|
|
@@ -20,8 +20,5 @@ const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledC
|
|
|
20
20
|
const 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"])));
|
|
21
21
|
const 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"])));
|
|
22
22
|
const 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"])));
|
|
23
|
-
const 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
|
|
24
|
-
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|
|
25
|
-
const EventWeeksLegendDataContainer = exports.EventWeeksLegendDataContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n align-items: center;\n"])));
|
|
26
|
-
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n margin: 0 0 0 5px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
27
|
-
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.5rem;\n min-width: 0.5rem;\n height: 0.5rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
23
|
+
const 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"])));
|
|
24
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag_components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.423",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@babel/preset-env": "^7.23.6",
|
|
20
20
|
"@babel/preset-react": "^7.23.3",
|
|
21
21
|
"@babel/preset-typescript": "^7.23.3",
|
|
22
|
-
"@storybook/addon-designs": "^7.0.
|
|
22
|
+
"@storybook/addon-designs": "^7.0.7",
|
|
23
23
|
"@storybook/addon-essentials": "^7.4.6",
|
|
24
24
|
"@storybook/addon-interactions": "^7.4.6",
|
|
25
25
|
"@storybook/addon-links": "^7.4.6",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"babel-preset-react-app": "^10.0.1",
|
|
36
36
|
"cross-env": "^7.0.3",
|
|
37
37
|
"css-loader": "^6.8.1",
|
|
38
|
-
"eslint": "^8.
|
|
38
|
+
"eslint": "^8.56.0",
|
|
39
39
|
"eslint-config-airbnb": "^19.0.4",
|
|
40
|
-
"eslint-plugin-import": "^2.29.
|
|
40
|
+
"eslint-plugin-import": "^2.29.1",
|
|
41
41
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
42
42
|
"eslint-plugin-react": "^7.33.2",
|
|
43
43
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
45
45
|
"react-scripts": "^5.0.1",
|
|
46
46
|
"sass": "^1.69.5",
|
|
47
|
-
"sass-loader": "^13.3.
|
|
47
|
+
"sass-loader": "^13.3.3",
|
|
48
48
|
"style-loader": "^3.3.3"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@emotion/react": "^11.11.
|
|
51
|
+
"@emotion/react": "^11.11.3",
|
|
52
52
|
"@emotion/styled": "^11.11.0",
|
|
53
|
-
"@mui/icons-material": "^5.
|
|
54
|
-
"@mui/material": "^5.
|
|
55
|
-
"@mui/x-date-pickers": "^6.18.
|
|
53
|
+
"@mui/icons-material": "^5.15.2",
|
|
54
|
+
"@mui/material": "^5.15.2",
|
|
55
|
+
"@mui/x-date-pickers": "^6.18.6",
|
|
56
56
|
"classnames": "^2.3.2",
|
|
57
57
|
"dayjs": "^1.11.10",
|
|
58
58
|
"prop-types": "^15.8.1",
|