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,22 +5,128 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.PeriodColumnTitle = exports.PanelContainer = exports.MainTitleContainer = exports.MainTitle = exports.MainContainer = exports.ColumnTitleContainer = exports.ColumnTitleAndButtonsContainer = exports.ColumnTitle = exports.ColumnLineSeporatorContainer = exports.ColumnLineSeporator = exports.ColumnContainer = exports.CheckBoxPeriodContainer = exports.CheckBoxContainer = exports.ButtonsContainer = exports.ButtonContainer = exports.AllColumnsContainer = 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
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
position: relative;
|
|
13
|
+
font-family: "Poppins", sans-serif;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
border-radius: 12px;
|
|
17
|
+
width: ${props => props.width};
|
|
18
|
+
height: ${props => props.height};
|
|
19
|
+
`;
|
|
20
|
+
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
align-content: center;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-around;
|
|
26
|
+
border-radius: 12px;
|
|
27
|
+
background: #ffffff;
|
|
28
|
+
padding: 1rem 1rem 0.3rem 1rem;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
line-height: 19px;
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
width: 100%;
|
|
35
|
+
`;
|
|
36
|
+
const MainTitleContainer = exports.MainTitleContainer = _styledComponents.default.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
align-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
width: 100%;
|
|
42
|
+
`;
|
|
43
|
+
const MainTitle = exports.MainTitle = _styledComponents.default.h4`
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
font-size: 18px;
|
|
46
|
+
margin: 5px;
|
|
47
|
+
@media (max-width: 1536px) {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
}
|
|
50
|
+
@media (max-width: 1366px) {
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
const ColumnTitle = exports.ColumnTitle = _styledComponents.default.h4`
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
margin: 5px;
|
|
58
|
+
@media (max-width: 1536px) {
|
|
59
|
+
font-size: 11px;
|
|
60
|
+
}
|
|
61
|
+
@media (max-width: 1366px) {
|
|
62
|
+
font-size: 10px;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const PeriodColumnTitle = exports.PeriodColumnTitle = _styledComponents.default.h4`
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
margin: 50px 5px 5px 5px;
|
|
69
|
+
@media (max-width: 1536px) {
|
|
70
|
+
font-size: 11px;
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 1366px) {
|
|
73
|
+
font-size: 10px;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
const CheckBoxContainer = exports.CheckBoxContainer = _styledComponents.default.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
gap: 20px;
|
|
79
|
+
`;
|
|
80
|
+
const AllColumnsContainer = exports.AllColumnsContainer = _styledComponents.default.div`
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
width: 100%;
|
|
85
|
+
`;
|
|
86
|
+
const ColumnTitleAndButtonsContainer = exports.ColumnTitleAndButtonsContainer = _styledComponents.default.div`
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
justify-content: flex-start;
|
|
90
|
+
padding: 10px 0 0 0;
|
|
91
|
+
height: 100%;
|
|
92
|
+
`;
|
|
93
|
+
const ColumnContainer = exports.ColumnContainer = _styledComponents.default.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
`;
|
|
97
|
+
const ColumnLineSeporatorContainer = exports.ColumnLineSeporatorContainer = _styledComponents.default.div`
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
background-color: #b1b1b1;
|
|
101
|
+
align-items: center;
|
|
102
|
+
height: 90%;
|
|
103
|
+
margin: 15px 0;
|
|
104
|
+
`;
|
|
105
|
+
const ColumnLineSeporator = exports.ColumnLineSeporator = _styledComponents.default.div`
|
|
106
|
+
width: 0.5px;
|
|
107
|
+
`;
|
|
108
|
+
const ColumnTitleContainer = exports.ColumnTitleContainer = _styledComponents.default.div`
|
|
109
|
+
display: flex;
|
|
110
|
+
align-content: center;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
`;
|
|
114
|
+
const ButtonsContainer = exports.ButtonsContainer = _styledComponents.default.div`
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
white-space: nowrap;
|
|
118
|
+
padding-bottom: ${props => props.paddingBottom};
|
|
119
|
+
`;
|
|
120
|
+
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div`
|
|
121
|
+
display: flex;
|
|
122
|
+
padding: 4px;
|
|
123
|
+
gap: 10px;
|
|
124
|
+
&.marginBottom {
|
|
125
|
+
margin-bottom: ${props => props.marginBottom};
|
|
126
|
+
}
|
|
127
|
+
`;
|
|
128
|
+
const CheckBoxPeriodContainer = exports.CheckBoxPeriodContainer = _styledComponents.default.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
//gap: 20px;
|
|
131
|
+
margin: 5px;
|
|
132
|
+
`;
|
|
@@ -5,10 +5,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.LinkButtonItem = exports.LinkButtonContainer = exports.Label = exports.IconWrapper = 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
|
-
|
|
9
|
+
const LinkButtonContainer = exports.LinkButtonContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-content: center;
|
|
14
|
+
width: ${props => props.width};
|
|
15
|
+
height: ${props => props.height};
|
|
16
|
+
`;
|
|
17
|
+
const LinkButtonItem = exports.LinkButtonItem = _styledComponents.default.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-content: center;
|
|
22
|
+
flex-wrap: nowrap;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
width: ${props => props.width};
|
|
25
|
+
height: ${props => props.height};
|
|
26
|
+
color: ${props => props.disabled ? '#B1B1B1' : props.text_color};
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
padding: 0 4px;
|
|
30
|
+
font-size: ${props => props.font_size};
|
|
31
|
+
font-family: 'Poppins';
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
&:hover {
|
|
35
|
+
color: ${props => props.disabled ? '#B1B1B1' : props.text_color};
|
|
36
|
+
text-decoration: ${props => props.disabled ? '' : 'underline'};
|
|
37
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
38
|
+
}
|
|
39
|
+
&.LinkButtonItem-clicked {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: background-color 0.3s, color 0.3s;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
45
|
+
user-select: none;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
`;
|
|
48
|
+
const IconWrapper = exports.IconWrapper = _styledComponents.default.div`
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-content: center;
|
|
53
|
+
`;
|
|
@@ -8,6 +8,8 @@ exports.default = exports.LinnerDataBox = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _LinnerDataBox = require("./LinnerDataBox.style");
|
|
10
10
|
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
11
|
+
/* eslint-disable no-restricted-globals */
|
|
12
|
+
|
|
11
13
|
const LinnerDataBox = props => {
|
|
12
14
|
const {
|
|
13
15
|
width,
|
|
@@ -22,8 +24,8 @@ const LinnerDataBox = props => {
|
|
|
22
24
|
width: width || '100%',
|
|
23
25
|
height: height || '200px'
|
|
24
26
|
}, data.map((item, index) => /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxWrap, {
|
|
25
|
-
width:
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBox, null, item.title && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxTitle, null, item.title), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContent, null, item.value !== null && item.value !== undefined ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.sign && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentSign, null, item.sign), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentValue, null, ''.concat((0, _CommonFunctions.getFormattedValue)(item.value), (0, _CommonFunctions.getFormattedUnits)(item.value)))) : /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentNoValue, null, "No Data")), item.extraInfo.map(extraInfoItem => /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCell, null, extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellValue, null, ''.concat('$', (0, _CommonFunctions.getFormattedValue)(extraInfoItem.value), (0, _CommonFunctions.getFormattedUnits)(extraInfoItem.value))), extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellTitle, null, extraInfoItem.title)))), index < data.length - 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
width: `${100 / data.length}%`
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBox, null, item.title && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxTitle, null, item.title), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContent, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== 'null' && item.value !== 'undefined' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.sign && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentSign, null, item.sign), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentValue, null, ''.concat((0, _CommonFunctions.getFormattedValue)(item.value), (0, _CommonFunctions.getFormattedUnits)(item.value)))) : /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentNoValue, null, "No Data")), item.extraInfo.map(extraInfoItem => /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCell, null, extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellValue, null, ''.concat('$', (0, _CommonFunctions.getFormattedValue)(extraInfoItem.value), (0, _CommonFunctions.getFormattedUnits)(extraInfoItem.value))), extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellTitle, null, extraInfoItem.title)))), index < data.length - 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
27
29
|
className: "vertival-line",
|
|
28
30
|
style: {
|
|
29
31
|
width: '1px',
|
|
@@ -25,12 +25,12 @@ const data = [{
|
|
|
25
25
|
extraInfo: []
|
|
26
26
|
}, {
|
|
27
27
|
title: 'Incremental Sales',
|
|
28
|
-
value:
|
|
28
|
+
value: undefined,
|
|
29
29
|
sign: '$',
|
|
30
30
|
extraInfo: []
|
|
31
31
|
}, {
|
|
32
32
|
title: 'Actual Sales ROI',
|
|
33
|
-
value:
|
|
33
|
+
value: undefined,
|
|
34
34
|
sign: 'x',
|
|
35
35
|
extraInfo: []
|
|
36
36
|
}, {
|
|
@@ -44,13 +44,35 @@ const data = [{
|
|
|
44
44
|
var _default = exports.default = {
|
|
45
45
|
title: 'SAG BI/LinnerDataBox',
|
|
46
46
|
component: _LinnerDataBox.LinnerDataBox,
|
|
47
|
-
tags: ['autodocs']
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
tags: ['autodocs'],
|
|
48
|
+
argTypes: {
|
|
49
|
+
width: {
|
|
50
|
+
name: 'Width',
|
|
51
|
+
control: {
|
|
52
|
+
type: 'text'
|
|
53
|
+
},
|
|
54
|
+
description: 'width of the control (in px / %)'
|
|
55
|
+
},
|
|
56
|
+
height: {
|
|
57
|
+
name: 'Height',
|
|
58
|
+
control: {
|
|
59
|
+
type: 'text'
|
|
60
|
+
},
|
|
61
|
+
description: 'height of the control (in px / %)'
|
|
62
|
+
},
|
|
63
|
+
backgroundColor: {
|
|
64
|
+
name: 'Background Color',
|
|
65
|
+
control: {
|
|
66
|
+
type: 'color'
|
|
67
|
+
},
|
|
68
|
+
description: 'Background color of the control'
|
|
69
|
+
}
|
|
55
70
|
}
|
|
71
|
+
};
|
|
72
|
+
const LinnerDataBoxDefault = exports.LinnerDataBoxDefault = Template.bind({});
|
|
73
|
+
LinnerDataBoxDefault.args = {
|
|
74
|
+
data,
|
|
75
|
+
width: '100%',
|
|
76
|
+
height: 'auto',
|
|
77
|
+
backgroundColor: 'white'
|
|
56
78
|
};
|
|
@@ -5,18 +5,64 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.LinnerContainer = exports.DataBoxWrap = exports.DataBoxTitle = exports.DataBoxExtraInfoCellValue = exports.DataBoxExtraInfoCellTitle = exports.DataBoxExtraInfoCell = exports.DataBoxExtraInfo = exports.DataBoxContentValue = exports.DataBoxContentSign = exports.DataBoxContentNoValue = exports.DataBoxContent = exports.DataBox = 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
|
-
|
|
9
|
+
const LinnerContainer = exports.LinnerContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
width: ${props => props.width};
|
|
14
|
+
height: ${props => props.height};
|
|
15
|
+
background-color: ${props => props.backgroundColor};
|
|
16
|
+
padding: 50px 40px 30px;
|
|
17
|
+
`;
|
|
18
|
+
const DataBoxWrap = exports.DataBoxWrap = _styledComponents.default.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
gap: 10px;
|
|
21
|
+
justify-content: space-around;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
width: ${props => props.width};
|
|
24
|
+
height: 100%;
|
|
25
|
+
`;
|
|
26
|
+
const DataBox = exports.DataBox = _styledComponents.default.div`
|
|
27
|
+
color: #212121;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
`;
|
|
30
|
+
const DataBoxTitle = exports.DataBoxTitle = _styledComponents.default.span`
|
|
31
|
+
font-size: 18px;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
`;
|
|
34
|
+
const DataBoxContent = exports.DataBoxContent = _styledComponents.default.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: baseline;
|
|
37
|
+
`;
|
|
38
|
+
const DataBoxContentSign = exports.DataBoxContentSign = _styledComponents.default.span`
|
|
39
|
+
font-size: 18px;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
`;
|
|
42
|
+
const DataBoxContentValue = exports.DataBoxContentValue = _styledComponents.default.span`
|
|
43
|
+
font-size: 40px;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
`;
|
|
46
|
+
const DataBoxContentNoValue = exports.DataBoxContentNoValue = _styledComponents.default.span`
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
margin: 20px auto 0;
|
|
50
|
+
`;
|
|
51
|
+
const DataBoxExtraInfo = exports.DataBoxExtraInfo = _styledComponents.default.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
`;
|
|
55
|
+
const DataBoxExtraInfoCell = exports.DataBoxExtraInfoCell = _styledComponents.default.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: 5px;
|
|
58
|
+
`;
|
|
59
|
+
const DataBoxExtraInfoCellTitle = exports.DataBoxExtraInfoCellTitle = _styledComponents.default.div`
|
|
60
|
+
color: #999;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
`;
|
|
64
|
+
const DataBoxExtraInfoCellValue = exports.DataBoxExtraInfoCellValue = _styledComponents.default.div`
|
|
65
|
+
color: #999;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
text-transform: uppercase;
|
|
68
|
+
`;
|
|
@@ -5,10 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.PanelContainer = exports.MainContainer = exports.ButtonsContainer = exports.ButtonContainer = 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
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: "Poppins", sans-serif;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
border-radius: 12px;
|
|
16
|
+
width: ${props => props.width};
|
|
17
|
+
height: ${props => props.height};
|
|
18
|
+
`;
|
|
19
|
+
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
align-content: center;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
border: 1px solid ${props => props.borderColor};
|
|
26
|
+
border-radius: 12px;
|
|
27
|
+
background: #ffffff;
|
|
28
|
+
padding: 0.1rem;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
line-height: 19px;
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
width: 100%;
|
|
35
|
+
`;
|
|
36
|
+
const ButtonsContainer = exports.ButtonsContainer = _styledComponents.default.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
//flex-wrap: wrap;
|
|
40
|
+
width: 100%;
|
|
41
|
+
padding-bottom: ${props => props.paddingBottom};
|
|
42
|
+
`;
|
|
43
|
+
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div`
|
|
44
|
+
/* display: flex; */
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 6px;
|
|
48
|
+
`;
|
|
@@ -9,8 +9,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _MarketShareDescription = require("./MarketShareDescription");
|
|
10
10
|
// --------------------------------- market share ----------------------------------------------
|
|
11
11
|
|
|
12
|
-
const marketShareInfoText1 =
|
|
13
|
-
|
|
12
|
+
const marketShareInfoText1 = `
|
|
13
|
+
<strong>Pringles Harvest Blend </strong>
|
|
14
|
+
<p1>market share </p1>
|
|
15
|
+
<strong>increased by 98% </strong>
|
|
16
|
+
<p1>following the event</p1>
|
|
17
|
+
`;
|
|
18
|
+
const marketShareInfoText2 = `
|
|
19
|
+
<strong>Pringles </strong>
|
|
20
|
+
<p1>market share </p1>
|
|
21
|
+
<strong>increased by 8% </strong>
|
|
22
|
+
<p1>following the event</p1>
|
|
23
|
+
`;
|
|
14
24
|
const marketShareDataColumn1 = [{
|
|
15
25
|
label: 'Pre-event',
|
|
16
26
|
value: 1.2,
|
|
@@ -60,7 +70,11 @@ const marketShareData1 = [{
|
|
|
60
70
|
// --------------------------------- weekly tiers ----------------------------------------------
|
|
61
71
|
|
|
62
72
|
// The event drove 320% new Pringles Harvest Brand Crisp triers
|
|
63
|
-
const weeklyTiersInfoText1 =
|
|
73
|
+
const weeklyTiersInfoText1 = `
|
|
74
|
+
<p1>The event drove </p1>
|
|
75
|
+
<strong>320% </strong>
|
|
76
|
+
<p1>new Pringles Harvest Brand Crisp triers</p1>
|
|
77
|
+
`;
|
|
64
78
|
const weeklyTiersInfoText2 = '';
|
|
65
79
|
const weeklyTiersDataColumn1 = [{
|
|
66
80
|
label: 'Pre-event',
|