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.
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/TotalHorizontalCharts.js +17 -14
- package/dist/stories/components/TotalHorizontalCharts.style.js +37 -1
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/package.json +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -48
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -97
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -78
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -153
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -59
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -189
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -99
- package/dist/stories/components/BarChart/BarChart.js +0 -191
- package/dist/stories/components/BarChart/BarChart.stories.js +0 -153
- package/dist/stories/components/BarChart/BarChart.style.js +0 -60
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -213
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -299
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
- package/dist/stories/components/Benchmark/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
- package/dist/stories/components/Benchmark/Benchmark.style.js +0 -61
- package/dist/stories/components/Button/Button.js +0 -217
- package/dist/stories/components/Button/Button.stories.js +0 -269
- package/dist/stories/components/Button/Button.style.js +0 -90
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -48
- package/dist/stories/components/Card/Card.js +0 -72
- package/dist/stories/components/Card/Card.stories.js +0 -92
- package/dist/stories/components/Card/Card.style.js +0 -65
- package/dist/stories/components/CheckBox/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/stories/components/CheckBox/CheckBox.style.js +0 -36
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
- package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -13
- package/dist/stories/components/CollapseData/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/stories/components/CollapseData/CollapseData.style.js +0 -127
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -249
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -200
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
- package/dist/stories/components/Datepicker/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
- package/dist/stories/components/Datepicker/Datepicker.style.js +0 -19
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -51
- package/dist/stories/components/Dropdown/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
- package/dist/stories/components/Dropdown/Dropdown.style.js +0 -17
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -292
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -216
- package/dist/stories/components/DropdownNew/DropdownNew.js +0 -98
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -416
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -21
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -254
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -187
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -94
- package/dist/stories/components/EventList/EventList.js +0 -61
- package/dist/stories/components/EventList/EventList.stories.js +0 -84
- package/dist/stories/components/EventList/EventList.style.js +0 -38
- package/dist/stories/components/EventListItem/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/stories/components/EventListItem/EventListItem.style.js +0 -47
- package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -30
- package/dist/stories/components/FilterPanel/FilterPanel.js +0 -566
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -89
- package/dist/stories/components/FormInput/FormInput.js +0 -41
- package/dist/stories/components/FormSelect/FormSelect.js +0 -42
- package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -91
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/IconButton/IconButton.js +0 -147
- package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
- package/dist/stories/components/IconButton/IconButton.style.js +0 -64
- package/dist/stories/components/Input/Input.js +0 -183
- package/dist/stories/components/Input/Input.stories.js +0 -434
- package/dist/stories/components/Input/Input.style.js +0 -130
- package/dist/stories/components/InputOld/InputOld.js +0 -90
- package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
- package/dist/stories/components/InputOld/InputOld.style.js +0 -69
- package/dist/stories/components/KpiFilter/KpiFilter.js +0 -330
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -132
- package/dist/stories/components/LinkButton/LinkButton.js +0 -207
- package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
- package/dist/stories/components/LinkButton/LinkButton.style.js +0 -53
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -46
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -78
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
- package/dist/stories/components/ListBox/ListBox.js +0 -82
- package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
- package/dist/stories/components/ListBox/ListBox.style.js +0 -48
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -198
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
- package/dist/stories/components/Modal/Modal.js +0 -21
- package/dist/stories/components/Modal/Modal.style.js +0 -65
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -103
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -200
- package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +0 -13
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -22
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -447
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -59
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -327
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
- package/dist/stories/components/Popup/Popup.js +0 -172
- package/dist/stories/components/Popup/Popup.stories.js +0 -704
- package/dist/stories/components/Popup/Popup.style.js +0 -122
- package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -108
- package/dist/stories/components/PopupContent/PopupContent.js +0 -111
- package/dist/stories/components/PopupContent/PopupContent.style.js +0 -74
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -86
- package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -24
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -102
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -182
- package/dist/stories/components/QuickFilter/QuickFilter.js +0 -78
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -21
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -194
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -229
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -139
- package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -229
- package/dist/stories/components/RangePicker/RangePicker.js +0 -176
- package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
- package/dist/stories/components/RangePicker/RangePicker.style.js +0 -107
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/ReportTable/ReportTable.js +0 -262
- package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
- package/dist/stories/components/ReportTable/ReportTable.style.js +0 -131
- package/dist/stories/components/SagButton/SagButton.js +0 -68
- package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
- package/dist/stories/components/SagButton/SagButton.style.js +0 -47
- package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -30
- package/dist/stories/components/SagInput/SagInput.js +0 -53
- package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
- package/dist/stories/components/SagInput/SagInput.style.js +0 -41
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -111
- package/dist/stories/components/SearchInput/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/stories/components/SearchInput/SearchInput.style.js +0 -37
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -100
- package/dist/stories/components/Select/Select.js +0 -135
- package/dist/stories/components/Select/Select.stories.js +0 -200
- package/dist/stories/components/Select/Select.style.js +0 -102
- package/dist/stories/components/TabMenu/TabMenu.js +0 -214
- package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
- package/dist/stories/components/TabMenu/TabMenu.style.js +0 -115
- package/dist/stories/components/Table/Table.js +0 -195
- package/dist/stories/components/Table/Table.stories.js +0 -104
- package/dist/stories/components/Table/Table.style.js +0 -86
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
- package/dist/stories/components/TextField/TextField.js +0 -209
- package/dist/stories/components/TextField/TextField.stories.js +0 -162
- package/dist/stories/components/TextField/TextField.style.js +0 -18
- package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -222
- package/dist/stories/components/Tooltip/Tooltip.js +0 -31
- package/dist/stories/components/Tooltip/Tooltip.style.js +0 -103
- package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -51
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -81
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -186
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -291
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -229
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -228
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -58
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -33
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -105
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -204
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
- package/dist/stories/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/icons/ArrowSelectIcon.js +0 -27
- package/dist/stories/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/icons/AttachedIcon.js +0 -27
- package/dist/stories/icons/BellIcon.js +0 -27
- package/dist/stories/icons/Calendar.js +0 -20
- package/dist/stories/icons/CalendarIcon.js +0 -27
- package/dist/stories/icons/CalendarInOpen.js +0 -26
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/icons/ClockIcon.js +0 -27
- package/dist/stories/icons/CloseIcon.js +0 -27
- package/dist/stories/icons/CloseXIcon.js +0 -27
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/icons/DocumentIcon.js +0 -48
- package/dist/stories/icons/DownloadIcon.js +0 -27
- package/dist/stories/icons/Duplicate.js +0 -28
- package/dist/stories/icons/ErrorIcon.js +0 -27
- package/dist/stories/icons/ExitIcon.js +0 -28
- package/dist/stories/icons/ExportIcon.js +0 -28
- package/dist/stories/icons/EyeIcon.js +0 -28
- package/dist/stories/icons/FileIcon.js +0 -27
- package/dist/stories/icons/FilterIcon.js +0 -36
- package/dist/stories/icons/FlyIcon.js +0 -28
- package/dist/stories/icons/FoodLionChartIcon.js +0 -42
- package/dist/stories/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/icons/GiantFoodChartIcon.js +0 -40
- package/dist/stories/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/icons/HannafordChartIcon.js +0 -40
- package/dist/stories/icons/HannafordIcon.js +0 -5017
- package/dist/stories/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/icons/InfoIcon.js +0 -28
- package/dist/stories/icons/LampIcon.js +0 -27
- package/dist/stories/icons/LegendLineIcon.js +0 -29
- package/dist/stories/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/icons/OptionsIcon.js +0 -27
- package/dist/stories/icons/SearchIcon.js +0 -27
- package/dist/stories/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/icons/ShoutIcon.js +0 -27
- package/dist/stories/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/icons/StopAndShopChartIcon.js +0 -42
- package/dist/stories/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/icons/SucceededIcon.js +0 -27
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/CommonFunctions.js +0 -83
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.ListBox = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _CheckBoxButton = require("../CheckBoxButton/CheckBoxButton");
|
|
10
|
-
var _ListBox = require("./ListBox.style");
|
|
11
|
-
/* ListBox */
|
|
12
|
-
const ListBox = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
data,
|
|
15
|
-
width = '100%',
|
|
16
|
-
height = '100%',
|
|
17
|
-
borderColor = '#B1B1B1',
|
|
18
|
-
buttonsIconColor = '#1B30AA',
|
|
19
|
-
buttonsBorderColor = '#1B30AA',
|
|
20
|
-
buttonsTextColorChecked = '#212121',
|
|
21
|
-
buttonsTextColorUnchecked = '#212121',
|
|
22
|
-
buttonsBackgroundColorChecked = '#1B30AA',
|
|
23
|
-
buttonsBackgroundColorUnchecked = '#FFF',
|
|
24
|
-
onClick,
|
|
25
|
-
...props
|
|
26
|
-
} = _ref;
|
|
27
|
-
const [dataState, setDataState] = (0, _react.useState)(data);
|
|
28
|
-
(0, _react.useEffect)(() => {
|
|
29
|
-
const selectedData = dataState === null || dataState === void 0 ? void 0 : dataState.filter(item => item.checked === true);
|
|
30
|
-
onClick({
|
|
31
|
-
data: dataState,
|
|
32
|
-
selectedData
|
|
33
|
-
});
|
|
34
|
-
}, [dataState]);
|
|
35
|
-
const dispalyButtons = function (data, height) {
|
|
36
|
-
let paddingBottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '5px';
|
|
37
|
-
if (data && data.length > 0) {
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_ListBox.ButtonsContainer, {
|
|
39
|
-
id: "ButtonsContainer",
|
|
40
|
-
height: height,
|
|
41
|
-
paddingBottom: paddingBottom
|
|
42
|
-
}, data === null || data === void 0 ? void 0 : data.map(item => /*#__PURE__*/_react.default.createElement(_ListBox.ButtonContainer, {
|
|
43
|
-
id: "ButtonContainer"
|
|
44
|
-
}, /*#__PURE__*/_react.default.createElement(_CheckBoxButton.CheckBoxButton, {
|
|
45
|
-
backgroundColorChecked: buttonsBackgroundColorChecked,
|
|
46
|
-
backgroundColorUnchecked: buttonsBackgroundColorUnchecked,
|
|
47
|
-
borderColor: buttonsBorderColor,
|
|
48
|
-
borderRadius: "12px",
|
|
49
|
-
checked: item.checked,
|
|
50
|
-
disabled: item.disabled,
|
|
51
|
-
showIconInCheckBoxButtons: false,
|
|
52
|
-
fontSize: "14px",
|
|
53
|
-
height: "19px",
|
|
54
|
-
iconColor: buttonsIconColor,
|
|
55
|
-
iconSize: "12px",
|
|
56
|
-
label: item.label,
|
|
57
|
-
onClick: props => {
|
|
58
|
-
const newData = dataState === null || dataState === void 0 ? void 0 : dataState.map(item => item.label === props.label ? {
|
|
59
|
-
...item,
|
|
60
|
-
checked: props.checked
|
|
61
|
-
} : {
|
|
62
|
-
...item
|
|
63
|
-
});
|
|
64
|
-
setDataState(newData);
|
|
65
|
-
},
|
|
66
|
-
textColorChecked: buttonsTextColorChecked,
|
|
67
|
-
textColorUnchecked: buttonsTextColorUnchecked,
|
|
68
|
-
width: "100%"
|
|
69
|
-
}))));
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_ListBox.MainContainer, {
|
|
73
|
-
id: "MainContainer",
|
|
74
|
-
height: height,
|
|
75
|
-
width: width
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_ListBox.PanelContainer, {
|
|
77
|
-
id: "PanelContainer",
|
|
78
|
-
borderColor: borderColor
|
|
79
|
-
}, dispalyButtons(dataState, height = '50px', '0')));
|
|
80
|
-
};
|
|
81
|
-
exports.ListBox = ListBox;
|
|
82
|
-
var _default = exports.default = ListBox;
|
|
@@ -1,132 +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.Retailers = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _ListBox = require("./ListBox");
|
|
10
|
-
const viewCreativeRetailersData1 = [{
|
|
11
|
-
label: 'Food Lion',
|
|
12
|
-
checked: true,
|
|
13
|
-
disabled: false
|
|
14
|
-
}, {
|
|
15
|
-
label: 'Stop&Shop',
|
|
16
|
-
checked: true,
|
|
17
|
-
disabled: false
|
|
18
|
-
}, {
|
|
19
|
-
label: 'Giant Food',
|
|
20
|
-
checked: true,
|
|
21
|
-
disabled: false
|
|
22
|
-
}, {
|
|
23
|
-
label: 'The Giant Company',
|
|
24
|
-
checked: true,
|
|
25
|
-
disabled: false
|
|
26
|
-
}, {
|
|
27
|
-
label: 'Hannaford',
|
|
28
|
-
checked: true,
|
|
29
|
-
disabled: false
|
|
30
|
-
}];
|
|
31
|
-
var _default = exports.default = {
|
|
32
|
-
title: 'SAG Core/ListBox',
|
|
33
|
-
component: _ListBox.ListBox,
|
|
34
|
-
tags: ['autodocs'],
|
|
35
|
-
argTypes: {
|
|
36
|
-
data: {
|
|
37
|
-
name: 'data',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'object'
|
|
40
|
-
},
|
|
41
|
-
description: ' object: to fill event Attributes buttons '
|
|
42
|
-
},
|
|
43
|
-
width: {
|
|
44
|
-
name: 'width',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
},
|
|
48
|
-
description: 'width of the control (in px / %)'
|
|
49
|
-
},
|
|
50
|
-
height: {
|
|
51
|
-
name: 'height',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'text'
|
|
54
|
-
},
|
|
55
|
-
description: 'height of the control (in px / % )'
|
|
56
|
-
},
|
|
57
|
-
onClick: {
|
|
58
|
-
action: 'onClick',
|
|
59
|
-
description: 'onClick event - returns an object of check box {true/false} '
|
|
60
|
-
},
|
|
61
|
-
borderColor: {
|
|
62
|
-
name: 'borderColor',
|
|
63
|
-
control: {
|
|
64
|
-
type: 'color',
|
|
65
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
66
|
-
description: 'Sets borderColor Color '
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
buttonsIconColor: {
|
|
70
|
-
name: 'buttonsIconColor',
|
|
71
|
-
control: {
|
|
72
|
-
type: 'color',
|
|
73
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
74
|
-
description: 'Sets icons Color '
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
buttonsBorderColor: {
|
|
78
|
-
name: 'buttonsBorderColor',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'color',
|
|
81
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
82
|
-
description: 'Sets buttons border Color '
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
buttonsTextColorChecked: {
|
|
86
|
-
name: 'buttonsTextColorChecked',
|
|
87
|
-
control: {
|
|
88
|
-
type: 'color',
|
|
89
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
90
|
-
description: 'Sets text Checked Color '
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
buttonsTextColorUnchecked: {
|
|
94
|
-
name: 'buttonsTextColorUnchecked',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'color',
|
|
97
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
98
|
-
description: 'Sets text Unchecked Color '
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
buttonsBackgroundColorChecked: {
|
|
102
|
-
name: 'buttonsBackgroundColorChecked',
|
|
103
|
-
control: {
|
|
104
|
-
type: 'color',
|
|
105
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
106
|
-
description: 'Sets text background Checked Color '
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
buttonsBackgroundColorUnchecked: {
|
|
110
|
-
name: 'buttonsBackgroundColorUnchecked',
|
|
111
|
-
control: {
|
|
112
|
-
type: 'color',
|
|
113
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
114
|
-
description: 'Sets text background Unchecked Color '
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const Retailers = exports.Retailers = {
|
|
120
|
-
args: {
|
|
121
|
-
data: viewCreativeRetailersData1,
|
|
122
|
-
width: '180px',
|
|
123
|
-
height: '100%',
|
|
124
|
-
borderColor: '#B1B1B1',
|
|
125
|
-
buttonsIconColor: "#90CE9C",
|
|
126
|
-
buttonsBorderColor: "#90CE9C",
|
|
127
|
-
buttonsTextColorChecked: "#212121",
|
|
128
|
-
buttonsTextColorUnchecked: "#212121",
|
|
129
|
-
buttonsBackgroundColorChecked: "#E9F5EB",
|
|
130
|
-
buttonsBackgroundColorUnchecked: "#F2F2F2"
|
|
131
|
-
}
|
|
132
|
-
};
|
|
@@ -1,48 +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.PanelContainer = exports.MainContainer = exports.ButtonsContainer = exports.ButtonContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
position: relative;
|
|
12
|
-
font-family: "Poppins", sans-serif;
|
|
13
|
-
font-style: normal;
|
|
14
|
-
font-size: 1rem;
|
|
15
|
-
border-radius: 12px;
|
|
16
|
-
width: ${props => props.width};
|
|
17
|
-
height: ${props => props.height};
|
|
18
|
-
`;
|
|
19
|
-
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
align-content: center;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-around;
|
|
25
|
-
border: 1px solid ${props => props.borderColor};
|
|
26
|
-
border-radius: 12px;
|
|
27
|
-
background: #ffffff;
|
|
28
|
-
padding: 0.1rem;
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
line-height: 19px;
|
|
32
|
-
white-space: pre-wrap;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
width: 100%;
|
|
35
|
-
`;
|
|
36
|
-
const ButtonsContainer = exports.ButtonsContainer = _styledComponents.default.div`
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
//flex-wrap: wrap;
|
|
40
|
-
width: 100%;
|
|
41
|
-
padding-bottom: ${props => props.paddingBottom};
|
|
42
|
-
`;
|
|
43
|
-
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div`
|
|
44
|
-
/* display: flex; */
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
margin: 0;
|
|
47
|
-
padding: 6px;
|
|
48
|
-
`;
|
|
@@ -1,109 +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.MarketShareDescription = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _LampIcon = require("../../icons/LampIcon");
|
|
10
|
-
var _ExportIcon = _interopRequireDefault(require("../../icons/ExportIcon"));
|
|
11
|
-
var _MarketShareDescription = require("./MarketShareDescription.style");
|
|
12
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
13
|
-
const MarketShareDescription = props => {
|
|
14
|
-
const {
|
|
15
|
-
width,
|
|
16
|
-
height,
|
|
17
|
-
marketShareData,
|
|
18
|
-
iconColor,
|
|
19
|
-
onBannerClick,
|
|
20
|
-
dotCut
|
|
21
|
-
} = props;
|
|
22
|
-
const displayField = dataItem => {
|
|
23
|
-
var _dataItem$value;
|
|
24
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldTitleAndValueSubContainer, {
|
|
25
|
-
className: "FieldTitleAndValueSubContainer"
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldTitle, {
|
|
27
|
-
className: "FieldTitle"
|
|
28
|
-
}, dataItem.label), /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FormattedValue, {
|
|
29
|
-
className: "FormattedValue"
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.TextBeforeAndAfterValue, {
|
|
31
|
-
className: "TextBeforeAndAfterValue"
|
|
32
|
-
}, dataItem.textBefore), dotCut ? (0, _CommonFunctions.getFormattedValue)(dataItem.value && Math.abs(dataItem.value) > 0 && dataItem.value % 1 !== 0 ? (_dataItem$value = dataItem.value) === null || _dataItem$value === void 0 ? void 0 : _dataItem$value.toFixed(2) : dataItem.value) : (0, _CommonFunctions.getNumberWithCommas)(dataItem.value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(dataItem.value) : '', /*#__PURE__*/_react.default.createElement(_MarketShareDescription.TextBeforeAndAfterValue, null, dataItem.textAfter)));
|
|
33
|
-
return content;
|
|
34
|
-
};
|
|
35
|
-
const dispalyRowFields = data => {
|
|
36
|
-
if (!data && !data.length > 0) return '';
|
|
37
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldsContainer, {
|
|
38
|
-
className: "FieldsContainer",
|
|
39
|
-
height: "160px"
|
|
40
|
-
}, data === null || data === void 0 ? void 0 : data.map((item, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OneFieldsContainer, {
|
|
41
|
-
className: "OneFieldsContainer",
|
|
42
|
-
padding: index === 0 ? '0px' : '0 0 0 40px'
|
|
43
|
-
}, displayField(item)), (data === null || data === void 0 ? void 0 : data.length) !== index + 1 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporatorContainer, {
|
|
44
|
-
className: "ColumnLineSeporatorContainer_vertical"
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporator, {
|
|
46
|
-
className: "ColumnLineSeporator"
|
|
47
|
-
})) : '')));
|
|
48
|
-
return content;
|
|
49
|
-
};
|
|
50
|
-
const displayRows = () => {
|
|
51
|
-
if (!marketShareData || (marketShareData === null || marketShareData === void 0 ? void 0 : marketShareData.length) === 0) return '';
|
|
52
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.AllRowsContainer, {
|
|
53
|
-
className: "AllRowsContainer"
|
|
54
|
-
}, marketShareData.map((item, index) => {
|
|
55
|
-
var _item$rowFooter;
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OneRowContainer, {
|
|
57
|
-
className: "OneRowContainer"
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.RowTitle, {
|
|
59
|
-
className: "RowTitle"
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextLabel, {
|
|
61
|
-
className: "InfoTextLabel",
|
|
62
|
-
dangerouslySetInnerHTML: {
|
|
63
|
-
__html: item.rowTitle
|
|
64
|
-
}
|
|
65
|
-
}), item.showBanner && /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OutBanner, {
|
|
66
|
-
className: "OutBanner",
|
|
67
|
-
onClick: () => onBannerClick({
|
|
68
|
-
eventName: 'onBannerClick',
|
|
69
|
-
rowName: item.name
|
|
70
|
-
})
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement(_ExportIcon.default, {
|
|
72
|
-
color: "#212121"
|
|
73
|
-
}), "View By Banner")), dispalyRowFields(item.fieldsArray), /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextContainer, {
|
|
74
|
-
className: "InfoTextContainer"
|
|
75
|
-
}, item.rowFooter && ((_item$rowFooter = item.rowFooter) === null || _item$rowFooter === void 0 ? void 0 : _item$rowFooter.length) > 0 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.IconContainer, {
|
|
76
|
-
className: "IconContainer"
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_LampIcon.LampIcon, {
|
|
78
|
-
width: "23px",
|
|
79
|
-
height: "19px",
|
|
80
|
-
fill: iconColor
|
|
81
|
-
})) : '', /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextLabel, {
|
|
82
|
-
className: "InfoTextLabel",
|
|
83
|
-
dangerouslySetInnerHTML: {
|
|
84
|
-
__html: item.rowFooter
|
|
85
|
-
}
|
|
86
|
-
}))), (marketShareData === null || marketShareData === void 0 ? void 0 : marketShareData.length) !== index + 1 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporatorContainer, {
|
|
87
|
-
className: "ColumnLineSeporatorContainer_horizontal"
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporator, {
|
|
89
|
-
className: "ColumnLineSeporator"
|
|
90
|
-
})) : '');
|
|
91
|
-
}));
|
|
92
|
-
return content;
|
|
93
|
-
};
|
|
94
|
-
return /*#__PURE__*/_react.default.createElement(_MarketShareDescription.MainContainer, {
|
|
95
|
-
className: "MainContainer",
|
|
96
|
-
height: height,
|
|
97
|
-
width: width
|
|
98
|
-
}, displayRows());
|
|
99
|
-
};
|
|
100
|
-
exports.MarketShareDescription = MarketShareDescription;
|
|
101
|
-
var _default = exports.default = MarketShareDescription;
|
|
102
|
-
MarketShareDescription.defaultProps = {
|
|
103
|
-
marketShareData: [],
|
|
104
|
-
width: '100%',
|
|
105
|
-
height: '100%',
|
|
106
|
-
iconColor: '#1B30AA',
|
|
107
|
-
onBannerClick: () => {},
|
|
108
|
-
dotCut: false
|
|
109
|
-
};
|
|
@@ -1,198 +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.WeeklyTriers = exports.PercentHeightWidth = exports.MarketShare = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _MarketShareDescription = require("./MarketShareDescription");
|
|
10
|
-
// --------------------------------- market share ----------------------------------------------
|
|
11
|
-
|
|
12
|
-
const marketShareInfoText1 = `
|
|
13
|
-
<strong>Pringles Harvest Blend </strong>
|
|
14
|
-
<p1>market share </p1>
|
|
15
|
-
<strong>increased by 98% </strong>
|
|
16
|
-
<p1>following the event</p1>
|
|
17
|
-
`;
|
|
18
|
-
const marketShareInfoText2 = `
|
|
19
|
-
<strong>Pringles </strong>
|
|
20
|
-
<p1>market share </p1>
|
|
21
|
-
<strong>increased by 8% </strong>
|
|
22
|
-
<p1>following the event</p1>
|
|
23
|
-
`;
|
|
24
|
-
const marketShareDataColumn1 = [{
|
|
25
|
-
label: 'Pre-event',
|
|
26
|
-
value: 1.2,
|
|
27
|
-
textBefore: '',
|
|
28
|
-
textAfter: '%'
|
|
29
|
-
}, {
|
|
30
|
-
label: 'Event',
|
|
31
|
-
value: 2,
|
|
32
|
-
textBefore: '',
|
|
33
|
-
textAfter: '%'
|
|
34
|
-
}, {
|
|
35
|
-
label: 'Post-event',
|
|
36
|
-
value: 2.3,
|
|
37
|
-
textBefore: '',
|
|
38
|
-
textAfter: '%'
|
|
39
|
-
}];
|
|
40
|
-
const marketShareDataColumn2 = [{
|
|
41
|
-
label: 'Pre-event',
|
|
42
|
-
value: 2.8,
|
|
43
|
-
textBefore: '',
|
|
44
|
-
textAfter: '%'
|
|
45
|
-
}, {
|
|
46
|
-
label: 'Event',
|
|
47
|
-
value: 3.5,
|
|
48
|
-
textBefore: '',
|
|
49
|
-
textAfter: '%'
|
|
50
|
-
}, {
|
|
51
|
-
label: 'Post-event',
|
|
52
|
-
value: 3.05,
|
|
53
|
-
textBefore: '',
|
|
54
|
-
textAfter: '%'
|
|
55
|
-
}];
|
|
56
|
-
const marketShareData1 = [{
|
|
57
|
-
name: 'pringlesHarvestBlend',
|
|
58
|
-
rowTitle: 'Pringles Harvest Blend',
|
|
59
|
-
fieldsArray: marketShareDataColumn1,
|
|
60
|
-
rowFooter: marketShareInfoText1,
|
|
61
|
-
showBanner: false
|
|
62
|
-
}, {
|
|
63
|
-
name: 'pringles',
|
|
64
|
-
rowTitle: 'Pringles',
|
|
65
|
-
fieldsArray: marketShareDataColumn2,
|
|
66
|
-
rowFooter: marketShareInfoText2,
|
|
67
|
-
showBanner: false
|
|
68
|
-
}];
|
|
69
|
-
|
|
70
|
-
// --------------------------------- weekly tiers ----------------------------------------------
|
|
71
|
-
|
|
72
|
-
// The event drove 320% new Pringles Harvest Brand Crisp triers
|
|
73
|
-
const weeklyTiersInfoText1 = `
|
|
74
|
-
<p1>The event drove </p1>
|
|
75
|
-
<strong>320% </strong>
|
|
76
|
-
<p1>new Pringles Harvest Brand Crisp triers</p1>
|
|
77
|
-
`;
|
|
78
|
-
const weeklyTiersInfoText2 = '';
|
|
79
|
-
const weeklyTiersDataColumn1 = [{
|
|
80
|
-
label: 'Pre-event',
|
|
81
|
-
value: 2040,
|
|
82
|
-
textBefore: '',
|
|
83
|
-
textAfter: ''
|
|
84
|
-
}, {
|
|
85
|
-
label: 'Event',
|
|
86
|
-
value: 8250,
|
|
87
|
-
textBefore: '',
|
|
88
|
-
textAfter: ''
|
|
89
|
-
}, {
|
|
90
|
-
label: 'Post-event',
|
|
91
|
-
value: 600,
|
|
92
|
-
textBefore: '',
|
|
93
|
-
textAfter: ''
|
|
94
|
-
}];
|
|
95
|
-
const weeklyTiersDataColumn2 = [{
|
|
96
|
-
label: 'Pre-event',
|
|
97
|
-
value: 100,
|
|
98
|
-
textBefore: '',
|
|
99
|
-
textAfter: ''
|
|
100
|
-
}, {
|
|
101
|
-
label: 'Event',
|
|
102
|
-
value: 1500,
|
|
103
|
-
textBefore: '',
|
|
104
|
-
textAfter: ''
|
|
105
|
-
}, {
|
|
106
|
-
label: 'Post-event',
|
|
107
|
-
value: 2400,
|
|
108
|
-
textBefore: '',
|
|
109
|
-
textAfter: ''
|
|
110
|
-
}];
|
|
111
|
-
const weeklyTiersData1 = [{
|
|
112
|
-
name: 'weeklyTriers',
|
|
113
|
-
rowTitle: 'Weekly Triers',
|
|
114
|
-
fieldsArray: weeklyTiersDataColumn1,
|
|
115
|
-
rowFooter: weeklyTiersInfoText1,
|
|
116
|
-
showBanner: true
|
|
117
|
-
}, {
|
|
118
|
-
name: 'weeklyRepeaters',
|
|
119
|
-
rowTitle: 'Weekly Repeaters',
|
|
120
|
-
fieldsArray: weeklyTiersDataColumn2,
|
|
121
|
-
rowFooter: weeklyTiersInfoText2,
|
|
122
|
-
showBanner: true
|
|
123
|
-
}];
|
|
124
|
-
var _default = exports.default = {
|
|
125
|
-
title: 'SAG BI/MarketShareDescription',
|
|
126
|
-
component: _MarketShareDescription.MarketShareDescription,
|
|
127
|
-
tags: ['autodocs'],
|
|
128
|
-
argTypes: {
|
|
129
|
-
marketShareData: {
|
|
130
|
-
label: 'marketShareData',
|
|
131
|
-
control: {
|
|
132
|
-
type: 'object'
|
|
133
|
-
},
|
|
134
|
-
description: ' object: to fill kpi columns and buttons '
|
|
135
|
-
},
|
|
136
|
-
width: {
|
|
137
|
-
label: 'width',
|
|
138
|
-
control: {
|
|
139
|
-
type: 'text'
|
|
140
|
-
},
|
|
141
|
-
description: 'width of the control (in px / %)'
|
|
142
|
-
},
|
|
143
|
-
height: {
|
|
144
|
-
label: 'height',
|
|
145
|
-
control: {
|
|
146
|
-
type: 'text'
|
|
147
|
-
},
|
|
148
|
-
description: 'height of the control (in px / % )'
|
|
149
|
-
},
|
|
150
|
-
iconColor: {
|
|
151
|
-
label: 'iconColor',
|
|
152
|
-
control: {
|
|
153
|
-
type: 'color',
|
|
154
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
155
|
-
description: 'Sets icons Color '
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
onBannerClick: {
|
|
159
|
-
name: 'onBannerClick',
|
|
160
|
-
action: 'onClick',
|
|
161
|
-
description: 'Click onBannerClick event'
|
|
162
|
-
},
|
|
163
|
-
dotCut: {
|
|
164
|
-
name: 'dotCut',
|
|
165
|
-
control: {
|
|
166
|
-
type: 'boolean'
|
|
167
|
-
},
|
|
168
|
-
description: 'true/false - format total value with dot cut'
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
const MarketShare = exports.MarketShare = {
|
|
173
|
-
args: {
|
|
174
|
-
marketShareData: marketShareData1,
|
|
175
|
-
width: '700px',
|
|
176
|
-
height: '630px',
|
|
177
|
-
iconColor: '#229E38',
|
|
178
|
-
dotCut: false
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
const WeeklyTriers = exports.WeeklyTriers = {
|
|
182
|
-
args: {
|
|
183
|
-
marketShareData: weeklyTiersData1,
|
|
184
|
-
width: '700px',
|
|
185
|
-
height: '630px',
|
|
186
|
-
iconColor: '#1B30AA',
|
|
187
|
-
dotCut: true
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
const PercentHeightWidth = exports.PercentHeightWidth = {
|
|
191
|
-
args: {
|
|
192
|
-
marketShareData: marketShareData1,
|
|
193
|
-
width: '100%',
|
|
194
|
-
height: '100%',
|
|
195
|
-
iconColor: '#229E38',
|
|
196
|
-
dotCut: false
|
|
197
|
-
}
|
|
198
|
-
};
|