sag_components 1.0.397 → 1.0.398
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/index.js +1 -1
- package/dist/stories/components/Benchmark.js +23 -20
- package/dist/stories/components/Benchmark.style.js +5 -35
- package/dist/stories/components/Button.js +35 -30
- package/dist/stories/components/Button.style.js +1 -3
- package/dist/stories/components/CheckBox.js +22 -35
- package/dist/stories/components/CheckBox.style.js +4 -12
- package/dist/stories/components/CheckBoxButton.js +27 -45
- package/dist/stories/components/CheckBoxButton.style.js +4 -20
- package/dist/stories/components/CodeEditor.js +5 -3
- package/dist/stories/components/CodeEditor.style.js +1 -1
- package/dist/stories/components/CollapseData.js +34 -42
- package/dist/stories/components/CollapseData.style.js +11 -17
- package/dist/stories/components/CommonFunctions.js +13 -10
- package/dist/stories/components/Datepicker.js +22 -27
- package/dist/stories/components/Datepicker.style.js +1 -3
- package/dist/stories/components/Dropdown.js +94 -112
- package/dist/stories/components/Dropdown.style.js +1 -3
- package/dist/stories/components/DropdownMulti.js +123 -145
- package/dist/stories/components/DropdownMulti.style.js +1 -3
- package/dist/stories/components/FilterContainer.js +7 -7
- package/dist/stories/components/FilterContainer.style.js +3 -3
- package/dist/stories/components/IconButton.js +58 -27
- package/dist/stories/components/IconButton.style.js +8 -13
- package/dist/stories/components/KpiFilter.js +185 -186
- package/dist/stories/components/KpiFilter.style.js +16 -16
- package/dist/stories/components/ListBox.js +50 -67
- package/dist/stories/components/ListBox.style.js +4 -12
- package/dist/stories/components/Modal.js +6 -4
- package/dist/stories/components/Modal.style.js +5 -5
- package/dist/stories/components/ModalTotalBenchmark.js +48 -46
- package/dist/stories/components/ModalTotalCost.js +66 -68
- package/dist/stories/components/NoDataFoundMessage.js +5 -2
- package/dist/stories/components/NoDataFoundMessage.style.js +3 -3
- package/dist/stories/components/OneColumnContainer.js +30 -38
- package/dist/stories/components/OneColumnContainer.style.js +7 -23
- package/dist/stories/components/PerformanceAnalytics.js +142 -156
- package/dist/stories/components/PerformanceAnalytics.style.js +15 -25
- package/dist/stories/components/PerformanceAnalyticsLegend.js +25 -26
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +6 -16
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +119 -123
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +13 -23
- package/dist/stories/components/PerformanceAnalyticsTotals.js +26 -27
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +10 -18
- package/dist/stories/components/ReportTable.js +15 -18
- package/dist/stories/components/ReportTable.style.js +8 -14
- package/dist/stories/components/SegmentedButton.js +63 -68
- package/dist/stories/components/SegmentedButton.style.js +6 -16
- package/dist/stories/components/TextField.js +37 -52
- package/dist/stories/components/TextField.style.js +1 -3
- package/dist/stories/components/TitleDescription.js +39 -42
- package/dist/stories/components/TitleDescription.style.js +26 -50
- package/dist/stories/components/Tooltip.js +6 -11
- package/dist/stories/components/Tooltip.style.js +3 -3
- package/dist/stories/components/TotalBenchmark.js +54 -58
- package/dist/stories/components/TotalBenchmark.style.js +11 -17
- package/dist/stories/components/TotalBenchmarkAreachart.js +55 -58
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +14 -20
- package/dist/stories/components/TotalBenchmarkArrows.js +48 -53
- package/dist/stories/components/TotalBenchmarkArrows.style.js +14 -20
- package/dist/stories/components/TotalBenchmarkBarchart.js +45 -51
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +10 -16
- package/dist/stories/components/TotalDoughnutChart.js +60 -64
- package/dist/stories/components/TotalDoughnutChart.style.js +19 -29
- package/dist/stories/components/TspanTooltip.js +6 -8
- package/dist/stories/components/TspanTooltip.style.js +3 -7
- package/dist/stories/components/icons/ArrowDownIcon.js +7 -6
- package/dist/stories/components/icons/ArrowDropDownIcon.js +7 -6
- package/dist/stories/components/icons/ArrowUpIcon.js +7 -6
- package/dist/stories/components/icons/BellIcon.js +6 -5
- package/dist/stories/components/icons/CalendarIcon.js +7 -6
- package/dist/stories/components/icons/CheckBoxButtonCheckedIcon.js +8 -8
- package/dist/stories/components/icons/CheckBoxCheckedIcon.js +8 -8
- package/dist/stories/components/icons/CheckBoxNotCheckedIcon.js +8 -8
- package/dist/stories/components/icons/ClockIcon.js +7 -6
- package/dist/stories/components/icons/ComboBoxArrowDownIcon.js +8 -8
- package/dist/stories/components/icons/ComboBoxArrowUpIcon.js +8 -8
- package/dist/stories/components/icons/DocumentIcon.js +7 -7
- package/dist/stories/components/icons/DownloadIcon.js +7 -7
- package/dist/stories/components/icons/ExitIcon.js +7 -6
- package/dist/stories/components/icons/EyeIcon.js +7 -6
- package/dist/stories/components/icons/FlyIcon.js +7 -6
- package/dist/stories/components/icons/FoodLionIcon.js +7 -6
- package/dist/stories/components/icons/GiantFoodIcon.js +7 -6
- package/dist/stories/components/icons/HannafordIcon.js +7 -6
- package/dist/stories/components/icons/InfoIcon.js +8 -8
- package/dist/stories/components/icons/LegendUnionIcon.js +7 -7
- package/dist/stories/components/icons/MaintenanceIcon.js +7 -6
- package/dist/stories/components/icons/NoDataFoundIcon.js +6 -5
- package/dist/stories/components/icons/ShoppingCartIcon.js +7 -6
- package/dist/stories/components/icons/StopAndShopIcon.js +7 -6
- package/dist/stories/components/icons/TheGiantCompanyIcon.js +7 -6
- package/dist/stories/utils/ComponentFactory.js +4 -2
- package/package.json +5 -5
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.OneColumnContainer = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
11
|
var _reactLoadingSkeleton = _interopRequireWildcard(require("react-loading-skeleton"));
|
|
@@ -16,32 +15,28 @@ require("react-loading-skeleton/dist/skeleton.css");
|
|
|
16
15
|
/**
|
|
17
16
|
* Primary UI component for user interaction
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
setOffsetWidth = _useState4[1];
|
|
42
|
-
var nodeRef = (0, _react.useRef)(null);
|
|
43
|
-
var anotherRef = (0, _react.useRef)(null);
|
|
44
|
-
(0, _react.useEffect)(function () {
|
|
18
|
+
const OneColumnContainer = props => {
|
|
19
|
+
const {
|
|
20
|
+
children,
|
|
21
|
+
display,
|
|
22
|
+
isLoading,
|
|
23
|
+
gridTemplateColumns,
|
|
24
|
+
itemClass,
|
|
25
|
+
divStyle,
|
|
26
|
+
overStyle,
|
|
27
|
+
draggingStyle,
|
|
28
|
+
droppedStyle,
|
|
29
|
+
width,
|
|
30
|
+
height,
|
|
31
|
+
infoTitle,
|
|
32
|
+
infoText,
|
|
33
|
+
disableInfo
|
|
34
|
+
} = props;
|
|
35
|
+
const [hover, setHover] = (0, _react.useState)(false);
|
|
36
|
+
const [offsetWidth, setOffsetWidth] = (0, _react.useState)(200);
|
|
37
|
+
const nodeRef = (0, _react.useRef)(null);
|
|
38
|
+
const anotherRef = (0, _react.useRef)(null);
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
45
40
|
var _anotherRef$current;
|
|
46
41
|
setOffsetWidth(anotherRef === null || anotherRef === void 0 ? void 0 : (_anotherRef$current = anotherRef.current) === null || _anotherRef$current === void 0 ? void 0 : _anotherRef$current.offsetWidth);
|
|
47
42
|
}, [anotherRef]);
|
|
@@ -55,20 +50,16 @@ var OneColumnContainer = exports.OneColumnContainer = function OneColumnContaine
|
|
|
55
50
|
style: {
|
|
56
51
|
alignItems: 'flex-start',
|
|
57
52
|
justifyContent: 'center',
|
|
58
|
-
width
|
|
59
|
-
height
|
|
60
|
-
display
|
|
61
|
-
gridTemplateColumns
|
|
53
|
+
width,
|
|
54
|
+
height,
|
|
55
|
+
display,
|
|
56
|
+
gridTemplateColumns
|
|
62
57
|
},
|
|
63
58
|
ref: nodeRef
|
|
64
59
|
}, !isLoading && !hover && children, !disableInfo && !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.IconContainer, {
|
|
65
60
|
id: "IconContainer",
|
|
66
|
-
onMouseEnter:
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
onMouseLeave: function onMouseLeave() {
|
|
70
|
-
return setHover(false);
|
|
71
|
-
}
|
|
61
|
+
onMouseEnter: () => setHover(true),
|
|
62
|
+
onMouseLeave: () => setHover(false)
|
|
72
63
|
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, null)), hover && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
73
64
|
id: "InfoTextContainer",
|
|
74
65
|
width: width,
|
|
@@ -100,6 +91,7 @@ var OneColumnContainer = exports.OneColumnContainer = function OneColumnContaine
|
|
|
100
91
|
containerClassName: "avatar-skeleton"
|
|
101
92
|
})))));
|
|
102
93
|
};
|
|
94
|
+
exports.OneColumnContainer = OneColumnContainer;
|
|
103
95
|
OneColumnContainer.defaultProps = {
|
|
104
96
|
children: '',
|
|
105
97
|
display: 'flex',
|
|
@@ -8,26 +8,10 @@ exports.mainDiv = exports.StyledContainer = exports.LoadingDiv = exports.InfoTit
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, function (props) {
|
|
19
|
-
return props.height;
|
|
20
|
-
});
|
|
21
|
-
var InfoTitleLabel = exports.InfoTitleLabel = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n color: black;\n margin: 0px 0px 10px 0px;\n font-size: 18px;\n line-height: 32px;\n overflow: hidden;\n"])));
|
|
22
|
-
var InfoTextLabel = exports.InfoTextLabel = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: black;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n overflow: hidden;\n"])));
|
|
23
|
-
var IconContainer = exports.IconContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 20px;\n height: 20px;\n top: 10px;\n right: 10px;\n position: absolute;\n"])));
|
|
24
|
-
var LoadingDiv = exports.LoadingDiv = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 20px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n width: 76%;\n height: 65%;\n"])));
|
|
25
|
-
var mainDiv = exports.mainDiv = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: \"flex-start\";\n justify-content: \"center\";\n background-color: white;\n width: ", ";\n height: ", ";\n display: ", ";\n grid-template-columns: ", ";\n"])), function (props) {
|
|
26
|
-
return props.width;
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.height;
|
|
29
|
-
}, function (props) {
|
|
30
|
-
return props.display;
|
|
31
|
-
}, function (props) {
|
|
32
|
-
return props.gridTemplateColumns;
|
|
33
|
-
});
|
|
11
|
+
const StyledContainer = exports.StyledContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);\n display: flex;\n position: relative;\n border-radius: 10px;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n background-color: white;\n"])), props => props.width, props => props.height);
|
|
12
|
+
const InfoTextContainer = exports.InfoTextContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n background: white;\n margin: 0px 30px 0px 30px;\n"])), props => props.width, props => props.height);
|
|
13
|
+
const InfoTitleLabel = exports.InfoTitleLabel = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n color: black;\n margin: 0px 0px 10px 0px;\n font-size: 18px;\n line-height: 32px;\n overflow: hidden;\n"])));
|
|
14
|
+
const InfoTextLabel = exports.InfoTextLabel = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: black;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n overflow: hidden;\n"])));
|
|
15
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 20px;\n height: 20px;\n top: 10px;\n right: 10px;\n position: absolute;\n"])));
|
|
16
|
+
const LoadingDiv = exports.LoadingDiv = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 20px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n width: 76%;\n height: 65%;\n"])));
|
|
17
|
+
const mainDiv = exports.mainDiv = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: \"flex-start\";\n justify-content: \"center\";\n background-color: white;\n width: ", ";\n height: ", ";\n display: ", ";\n grid-template-columns: ", ";\n"])), props => props.width, props => props.height, props => props.display, props => props.gridTemplateColumns);
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.PerformanceAnalytics = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _recharts = require("recharts");
|
|
13
11
|
var _TspanTooltip = _interopRequireDefault(require("./TspanTooltip"));
|
|
@@ -17,81 +15,72 @@ var _PerformanceAnalyticsTotals = require("./PerformanceAnalyticsTotals");
|
|
|
17
15
|
var _PerformanceAnalyticsLegend = require("./PerformanceAnalyticsLegend");
|
|
18
16
|
var _CommonFunctions = require("./CommonFunctions");
|
|
19
17
|
var _PerformanceAnalytics = require("./PerformanceAnalytics.style");
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
const INDIVIDUAL_PERFORMANCE_STR = 'Individual Performance';
|
|
19
|
+
const PERCENT_INCREMENTAL_GROWTH_STR = '% Incremental Growth';
|
|
20
|
+
const PERCENT_CONTRIBUTION_OF_TOTAL_STR = '% Contribution of Total';
|
|
23
21
|
|
|
24
22
|
/* PerformanceAnalytics */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
width: 490,
|
|
87
|
-
heigth: 14
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
var CustomizedLabelROI = function CustomizedLabelROI(props) {
|
|
91
|
-
var x = props.x,
|
|
92
|
-
y = props.y,
|
|
93
|
-
stroke = props.stroke,
|
|
94
|
-
value = props.value;
|
|
23
|
+
const PerformanceAnalytics = props => {
|
|
24
|
+
const {
|
|
25
|
+
currencyType,
|
|
26
|
+
colorGraphROI,
|
|
27
|
+
colorBarchart1,
|
|
28
|
+
colorBarchart2,
|
|
29
|
+
textcolor,
|
|
30
|
+
width,
|
|
31
|
+
height,
|
|
32
|
+
lineChartHeight,
|
|
33
|
+
barChartHeight,
|
|
34
|
+
dotCut,
|
|
35
|
+
noDataText,
|
|
36
|
+
totalsData,
|
|
37
|
+
data,
|
|
38
|
+
legendData
|
|
39
|
+
} = props;
|
|
40
|
+
const [segmentedButtonsFilter, setSegmentedButtonsFilter] = (0, _react.useState)(INDIVIDUAL_PERFORMANCE_STR);
|
|
41
|
+
const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
|
|
42
|
+
const [tooltipCouponText, setTooltipCouponText] = (0, _react.useState)({
|
|
43
|
+
content: '',
|
|
44
|
+
clientX: 0,
|
|
45
|
+
clientY: 0
|
|
46
|
+
});
|
|
47
|
+
const displayTotalsData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.PerformanceAnalyticsTotals, {
|
|
48
|
+
totalsData: totalsData,
|
|
49
|
+
width: width
|
|
50
|
+
});
|
|
51
|
+
const displaySegmentedButtons = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.SegmentedButtonContainer, {
|
|
52
|
+
id: "SegmentedButtonContainer"
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_SegmentedButton.SegmentedButton, {
|
|
54
|
+
id: "SegmentedButton BaselineSTLY",
|
|
55
|
+
options: [{
|
|
56
|
+
value: INDIVIDUAL_PERFORMANCE_STR
|
|
57
|
+
}, {
|
|
58
|
+
value: PERCENT_INCREMENTAL_GROWTH_STR
|
|
59
|
+
}, {
|
|
60
|
+
value: PERCENT_CONTRIBUTION_OF_TOTAL_STR
|
|
61
|
+
}],
|
|
62
|
+
backgroundcolor: "#F2F2F2",
|
|
63
|
+
controlradius: 8,
|
|
64
|
+
defaultIndex: 0,
|
|
65
|
+
fontSize: 12,
|
|
66
|
+
name: "segmentedDollarsOrUnits",
|
|
67
|
+
onClick: event => {
|
|
68
|
+
setSegmentedButtonsFilter(event.value);
|
|
69
|
+
},
|
|
70
|
+
segmentradius: 8,
|
|
71
|
+
selectedsegmentcolor: "#ffffff",
|
|
72
|
+
selectedtextcolor: "#212121",
|
|
73
|
+
unselectedtextcolor: "#212121",
|
|
74
|
+
width: 490,
|
|
75
|
+
heigth: 14
|
|
76
|
+
}));
|
|
77
|
+
const CustomizedLabelROI = props => {
|
|
78
|
+
const {
|
|
79
|
+
x,
|
|
80
|
+
y,
|
|
81
|
+
stroke,
|
|
82
|
+
value
|
|
83
|
+
} = props;
|
|
95
84
|
return /*#__PURE__*/_react.default.createElement("text", {
|
|
96
85
|
x: x,
|
|
97
86
|
y: y,
|
|
@@ -101,24 +90,28 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
101
90
|
textAnchor: "middle"
|
|
102
91
|
}, value);
|
|
103
92
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
const CustomTooltipROI = _ref => {
|
|
94
|
+
let {
|
|
95
|
+
active,
|
|
96
|
+
payload
|
|
97
|
+
} = _ref;
|
|
107
98
|
if (active && payload && payload.length > 0) {
|
|
108
99
|
var _payload$0$payload;
|
|
109
100
|
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipTitle, null, "".concat((_payload$0$payload = payload[0].payload) === null || _payload$0$payload === void 0 ? void 0 : _payload$0$payload.retailer)), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, null, "Incremental Sales ROI:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, null, "".concat((0, _CommonFunctions.getFormattedValue)(payload[0].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[0].value)))));
|
|
110
101
|
}
|
|
111
102
|
return null;
|
|
112
103
|
};
|
|
113
|
-
|
|
104
|
+
const CustomTooltipBarChart = _ref2 => {
|
|
114
105
|
var _payload$0$payload$In;
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
let {
|
|
107
|
+
active,
|
|
108
|
+
payload
|
|
109
|
+
} = _ref2;
|
|
117
110
|
if (active && payload && payload.length > 0) {
|
|
118
111
|
var _payload$0$payload2, _payload$0$payload3, _payload$0$payload4, _payload$0$payload5;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
const totalCostValue = ((_payload$0$payload2 = payload[0].payload) === null || _payload$0$payload2 === void 0 ? void 0 : _payload$0$payload2.packageCostValue) + ((_payload$0$payload3 = payload[0].payload) === null || _payload$0$payload3 === void 0 ? void 0 : _payload$0$payload3.redemptionCostValue);
|
|
113
|
+
const packageCostPercent = totalCostValue ? ((_payload$0$payload4 = payload[0].payload) === null || _payload$0$payload4 === void 0 ? void 0 : _payload$0$payload4.packageCostValue) / totalCostValue * 100 : 0;
|
|
114
|
+
const redemptionCostPercent = totalCostValue ? ((_payload$0$payload5 = payload[0].payload) === null || _payload$0$payload5 === void 0 ? void 0 : _payload$0$payload5.redemptionCostValue) / totalCostValue * 100 : 0;
|
|
122
115
|
switch (segmentedButtonsFilter) {
|
|
123
116
|
case INDIVIDUAL_PERFORMANCE_STR:
|
|
124
117
|
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
@@ -171,38 +164,38 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
171
164
|
}
|
|
172
165
|
return null;
|
|
173
166
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
167
|
+
const displayLineChartROI = () => /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
168
|
+
id: "ResponsiveContainer",
|
|
169
|
+
height: lineChartHeight
|
|
170
|
+
}, segmentedButtonsFilter !== PERCENT_CONTRIBUTION_OF_TOTAL_STR ? /*#__PURE__*/_react.default.createElement(_recharts.LineChart, {
|
|
171
|
+
data: data,
|
|
172
|
+
margin: {
|
|
173
|
+
top: 20,
|
|
174
|
+
right: 30,
|
|
175
|
+
left: 20,
|
|
176
|
+
bottom: 10
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
179
|
+
content: /*#__PURE__*/_react.default.createElement(CustomTooltipROI, null)
|
|
180
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.Line, {
|
|
181
|
+
type: "monotone",
|
|
182
|
+
dataKey: "roiValue",
|
|
183
|
+
fill: colorGraphROI,
|
|
184
|
+
name: "retailer",
|
|
185
|
+
stroke: colorGraphROI
|
|
186
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
187
|
+
content: /*#__PURE__*/_react.default.createElement(CustomizedLabelROI, null)
|
|
188
|
+
}))) : /*#__PURE__*/_react.default.createElement("div", null));
|
|
189
|
+
const CustomizedLabelBarchart = props => {
|
|
190
|
+
const {
|
|
191
|
+
x,
|
|
192
|
+
y,
|
|
193
|
+
width,
|
|
194
|
+
value,
|
|
195
|
+
payload
|
|
196
|
+
} = props;
|
|
197
|
+
const radius = 10;
|
|
198
|
+
const plusSign = value > 0 ? '+' : '';
|
|
206
199
|
return /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("text", {
|
|
207
200
|
x: x + width / 2,
|
|
208
201
|
y: y - radius,
|
|
@@ -214,34 +207,33 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
214
207
|
}, segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? currencyType ? "".concat((0, _CommonFunctions.getCurrencySign)(currencyType).toString(), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : '', " ") : '' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "".concat(plusSign).concat(value, "%") : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "".concat(value, "%") : ''));
|
|
215
208
|
};
|
|
216
209
|
function CustomizedTickBarChart(props) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
210
|
+
const {
|
|
211
|
+
x,
|
|
212
|
+
y,
|
|
213
|
+
stroke,
|
|
214
|
+
payload
|
|
215
|
+
} = props;
|
|
216
|
+
const handleMouseEnter = content => {
|
|
217
|
+
setTooltipCouponText(prevState => ({
|
|
218
|
+
...prevState,
|
|
219
|
+
content: content !== prevState.content ? content : prevState.content,
|
|
220
|
+
clientX: x,
|
|
221
|
+
clientY: y
|
|
222
|
+
}));
|
|
229
223
|
setShowLegendTooltip(true);
|
|
230
224
|
};
|
|
231
|
-
|
|
225
|
+
const handleMouseLeave = () => {
|
|
232
226
|
setShowLegendTooltip(false);
|
|
233
227
|
};
|
|
234
228
|
if (data && data.length > 0 && payload) {
|
|
235
|
-
|
|
236
|
-
return item.retailer === payload.value;
|
|
237
|
-
});
|
|
229
|
+
const retailerData = data.filter(item => item.retailer === payload.value);
|
|
238
230
|
if (retailerData && retailerData.length > 0) {
|
|
239
|
-
|
|
231
|
+
const {
|
|
232
|
+
offerType
|
|
233
|
+
} = retailerData[0];
|
|
240
234
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
241
235
|
transform: "translate(".concat(x, ",").concat(y, ")"),
|
|
242
|
-
onMouseEnter:
|
|
243
|
-
return handleMouseEnter(offerType);
|
|
244
|
-
},
|
|
236
|
+
onMouseEnter: () => handleMouseEnter(offerType),
|
|
245
237
|
onMouseLeave: handleMouseLeave
|
|
246
238
|
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
247
239
|
x: 0,
|
|
@@ -266,20 +258,15 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
266
258
|
}
|
|
267
259
|
return null;
|
|
268
260
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
var getDataKeyNameBar2 = function getDataKeyNameBar2() {
|
|
273
|
-
return segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'incrementalSalesValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? 'IncrementalGrowthValue' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionIncrementalSalesValue' : '';
|
|
274
|
-
};
|
|
275
|
-
var displayBarChart = function displayBarChart() {
|
|
261
|
+
const getDataKeyNameBar1 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'totalValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? '' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionTotalCostValue' : '';
|
|
262
|
+
const getDataKeyNameBar2 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'incrementalSalesValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? 'IncrementalGrowthValue' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionIncrementalSalesValue' : '';
|
|
263
|
+
const displayBarChart = () => {
|
|
276
264
|
if (data && data.length > 0) {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
});
|
|
265
|
+
const formatedData = data.map(item => ({
|
|
266
|
+
...item,
|
|
267
|
+
totalValue: item.packageCostValue + item.redemptionCostValue,
|
|
268
|
+
contributionTotalCostValue: item.contributionTotalCostValue
|
|
269
|
+
}));
|
|
283
270
|
return /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
284
271
|
id: "ResponsiveContainer",
|
|
285
272
|
height: barChartHeight,
|
|
@@ -333,17 +320,15 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
333
320
|
}
|
|
334
321
|
return null;
|
|
335
322
|
};
|
|
336
|
-
|
|
323
|
+
const isNegativeValueFound = () => {
|
|
337
324
|
if (data && data.length > 0) {
|
|
338
|
-
|
|
339
|
-
return item.IncrementalGrowthValue < 0;
|
|
340
|
-
});
|
|
325
|
+
const negativeData = data.filter(item => item.IncrementalGrowthValue < 0);
|
|
341
326
|
if (negativeData && negativeData.length > 0) return true;
|
|
342
327
|
return false;
|
|
343
328
|
}
|
|
344
329
|
return false;
|
|
345
330
|
};
|
|
346
|
-
|
|
331
|
+
const displayLegendData = () => {
|
|
347
332
|
switch (segmentedButtonsFilter) {
|
|
348
333
|
case INDIVIDUAL_PERFORMANCE_STR:
|
|
349
334
|
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
|
|
@@ -357,7 +342,7 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
357
342
|
title: '% Incremental Growth'
|
|
358
343
|
}, {
|
|
359
344
|
iconColor: {
|
|
360
|
-
colorGraphROI
|
|
345
|
+
colorGraphROI
|
|
361
346
|
},
|
|
362
347
|
iconType: 'LegendUnionIcon',
|
|
363
348
|
title: 'Incremental Sales ROI'
|
|
@@ -390,6 +375,7 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
390
375
|
noDataText: noDataText
|
|
391
376
|
}));
|
|
392
377
|
};
|
|
378
|
+
exports.PerformanceAnalytics = PerformanceAnalytics;
|
|
393
379
|
var _default = exports.default = PerformanceAnalytics;
|
|
394
380
|
PerformanceAnalytics.defaultProps = {
|
|
395
381
|
totalsData: [],
|
|
@@ -8,28 +8,18 @@ exports.TooltipValue = exports.TooltipTitle = exports.TooltipLabel = exports.Too
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var TooltipContainer = exports.TooltipContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n background: #fff;\n font-family: \"Poppins\", sans-serif;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
27
|
-
var TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n margin: 0 6px 0 0;\n"])));
|
|
28
|
-
var TooltipValue = exports.TooltipValue = _styledComponents.default.p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n width: fit-content;\n margin: 0;\n"])));
|
|
29
|
-
var TooltipTitle = exports.TooltipTitle = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0;\n"])));
|
|
30
|
-
var ToolTipBarchart1Container = exports.ToolTipBarchart1Container = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 10px;\n"])));
|
|
31
|
-
var ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n gap: 8px;\n"])));
|
|
32
|
-
var ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
33
|
-
var LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.875rem;\n min-width: 0.875rem;\n height: 0.875rem;\n border-radius: 2px;\n background: ", ";\n"])), function (props) {
|
|
34
|
-
return props.color;
|
|
35
|
-
});
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-self: center;\n\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textcolor, props => props.width, props => props.height);
|
|
13
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n padding: 14px 28px;\n background: white;\n ", "\n @media (max-width: 1536px) {\n padding: 12px 24px;\n }\n > #SegmentedButtonContainer {\n padding-left: 0;\n margin-bottom: 16px;\n > #Controls {\n background: #f2f2f2;\n }\n }\n"])), scrollableStyles);
|
|
14
|
+
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 12px;\n }\n"])));
|
|
15
|
+
const LabelText = exports.LabelText = _styledComponents.default.tspan(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 10px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])));
|
|
16
|
+
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
17
|
+
const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px 0 0 10px;\n"])));
|
|
18
|
+
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n background: #fff;\n font-family: \"Poppins\", sans-serif;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
19
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n margin: 0 6px 0 0;\n"])));
|
|
20
|
+
const TooltipValue = exports.TooltipValue = _styledComponents.default.p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n width: fit-content;\n margin: 0;\n"])));
|
|
21
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0;\n"])));
|
|
22
|
+
const ToolTipBarchart1Container = exports.ToolTipBarchart1Container = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 10px;\n"])));
|
|
23
|
+
const ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n gap: 8px;\n"])));
|
|
24
|
+
const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
25
|
+
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.875rem;\n min-width: 0.875rem;\n height: 0.875rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|