sag_components 1.0.1021 → 1.0.1022

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 (314) hide show
  1. package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
  2. package/dist/stories/components/BannerEventBoxTest.js +42 -0
  3. package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
  4. package/dist/stories/components/FilterButton.js +53 -0
  5. package/dist/stories/components/FilterButton.style.js +12 -0
  6. package/dist/stories/components/NewInput.js +33 -0
  7. package/dist/stories/components/NewInput.style.js +13 -0
  8. package/dist/stories/components/TotalHorizontalCharts.js +17 -14
  9. package/dist/stories/components/TotalHorizontalCharts.style.js +37 -1
  10. package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
  11. package/package.json +1 -1
  12. package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
  13. package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
  14. package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -48
  15. package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -97
  16. package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
  17. package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -78
  18. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -153
  19. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -59
  20. package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -189
  21. package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
  22. package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
  23. package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -99
  24. package/dist/stories/components/BarChart/BarChart.js +0 -191
  25. package/dist/stories/components/BarChart/BarChart.stories.js +0 -153
  26. package/dist/stories/components/BarChart/BarChart.style.js +0 -60
  27. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -213
  28. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
  29. package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
  30. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -299
  31. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
  32. package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
  33. package/dist/stories/components/Benchmark/Benchmark.js +0 -130
  34. package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
  35. package/dist/stories/components/Benchmark/Benchmark.style.js +0 -61
  36. package/dist/stories/components/Button/Button.js +0 -217
  37. package/dist/stories/components/Button/Button.stories.js +0 -269
  38. package/dist/stories/components/Button/Button.style.js +0 -90
  39. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
  40. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
  41. package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -48
  42. package/dist/stories/components/Card/Card.js +0 -72
  43. package/dist/stories/components/Card/Card.stories.js +0 -92
  44. package/dist/stories/components/Card/Card.style.js +0 -65
  45. package/dist/stories/components/CheckBox/CheckBox.js +0 -76
  46. package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
  47. package/dist/stories/components/CheckBox/CheckBox.style.js +0 -36
  48. package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
  49. package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
  50. package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
  51. package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
  52. package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -13
  53. package/dist/stories/components/CollapseData/CollapseData.js +0 -66
  54. package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
  55. package/dist/stories/components/CollapseData/CollapseData.style.js +0 -127
  56. package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -249
  57. package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
  58. package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -200
  59. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
  60. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
  61. package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
  62. package/dist/stories/components/Datepicker/Datepicker.js +0 -148
  63. package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
  64. package/dist/stories/components/Datepicker/Datepicker.style.js +0 -19
  65. package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
  66. package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
  67. package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -51
  68. package/dist/stories/components/Dropdown/Dropdown.js +0 -231
  69. package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
  70. package/dist/stories/components/Dropdown/Dropdown.style.js +0 -17
  71. package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -292
  72. package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -216
  73. package/dist/stories/components/DropdownNew/DropdownNew.js +0 -98
  74. package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -416
  75. package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -21
  76. package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -254
  77. package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -187
  78. package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
  79. package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
  80. package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -94
  81. package/dist/stories/components/EventList/EventList.js +0 -61
  82. package/dist/stories/components/EventList/EventList.stories.js +0 -84
  83. package/dist/stories/components/EventList/EventList.style.js +0 -38
  84. package/dist/stories/components/EventListItem/EventListItem.js +0 -50
  85. package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
  86. package/dist/stories/components/EventListItem/EventListItem.style.js +0 -47
  87. package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
  88. package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
  89. package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -30
  90. package/dist/stories/components/FilterPanel/FilterPanel.js +0 -566
  91. package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
  92. package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -89
  93. package/dist/stories/components/FormInput/FormInput.js +0 -41
  94. package/dist/stories/components/FormSelect/FormSelect.js +0 -42
  95. package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
  96. package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
  97. package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -91
  98. package/dist/stories/components/HaiTooltip.js +0 -71
  99. package/dist/stories/components/HaiTooltip.style.js +0 -12
  100. package/dist/stories/components/IconButton/IconButton.js +0 -147
  101. package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
  102. package/dist/stories/components/IconButton/IconButton.style.js +0 -64
  103. package/dist/stories/components/Input/Input.js +0 -183
  104. package/dist/stories/components/Input/Input.stories.js +0 -434
  105. package/dist/stories/components/Input/Input.style.js +0 -130
  106. package/dist/stories/components/InputOld/InputOld.js +0 -90
  107. package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
  108. package/dist/stories/components/InputOld/InputOld.style.js +0 -69
  109. package/dist/stories/components/KpiFilter/KpiFilter.js +0 -330
  110. package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
  111. package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -132
  112. package/dist/stories/components/LinkButton/LinkButton.js +0 -207
  113. package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
  114. package/dist/stories/components/LinkButton/LinkButton.style.js +0 -53
  115. package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -46
  116. package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -78
  117. package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
  118. package/dist/stories/components/ListBox/ListBox.js +0 -82
  119. package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
  120. package/dist/stories/components/ListBox/ListBox.style.js +0 -48
  121. package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
  122. package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -198
  123. package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
  124. package/dist/stories/components/Modal/Modal.js +0 -21
  125. package/dist/stories/components/Modal/Modal.style.js +0 -65
  126. package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
  127. package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
  128. package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
  129. package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
  130. package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -103
  131. package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -200
  132. package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
  133. package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
  134. package/dist/stories/components/MultipleCard/MultipleCard.style.js +0 -13
  135. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
  136. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
  137. package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
  138. package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
  139. package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
  140. package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
  141. package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
  142. package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
  143. package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -22
  144. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -447
  145. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
  146. package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
  147. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -59
  148. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
  149. package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
  150. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -327
  151. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
  152. package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
  153. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
  154. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
  155. package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
  156. package/dist/stories/components/Popup/Popup.js +0 -172
  157. package/dist/stories/components/Popup/Popup.stories.js +0 -704
  158. package/dist/stories/components/Popup/Popup.style.js +0 -122
  159. package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
  160. package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
  161. package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -108
  162. package/dist/stories/components/PopupContent/PopupContent.js +0 -111
  163. package/dist/stories/components/PopupContent/PopupContent.style.js +0 -74
  164. package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
  165. package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
  166. package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
  167. package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -86
  168. package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
  169. package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
  170. package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -24
  171. package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
  172. package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
  173. package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -102
  174. package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -182
  175. package/dist/stories/components/QuickFilter/QuickFilter.js +0 -78
  176. package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
  177. package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -21
  178. package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
  179. package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -194
  180. package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -229
  181. package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -139
  182. package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -229
  183. package/dist/stories/components/RangePicker/RangePicker.js +0 -176
  184. package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
  185. package/dist/stories/components/RangePicker/RangePicker.style.js +0 -107
  186. package/dist/stories/components/Rbackup.js +0 -453
  187. package/dist/stories/components/ReportTable/ReportTable.js +0 -262
  188. package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
  189. package/dist/stories/components/ReportTable/ReportTable.style.js +0 -131
  190. package/dist/stories/components/SagButton/SagButton.js +0 -68
  191. package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
  192. package/dist/stories/components/SagButton/SagButton.style.js +0 -47
  193. package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
  194. package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
  195. package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -30
  196. package/dist/stories/components/SagInput/SagInput.js +0 -53
  197. package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
  198. package/dist/stories/components/SagInput/SagInput.style.js +0 -41
  199. package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
  200. package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
  201. package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -111
  202. package/dist/stories/components/SearchInput/SearchInput.js +0 -39
  203. package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
  204. package/dist/stories/components/SearchInput/SearchInput.style.js +0 -37
  205. package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
  206. package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
  207. package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -100
  208. package/dist/stories/components/Select/Select.js +0 -135
  209. package/dist/stories/components/Select/Select.stories.js +0 -200
  210. package/dist/stories/components/Select/Select.style.js +0 -102
  211. package/dist/stories/components/TabMenu/TabMenu.js +0 -214
  212. package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
  213. package/dist/stories/components/TabMenu/TabMenu.style.js +0 -115
  214. package/dist/stories/components/Table/Table.js +0 -195
  215. package/dist/stories/components/Table/Table.stories.js +0 -104
  216. package/dist/stories/components/Table/Table.style.js +0 -86
  217. package/dist/stories/components/TableTooltip.js +0 -71
  218. package/dist/stories/components/TableTooltip.style.js +0 -12
  219. package/dist/stories/components/TextField/TextField.js +0 -209
  220. package/dist/stories/components/TextField/TextField.stories.js +0 -162
  221. package/dist/stories/components/TextField/TextField.style.js +0 -18
  222. package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
  223. package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
  224. package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -222
  225. package/dist/stories/components/Tooltip/Tooltip.js +0 -31
  226. package/dist/stories/components/Tooltip/Tooltip.style.js +0 -103
  227. package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
  228. package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
  229. package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -51
  230. package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
  231. package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
  232. package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -81
  233. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
  234. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
  235. package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
  236. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
  237. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
  238. package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
  239. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
  240. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
  241. package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
  242. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -186
  243. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -291
  244. package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
  245. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -229
  246. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -228
  247. package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -58
  248. package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -33
  249. package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -105
  250. package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -204
  251. package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
  252. package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
  253. package/dist/stories/icons/ArrowDownIcon.js +0 -27
  254. package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
  255. package/dist/stories/icons/ArrowSelectIcon.js +0 -27
  256. package/dist/stories/icons/ArrowUpIcon.js +0 -27
  257. package/dist/stories/icons/AttachedIcon.js +0 -27
  258. package/dist/stories/icons/BellIcon.js +0 -27
  259. package/dist/stories/icons/Calendar.js +0 -20
  260. package/dist/stories/icons/CalendarIcon.js +0 -27
  261. package/dist/stories/icons/CalendarInOpen.js +0 -26
  262. package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
  263. package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
  264. package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
  265. package/dist/stories/icons/ChervronLeftIcon.js +0 -20
  266. package/dist/stories/icons/ChervronRightIcon.js +0 -20
  267. package/dist/stories/icons/ClockIcon.js +0 -27
  268. package/dist/stories/icons/CloseIcon.js +0 -27
  269. package/dist/stories/icons/CloseXIcon.js +0 -27
  270. package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
  271. package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
  272. package/dist/stories/icons/DocumentIcon.js +0 -48
  273. package/dist/stories/icons/DownloadIcon.js +0 -27
  274. package/dist/stories/icons/Duplicate.js +0 -28
  275. package/dist/stories/icons/ErrorIcon.js +0 -27
  276. package/dist/stories/icons/ExitIcon.js +0 -28
  277. package/dist/stories/icons/ExportIcon.js +0 -28
  278. package/dist/stories/icons/EyeIcon.js +0 -28
  279. package/dist/stories/icons/FileIcon.js +0 -27
  280. package/dist/stories/icons/FilterIcon.js +0 -36
  281. package/dist/stories/icons/FlyIcon.js +0 -28
  282. package/dist/stories/icons/FoodLionChartIcon.js +0 -42
  283. package/dist/stories/icons/FoodLionIcon.js +0 -3076
  284. package/dist/stories/icons/FoodLionNewIcon.js +0 -39
  285. package/dist/stories/icons/GiantFoodChartIcon.js +0 -40
  286. package/dist/stories/icons/GiantFoodIcon.js +0 -1976
  287. package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
  288. package/dist/stories/icons/HannafordChartIcon.js +0 -40
  289. package/dist/stories/icons/HannafordIcon.js +0 -5017
  290. package/dist/stories/icons/HannafordIcon_new.js +0 -41
  291. package/dist/stories/icons/HannafordNewIcon.js +0 -213
  292. package/dist/stories/icons/InfoIcon.js +0 -28
  293. package/dist/stories/icons/LampIcon.js +0 -27
  294. package/dist/stories/icons/LegendLineIcon.js +0 -29
  295. package/dist/stories/icons/LegendUnionIcon.js +0 -29
  296. package/dist/stories/icons/MaintenanceIcon.js +0 -28
  297. package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
  298. package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
  299. package/dist/stories/icons/MenuItemRightIcon.js +0 -28
  300. package/dist/stories/icons/MenuItemUpIcon.js +0 -28
  301. package/dist/stories/icons/NoDataFoundIcon.js +0 -86
  302. package/dist/stories/icons/OptionsIcon.js +0 -27
  303. package/dist/stories/icons/SearchIcon.js +0 -27
  304. package/dist/stories/icons/ShoppingCartIcon.js +0 -45
  305. package/dist/stories/icons/ShoutIcon.js +0 -27
  306. package/dist/stories/icons/SpotlightProductIcon.js +0 -28
  307. package/dist/stories/icons/StopAndShopChartIcon.js +0 -42
  308. package/dist/stories/icons/StopAndShopIcon.js +0 -134
  309. package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
  310. package/dist/stories/icons/SucceededIcon.js +0 -27
  311. package/dist/stories/icons/TheGiantCompanyChartIcon.js +0 -40
  312. package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
  313. package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
  314. package/dist/stories/utils/CommonFunctions.js +0 -83
