sag_components 1.0.880 → 1.0.882
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/stories/components/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile.style.js +40 -6
- package/dist/stories/components/AutocompleteField.style.js +47 -7
- package/dist/stories/components/BannerEventBox.style.js +66 -14
- package/dist/stories/components/BannerEventBoxList.js +2 -1
- package/dist/stories/components/BannerEventBoxList.style.js +174 -15
- package/dist/stories/components/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart.js +2 -2
- package/dist/stories/components/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows.js +2 -2
- package/dist/stories/components/BarChartTwoRows.style.js +53 -10
- package/dist/stories/components/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark.style.js +53 -7
- package/dist/stories/components/Button.js +1 -1
- package/dist/stories/components/Button.style.js +82 -7
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/CampaignTool/Card.style.js +58 -10
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +6 -3
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +14 -4
- package/dist/stories/components/CampaignTool/Popup.style.js +114 -16
- package/dist/stories/components/CampaignTool/PopupContent.style.js +64 -11
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +79 -9
- package/dist/stories/components/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +9 -3
- package/dist/stories/components/DropdownMultiNew.js +1 -1
- package/dist/stories/components/DropdownMultiNew.style.js +193 -16
- package/dist/stories/components/DropdownNew.style.js +14 -3
- package/dist/stories/components/DropdownSingleNew.style.js +162 -14
- package/dist/stories/components/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel.js +17 -17
- package/dist/stories/components/FilterPanel.style.js +81 -13
- package/dist/stories/components/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton.style.js +56 -7
- package/dist/stories/components/Input.style.js +123 -9
- package/dist/stories/components/InputOld.style.js +62 -8
- package/dist/stories/components/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox.js +3 -2
- package/dist/stories/components/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal.style.js +56 -8
- package/dist/stories/components/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker.style.js +96 -10
- package/dist/stories/components/MonthPopupPicker.js +92 -13
- package/dist/stories/components/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +17 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/PopupCharts.style.js +100 -15
- package/dist/stories/components/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker.style.js +95 -10
- package/dist/stories/components/QuarterPopupPicker.js +86 -12
- package/dist/stories/components/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/RangeDatePicker.js +96 -12
- package/dist/stories/components/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker.style.js +100 -10
- package/dist/stories/components/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select.style.js +93 -9
- package/dist/stories/components/SingleBarLineCharts.js +254 -0
- package/dist/stories/components/SingleBarLineCharts.style.js +110 -0
- package/dist/stories/components/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu.style.js +105 -14
- package/dist/stories/components/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts.js +2 -2
- package/dist/stories/components/TotalHorizontalCharts.style.js +113 -12
- package/dist/stories/components/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts.js +2 -2
- package/dist/stories/components/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/IconsHandler.style.js +8 -3
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ const AttachedFile = props => {
|
|
|
32
32
|
onRemoveFile(fileToRemove);
|
|
33
33
|
};
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(_AttachedFile.AttachedFileContainer, null, selectedFiles.map(file => /*#__PURE__*/_react.default.createElement(_AttachedFile.UploadedFile, {
|
|
35
|
-
key:
|
|
35
|
+
key: `${file.name}_${file.lastModified}`
|
|
36
36
|
}, /*#__PURE__*/_react.default.createElement(_FileIcon.default, null), /*#__PURE__*/_react.default.createElement("span", null, file.name), /*#__PURE__*/_react.default.createElement(_AttachedFile.RemoveButton, {
|
|
37
37
|
onClick: () => handleRemoveFile(file)
|
|
38
38
|
}, /*#__PURE__*/_react.default.createElement(_CloseIcon.default, null)))), /*#__PURE__*/_react.default.createElement(_AttachedFile.InputLabel, {
|
|
@@ -5,10 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.UploadedFile = exports.RemoveButton = exports.InputLabel = exports.AttachedFileContainer = 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 AttachedFileContainer = exports.AttachedFileContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: 'Poppins';
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
`;
|
|
14
|
+
const InputLabel = exports.InputLabel = _styledComponents.default.label`
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
> span {
|
|
20
|
+
color: ${props => props.inputColor};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const UploadedFile = exports.UploadedFile = _styledComponents.default.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
align-items: center;
|
|
27
|
+
color: #A4A4A4;
|
|
28
|
+
max-width: 220px;
|
|
29
|
+
padding: 2px 8px;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
> span {
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
> svg {
|
|
37
|
+
min-width: 12px;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const RemoveButton = exports.RemoveButton = _styledComponents.default.button`
|
|
41
|
+
border: none;
|
|
42
|
+
background: none;
|
|
43
|
+
padding: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
`;
|
|
@@ -5,11 +5,51 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.AutocompleteOptions = exports.AutocompleteOption = exports.AutocompleteLabel = exports.AutocompleteInput = exports.AutocompleteContainer = 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
|
-
const
|
|
9
|
+
const AutocompleteContainer = exports.AutocompleteContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
position: relative;
|
|
12
|
+
margin: 20px;
|
|
13
|
+
`;
|
|
14
|
+
const AutocompleteInput = exports.AutocompleteInput = _styledComponents.default.input`
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
border: 1px solid #ccc;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
|
|
21
|
+
&:focus + label {
|
|
22
|
+
top: -10px;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: #007bff;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const AutocompleteLabel = exports.AutocompleteLabel = _styledComponents.default.label`
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 12px;
|
|
30
|
+
left: 10px;
|
|
31
|
+
transition: .2s ease;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
color: #555;
|
|
35
|
+
background-color: white;
|
|
36
|
+
`;
|
|
37
|
+
const AutocompleteOptions = exports.AutocompleteOptions = _styledComponents.default.div`
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
max-height: 150px;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
border: 1px solid #ccc;
|
|
43
|
+
border-top: none;
|
|
44
|
+
border-bottom-left-radius: 4px;
|
|
45
|
+
border-bottom-right-radius: 4px;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
`;
|
|
49
|
+
const AutocompleteOption = exports.AutocompleteOption = _styledComponents.default.div`
|
|
50
|
+
padding: 10px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: #f0f0f0;
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
@@ -5,18 +5,70 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TitleWrapper = exports.Text = exports.Seperator = exports.MoreInfo = exports.MainContainer = exports.KeyBlock = exports.Key = exports.Headline = exports.DetailsWrapper = exports.Count = exports.CardTitle = exports.Block = 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
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
width: ${props => props.width};
|
|
11
|
+
height: ${props => props.height};
|
|
12
|
+
font-family: 'Poppins', sans-serif;
|
|
13
|
+
color: #212121;
|
|
14
|
+
background-color: white;
|
|
15
|
+
padding: 20px;
|
|
16
|
+
border-radius: 12px;
|
|
17
|
+
border: 1px solid #D0D0D0;
|
|
18
|
+
`;
|
|
19
|
+
const TitleWrapper = exports.TitleWrapper = _styledComponents.default.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
`;
|
|
25
|
+
const CardTitle = exports.CardTitle = _styledComponents.default.h5`
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
margin: 0;
|
|
29
|
+
`;
|
|
30
|
+
const Headline = exports.Headline = _styledComponents.default.h6`
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
margin: 0;
|
|
34
|
+
`;
|
|
35
|
+
const Block = exports.Block = _styledComponents.default.div`
|
|
36
|
+
margin-bottom: 12px;
|
|
37
|
+
`;
|
|
38
|
+
const Text = exports.Text = _styledComponents.default.p`
|
|
39
|
+
color: #8B8989;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
margin: 0;
|
|
43
|
+
`;
|
|
44
|
+
const MoreInfo = exports.MoreInfo = _styledComponents.default.span`
|
|
45
|
+
color: #229E38;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
text-decoration: underline;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
`;
|
|
51
|
+
const DetailsWrapper = exports.DetailsWrapper = _styledComponents.default.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
align-items: stretch;
|
|
55
|
+
margin-top: 12px;
|
|
56
|
+
`;
|
|
57
|
+
const KeyBlock = exports.KeyBlock = _styledComponents.default.div`
|
|
58
|
+
/* position: relative; */
|
|
59
|
+
`;
|
|
60
|
+
const Key = exports.Key = _styledComponents.default.span`
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 4px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
`;
|
|
67
|
+
const Count = exports.Count = _styledComponents.default.span`
|
|
68
|
+
color: #8B8989;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
`;
|
|
72
|
+
const Seperator = exports.Seperator = _styledComponents.default.div`
|
|
73
|
+
border-right: 1px solid #F2F2F2;
|
|
74
|
+
`;
|
|
@@ -105,7 +105,8 @@ BannerEventBoxList.defaultProps = {
|
|
|
105
105
|
toggleColor: '#212121',
|
|
106
106
|
data: [{
|
|
107
107
|
banner: 'Stop&Shop',
|
|
108
|
-
description:
|
|
108
|
+
description: `description description description description description description description description description description
|
|
109
|
+
description description description description description description description description description `,
|
|
109
110
|
dates: ['01/01/2024', '14/01/2024'],
|
|
110
111
|
data: [{
|
|
111
112
|
name: 'Product Line',
|
|
@@ -1,23 +1,182 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.ToggleContainer = exports.SubDetails = exports.ProductName = exports.MainDetails = exports.MainContainer = exports.LoaderWrapper = exports.Loader = exports.CollapseMenuItemMainContainer = exports.CollapseMenuItemContentContainer = exports.CollapseMenuItemContainer = exports.BannerIcon = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
10
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
const CollapseMenuItemMainContainer = exports.CollapseMenuItemMainContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
background: white;
|
|
12
|
+
padding: 20px 24px;
|
|
13
|
+
box-shadow: 0px 8px 20px -10px rgba(0, 0, 0, 0.2);
|
|
14
|
+
`;
|
|
15
|
+
const CollapseMenuItemContainer = exports.CollapseMenuItemContainer = _styledComponents.default.div`
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
`;
|
|
19
|
+
const rotation = (0, _styledComponents.keyframes)`
|
|
20
|
+
0%, 100% {
|
|
21
|
+
box-shadow:
|
|
22
|
+
0px -8.32px 0px 0px #ffffff,
|
|
23
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.2),
|
|
24
|
+
8px 0px 0 0px rgba(0,0,0, 0.2),
|
|
25
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.2),
|
|
26
|
+
0px 8px 0 0px rgba(0,0,0, 0.2),
|
|
27
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.2),
|
|
28
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.5),
|
|
29
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.7);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
12.5% {
|
|
33
|
+
box-shadow:
|
|
34
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.7),
|
|
35
|
+
5.76px -5.76px 0 0px #ffffff,
|
|
36
|
+
8px 0px 0 0px rgba(0,0,0, 0.2),
|
|
37
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.2),
|
|
38
|
+
0px 8px 0 0px rgba(0,0,0, 0.2),
|
|
39
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.2),
|
|
40
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.2),
|
|
41
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.5);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
25% {
|
|
45
|
+
box-shadow:
|
|
46
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.5),
|
|
47
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.7),
|
|
48
|
+
8px 0px 0 0px #ffffff,
|
|
49
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.2),
|
|
50
|
+
0px 8px 0 0px rgba(0,0,0, 0.2),
|
|
51
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.2),
|
|
52
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.2),
|
|
53
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.2);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
37.5% {
|
|
57
|
+
box-shadow:
|
|
58
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.2),
|
|
59
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.5),
|
|
60
|
+
8px 0px 0 0px rgba(0,0,0, 0.7),
|
|
61
|
+
5.6px 5.6px 0 0px #ffffff,
|
|
62
|
+
0px 8px 0 0px rgba(0,0,0, 0.2),
|
|
63
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.2),
|
|
64
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.2),
|
|
65
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.2);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
50% {
|
|
69
|
+
box-shadow:
|
|
70
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.2),
|
|
71
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.2),
|
|
72
|
+
8px 0px 0 0px rgba(0,0,0, 0.5),
|
|
73
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.7),
|
|
74
|
+
0px 8px 0 0px #ffffff,
|
|
75
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.2),
|
|
76
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.2),
|
|
77
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
62.5% {
|
|
81
|
+
box-shadow:
|
|
82
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.2),
|
|
83
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.2),
|
|
84
|
+
8px 0px 0 0px rgba(0,0,0, 0.2),
|
|
85
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.5),
|
|
86
|
+
0px 8px 0 0px rgba(0,0,0, 0.7),
|
|
87
|
+
-5.76px 5.76px 0 0px #ffffff,
|
|
88
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.2),
|
|
89
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
75% {
|
|
93
|
+
box-shadow:
|
|
94
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.2),
|
|
95
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.2),
|
|
96
|
+
8px 0px 0 0px rgba(0,0,0, 0.2),
|
|
97
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.2),
|
|
98
|
+
0px 8px 0 0px rgba(0,0,0, 0.5),
|
|
99
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.7),
|
|
100
|
+
-8.32px 0px 0 0px #ffffff,
|
|
101
|
+
-5.76px -5.76px 0 0px rgba(0,0,0, 0.2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
87.5% {
|
|
105
|
+
box-shadow:
|
|
106
|
+
0px -8.32px 0px 0px rgba(0,0,0, 0.2),
|
|
107
|
+
5.76px -5.76px 0 0px rgba(0,0,0, 0.2),
|
|
108
|
+
8px 0px 0 0px rgba(0,0,0, 0.2),
|
|
109
|
+
5.6px 5.6px 0 0px rgba(0,0,0, 0.2),
|
|
110
|
+
0px 8px 0 0px rgba(0,0,0, 0.2),
|
|
111
|
+
-5.76px 5.76px 0 0px rgba(0,0,0, 0.5),
|
|
112
|
+
-8.32px 0px 0 0px rgba(0,0,0, 0.7),
|
|
113
|
+
-5.76px -5.76px 0 0px #ffffff;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
const LoaderWrapper = exports.LoaderWrapper = _styledComponents.default.div`
|
|
117
|
+
font-size: 16px;
|
|
118
|
+
display: flex;
|
|
119
|
+
gap: 20px;
|
|
120
|
+
align-items: center;
|
|
121
|
+
color: #212121;
|
|
122
|
+
@media (max-width: 1536px) {
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
}
|
|
125
|
+
@media (max-width: 1366px) {
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
}
|
|
128
|
+
`;
|
|
129
|
+
const Loader = exports.Loader = _styledComponents.default.span`
|
|
130
|
+
font-size: 10px;
|
|
131
|
+
width: 4px;
|
|
132
|
+
height: 4px;
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
position: relative;
|
|
135
|
+
text-indent: -9999em;
|
|
136
|
+
animation: ${rotation} 1.1s infinite ease;
|
|
137
|
+
transform: translateZ(0);
|
|
138
|
+
`;
|
|
139
|
+
const BannerIcon = exports.BannerIcon = _styledComponents.default.div`
|
|
140
|
+
align-items: center;
|
|
141
|
+
display: flex;
|
|
142
|
+
`;
|
|
143
|
+
const MainDetails = exports.MainDetails = _styledComponents.default.div`
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: 10px;
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
`;
|
|
149
|
+
const SubDetails = exports.SubDetails = _styledComponents.default.span`
|
|
150
|
+
font-size: 16px;
|
|
151
|
+
font-weight: 400;
|
|
152
|
+
@media (max-width: 1536px) {
|
|
153
|
+
font-size: 14px;
|
|
154
|
+
}
|
|
155
|
+
@media (max-width: 1366px) {
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
}
|
|
158
|
+
`;
|
|
159
|
+
const ProductName = exports.ProductName = _styledComponents.default.span`
|
|
160
|
+
color: #8b8989;
|
|
161
|
+
`;
|
|
162
|
+
const ToggleContainer = exports.ToggleContainer = _styledComponents.default.div`
|
|
163
|
+
cursor: "pointer";
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
`;
|
|
167
|
+
const CollapseMenuItemContentContainer = exports.CollapseMenuItemContentContainer = _styledComponents.default.div`
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
font-size: 14px;
|
|
170
|
+
margin-top: 12px;
|
|
171
|
+
border-top: 1px solid #d0d0d0;
|
|
172
|
+
@media (max-width: 1536px) {
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
177
|
+
width: ${props => props.width};
|
|
178
|
+
height: ${props => props.height};
|
|
179
|
+
display: flex;
|
|
180
|
+
gap: 20px;
|
|
181
|
+
padding: 20px 0 4px;
|
|
182
|
+
`;
|
|
@@ -5,14 +5,95 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ToggledDropdownTitle = exports.ToggledDropdownList = exports.ToggledDropdown = exports.ToggleBannersWrapper = exports.ToggleBanners = exports.MainContainer = exports.IconWrap = exports.ArrowWrap = 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
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
background-color: white;
|
|
13
|
+
border-radius: 30px;
|
|
14
|
+
`;
|
|
15
|
+
const ToggleBannersWrapper = exports.ToggleBannersWrapper = _styledComponents.default.div`
|
|
16
|
+
position: relative;
|
|
17
|
+
`;
|
|
18
|
+
const ToggleBanners = exports.ToggleBanners = _styledComponents.default.button`
|
|
19
|
+
display: flex;
|
|
20
|
+
gap: 4px;
|
|
21
|
+
color: #2d8de7;
|
|
22
|
+
border: 1px solid #c7e4ff;
|
|
23
|
+
border-radius: 30px;
|
|
24
|
+
background-color: #edf6ff;
|
|
25
|
+
padding: 6px 12px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
&.partial {
|
|
28
|
+
color: #757575;
|
|
29
|
+
border: 1px solid #ececec;
|
|
30
|
+
background-color: #ececec;
|
|
31
|
+
}
|
|
32
|
+
> span {
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const ArrowWrap = exports.ArrowWrap = _styledComponents.default.div`
|
|
37
|
+
> svg {
|
|
38
|
+
transform: rotate(180deg);
|
|
39
|
+
transition: transform 0.3s ease;
|
|
40
|
+
}
|
|
41
|
+
&.opened {
|
|
42
|
+
svg {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const ToggledDropdown = exports.ToggledDropdown = _styledComponents.default.div`
|
|
48
|
+
position: absolute;
|
|
49
|
+
margin-top: 10px;
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
background-color: white;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
z-index: 99;
|
|
54
|
+
|
|
55
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
56
|
+
`;
|
|
57
|
+
const ToggledDropdownTitle = exports.ToggledDropdownTitle = _styledComponents.default.span`
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
padding: 8px 12px;
|
|
61
|
+
margin-bottom: 12px;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
`;
|
|
64
|
+
const ToggledDropdownList = exports.ToggledDropdownList = _styledComponents.default.ul`
|
|
65
|
+
list-style-type: none;
|
|
66
|
+
padding: 0;
|
|
67
|
+
margin: 0;
|
|
68
|
+
li {
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: 6px;
|
|
73
|
+
padding: 14px 12px;
|
|
74
|
+
align-items: center;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: #f7f8fa;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.unchecked {
|
|
81
|
+
color: #cfcfcf;
|
|
82
|
+
svg {
|
|
83
|
+
filter: grayscale(1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
> svg {
|
|
88
|
+
min-width: 50px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
> span {
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
const IconWrap = exports.IconWrap = _styledComponents.default.div`
|
|
97
|
+
min-width: 54px;
|
|
98
|
+
text-align: center;
|
|
99
|
+
`;
|
|
@@ -55,7 +55,7 @@ const BarChart = props => {
|
|
|
55
55
|
if (!active || !payload || (payload === null || payload === void 0 ? void 0 : payload.length) === 0) return null;
|
|
56
56
|
let currentTooltipValue = 0;
|
|
57
57
|
if ((_payload$0$payload = payload[0].payload) !== null && _payload$0$payload !== void 0 && _payload$0$payload.value) currentTooltipValue = (_payload$0$payload2 = payload[0].payload) === null || _payload$0$payload2 === void 0 ? void 0 : _payload$0$payload2.value;
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_BarChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChart.TooltipTitle, null,
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_BarChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChart.TooltipTitle, null, `${label}`), /*#__PURE__*/_react.default.createElement(_BarChart.TooltipLabel, null, `${displayFormattedValue(currentTooltipValue)}`));
|
|
59
59
|
};
|
|
60
60
|
const CustomizedTickBarChart = props => {
|
|
61
61
|
const {
|
|
@@ -67,7 +67,7 @@ const BarChart = props => {
|
|
|
67
67
|
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
68
68
|
if (retailerData && retailerData.length > 0) {
|
|
69
69
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
70
|
-
transform:
|
|
70
|
+
transform: `translate(${x},${y})`
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
72
72
|
x: 0,
|
|
73
73
|
y: 0,
|
|
@@ -5,14 +5,56 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.Title = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = 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
|
-
const
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
color: #212121;
|
|
13
|
+
width: ${props => props.width};
|
|
14
|
+
height: ${props => props.height};
|
|
15
|
+
min-width: 250px;
|
|
16
|
+
`;
|
|
17
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
background: white;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
`;
|
|
24
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
padding: 8px 12px;
|
|
27
|
+
background: white;
|
|
28
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
29
|
+
margin: 0;
|
|
30
|
+
`;
|
|
31
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
32
|
+
color: #212121;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
width: fit-content;
|
|
36
|
+
`;
|
|
37
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
38
|
+
color: #212121;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
`;
|
|
42
|
+
const Title = exports.Title = _styledComponents.default.h5`
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
line-height: 20px;
|
|
46
|
+
margin: 0 0 30px;
|
|
47
|
+
@media (max-width: 1536px) {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
margin: 0 0 20px;
|
|
50
|
+
}
|
|
51
|
+
@media (max-width: 1366px) {
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan`
|
|
56
|
+
font-size: 0.7em;
|
|
57
|
+
`;
|
|
58
|
+
const LabelText = exports.LabelText = _styledComponents.default.tspan`
|
|
59
|
+
font-size: 0.6em;
|
|
60
|
+
`;
|
|
@@ -60,7 +60,7 @@ const BarChartTwoRows = props => {
|
|
|
60
60
|
let currentTooltipHighValue = 0;
|
|
61
61
|
if ((_payload$0$payload = payload[0].payload) !== null && _payload$0$payload !== void 0 && _payload$0$payload.lowerValue) currentTooltipLowerValue = (_payload$0$payload2 = payload[0].payload) === null || _payload$0$payload2 === void 0 ? void 0 : _payload$0$payload2.lowerValue;
|
|
62
62
|
if ((_payload$0$payload3 = payload[0].payload) !== null && _payload$0$payload3 !== void 0 && _payload$0$payload3.highValue) currentTooltipHighValue = (_payload$0$payload4 = payload[0].payload) === null || _payload$0$payload4 === void 0 ? void 0 : _payload$0$payload4.highValue;
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipTitle, null,
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipTitle, null, `${label}`), /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipLabel, null, `${lowerValueLabel} ${displayFormattedValue(currentTooltipLowerValue)}`), /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipLabel, null, `${highValueLabel} ${displayFormattedValue(currentTooltipHighValue)}`));
|
|
64
64
|
};
|
|
65
65
|
const CustomizedTickBarChart = props => {
|
|
66
66
|
const {
|
|
@@ -72,7 +72,7 @@ const BarChartTwoRows = props => {
|
|
|
72
72
|
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
73
73
|
if (retailerData && retailerData.length > 0) {
|
|
74
74
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
75
|
-
transform:
|
|
75
|
+
transform: `translate(${x},${y})`
|
|
76
76
|
// onMouseEnter={() => handleMouseEnter(offerType)}
|
|
77
77
|
// onMouseLeave={handleMouseLeave}
|
|
78
78
|
}, /*#__PURE__*/_react.default.createElement("text", {
|