sag_components 1.0.976 → 1.0.978

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.
Files changed (319) hide show
  1. package/dist/Button.test.js +10 -10
  2. package/dist/LinkButton.test.js +10 -10
  3. package/dist/SingleBar.test.js +2 -2
  4. package/dist/index.js +1 -1
  5. package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
  6. package/dist/stories/components/BannerEventBoxTest.js +42 -0
  7. package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
  8. package/dist/stories/components/BarChartsByWeeks.js +3 -0
  9. package/dist/stories/components/CommonFunctions.js +1 -2
  10. package/dist/stories/components/FilterButton.js +53 -0
  11. package/dist/stories/components/FilterButton.style.js +12 -0
  12. package/dist/stories/components/FormattedValue.js +3 -2
  13. package/dist/stories/components/NewInput.js +33 -0
  14. package/dist/stories/components/NewInput.style.js +13 -0
  15. package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
  16. package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
  17. package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
  18. package/package.json +1 -1
  19. package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
  20. package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
  21. package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -48
  22. package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -97
  23. package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
  24. package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -78
  25. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -153
  26. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -59
  27. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -189
  28. package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
  29. package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
  30. package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -99
  31. package/dist/stories/components/BarChart/BarChart.js +0 -191
  32. package/dist/stories/components/BarChart/BarChart.stories.js +0 -153
  33. package/dist/stories/components/BarChart/BarChart.style.js +0 -60
  34. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -213
  35. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
  36. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
  37. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -299
  38. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
  39. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
  40. package/dist/stories/components/Benchmark/Benchmark.js +0 -130
  41. package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
  42. package/dist/stories/components/Benchmark/Benchmark.style.js +0 -61
  43. package/dist/stories/components/Button/Button.js +0 -217
  44. package/dist/stories/components/Button/Button.stories.js +0 -269
  45. package/dist/stories/components/Button/Button.style.js +0 -90
  46. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
  47. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
  48. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -48
  49. package/dist/stories/components/Card/Card.js +0 -72
  50. package/dist/stories/components/Card/Card.stories.js +0 -92
  51. package/dist/stories/components/Card/Card.style.js +0 -65
  52. package/dist/stories/components/CheckBox/CheckBox.js +0 -76
  53. package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
  54. package/dist/stories/components/CheckBox/CheckBox.style.js +0 -36
  55. package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
  56. package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
  57. package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
  58. package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
  59. package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -13
  60. package/dist/stories/components/CollapseData/CollapseData.js +0 -66
  61. package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
  62. package/dist/stories/components/CollapseData/CollapseData.style.js +0 -127
  63. package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -249
  64. package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
  65. package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -200
  66. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
  67. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
  68. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
  69. package/dist/stories/components/Datepicker/Datepicker.js +0 -148
  70. package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
  71. package/dist/stories/components/Datepicker/Datepicker.style.js +0 -19
  72. package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
  73. package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
  74. package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -51
  75. package/dist/stories/components/Dropdown/Dropdown.js +0 -231
  76. package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
  77. package/dist/stories/components/Dropdown/Dropdown.style.js +0 -17
  78. package/dist/stories/components/DropdownMulti/DropdownMulti.js +0 -290
  79. package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +0 -220
  80. package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +0 -11
  81. package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -292
  82. package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -216
  83. package/dist/stories/components/DropdownNew/DropdownNew.js +0 -98
  84. package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -416
  85. package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -21
  86. package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -254
  87. package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -187
  88. package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
  89. package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
  90. package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -94
  91. package/dist/stories/components/EventList/EventList.js +0 -61
  92. package/dist/stories/components/EventList/EventList.stories.js +0 -84
  93. package/dist/stories/components/EventList/EventList.style.js +0 -38
  94. package/dist/stories/components/EventListItem/EventListItem.js +0 -50
  95. package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
  96. package/dist/stories/components/EventListItem/EventListItem.style.js +0 -47
  97. package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
  98. package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
  99. package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -30
  100. package/dist/stories/components/FilterPanel/FilterPanel.js +0 -571
  101. package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
  102. package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -89
  103. package/dist/stories/components/FormInput/FormInput.js +0 -41
  104. package/dist/stories/components/FormSelect/FormSelect.js +0 -42
  105. package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
  106. package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
  107. package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -91
  108. package/dist/stories/components/IconButton/IconButton.js +0 -147
  109. package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
  110. package/dist/stories/components/IconButton/IconButton.style.js +0 -64
  111. package/dist/stories/components/Input/Input.js +0 -183
  112. package/dist/stories/components/Input/Input.stories.js +0 -434
  113. package/dist/stories/components/Input/Input.style.js +0 -130
  114. package/dist/stories/components/InputOld/InputOld.js +0 -90
  115. package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
  116. package/dist/stories/components/InputOld/InputOld.style.js +0 -69
  117. package/dist/stories/components/KpiFilter/KpiFilter.js +0 -330
  118. package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
  119. package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -132
  120. package/dist/stories/components/LinkButton/LinkButton.js +0 -207
  121. package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
  122. package/dist/stories/components/LinkButton/LinkButton.style.js +0 -53
  123. package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -46
  124. package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -78
  125. package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
  126. package/dist/stories/components/ListBox/ListBox.js +0 -82
  127. package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
  128. package/dist/stories/components/ListBox/ListBox.style.js +0 -48
  129. package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
  130. package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -198
  131. package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
  132. package/dist/stories/components/Modal/Modal.js +0 -21
  133. package/dist/stories/components/Modal/Modal.style.js +0 -65
  134. package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
  135. package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
  136. package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
  137. package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
  138. package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -103
  139. package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -200
  140. package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
  141. package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
  142. package/dist/stories/components/MultipleCard/MultipleCard.style.js +0 -13
  143. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
  144. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
  145. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
  146. package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
  147. package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
  148. package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
  149. package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
  150. package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
  151. package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -22
  152. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -447
  153. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
  154. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
  155. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -59
  156. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
  157. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
  158. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -327
  159. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
  160. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
  161. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
  162. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
  163. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
  164. package/dist/stories/components/Popup/Popup.js +0 -172
  165. package/dist/stories/components/Popup/Popup.stories.js +0 -704
  166. package/dist/stories/components/Popup/Popup.style.js +0 -122
  167. package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
  168. package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
  169. package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -108
  170. package/dist/stories/components/PopupContent/PopupContent.js +0 -111
  171. package/dist/stories/components/PopupContent/PopupContent.style.js +0 -74
  172. package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
  173. package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
  174. package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
  175. package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -86
  176. package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
  177. package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
  178. package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -24
  179. package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
  180. package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
  181. package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -102
  182. package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -182
  183. package/dist/stories/components/QuickFilter/QuickFilter.js +0 -78
  184. package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
  185. package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -21
  186. package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
  187. package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -194
  188. package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -229
  189. package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -139
  190. package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -229
  191. package/dist/stories/components/RangePicker/RangePicker.js +0 -176
  192. package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
  193. package/dist/stories/components/RangePicker/RangePicker.style.js +0 -107
  194. package/dist/stories/components/ReportTable/ReportTable.js +0 -262
  195. package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
  196. package/dist/stories/components/ReportTable/ReportTable.style.js +0 -131
  197. package/dist/stories/components/SagButton/SagButton.js +0 -68
  198. package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
  199. package/dist/stories/components/SagButton/SagButton.style.js +0 -47
  200. package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
  201. package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
  202. package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -30
  203. package/dist/stories/components/SagInput/SagInput.js +0 -53
  204. package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
  205. package/dist/stories/components/SagInput/SagInput.style.js +0 -41
  206. package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
  207. package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
  208. package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -111
  209. package/dist/stories/components/SearchInput/SearchInput.js +0 -39
  210. package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
  211. package/dist/stories/components/SearchInput/SearchInput.style.js +0 -37
  212. package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
  213. package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
  214. package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -100
  215. package/dist/stories/components/Select/Select.js +0 -135
  216. package/dist/stories/components/Select/Select.stories.js +0 -200
  217. package/dist/stories/components/Select/Select.style.js +0 -102
  218. package/dist/stories/components/TabMenu/TabMenu.js +0 -214
  219. package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
  220. package/dist/stories/components/TabMenu/TabMenu.style.js +0 -115
  221. package/dist/stories/components/Table/Table.js +0 -195
  222. package/dist/stories/components/Table/Table.stories.js +0 -104
  223. package/dist/stories/components/Table/Table.style.js +0 -86
  224. package/dist/stories/components/TextField/TextField.js +0 -209
  225. package/dist/stories/components/TextField/TextField.stories.js +0 -162
  226. package/dist/stories/components/TextField/TextField.style.js +0 -18
  227. package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
  228. package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
  229. package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -222
  230. package/dist/stories/components/Tooltip/Tooltip.js +0 -31
  231. package/dist/stories/components/Tooltip/Tooltip.style.js +0 -103
  232. package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
  233. package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
  234. package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -51
  235. package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
  236. package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
  237. package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -81
  238. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
  239. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
  240. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
  241. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
  242. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
  243. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
  244. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
  245. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
  246. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
  247. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -186
  248. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -291
  249. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
  250. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -229
  251. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -228
  252. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -58
  253. package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -33
  254. package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -105
  255. package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -204
  256. package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
  257. package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
  258. package/dist/stories/icons/ArrowDownIcon.js +0 -27
  259. package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
  260. package/dist/stories/icons/ArrowSelectIcon.js +0 -27
  261. package/dist/stories/icons/ArrowUpIcon.js +0 -27
  262. package/dist/stories/icons/AttachedIcon.js +0 -27
  263. package/dist/stories/icons/BellIcon.js +0 -27
  264. package/dist/stories/icons/Calendar.js +0 -20
  265. package/dist/stories/icons/CalendarIcon.js +0 -27
  266. package/dist/stories/icons/CalendarInOpen.js +0 -26
  267. package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
  268. package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
  269. package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
  270. package/dist/stories/icons/ChervronLeftIcon.js +0 -20
  271. package/dist/stories/icons/ChervronRightIcon.js +0 -20
  272. package/dist/stories/icons/ClockIcon.js +0 -27
  273. package/dist/stories/icons/CloseIcon.js +0 -27
  274. package/dist/stories/icons/CloseXIcon.js +0 -27
  275. package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
  276. package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
  277. package/dist/stories/icons/DocumentIcon.js +0 -48
  278. package/dist/stories/icons/DownloadIcon.js +0 -27
  279. package/dist/stories/icons/Duplicate.js +0 -28
  280. package/dist/stories/icons/ErrorIcon.js +0 -27
  281. package/dist/stories/icons/ExitIcon.js +0 -28
  282. package/dist/stories/icons/ExportIcon.js +0 -28
  283. package/dist/stories/icons/EyeIcon.js +0 -28
  284. package/dist/stories/icons/FileIcon.js +0 -27
  285. package/dist/stories/icons/FilterIcon.js +0 -36
  286. package/dist/stories/icons/FlyIcon.js +0 -28
  287. package/dist/stories/icons/FoodLionChartIcon.js +0 -42
  288. package/dist/stories/icons/FoodLionIcon.js +0 -3076
  289. package/dist/stories/icons/FoodLionNewIcon.js +0 -39
  290. package/dist/stories/icons/GiantFoodChartIcon.js +0 -40
  291. package/dist/stories/icons/GiantFoodIcon.js +0 -1976
  292. package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
  293. package/dist/stories/icons/HannafordChartIcon.js +0 -40
  294. package/dist/stories/icons/HannafordIcon.js +0 -5017
  295. package/dist/stories/icons/HannafordIcon_new.js +0 -41
  296. package/dist/stories/icons/HannafordNewIcon.js +0 -213
  297. package/dist/stories/icons/InfoIcon.js +0 -28
  298. package/dist/stories/icons/LampIcon.js +0 -27
  299. package/dist/stories/icons/LegendLineIcon.js +0 -29
  300. package/dist/stories/icons/LegendUnionIcon.js +0 -29
  301. package/dist/stories/icons/MaintenanceIcon.js +0 -28
  302. package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
  303. package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
  304. package/dist/stories/icons/MenuItemRightIcon.js +0 -28
  305. package/dist/stories/icons/MenuItemUpIcon.js +0 -28
  306. package/dist/stories/icons/NoDataFoundIcon.js +0 -86
  307. package/dist/stories/icons/OptionsIcon.js +0 -27
  308. package/dist/stories/icons/SearchIcon.js +0 -27
  309. package/dist/stories/icons/ShoppingCartIcon.js +0 -45
  310. package/dist/stories/icons/ShoutIcon.js +0 -27
  311. package/dist/stories/icons/SpotlightProductIcon.js +0 -28
  312. package/dist/stories/icons/StopAndShopChartIcon.js +0 -42
  313. package/dist/stories/icons/StopAndShopIcon.js +0 -134
  314. package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
  315. package/dist/stories/icons/SucceededIcon.js +0 -27
  316. package/dist/stories/icons/TheGiantCompanyChartIcon.js +0 -40
  317. package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
  318. package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
  319. package/dist/stories/utils/CommonFunctions.js +0 -83
