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
|
@@ -1,23 +1,189 @@
|
|
|
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
|
-
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"));
|
|
7
|
+
exports.ToggleContainer = exports.SubDetails = exports.ProductName = exports.MainDetails = exports.MainContainer = exports.LoaderWrapper = exports.Loader = exports.DraftTag = exports.CollapseMenuItemMainContainer = exports.CollapseMenuItemContentContainer = exports.CollapseMenuItemContainer = exports.BannerIcon = void 0;
|
|
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
|
+
`;
|
|
183
|
+
const DraftTag = exports.DraftTag = _styledComponents.default.div`
|
|
184
|
+
color: #E41111;
|
|
185
|
+
border: 2px solid #E41111;
|
|
186
|
+
font-size: 20px;
|
|
187
|
+
padding: 6px 18px;
|
|
188
|
+
height: fit-content;
|
|
189
|
+
`;
|
|
@@ -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
|
+
`;
|
|
@@ -19,6 +19,7 @@ const BarChart = props => {
|
|
|
19
19
|
title,
|
|
20
20
|
barChartData,
|
|
21
21
|
barSize,
|
|
22
|
+
barFontSizeValue,
|
|
22
23
|
isDollar,
|
|
23
24
|
width,
|
|
24
25
|
height,
|
|
@@ -48,7 +49,7 @@ const BarChart = props => {
|
|
|
48
49
|
if (!active || !payload || (payload === null || payload === void 0 ? void 0 : payload.length) === 0) return null;
|
|
49
50
|
let currentTooltipValue = 0;
|
|
50
51
|
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;
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(_BarChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChart.TooltipTitle, null,
|
|
52
|
+
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)}`));
|
|
52
53
|
};
|
|
53
54
|
const CustomizedTickBarChart = props => {
|
|
54
55
|
const {
|
|
@@ -60,7 +61,7 @@ const BarChart = props => {
|
|
|
60
61
|
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
61
62
|
if (retailerData && retailerData.length > 0) {
|
|
62
63
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
63
|
-
transform:
|
|
64
|
+
transform: `translate(${x},${y})`
|
|
64
65
|
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
65
66
|
x: 0,
|
|
66
67
|
y: 0,
|
|
@@ -96,7 +97,7 @@ const BarChart = props => {
|
|
|
96
97
|
y: y,
|
|
97
98
|
dy: -8,
|
|
98
99
|
fill: stroke,
|
|
99
|
-
fontSize:
|
|
100
|
+
fontSize: barFontSizeValue,
|
|
100
101
|
textAnchor: "middle"
|
|
101
102
|
}, displayFormattedValue(value));
|
|
102
103
|
};
|
|
@@ -173,6 +174,7 @@ BarChart.defaultProps = {
|
|
|
173
174
|
width: '100%',
|
|
174
175
|
height: '100%',
|
|
175
176
|
barSize: 60,
|
|
177
|
+
barFontSizeValue: '0.6em',
|
|
176
178
|
barChartColor: '#BD9EFF',
|
|
177
179
|
showDollarSign: true,
|
|
178
180
|
isDollar: true,
|
|
@@ -59,6 +59,13 @@ var _default = exports.default = {
|
|
|
59
59
|
},
|
|
60
60
|
description: 'barSize of the control (in number ex: 60)'
|
|
61
61
|
},
|
|
62
|
+
barFontSizeValue: {
|
|
63
|
+
name: 'Top Bar Font Size',
|
|
64
|
+
control: {
|
|
65
|
+
type: 'text'
|
|
66
|
+
},
|
|
67
|
+
description: 'Top bar value font size'
|
|
68
|
+
},
|
|
62
69
|
barChartColor: {
|
|
63
70
|
name: 'barChartColor',
|
|
64
71
|
description: 'Sets the area chart 1 color',
|
|
@@ -121,24 +128,26 @@ var _default = exports.default = {
|
|
|
121
128
|
}
|
|
122
129
|
}
|
|
123
130
|
};
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
131
|
+
const Template = args => /*#__PURE__*/React.createElement(_BarChart.BarChart, args);
|
|
132
|
+
const SalesDollars = exports.SalesDollars = Template.bind({});
|
|
133
|
+
SalesDollars.args = {
|
|
134
|
+
title: 'Sales $',
|
|
135
|
+
barChartData: arrData,
|
|
136
|
+
barSize: 60,
|
|
137
|
+
barFontSizeValue: '12px',
|
|
138
|
+
width: '800px',
|
|
139
|
+
height: '500px',
|
|
140
|
+
barChartColor: '#1F7677',
|
|
141
|
+
yAxisCounter: 10,
|
|
142
|
+
isPercentValue: false,
|
|
143
|
+
showLegend: true,
|
|
144
|
+
legendData: [{
|
|
145
|
+
title: 'Incremental Sales',
|
|
146
|
+
iconType: 'Square',
|
|
147
|
+
iconColor: '#1F7677'
|
|
148
|
+
}],
|
|
149
|
+
showReferenceLine: true,
|
|
150
|
+
referenceLinePoint: 0,
|
|
151
|
+
referenceLineColor: '#D0D0D0',
|
|
152
|
+
referenceLineDashed: '0'
|
|
144
153
|
};
|
|
@@ -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
|
+
`;
|