sag_components 1.0.975 → 1.0.976
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/dist/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +40 -6
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +71 -15
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +10 -5
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +182 -16
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart/BarChart.js +5 -3
- package/dist/stories/components/BarChart/BarChart.stories.js +29 -20
- package/dist/stories/components/BarChart/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +53 -44
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +166 -40
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +72 -11
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark/Benchmark.style.js +53 -7
- package/dist/stories/components/Button/Button.js +1 -1
- package/dist/stories/components/Button/Button.style.js +82 -7
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/Card/Card.style.js +57 -10
- package/dist/stories/components/CheckBox/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +2 -1
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +49 -36
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +204 -16
- package/dist/stories/components/DropdownNew/DropdownNew.js +21 -11
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +18 -9
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +13 -3
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +30 -10
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +175 -14
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel/FilterPanel.js +22 -17
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +81 -13
- package/dist/stories/components/FilterPanel.js +4 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton/IconButton.style.js +56 -7
- package/dist/stories/components/Input/Input.style.js +122 -9
- package/dist/stories/components/InputOld/InputOld.style.js +61 -8
- package/dist/stories/components/KpiFilter/KpiFilter.js +18 -1
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +4 -2
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +32 -10
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +17 -3
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal/Modal.style.js +56 -8
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +95 -10
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +91 -13
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +5 -3
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +14 -4
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +14 -13
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/Popup/Popup.style.js +114 -16
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +100 -15
- package/dist/stories/components/PopupContent/PopupContent.style.js +64 -11
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +94 -10
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +85 -12
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +2 -2
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/RangePicker/RangeDatePicker.js +95 -12
- package/dist/stories/components/RangePicker/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker/RangePicker.style.js +99 -10
- package/dist/stories/components/ReportTable/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select/Select.style.js +92 -9
- package/dist/stories/components/TabMenu/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu/TabMenu.style.js +105 -14
- package/dist/stories/components/Table/Table.js +2 -2
- package/dist/stories/components/Table/Table.style.js +78 -9
- package/dist/stories/components/TextField/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +47 -32
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +52 -14
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +51 -13
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +6 -4
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +88 -23
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/CommonFunctions.js +13 -8
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
|
@@ -5,12 +5,47 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TopToggleListMainContainer = exports.Title = exports.ListItem = exports.ListContainer = exports.Item = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const scrollableStyles = `
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
width: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-track {
|
|
17
|
+
background: #E8E8E8;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar-thumb {
|
|
22
|
+
background: #D0D0D0;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const TopToggleListMainContainer = exports.TopToggleListMainContainer = _styledComponents.default.div`
|
|
27
|
+
font-family: "Lato", sans-serif;
|
|
28
|
+
color: #212121;
|
|
29
|
+
padding: 0 24px;
|
|
30
|
+
width: ${props => props.width};
|
|
31
|
+
`;
|
|
32
|
+
const Title = exports.Title = _styledComponents.default.h4`
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
margin: 20px 0 12px;
|
|
36
|
+
`;
|
|
37
|
+
const ListContainer = exports.ListContainer = _styledComponents.default.ul`
|
|
38
|
+
height: ${props => props.height};
|
|
39
|
+
padding: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
list-style-type: none;
|
|
42
|
+
${scrollableStyles}
|
|
43
|
+
`;
|
|
44
|
+
const ListItem = exports.ListItem = _styledComponents.default.li`
|
|
45
|
+
padding: 20px 0;
|
|
46
|
+
border-bottom: 1px solid #F3F4F6;
|
|
47
|
+
`;
|
|
48
|
+
const Item = exports.Item = _styledComponents.default.span`
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
`;
|
|
@@ -5,17 +5,77 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TitleAndValueContainer = exports.Title = exports.NoDataFoundContainer = exports.FormattedValueNoData = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainerParent = exports.BenchmarkContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
11
9
|
const MIN_HEIGHT = 300;
|
|
12
10
|
const MIN_WIDTH = 260;
|
|
13
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
position: relative;
|
|
14
|
+
font-family: "Poppins", sans-serif;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
color: ${props => props.textcolor};
|
|
17
|
+
width: ${props => props.width};
|
|
18
|
+
height: ${props => props.height};
|
|
19
|
+
border-radius: 12px;
|
|
20
|
+
align-content: center;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
place-content: space-between;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
background: #ffffff;
|
|
26
|
+
`;
|
|
27
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
28
|
+
border-radius: 12px;
|
|
29
|
+
background: #ffffff;
|
|
30
|
+
margin-bottom: 2rem;
|
|
31
|
+
padding: 0px 0.8rem;
|
|
32
|
+
`;
|
|
33
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
34
|
+
width: 100%;
|
|
35
|
+
`;
|
|
36
|
+
const Title = exports.Title = _styledComponents.default.div`
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
@media (max-width: 1366px) {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
}
|
|
42
|
+
@media (max-width: 1536px) {
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
47
|
+
/* width: 100%; */
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
font-size: 40px;
|
|
50
|
+
@media (max-width: 1366px) {
|
|
51
|
+
font-size: 20px;
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: 1536px) {
|
|
54
|
+
font-size: 24px;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const FormattedValueNoData = exports.FormattedValueNoData = _styledComponents.default.div`
|
|
58
|
+
width: 100%;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
`;
|
|
62
|
+
const BenchmarkContainerParent = exports.BenchmarkContainerParent = _styledComponents.default.div`
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: baseline;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
margin: 0;
|
|
68
|
+
`;
|
|
69
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
70
|
+
width: 100%;
|
|
71
|
+
margin-top: 0;
|
|
72
|
+
margin-left: 1rem;
|
|
73
|
+
height: 0.9rem;
|
|
74
|
+
`;
|
|
75
|
+
const NoDataFoundContainer = exports.NoDataFoundContainer = _styledComponents.default.div`
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
align-items: center;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
`;
|
|
@@ -90,7 +90,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
90
90
|
payload
|
|
91
91
|
} = item;
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
93
|
-
transform:
|
|
93
|
+
transform: `translate(${x},${y})`
|
|
94
94
|
}, activeLabel === payload.value && /*#__PURE__*/_react.default.createElement("rect", {
|
|
95
95
|
x: -15,
|
|
96
96
|
y: 0,
|
|
@@ -115,7 +115,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
115
115
|
} = _ref;
|
|
116
116
|
if (active && payload && payload.length) {
|
|
117
117
|
setActiveLabel(label);
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipTitle, null,
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipTitle, null, `${label}`), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, `${value1Title} ${(0, _CommonFunctions.getFormattedValue)(payload[0].value)}${(0, _CommonFunctions.getFormattedUnits)(payload[0].value)}`), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, `${value2Title} ${(0, _CommonFunctions.getFormattedValue)(payload[1].value)}${(0, _CommonFunctions.getFormattedUnits)(payload[1].value)}`));
|
|
119
119
|
}
|
|
120
120
|
return null;
|
|
121
121
|
};
|
|
@@ -169,7 +169,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
169
169
|
id: "ValueAndBenchmarkContainer"
|
|
170
170
|
}, value !== undefined && value != null ? getArrowSign(arrowSign) : '', /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValue, {
|
|
171
171
|
id: "FormattedValue"
|
|
172
|
-
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null,
|
|
172
|
+
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null, `${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, {
|
|
173
173
|
id: "BenchmarkContainer"
|
|
174
174
|
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
175
175
|
id: "Benchmark",
|
|
@@ -5,26 +5,167 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.EventWeeksLegendTitle = exports.EventWeeksLegendMainContainer = exports.EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElement = exports.EventWeeksLegendContainer = exports.EventWeeksLegendColorRectangle = exports.DetailsRowArrowContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.AreaChartContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
color: ${props => props.textColor};
|
|
13
|
+
width: ${props => props.width};
|
|
14
|
+
height: ${props => props.height};
|
|
15
|
+
border-radius: 12px;
|
|
16
|
+
min-width: 250px;
|
|
17
|
+
`;
|
|
18
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
19
|
+
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
/* justify-content: space-between; */
|
|
24
|
+
background: #ffffff;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
flex-basis: 100%;
|
|
27
|
+
`;
|
|
28
|
+
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div`
|
|
29
|
+
margin-top: auto;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 50%;
|
|
32
|
+
`;
|
|
33
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
34
|
+
border-radius: 5px;
|
|
35
|
+
background: #ffffff;
|
|
36
|
+
border-radius: 5px;
|
|
37
|
+
padding: 8px 12px;
|
|
38
|
+
display: grid;
|
|
39
|
+
`;
|
|
40
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
41
|
+
color: #212121;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
line-height: normal;
|
|
45
|
+
width: fit-content;
|
|
46
|
+
`;
|
|
47
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
48
|
+
color: #212121;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
line-height: normal;
|
|
52
|
+
`;
|
|
53
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
54
|
+
padding: 0 1rem;
|
|
55
|
+
`;
|
|
56
|
+
const Title = exports.Title = _styledComponents.default.div`
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
font-size: 1rem;
|
|
59
|
+
@media (max-width: 1366px) {
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
}
|
|
62
|
+
@media (max-width: 1536px) {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div`
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
`;
|
|
70
|
+
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div`
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: flex-end;
|
|
73
|
+
width: 22px;
|
|
74
|
+
margin-right: 5px;
|
|
75
|
+
@media (max-width: 1366px) {
|
|
76
|
+
width: 12px;
|
|
77
|
+
}
|
|
78
|
+
@media (max-width: 1536px) {
|
|
79
|
+
width: 14px;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
font-size: 40px;
|
|
85
|
+
@media (max-width: 1366px) {
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 1536px) {
|
|
89
|
+
font-size: 24px;
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.span`
|
|
93
|
+
font-size: 16px;
|
|
94
|
+
@media (max-width: 1366px) {
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
}
|
|
97
|
+
@media (max-width: 1536px) {
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div`
|
|
102
|
+
margin-left: 0.3rem;
|
|
103
|
+
font-weight: 700;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
margin: 0;
|
|
106
|
+
`;
|
|
107
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
margin-left: 1.5rem;
|
|
110
|
+
`;
|
|
111
|
+
const EventWeeksLegendMainContainer = exports.EventWeeksLegendMainContainer = _styledComponents.default.div`
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
margin-top: 2px;
|
|
116
|
+
align-items: center;
|
|
117
|
+
`;
|
|
118
|
+
const EventWeeksLegendContainer = exports.EventWeeksLegendContainer = _styledComponents.default.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
flex-direction: row;
|
|
122
|
+
margin-top: 2px;
|
|
123
|
+
align-items: center;
|
|
124
|
+
`;
|
|
125
|
+
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4`
|
|
126
|
+
font-weight: 400;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
line-height: 14px;
|
|
129
|
+
margin: 0 0 0 5px;
|
|
130
|
+
@media (max-width: 1536px) {
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
}
|
|
133
|
+
@media (max-width: 1366px) {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div`
|
|
138
|
+
width: 0.4rem;
|
|
139
|
+
min-width: 0.4rem;
|
|
140
|
+
height: 0.4rem;
|
|
141
|
+
border-radius: 2px;
|
|
142
|
+
background: ${props => props.color};
|
|
143
|
+
`;
|
|
144
|
+
const EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElementsContainer = _styledComponents.default.div`
|
|
145
|
+
display: flex;
|
|
146
|
+
margin: 0px;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-around;
|
|
149
|
+
width: 90%;
|
|
150
|
+
`;
|
|
151
|
+
const EventWeeksLegendDataElement = exports.EventWeeksLegendDataElement = _styledComponents.default.h4`
|
|
152
|
+
display: flex;
|
|
153
|
+
font-weight: 400;
|
|
154
|
+
font-size: 10px;
|
|
155
|
+
line-height: 11px;
|
|
156
|
+
margin: 0px;
|
|
157
|
+
width: 100%;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
align-content: center;
|
|
160
|
+
border-top-left-radius: ${props => props.borderLeftRadius};
|
|
161
|
+
border-bottom-left-radius: ${props => props.borderLeftRadius};
|
|
162
|
+
border-top-right-radius: ${props => props.borderRightRadius};
|
|
163
|
+
border-bottom-right-radius: ${props => props.borderRightRadius};
|
|
164
|
+
background: ${props => props.color};
|
|
165
|
+
@media (max-width: 1536px) {
|
|
166
|
+
font-size: 9px;
|
|
167
|
+
}
|
|
168
|
+
@media (max-width: 1366px) {
|
|
169
|
+
font-size: 8px;
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
@@ -5,20 +5,104 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ValueAndBenchmarkContainer = exports.Title = exports.FormattedValue = exports.DetailsTitle = exports.DetailsRowTitle = exports.DetailsRowPercentSign = exports.DetailsRowFormattedValueNoDataMessage = exports.DetailsRowFormattedValue = exports.DetailsRowContainer = exports.DetailsRowArrowContainer = exports.DetailsContainer = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: "Poppins", sans-serif;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
color: ${props => props.textColor};
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
align-content: center;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
`;
|
|
23
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
width: 90%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
background: #ffffff;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex-basis: 100%;
|
|
31
|
+
//align-items: center;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
padding: 0px 0.8rem;
|
|
35
|
+
|
|
36
|
+
`;
|
|
37
|
+
const Title = exports.Title = _styledComponents.default.div`
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
@media (max-width: 1536px) {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
}
|
|
43
|
+
@media (max-width: 1366px) {
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div`
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
align-items: baseline;
|
|
52
|
+
height: 45%;
|
|
53
|
+
`;
|
|
54
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
55
|
+
margin-left: 0.1rem;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
font-size: 40px;
|
|
58
|
+
@media (max-width: 1536px) {
|
|
59
|
+
font-size: 24px;
|
|
60
|
+
}
|
|
61
|
+
@media (max-width: 1366px) {
|
|
62
|
+
font-size: 20px;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
66
|
+
display: flex;
|
|
67
|
+
margin-left: 0.77778rem;
|
|
68
|
+
width: 5.35rem;
|
|
69
|
+
`;
|
|
70
|
+
const DetailsContainer = exports.DetailsContainer = _styledComponents.default.div`
|
|
71
|
+
height: 50%;
|
|
72
|
+
`;
|
|
73
|
+
const DetailsTitle = exports.DetailsTitle = _styledComponents.default.h5`
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
font-size: 1rem;
|
|
76
|
+
margin-top: 0;
|
|
77
|
+
margin-bottom: 12px;
|
|
78
|
+
@media (max-width: 1536px) {
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
}
|
|
81
|
+
@media (max-width: 1366px) {
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
const DetailsRowContainer = exports.DetailsRowContainer = _styledComponents.default.div`
|
|
86
|
+
display: flex;
|
|
87
|
+
text-align: center;
|
|
88
|
+
align-items: baseline;
|
|
89
|
+
gap: 4px;
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
`;
|
|
93
|
+
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: flex-end;
|
|
96
|
+
`;
|
|
97
|
+
const DetailsRowFormattedValue = exports.DetailsRowFormattedValue = _styledComponents.default.span`
|
|
98
|
+
font-weight: 700;
|
|
99
|
+
`;
|
|
100
|
+
const DetailsRowFormattedValueNoDataMessage = exports.DetailsRowFormattedValueNoDataMessage = _styledComponents.default.span`
|
|
101
|
+
margin: 0;
|
|
102
|
+
`;
|
|
103
|
+
const DetailsRowPercentSign = exports.DetailsRowPercentSign = _styledComponents.default.span`
|
|
104
|
+
font-size: 12px;
|
|
105
|
+
`;
|
|
106
|
+
const DetailsRowTitle = exports.DetailsRowTitle = _styledComponents.default.span`
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
`;
|
|
@@ -5,16 +5,73 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ValueAndBenchmarkContainer = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.BarchartContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: "Poppins", sans-serif;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
color: ${props => props.textColor};
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
align-content: center;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background: #ffffff;
|
|
23
|
+
`;
|
|
24
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
border-radius: 12px;
|
|
27
|
+
background: #ffffff;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex-basis: 100%;
|
|
31
|
+
`;
|
|
32
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
33
|
+
margin: 0px;
|
|
34
|
+
`;
|
|
35
|
+
const Title = exports.Title = _styledComponents.default.div`
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
@media (max-width: 1366px) {
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
}
|
|
41
|
+
@media (max-width: 1536px) {
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
align-items: baseline;
|
|
49
|
+
|
|
50
|
+
`;
|
|
51
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.div`
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
font-size: 1rem;
|
|
54
|
+
`;
|
|
55
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
56
|
+
margin-left: 0.1rem;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
font-size: 40px;
|
|
59
|
+
@media (max-width: 1366px) {
|
|
60
|
+
font-size: 20px;
|
|
61
|
+
}
|
|
62
|
+
@media (max-width: 1536px) {
|
|
63
|
+
font-size: 24px;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div`
|
|
67
|
+
margin-left: 0.3rem;
|
|
68
|
+
font-weight: 700;
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
margin: 0;
|
|
71
|
+
`;
|
|
72
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
73
|
+
margin-left: 0.7em;
|
|
74
|
+
width: 5.35em;
|
|
75
|
+
`;
|
|
76
|
+
const BarchartContainer = exports.BarchartContainer = _styledComponents.default.div`
|
|
77
|
+
`;
|
|
@@ -87,7 +87,7 @@ const TotalDoughnutChart = props => {
|
|
|
87
87
|
style: {
|
|
88
88
|
fontWeight: itemsBoldedValues ? '700' : '400'
|
|
89
89
|
}
|
|
90
|
-
}, ' (',
|
|
90
|
+
}, ' (', `${Math.round(row.value / value * 100)}%)`), isPercent && row.value && `${row.value.toFixed(1)}%`);
|
|
91
91
|
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.ControlsContainer, {
|
|
92
92
|
className: className,
|
|
93
93
|
height: height,
|
|
@@ -126,7 +126,7 @@ const TotalDoughnutChart = props => {
|
|
|
126
126
|
outerRadius: DoughnutChartRadius - 4,
|
|
127
127
|
innerRadius: DoughnutChartRadius - DoughnutChartRadius / 3
|
|
128
128
|
}, legendData.map(row => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
|
|
129
|
-
key:
|
|
129
|
+
key: `cell-${row.name}`,
|
|
130
130
|
fill: row.color
|
|
131
131
|
}))), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
132
132
|
content: /*#__PURE__*/_react.default.createElement(CustomTooltip, {
|
|
@@ -175,7 +175,7 @@ function CustomTooltip(_ref) {
|
|
|
175
175
|
} = _ref;
|
|
176
176
|
if (active && payload && payload.length) {
|
|
177
177
|
const percent = value && value !== 0 && !isPercent ? (payload[0].value / value * 100).toFixed(1) : value && isPercent ? payload[0].value.toFixed(1) : 0;
|
|
178
|
-
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipLabel, null,
|
|
178
|
+
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipLabel, null, `${payload[0].name} ${percent}%`));
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
CustomTooltip.defaultProps = {
|