@@ -1,327 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = exports.PerformanceAnalyticsOneColumn = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _recharts = require("recharts");
11
- var _TspanTooltip = _interopRequireDefault(require("../TspanTooltip/TspanTooltip"));
12
- var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
13
- var _PerformanceAnalyticsTotals = require("../PerformanceAnalyticsTotals/PerformanceAnalyticsTotals");
14
- var _PerformanceAnalyticsOneColumn = require("./PerformanceAnalyticsOneColumn.style");
15
- var _PerformanceAnalyticsLegend = require("../PerformanceAnalyticsLegend/PerformanceAnalyticsLegend");
16
- var _CommonFunctions = require("../../utils/CommonFunctions");
17
- /* eslint-disable no-unused-vars */
18
- /* eslint-disable react/prop-types */
19
- /* eslint-disable no-shadow */
20
- /* eslint-disable react/no-unstable-nested-components */
21
-
22
- const PerformanceAnalyticsOneColumn = props => {
23
- const {
24
- colorBarchart1,
25
- colorBarchart2,
26
- width,
27
- height,
28
- lineChartHeight,
29
- lineChartValueType,
30
- lineChartValueBold,
31
- barChartHeight,
32
- topBarPercentSigning,
33
- topBarSigning,
34
- noDataText,
35
- totalsData,
36
- data,
37
- legendData,
38
- tooltipBarchartLabel1,
39
- tooltipBarchartLabel2
40
- } = props;
41
- const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
42
- const [tooltipCouponText, setTooltipCouponText] = (0, _react.useState)({
43
- content: '',
44
- clientX: 0,
45
- clientY: 0
46
- });
47
- const CustomTooltipBarChart = _ref => {
48
- let {
49
- active,
50
- payload
51
- } = _ref;
52
- if (active && payload && payload.length > 0) {
53
- return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.TooltipContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.ToolTipLabelAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.LegendColorRectangle, {
54
- id: "LegendColorRectangle",
55
- color: colorBarchart1
56
- }), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.TooltipLabel, null, tooltipBarchartLabel1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.TooltipValue, null, `${(0, _CommonFunctions.getFormattedValue)(payload[0].payload.newShoppersValue)}
57
- ${(0, _CommonFunctions.getFormattedUnits)(payload[0].payload.newShoppersValue)}
58
- (${payload[0].payload.newShoppersPercentValue}%) `)), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.ToolTipLabelAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.LegendColorRectangle, {
59
- id: "LegendColorRectangle",
60
- color: colorBarchart2
61
- }), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.TooltipLabel, null, tooltipBarchartLabel2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.TooltipValue, null, `${(0, _CommonFunctions.getFormattedValue)(payload[0].payload.existingShoppersValue)}
62
- ${(0, _CommonFunctions.getFormattedUnits)(payload[0].payload.existingShoppersValue)}
63
- (${payload[0].payload.existingShoppersPercentValue}%) `)));
64
- }
65
- return null;
66
- };
67
- const getTopBarSigning = signing => {
68
- if (signing === 'Dollar sign ($)') {
69
- return '$';
70
- }
71
- if (signing === 'Euro sign (€)') {
72
- return '€';
73
- }
74
- return '';
75
- };
76
- const CustomizedLabelBarchart = props => {
77
- const {
78
- x,
79
- y,
80
- width,
81
- value,
82
- index
83
- } = props;
84
- const i = data[index];
85
- const totalValue = i.newShoppersValue + i.existingShoppersValue;
86
- const radius = 10;
87
- return /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("text", {
88
- x: x + width / 2,
89
- y: y - radius,
90
- fontWeight: 400,
91
- fontSize: "16px",
92
- textAnchor: "middle",
93
- dominantBaseline: "middle"
94
- }, `${getTopBarSigning(topBarSigning)}
95
- ${(0, _CommonFunctions.getFormattedValue)(totalValue)}
96
- ${(0, _CommonFunctions.getFormattedUnits)(totalValue)}
97
- ${topBarPercentSigning ? '%' : ''}`));
98
- };
99
- const CustomizedTickBarChart = props => {
100
- const {
101
- x,
102
- y,
103
- payload
104
- } = props;
105
- const handleMouseEnter = content => {
106
- setTooltipCouponText(prevState => ({
107
- ...prevState,
108
- content: content !== prevState.content ? content : prevState.content,
109
- clientX: x,
110
- clientY: y
111
- }));
112
- setShowLegendTooltip(true);
113
- };
114
- const handleMouseLeave = () => {
115
- setShowLegendTooltip(false);
116
- };
117
- if (data && data.length > 0 && payload) {
118
- const retailerData = data.filter(item => item.retailer === payload.value);
119
- if (retailerData && retailerData.length > 0) {
120
- const {
121
- offerType
122
- } = retailerData[0];
123
- return /*#__PURE__*/_react.default.createElement("g", {
124
- transform: `translate(${x},${y})`,
125
- onMouseEnter: () => handleMouseEnter(offerType),
126
- onMouseLeave: handleMouseLeave
127
- }, /*#__PURE__*/_react.default.createElement("text", {
128
- x: 0,
129
- y: 0,
130
- dy: 16,
131
- fill: "#212121"
132
- }, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.LabelBoldText, {
133
- textAnchor: "middle",
134
- x: "0",
135
- dy: "50",
136
- fontWeight: 600
137
- }, retailerData[0].retailer), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.LabelText, {
138
- textAnchor: "middle",
139
- x: "0",
140
- dy: "30",
141
- fontSize: 14,
142
- fontWeight: 400
143
- }, retailerData[0].period)));
144
- }
145
- return null;
146
- }
147
- return null;
148
- };
149
- const displayBarChart = () => {
150
- if (data && data.length > 0) {
151
- return /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
152
- id: "ResponsiveContainer",
153
- height: barChartHeight
154
- }, /*#__PURE__*/_react.default.createElement(_recharts.BarChart, {
155
- data: data,
156
- maxBarSize: 60,
157
- margin: {
158
- top: 30,
159
- right: 30,
160
- left: 20,
161
- bottom: 5
162
- }
163
- }, /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
164
- dataKey: "retailer",
165
- tick: CustomizedTickBarChart,
166
- tickLine: false,
167
- height: 120,
168
- stroke: "#D0D0D0",
169
- fill: "#212121"
170
- }), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
171
- id: "Tooltip",
172
- content: tooltipCouponText.content,
173
- top: tooltipCouponText.clientY,
174
- left: tooltipCouponText.clientX,
175
- direction: "top"
176
- }), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
177
- cursor: {
178
- fill: 'transparent'
179
- },
180
- content: CustomTooltipBarChart
181
- }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
182
- dataKey: "existingShoppersValue",
183
- fill: colorBarchart2,
184
- stackId: "a"
185
- }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
186
- dataKey: "newShoppersValue",
187
- fill: colorBarchart1,
188
- stackId: "a",
189
- radius: [5, 5, 0, 0]
190
- }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
191
- fill: "#212121",
192
- dataKey: "totalShoppers",
193
- content: CustomizedLabelBarchart
194
- }))));
195
- }
196
- return null;
197
- };
198
- const displayTotalsData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.PerformanceAnalyticsTotals, {
199
- totalsData: totalsData
200
- });
201
- const displayLegendData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
202
- legendData: legendData
203
- });
204
- const CustomizedLabelROI = props => {
205
- const {
206
- x,
207
- y,
208
- stroke,
209
- value
210
- } = props;
211
- return /*#__PURE__*/_react.default.createElement("text", {
212
- x: x,
213
- y: y,
214
- dy: -8,
215
- fill: stroke,
216
- fontWeight: lineChartValueBold ? 600 : 400,
217
- fontSize: 14,
218
- textAnchor: "middle"
219
- }, `${value}${lineChartValueType ? '%' : ''}`);
220
- };
221
-
222
- // const CustomTooltipROI = ({ active, payload }) => {
223
- // if (active && payload && payload.length > 0) {
224
- // return (
225
- // <TooltipContainer>
226
- // <TooltipTitle>{`${payload[0].payload?.retailer}`}</TooltipTitle>
227
-
228
- // <ToolTipLabelAndValueContainer>
229
- // <TooltipLabel>Incremental Sales ROI:</TooltipLabel>
230
- // <TooltipValue>
231
- // {`${getFormattedValue(payload[0].value)}${getFormattedUnits(
232
- // payload[0].value,
233
- // )}`}
234
- // </TooltipValue>
235
- // </ToolTipLabelAndValueContainer>
236
- // </TooltipContainer>
237
- // );
238
- // }
239
-
240
- // return null;
241
- // };
242
- const displayLineChartROI = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
243
- id: "ResponsiveContainer",
244
- height: lineChartHeight
245
- }, /*#__PURE__*/_react.default.createElement(_recharts.LineChart, {
246
- data: data,
247
- margin: {
248
- top: 20,
249
- right: 90,
250
- left: 90,
251
- bottom: 10
252
- }
253
- }, /*#__PURE__*/_react.default.createElement(_recharts.Line, {
254
- type: "monotone",
255
- dataKey: "newShoppersPercentValue",
256
- fill: colorBarchart2,
257
- name: "newShopper",
258
- stroke: colorBarchart2
259
- }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
260
- content: /*#__PURE__*/_react.default.createElement(CustomizedLabelROI, null)
261
- })))), /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
262
- id: "ResponsiveContainer",
263
- height: lineChartHeight
264
- }, /*#__PURE__*/_react.default.createElement(_recharts.LineChart, {
265
- data: data,
266
- margin: {
267
- top: 20,
268
- right: 90,
269
- left: 90,
270
- bottom: 10
271
- }
272
- }, /*#__PURE__*/_react.default.createElement(_recharts.Line, {
273
- type: "monotone",
274
- dataKey: "existingShoppersPercentValue",
275
- fill: colorBarchart1,
276
- name: "existingShopper",
277
- stroke: colorBarchart1
278
- }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
279
- content: /*#__PURE__*/_react.default.createElement(CustomizedLabelROI, null)
280
- })))));
281
- return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.ControlsContainer, {
282
- id: "PerformanceAnalyticsControlsContainer",
283
- className: (totalsData === null || totalsData === void 0 ? void 0 : totalsData.length) > 0 && (data === null || data === void 0 ? void 0 : data.length) > 0 ? '' : 'NoData',
284
- width: width,
285
- height: height
286
- }, (totalsData === null || totalsData === void 0 ? void 0 : totalsData.length) > 0 && (data === null || data === void 0 ? void 0 : data.length) > 0 ? /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.Controls, {
287
- id: "Controls"
288
- }, displayTotalsData(), displayLineChartROI(), displayBarChart(), displayLegendData()) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
289
- noDataText: noDataText
290
- }));
291
- };
292
- exports.PerformanceAnalyticsOneColumn = PerformanceAnalyticsOneColumn;
293
- var _default = exports.default = PerformanceAnalyticsOneColumn;
294
- PerformanceAnalyticsOneColumn.defaultProps = {
295
- colorBarchart1: '#1F7677',
296
- colorBarchart2: '#90CE9C',
297
- lineChartHeight: 50,
298
- barChartHeight: 250,
299
- width: '100%',
300
- height: '100%',
301
- noDataText: 'No data',
302
- totalsData: [{
303
- title: 'title',
304
- value: 13,
305
- dotCut: true,
306
- currency: true,
307
- currencyType: 'USD',
308
- growthPercent: 14,
309
- showGrowthPercentSign: true
310
- }],
311
- data: [{
312
- retailer: '',
313
- offerType: '',
314
- period: '',
315
- newShoppersValue: 44,
316
- newShoppersPercentValue: 55,
317
- existingShoppersValue: 66,
318
- existingShoppersPercentValue: 45
319
- }],
320
- legendData: [{
321
- iconColor: null,
322
- iconType: null,
323
- title: null
324
- }],
325
- tooltipBarchartLabel1: 'New Shoppers',
326
- tooltipBarchartLabel2: 'Existing Shoppers'
327
- };
@@ -1,231 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.TotalCostSales = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _PerformanceAnalyticsOneColumn = require("./PerformanceAnalyticsOneColumn");
10
- const totalsData1 = [{
11
- title: 'Total Cost',
12
- value: 360000,
13
- dotCut: true,
14
- currency: true,
15
- currencyType: 'USD',
16
- growthPercent: 15.2,
17
- showGrowthPercentSign: true
18
- }, {
19
- title: 'Incremental Sales',
20
- value: 960000,
21
- dotCut: true,
22
- currency: true,
23
- currencyType: 'USD',
24
- growthPercent: 13.5,
25
- showGrowthPercentSign: true
26
- }, {
27
- title: 'Incremental Sales ROI',
28
- value: 2.7,
29
- dotCut: true,
30
- currency: false,
31
- currencyType: null,
32
- growthPercent: null,
33
- showGrowthPercentSign: true
34
- }];
35
- const data1 = [{
36
- retailer: 'Food Lion',
37
- offerType: 'B2G3',
38
- period: '15.01.24-31.01.24',
39
- roiValue: 2.5,
40
- // New / existing Shoppers
41
- newShoppersValue: 16,
42
- newShoppersPercentValue: 15.6,
43
- existingShoppersValue: 66,
44
- existingShoppersPercentValue: 84.4,
45
- totalShoppers: 82
46
- }, {
47
- retailer: 'Hannaford',
48
- offerType: 'B2G3',
49
- period: '02.01.24-15.01.24',
50
- roiValue: 3.6,
51
- // New / existing Shoppers
52
- newShoppersValue: 14,
53
- newShoppersPercentValue: 25.5,
54
- existingShoppersValue: 35,
55
- existingShoppersPercentValue: 75.5,
56
- totalShoppers: 49
57
- }, {
58
- retailer: 'The Giant Company',
59
- offerType: '20% Off',
60
- period: '15.01.24-31.01.24',
61
- roiValue: 2.0,
62
- // New / existing Shoppers
63
- newShoppersValue: 44,
64
- newShoppersPercentValue: 10.5,
65
- existingShoppersValue: 33,
66
- existingShoppersPercentValue: 88,
67
- contributionIncrementalSalesValue: 89.5,
68
- totalShoppers: 77
69
- }, {
70
- retailer: 'Giant Food',
71
- offerType: '20% Off',
72
- period: '02.01.24-15.01.24',
73
- roiValue: 2.5,
74
- // New / existing Shoppers
75
- newShoppersValue: 77,
76
- newShoppersPercentValue: 8.6,
77
- existingShoppersValue: 55,
78
- existingShoppersPercentValue: 91.4,
79
- totalShoppers: 122
80
- }, {
81
- retailer: 'Stop&Shop',
82
- offerType: '20% Off',
83
- period: '02.01.24-15.01.24',
84
- roiValue: 3.3,
85
- // New / existing Shoppers
86
- newShoppersValue: 11,
87
- newShoppersPercentValue: 25.4,
88
- existingShoppersValue: 33,
89
- existingShoppersPercentValue: 74.6,
90
- totalShoppers: 44
91
- }];
92
- const legendData1 = [{
93
- iconColor: '#1F7677',
94
- iconType: 'Square',
95
- title: '% New Shoppers'
96
- }, {
97
- iconColor: '#1F7677',
98
- iconType: 'LegendUnionIcon',
99
- title: '% New Shoppers'
100
- }, {
101
- iconColor: '#90CE9C',
102
- iconType: 'Square',
103
- title: '# Existing Shoppers'
104
- }, {
105
- iconColor: '#9CCB3B',
106
- iconType: 'LegendUnionIcon',
107
- title: '# Existing Shoppers'
108
- }];
109
- var _default = exports.default = {
110
- title: 'SAG BI/PerformanceAnalyticsOneColumn',
111
- component: _PerformanceAnalyticsOneColumn.PerformanceAnalyticsOneColumn,
112
- tags: ['autodocs'],
113
- parameters: {
114
- design: {
115
- type: 'figspec',
116
- accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
117
- }
118
- },
119
- argTypes: {
120
- totalsData: {
121
- name: 'totalsData',
122
- description: 'array [] of objects: to fill the totals on top of the component '
123
- },
124
- data: {
125
- name: 'data',
126
- description: 'array [] of objects: to fill the barcharts '
127
- },
128
- legendData: {
129
- name: 'legendData',
130
- description: 'array [] of objects: to fill the legend on bottom of the component '
131
- },
132
- currencyType: {
133
- name: 'currencyType',
134
- options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY', ''],
135
- control: {
136
- type: 'select'
137
- }
138
- },
139
- width: {
140
- name: 'Width',
141
- control: {
142
- type: 'text'
143
- },
144
- description: 'width of the control (in px / %)'
145
- },
146
- height: {
147
- name: 'Height',
148
- control: {
149
- type: 'text'
150
- },
151
- description: 'height of the control (in px / %)'
152
- },
153
- lineChartHeight: {
154
- name: 'lineChartHeight',
155
- control: {
156
- type: 'number'
157
- },
158
- description: 'height of the control (in px)'
159
- },
160
- lineChartValueType: {
161
- name: 'lineChartValueType',
162
- control: {
163
- type: 'boolean'
164
- },
165
- description: 'true/false - show/hide percent sign before value'
166
- },
167
- lineChartValueBold: {
168
- name: 'lineChartValueBold',
169
- control: {
170
- type: 'boolean'
171
- },
172
- description: 'true/false - value bolded'
173
- },
174
- topBarSigning: {
175
- name: 'topBarSigning',
176
- control: {
177
- type: 'inline-radio'
178
- },
179
- options: ['None', 'Dollar sign ($)', 'Euro sign (€)'],
180
- description: 'What a value sign to add to the top bar value string'
181
- },
182
- topBarPercentSigning: {
183
- name: 'topBarPercentSigning',
184
- control: {
185
- type: 'boolean'
186
- },
187
- description: 'Add Percent sign aside top bars value'
188
- },
189
- noDataText: {
190
- name: 'No Data text',
191
- control: {
192
- type: 'text'
193
- },
194
- description: 'text to display when no data found'
195
- },
196
- tooltipBarchartLabel1: {
197
- name: 'tooltipBarchartLabel1',
198
- control: {
199
- type: 'text'
200
- },
201
- description: 'text in barchart tooltip - top'
202
- },
203
- tooltipBarchartLabel2: {
204
- name: 'tooltipBarchartLabel2',
205
- control: {
206
- type: 'text'
207
- },
208
- description: 'text in barchart tooltip - bottom'
209
- }
210
- }
211
- };
212
- const TotalCostSales = exports.TotalCostSales = {
213
- args: {
214
- totalsData: totalsData1,
215
- data: data1,
216
- legendData: legendData1,
217
- width: '100%',
218
- height: '100%',
219
- lineChartHeight: 50,
220
- lineChartValueType: true,
221
- lineChartValueBold: true,
222
- colorBarchart1: '#90CE9C',
223
- colorBarchart2: '#1F7677',
224
- topBarPercentSigning: false,
225
- topBarSigning: 'None',
226
- currencyType: 'USD',
227
- noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.',
228
- tooltipBarchartLabel1: 'New Shoppers',
229
- tooltipBarchartLabel2: 'Existing Shoppers'
230
- }
231
- };
@@ -1,116 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TotalsDataContainer = exports.TooltipValue = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipContainer = exports.ToolTipLabelAndValueContainer = exports.SegmentedButtonContainer = exports.LegendTitle = exports.LegendColorRectangle = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
10
- font-family: "Poppins", sans-serif;
11
- font-style: normal;
12
- font-size: ${props => props.rootFont};
13
- color: ${props => props.textColor};
14
- width: ${props => props.width};
15
- height: ${props => props.height};
16
- border-radius: 12px;
17
- align-self: center;
18
- &.NoData {
19
- align-self: center;
20
- display: flex;
21
- align-items: center;
22
- width: 50%;
23
- margin: 10% auto 0;
24
- }
25
- > * {
26
- box-sizing: border-box;
27
- }
28
- `;
29
- const Controls = exports.Controls = _styledComponents.default.div`
30
- width: 100%;
31
- height: 100%;
32
- padding: 24px 40px;
33
- background: white;
34
- @media (max-width: 1536px) {
35
- padding: 12px 32px;
36
- }
37
- `;
38
- const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div`
39
- display: flex;
40
- padding: 10px 0 0 10px;
41
- `;
42
- const TotalsDataContainer = exports.TotalsDataContainer = _styledComponents.default.div``;
43
- const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan`
44
- font-size: 16px;
45
- @media (max-width: 1536px) {
46
- font-size: 12px;
47
- }
48
- `;
49
- const LabelText = exports.LabelText = _styledComponents.default.tspan`
50
- font-size: 16px;
51
- @media (max-width: 1536px) {
52
- font-size: 10px;
53
- }
54
- @media (max-width: 1366px) {
55
- font-size: 8px;
56
- }
57
- `;
58
- const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div`
59
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
60
- border-radius: 5px;
61
- background: #fff;
62
- font-family: "Poppins", sans-serif;
63
- border-radius: 5px;
64
- padding: 8px 12px;
65
- display: grid;
66
- `;
67
- const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p`
68
- color: #212121;
69
- font-family: "Poppins", sans-serif;
70
- font-size: 14px;
71
- font-style: normal;
72
- font-weight: 400;
73
- line-height: normal;
74
- width: fit-content;
75
- margin: 0 6px 0 0;
76
- `;
77
- const TooltipValue = exports.TooltipValue = _styledComponents.default.p`
78
- color: #212121;
79
- font-family: "Poppins", sans-serif;
80
- font-size: 14px;
81
- font-style: normal;
82
- font-weight: 600;
83
- line-height: normal;
84
- width: fit-content;
85
- margin: 0;
86
- `;
87
- const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p`
88
- color: #212121;
89
- font-family: Poppins;
90
- font-size: 14px;
91
- font-style: normal;
92
- font-weight: 600;
93
- line-height: normal;
94
- margin: 0;
95
- `;
96
- const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div`
97
- width: 0.875rem;
98
- min-width: 0.875rem;
99
- height: 0.875rem;
100
- border-radius: 2px;
101
- background: ${props => props.color};
102
- `;
103
- const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div`
104
- display: flex;
105
- align-items: center;
106
- gap: 8px;
107
- `;
108
- const LegendTitle = exports.LegendTitle = _styledComponents.default.h5`
109
- font-size: 16px;
110
- @media (max-width: 1536px) {
111
- font-size: 11px;
112
- }
113
- @media (max-width: 1366px) {
114
- font-size: 10px;
115
- }
116
- `;