@@ -1,291 +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.TotalCost5rows = exports.TotalCost3rows = exports.TotalCost = exports.SwitchersPatternPercent = exports.HideTitleAndValue = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _TotalDoughnutChart = require("./TotalDoughnutChart");
10
- const arrLegendData = [{
11
- name: 'Package Cost',
12
- value: 30000,
13
- color: '#85A1D2'
14
- }, {
15
- name: 'Redemption Cost',
16
- value: 6500,
17
- color: '#9AE6FF'
18
- }];
19
- const arrLegendDat3rows = [{
20
- name: 'Package Cost',
21
- value: 30000,
22
- color: '#85A1D2'
23
- }, {
24
- name: 'Existing Redeemers',
25
- value: 6500,
26
- color: '#9AE6FF'
27
- }, {
28
- name: 'Others',
29
- value: 20000,
30
- color: '#FD5959'
31
- }];
32
- const arrLegendDat5rows = [{
33
- name: 'Food Lion',
34
- value: null,
35
- color: '#066768'
36
- }, {
37
- name: 'Hannaford',
38
- value: null,
39
- color: '#82B3B4'
40
- }, {
41
- name: 'The Giant Company',
42
- value: undefined,
43
- color: '#90CE9C'
44
- }
45
- // { name: 'Giant Food', value: 200.68474, color: '#5FCC70' },
46
- // { name: 'Stop&Shop', value: 250.9687458, color: '#229E38' },
47
- ];
48
- const arrLegendPercent = [{
49
- color: '#066768',
50
- name: 'None Switcher',
51
- value: 40.3
52
- }, {
53
- color: '#82B3B4',
54
- name: 'From Other Products',
55
- value: 19.7
56
- }, {
57
- color: '#90CE9C',
58
- name: 'From Other Supplier Brand',
59
- value: 25.31111
60
- }, {
61
- color: '#5FCC70',
62
- name: 'From other Suppliers',
63
- value: 14.59999
64
- }];
65
- var _default = exports.default = {
66
- title: 'SAG BI/TotalDoughnutChart',
67
- component: _TotalDoughnutChart.TotalDoughnutChart,
68
- tags: ['autodocs'],
69
- id: 'TotalDoughnutChart',
70
- parameters: {
71
- design: {
72
- type: 'figspec',
73
- accessToken: 'figd_vlq2HLcwzTQLvrhLrFWY_Be8CqbuyKcltE9oyHnR'
74
- }
75
- },
76
- argTypes: {
77
- title: {
78
- name: 'Title',
79
- control: {
80
- type: 'text'
81
- },
82
- description: 'title on top of the component'
83
- },
84
- value: {
85
- name: 'Value',
86
- control: {
87
- type: 'number',
88
- min: 0,
89
- max: 100000000000000
90
- },
91
- description: 'value (total) '
92
- },
93
- addingBenchmark: {
94
- name: 'Add Benchmark',
95
- control: {
96
- type: 'boolean'
97
- },
98
- description: 'true/false - Adding Benchmark'
99
- },
100
- dotCut: {
101
- name: 'Dot Cut',
102
- control: {
103
- type: 'boolean'
104
- },
105
- description: 'true/false - format total value with dot cut'
106
- },
107
- currencySign: {
108
- name: 'Currency',
109
- control: {
110
- type: 'boolean'
111
- },
112
- description: 'true/false - show/hide currency sign before total value'
113
- },
114
- currencyType: {
115
- name: 'Currency Type',
116
- options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY'],
117
- control: {
118
- type: 'select'
119
- }
120
- },
121
- width: {
122
- name: 'width',
123
- control: {
124
- type: 'text'
125
- },
126
- description: 'width of the control (in px / %)'
127
- },
128
- height: {
129
- name: 'height',
130
- control: {
131
- type: 'text'
132
- },
133
- description: 'height of the control (in px / %)'
134
- },
135
- textcolor: {
136
- name: 'Text Color',
137
- description: 'Sets the text color',
138
- control: {
139
- type: 'color',
140
- presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
141
- }
142
- },
143
- legendData: {
144
- name: 'Legend Data',
145
- description: 'array [] of objects: {displayName: string, value:number} to fill the pie chart, Please NOTE: the name have to be uniq '
146
- },
147
- itemsPercentagesValueAside: {
148
- default: false,
149
- name: 'Show Percentages value aside',
150
- control: {
151
- type: 'boolean'
152
- },
153
- description: 'true/false - Show Percentages value aside the item value'
154
- },
155
- itemsBoldedValues: {
156
- default: true,
157
- name: 'Items bolded values',
158
- control: {
159
- type: 'boolean'
160
- },
161
- description: 'true/false - Make the value text bolded'
162
- },
163
- itemsValuesSeparateLine: {
164
- default: false,
165
- name: 'Items values in a new line',
166
- control: {
167
- type: 'boolean'
168
- },
169
- description: 'true/false - Locate the value to a new line'
170
- },
171
- noDataText: {
172
- name: 'No Data text',
173
- control: {
174
- type: 'text'
175
- },
176
- description: 'text to display when no data found'
177
- },
178
- isPercent: {
179
- default: false,
180
- name: 'isPercent',
181
- control: {
182
- type: 'boolean'
183
- },
184
- description: 'true/false - isPercent'
185
- },
186
- hideTitleAndValue: {
187
- default: false,
188
- name: 'hideTitleAndValue',
189
- control: {
190
- type: 'boolean'
191
- },
192
- description: 'true/false - isPercent'
193
- },
194
- textAfterValue: {
195
- name: 'textAfterValue',
196
- control: {
197
- type: 'text'
198
- },
199
- description: 'text After Value'
200
- }
201
- }
202
- };
203
- const TotalCost = exports.TotalCost = {
204
- args: {
205
- title: 'Total Cost',
206
- value: 36500,
207
- addingBenchmark: false,
208
- dotCut: true,
209
- currencySign: true,
210
- currencyType: 'USD',
211
- legendData: arrLegendData,
212
- textcolor: '#212121',
213
- noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.',
214
- height: '100%',
215
- width: '100%',
216
- isPercent: false,
217
- hideTitleAndValue: false,
218
- textAfterValue: ''
219
- }
220
- };
221
- const TotalCost3rows = exports.TotalCost3rows = {
222
- args: {
223
- title: 'Total Cost',
224
- value: 56500,
225
- addingBenchmark: false,
226
- dotCut: true,
227
- currencySign: true,
228
- currencyType: 'USD',
229
- legendData: arrLegendDat3rows,
230
- textcolor: '#212121',
231
- noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
232
- hideTitleAndValue: false,
233
- itemsBoldedValues: false,
234
- textAfterValue: ''
235
- }
236
- };
237
- const TotalCost5rows = exports.TotalCost5rows = {
238
- args: {
239
- title: 'Total Cost',
240
- value: 565.25487,
241
- addingBenchmark: false,
242
- dotCut: true,
243
- currencySign: true,
244
- currencyType: 'USD',
245
- legendData: arrLegendDat5rows,
246
- width: '360px',
247
- height: '410px',
248
- textcolor: '#212121',
249
- noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
250
- hideTitleAndValue: false,
251
- textAfterValue: ''
252
- }
253
- };
254
- const SwitchersPatternPercent = exports.SwitchersPatternPercent = {
255
- args: {
256
- title: 'Switchers Pattern',
257
- value: 565000,
258
- addingBenchmark: false,
259
- dotCut: true,
260
- currencySign: true,
261
- currencyType: 'USD',
262
- legendData: arrLegendPercent,
263
- width: '360px',
264
- height: '410px',
265
- textcolor: '#212121',
266
- noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
267
- isPercent: true,
268
- itemsValuesSeparateLine: true,
269
- hideTitleAndValue: false,
270
- textAfterValue: '30% out of $400K actual sales'
271
- }
272
- };
273
- const HideTitleAndValue = exports.HideTitleAndValue = {
274
- args: {
275
- title: 'Switchers Pattern',
276
- value: 565000,
277
- addingBenchmark: false,
278
- dotCut: true,
279
- currencySign: true,
280
- currencyType: 'USD',
281
- legendData: arrLegendPercent,
282
- width: '360px',
283
- height: '210px',
284
- textcolor: '#212121',
285
- noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
286
- isPercent: true,
287
- itemsValuesSeparateLine: true,
288
- hideTitleAndValue: true,
289
- textAfterValue: ''
290
- }
291
- };
@@ -1,178 +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.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.TextAfterValue = exports.LegendTitleAndFormatedValueContainer = exports.LegendTitle = exports.LegendFormattedValue = exports.LegendFormatedValueContainer = exports.LegendControlsContainer = exports.LegendContainer = exports.LegendColorRectangle = exports.FormattedValue = exports.DoughnutChartContainer = exports.DoughnutChartAndLegendContainer = exports.CurrencySignAndFormattedValueContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = void 0;
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- const scrollableStyles = `
10
- overflow-y: auto;
11
-
12
- &::-webkit-scrollbar {
13
- width: 8px;
14
- }
15
-
16
- &::-webkit-scrollbar-track {
17
- background: #E8E8E8;
18
- border-radius: 5px;
19
- }
20
-
21
- &::-webkit-scrollbar-thumb {
22
- background: #D0D0D0;
23
- border-radius: 5px;
24
- }
25
- `;
26
- const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
27
- position: relative;
28
- font-family: "Poppins", sans-serif;
29
- font-style: normal;
30
- font-size: ${props => props.rootFont};
31
- color: ${props => props.textColor};
32
- width: ${props => props.width};
33
- height: ${props => props.height};
34
- border-radius: 12px;
35
- display: flex;
36
- align-items: center;
37
- @media (max-width: 1536px) {
38
- ${scrollableStyles}
39
- }
40
-
41
- > * {
42
- box-sizing: border-box;
43
- }
44
- `;
45
- const Controls = exports.Controls = _styledComponents.default.div`
46
- display: flex;
47
- flex-direction: column;
48
- width: 100%;
49
- height: 100%;
50
- background: white;
51
- border-radius: 12px;
52
- `;
53
- const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
54
- display: flex;
55
- background: white;
56
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
57
- border-radius: 5px;
58
- padding: 6px 10px;
59
- margin: 0;
60
- `;
61
- const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p`
62
- color: #212121;
63
- font-family: "Poppins", sans-serif;
64
- font-size: 12px;
65
- font-weight: 400;
66
- font-style: normal;
67
- width: max-content; // fit-content;
68
- line-height: normal;
69
- margin: 0;
70
- `;
71
- const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
72
- display: flex;
73
- flex-direction: column;
74
- padding: 0 20px;
75
- `;
76
- const Title = exports.Title = _styledComponents.default.h4`
77
- font-weight: 500;
78
- font-size: 1rem;
79
- margin: 0;
80
- @media (max-width: 1536px) {
81
- font-size: 14px;
82
- }
83
- @media (max-width: 1366px) {
84
- font-size: 12px;
85
- }
86
- `;
87
- const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div`
88
- display: flex;
89
- align-items: center;
90
- gap: 5px;
91
- align-items: baseline;
92
- `;
93
- const CurrencySign = exports.CurrencySign = _styledComponents.default.span`
94
- font-weight: 500;
95
- font-size: 16px;
96
- @media (max-width: 1536px) {
97
- font-size: 14px;
98
- }
99
- @media (max-width: 1366px) {
100
- font-size: 11px;
101
- }
102
- `;
103
- const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
104
- font-weight: 500;
105
- font-size: 40px;
106
- @media (max-width: 1536px) {
107
- font-size: 24px;
108
- }
109
- @media (max-width: 1366px) {
110
- font-size: 20px;
111
- }
112
- `;
113
- const TextAfterValue = exports.TextAfterValue = _styledComponents.default.div`
114
- font-weight: 400;
115
- font-size: 12px;
116
- @media (max-width: 1536px) {
117
- font-size: 11px;
118
- }
119
- @media (max-width: 1366px) {
120
- font-size: 10px;
121
- }
122
- `;
123
- const DoughnutChartAndLegendContainer = exports.DoughnutChartAndLegendContainer = _styledComponents.default.div`
124
- display: flex;
125
- justify-content: space-between;
126
- margin-top: auto;
127
- padding: 0 20px ;
128
- margin-bottom: 20px;
129
- `;
130
- const DoughnutChartContainer = exports.DoughnutChartContainer = _styledComponents.default.div`
131
- display: flex;
132
- align-items: center;
133
- min-width: 90px;
134
- min-height: 90px;
135
- `;
136
- const LegendContainer = exports.LegendContainer = _styledComponents.default.div`
137
- padding-left: 10px;
138
- display: flex;
139
- flex-direction: column;
140
- justify-content: space-evenly;
141
- `;
142
- const LegendControlsContainer = exports.LegendControlsContainer = _styledComponents.default.div`
143
- display: flex;
144
- gap: 0.5rem;
145
- align-items: center;
146
- margin-bottom: 0.375rem;
147
- `;
148
- const LegendTitleAndFormatedValueContainer = exports.LegendTitleAndFormatedValueContainer = _styledComponents.default.div`
149
- flex-grow: 1;
150
- `;
151
- const LegendFormatedValueContainer = exports.LegendFormatedValueContainer = _styledComponents.default.div`
152
- font-size: 0.875rem;
153
- `;
154
- const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div`
155
- width: 0.875rem;
156
- min-width: 0.875rem;
157
- height: 0.875rem;
158
- border-radius: 2px;
159
- background: ${props => props.color};
160
- `;
161
- const LegendTitle = exports.LegendTitle = _styledComponents.default.h5`
162
- font-weight: 400;
163
- font-size: 16px;
164
- gap: 5px;
165
- margin: 0;
166
- display: flex;
167
- justify-content: space-between;
168
- @media (max-width: 1536px) {
169
- font-size: 11px;
170
- }
171
- @media (max-width: 1366px) {
172
- font-size: 10px;
173
- }
174
- `;
175
- const LegendFormattedValue = exports.LegendFormattedValue = _styledComponents.default.span`
176
- font-weight: 500;
177
- white-space: nowrap;
178
- `;
@@ -1,229 +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.TotalHorizontalCharts = 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 _CommonFunctions = require("../../utils/CommonFunctions");
14
- var _TotalHorizontalCharts = require("./TotalHorizontalCharts.style");
15
- /* eslint-disable no-unused-vars */
16
- /* eslint-disable react/prop-types */
17
- /* eslint-disable react/no-unstable-nested-components */
18
- /* eslint-disable no-shadow */
19
- /* eslint-disable react/destructuring-assignment */
20
-
21
- const TotalHorizontalCharts = props => {
22
- const {
23
- title,
24
- value,
25
- dotCut,
26
- currencySign,
27
- currencyType,
28
- chartsData,
29
- labelFontSize,
30
- labelLimitedLetters,
31
- width,
32
- height,
33
- barsMargin,
34
- rightGap,
35
- textColor,
36
- noDataText,
37
- showPercentAsideValue,
38
- isDollar,
39
- isPercentage,
40
- showDollarSign,
41
- className
42
- } = props;
43
- const barBackgrounds = chartsData.map(bg => bg.color);
44
- const topHeader = (0, _react.useRef)();
45
- const wrapper = (0, _react.useRef)();
46
- const [chartHeight, setChartHeight] = (0, _react.useState)('100%');
47
- const calcHeight = () => {
48
- if (wrapper.current && topHeader.current) {
49
- const availableHeight = Math.max(wrapper.current.clientHeight - topHeader.current.clientHeight, 0);
50
- return availableHeight / wrapper.current.clientHeight * 100;
51
- }
52
- return 100;
53
- };
54
- const updateChartHeight = () => {
55
- setChartHeight(`${calcHeight()}%`);
56
- };
57
- (0, _react.useEffect)(() => {
58
- updateChartHeight();
59
- window.addEventListener('resize', updateChartHeight);
60
- return () => {
61
- window.removeEventListener('resize', updateChartHeight);
62
- };
63
- }, []);
64
- const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
65
- const [tooltipText, setTooltipText] = (0, _react.useState)({
66
- content: '',
67
- clientX: 0,
68
- clientY: 0
69
- });
70
- const CustomizedLabel = props => showPercentAsideValue ? /*#__PURE__*/_react.default.createElement("text", {
71
- x: props.x + (props.width <= 0 ? -12 : props.width) + 56,
72
- y: props.y + 4,
73
- dy: props.height / 2,
74
- dx: -8,
75
- fill: props.stroke,
76
- fontSize: 12,
77
- fontWeight: 500,
78
- textAnchor: "middle"
79
- }, ''.concat((0, _CommonFunctions.getFormattedValue)(props.value), (0, _CommonFunctions.getFormattedUnits)(props.value)), /*#__PURE__*/_react.default.createElement("tspan", {
80
- fontWeight: 400
81
- }, ` (${(props.value / value * 100).toFixed(0)}%)`)) : /*#__PURE__*/_react.default.createElement("text", {
82
- x: props.x + (props.width <= 0 ? -12 : props.width) + 40,
83
- y: props.y + 4,
84
- dy: props.height / 2,
85
- dx: -8,
86
- fill: props.stroke,
87
- fontSize: 12,
88
- fontWeight: 400,
89
- textAnchor: "middle"
90
- }, !isDollar ? ''.concat((0, _CommonFunctions.getFormattedValue)(props.value), isPercentage ? '%' : (0, _CommonFunctions.getFormattedUnits)(props.value)) : ''.concat(showDollarSign ? '$' : '', (0, _CommonFunctions.getFormattedValue)(props.value), (0, _CommonFunctions.getFormattedUnits)(props.value)));
91
- const CustomizedTickBarChart = props => {
92
- const {
93
- x,
94
- y,
95
- height,
96
- payload,
97
- fill,
98
- orientation,
99
- stroke
100
- } = props;
101
- const handleMouseEnter = content => {
102
- setTooltipText(prevState => ({
103
- ...prevState,
104
- content: content !== prevState.content ? content : prevState.content,
105
- clientX: x / 1.2,
106
- clientY: y - 20
107
- }));
108
- setShowLegendTooltip(true);
109
- };
110
- const handleMouseLeave = () => {
111
- if (showLegendTooltip === false) return;
112
- setTimeout(() => {
113
- setShowLegendTooltip(false);
114
- }, 1200);
115
- };
116
- if (chartsData && chartsData.length > 0 && payload) {
117
- const chartsDataLabel = chartsData.filter(item => item.name === payload.value);
118
- if (chartsDataLabel && chartsDataLabel.length > 0) {
119
- return /*#__PURE__*/_react.default.createElement("g", {
120
- onMouseEnter: () => handleMouseEnter(payload.value),
121
- onMouseLeave: handleMouseLeave
122
- }, /*#__PURE__*/_react.default.createElement("text", {
123
- style: {
124
- whiteSpace: 'nowrap'
125
- },
126
- height: height,
127
- x: 20,
128
- y: y,
129
- fontSize: labelFontSize,
130
- orientation: orientation,
131
- stroke: stroke,
132
- textAnchor: "start"
133
- // verticalAnchor="middle"
134
- ,
135
- fill: fill
136
- }, payload.value.length > labelLimitedLetters - 1 ? `${payload.value.slice(0, labelLimitedLetters)}...` : payload.value));
137
- }
138
- return null;
139
- }
140
- return null;
141
- };
142
- return /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.ControlsContainer, {
143
- ref: wrapper,
144
- height: height,
145
- width: width,
146
- textColor: textColor,
147
- className: className
148
- }, (chartsData === null || chartsData === void 0 ? void 0 : chartsData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.CardHeader, {
149
- ref: topHeader,
150
- className: "CardHeader"
151
- }, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.Title, null, title), /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.TotalValue, {
152
- className: "TotalValue"
153
- }, currencySign && /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.CurrencySign, {
154
- className: "CurrencySign"
155
- }, (0, _CommonFunctions.getCurrencySign)(currencyType, value)), dotCut ? (0, _CommonFunctions.getFormattedValue)(value && Math.abs(value) > 0 && value % 1 !== 0 ? value === null || value === void 0 ? void 0 : value.toFixed(2) : value) : (0, _CommonFunctions.getNumberWithCommas)(value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : '')), /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
156
- height: chartHeight
157
- }, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
158
- layout: "vertical",
159
- data: chartsData,
160
- margin: {
161
- top: 10,
162
- right: 20,
163
- bottom: barsMargin,
164
- left: 10
165
- }
166
- }, /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
167
- type: "number",
168
- domain: [0, dataMax => dataMax * rightGap],
169
- allowDataOverflow: true,
170
- hide: true
171
- }), /*#__PURE__*/_react.default.createElement(_recharts.YAxis, {
172
- dataKey: "name",
173
- type: "category",
174
- width: labelLimitedLetters * 10,
175
- tickLine: false,
176
- axisLine: false,
177
- interval: 0,
178
- allowDataOverflow: true,
179
- tick: CustomizedTickBarChart
180
- }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
181
- dataKey: "value",
182
- barSize: 20,
183
- fill: "#8884d8",
184
- barCategoryGap: 0,
185
- barGap: 5
186
- }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
187
- dataKey: "value",
188
- content: CustomizedLabel
189
- }), chartsData.map((entry, index) =>
190
- /*#__PURE__*/
191
- // eslint-disable-next-line react/no-array-index-key
192
- _react.default.createElement(_recharts.Cell, {
193
- key: `cell-${index}`,
194
- fill: barBackgrounds[index % 20]
195
- }))), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
196
- direction: "top",
197
- content: tooltipText.content,
198
- top: tooltipText.clientY,
199
- left: tooltipText.clientX,
200
- style: {
201
- pointerEvents: 'none'
202
- }
203
- })))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
204
- noDataText: noDataText
205
- }));
206
- };
207
- exports.TotalHorizontalCharts = TotalHorizontalCharts;
208
- var _default = exports.default = TotalHorizontalCharts;
209
- TotalHorizontalCharts.defaultProps = {
210
- className: '',
211
- title: 'SALES',
212
- value: 0,
213
- dotCut: false,
214
- currencySign: false,
215
- currencyType: 'USD',
216
- chartsData: [],
217
- showPercentAsideValue: false,
218
- labelFontSize: 10,
219
- labelLimitedLetters: 12,
220
- width: '100%',
221
- height: '100%',
222
- barsMargin: 0,
223
- rightGap: 1,
224
- textColor: '#212121',
225
- noDataText: 'No Data',
226
- isDollar: true,
227
- isPercentage: false,
228
- showDollarSign: true
229
- };