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,187 +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.StyledInput = exports.OptionsSubContainer = exports.OptionsContainer = exports.OptionItem = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconContainer = exports.ErrorMessage = exports.DropdownWrapper = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const scrollableStyles = `
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
&::-webkit-scrollbar {
|
|
13
|
-
width: 4px;
|
|
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 DropdownWrapper = exports.DropdownWrapper = _styledComponents.default.div`
|
|
27
|
-
position: relative;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-content: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: flex-start;
|
|
33
|
-
width: ${props => props.width || '300px'};
|
|
34
|
-
font-family: "Poppins", sans-serif;
|
|
35
|
-
font-weight: 400;
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
border-radius: 10px;
|
|
38
|
-
`;
|
|
39
|
-
const Label = exports.Label = _styledComponents.default.label`
|
|
40
|
-
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
padding-inline-end: 5px;
|
|
43
|
-
padding-inline-start: 5px;
|
|
44
|
-
margin-right: 10px;
|
|
45
|
-
z-index: 2;
|
|
46
|
-
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
47
|
-
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
|
|
50
|
-
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
51
|
-
font-family: Poppins;
|
|
52
|
-
transform: translateY(-50%);
|
|
53
|
-
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
gap: 4px;
|
|
58
|
-
&:hover {
|
|
59
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
flex-wrap: nowrap;
|
|
66
|
-
justify-content: flex-start;
|
|
67
|
-
align-content: center;
|
|
68
|
-
white-space: pre-wrap;
|
|
69
|
-
align-items: center;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
padding: 0 5px 0 0;
|
|
72
|
-
margin-bottom: 8px;
|
|
73
|
-
gap: 4px;
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 100%;
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
79
|
-
font-family: "Poppins", sans-serif;
|
|
80
|
-
font-weight: 400;
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
border-radius: 12px;
|
|
83
|
-
outline: none;
|
|
84
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
85
|
-
&:hover {
|
|
86
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
87
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
88
|
-
}
|
|
89
|
-
&:focus {
|
|
90
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
`;
|
|
94
|
-
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
flex-wrap: nowrap;
|
|
98
|
-
align-content: center;
|
|
99
|
-
align-items: flex-start;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
white-space: pre-wrap;
|
|
102
|
-
overflow: hidden;
|
|
103
|
-
padding: 10px 4px 10px 10px;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 100%;
|
|
106
|
-
min-height: 53px;
|
|
107
|
-
box-sizing: border-box;
|
|
108
|
-
background-color: transparent;
|
|
109
|
-
border-radius: 12px;
|
|
110
|
-
outline: none;
|
|
111
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
112
|
-
`;
|
|
113
|
-
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
114
|
-
width: calc(100% - 10px);
|
|
115
|
-
height: 20px;
|
|
116
|
-
font-family: Poppins;
|
|
117
|
-
font-weight: 400;
|
|
118
|
-
font-size: 14px;
|
|
119
|
-
outline: none;
|
|
120
|
-
background-color: transparent;
|
|
121
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
122
|
-
border: none;
|
|
123
|
-
`;
|
|
124
|
-
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
125
|
-
margin: 0;
|
|
126
|
-
top: 100%;
|
|
127
|
-
left: 0;
|
|
128
|
-
z-index: 100;
|
|
129
|
-
width: 100%;
|
|
130
|
-
background-color: #fff;
|
|
131
|
-
display: ${props => {
|
|
132
|
-
var _props$filteredoption;
|
|
133
|
-
return props.showoptions && ((_props$filteredoption = props.filteredoptions) === null || _props$filteredoption === void 0 ? void 0 : _props$filteredoption.length) > 0 ? 'block' : 'none';
|
|
134
|
-
}};
|
|
135
|
-
`;
|
|
136
|
-
const OptionsSubContainer = exports.OptionsSubContainer = _styledComponents.default.ul`
|
|
137
|
-
${scrollableStyles}
|
|
138
|
-
list-style: none;
|
|
139
|
-
font-weight: 400;
|
|
140
|
-
margin: 0;
|
|
141
|
-
padding: 8px 12px;
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: 100%;
|
|
144
|
-
left: 0;
|
|
145
|
-
z-index: 101;
|
|
146
|
-
width: calc(100% - 23px);
|
|
147
|
-
font-family: Poppins;
|
|
148
|
-
border-radius: 4px;
|
|
149
|
-
background-color: white;
|
|
150
|
-
display: ${props => {
|
|
151
|
-
var _props$filteredoption2;
|
|
152
|
-
return props.showoptions && ((_props$filteredoption2 = props.filteredoptions) === null || _props$filteredoption2 === void 0 ? void 0 : _props$filteredoption2.length) > 0 ? 'block' : 'none';
|
|
153
|
-
}};
|
|
154
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
155
|
-
max-height: 400px;
|
|
156
|
-
overflow: auto;
|
|
157
|
-
`;
|
|
158
|
-
const OptionItem = exports.OptionItem = _styledComponents.default.li`
|
|
159
|
-
display: flex;
|
|
160
|
-
flex-direction: row;
|
|
161
|
-
justify-content: flex-start;
|
|
162
|
-
align-items: center;
|
|
163
|
-
gap: 8px;
|
|
164
|
-
padding: 10px;
|
|
165
|
-
cursor: pointer;
|
|
166
|
-
color: #212121;
|
|
167
|
-
font-family: Poppins;
|
|
168
|
-
font-size: 14px;
|
|
169
|
-
font-style: normal;
|
|
170
|
-
font-weight: 400;
|
|
171
|
-
transition: background-color 0.3s;
|
|
172
|
-
background-color: ${props => props.selected ? '#C7E4FF' : '#fff'};
|
|
173
|
-
|
|
174
|
-
&:hover {
|
|
175
|
-
background-color: #EDF6FF;
|
|
176
|
-
}
|
|
177
|
-
`;
|
|
178
|
-
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
179
|
-
font-size: 12px;
|
|
180
|
-
color: red;
|
|
181
|
-
margin-top: 5px;
|
|
182
|
-
`;
|
|
183
|
-
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
184
|
-
display: flex;
|
|
185
|
-
padding: 2px;
|
|
186
|
-
cursor: pointer;
|
|
187
|
-
`;
|
|
@@ -1,144 +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.EventDetailsCard = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _EventDetailsCard = require("./EventDetailsCard.style");
|
|
10
|
-
var _FoodLionNewIcon = require("../../icons/FoodLionNewIcon");
|
|
11
|
-
var _TheGiantCompanyNewIcon = require("../../icons/TheGiantCompanyNewIcon");
|
|
12
|
-
var _StopAndShopNewIcon = require("../../icons/StopAndShopNewIcon");
|
|
13
|
-
var _GiantFoodIcon_new = require("../../icons/GiantFoodIcon_new");
|
|
14
|
-
var _HannafordIcon_new = require("../../icons/HannafordIcon_new");
|
|
15
|
-
var _EyeIcon = require("../../icons/EyeIcon");
|
|
16
|
-
var _BannersDropdown = require("../BannersDropdown/BannersDropdown");
|
|
17
|
-
const EventDetailsCard = props => {
|
|
18
|
-
const {
|
|
19
|
-
title,
|
|
20
|
-
width,
|
|
21
|
-
height,
|
|
22
|
-
className,
|
|
23
|
-
displayBannersDropdown,
|
|
24
|
-
banners,
|
|
25
|
-
data,
|
|
26
|
-
showStrip,
|
|
27
|
-
strip,
|
|
28
|
-
count,
|
|
29
|
-
buttonText,
|
|
30
|
-
onViewButtonClick,
|
|
31
|
-
onBannersDropdownClick,
|
|
32
|
-
disableViewDetailsButton
|
|
33
|
-
} = props;
|
|
34
|
-
const [processedBanners, setProcessedBanners] = (0, _react.useState)([]);
|
|
35
|
-
(0, _react.useEffect)(() => {
|
|
36
|
-
const formatedBanners = banners.map(banner => {
|
|
37
|
-
if (banner === 'StopAndShop') {
|
|
38
|
-
return {
|
|
39
|
-
icon: /*#__PURE__*/_react.default.createElement(_StopAndShopNewIcon.StopAndShopNewIcon, null),
|
|
40
|
-
name: 'Stop&Shop',
|
|
41
|
-
checked: true
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
if (banner === 'FoodLion') {
|
|
45
|
-
return {
|
|
46
|
-
icon: /*#__PURE__*/_react.default.createElement(_FoodLionNewIcon.FoodLionNewIcon, null),
|
|
47
|
-
name: 'Food lion',
|
|
48
|
-
checked: false
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
if (banner === 'GiantFood') {
|
|
52
|
-
return {
|
|
53
|
-
icon: /*#__PURE__*/_react.default.createElement(_GiantFoodIcon_new.GiantFoodNewIcon, null),
|
|
54
|
-
name: 'Giant Food',
|
|
55
|
-
checked: true
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
if (banner === 'TheGiantCompany') {
|
|
59
|
-
return {
|
|
60
|
-
icon: /*#__PURE__*/_react.default.createElement(_TheGiantCompanyNewIcon.TheGiantCompanyIcon, null),
|
|
61
|
-
name: 'The Giant Company',
|
|
62
|
-
checked: true
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
if (banner === 'Hannaford') {
|
|
66
|
-
return {
|
|
67
|
-
icon: /*#__PURE__*/_react.default.createElement(_HannafordIcon_new.HannafordNewIcon, null),
|
|
68
|
-
name: 'Hannaford',
|
|
69
|
-
checked: false
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
return null;
|
|
73
|
-
});
|
|
74
|
-
setProcessedBanners(formatedBanners);
|
|
75
|
-
}, []);
|
|
76
|
-
const viewButtonClick = e => {
|
|
77
|
-
onViewButtonClick(e);
|
|
78
|
-
};
|
|
79
|
-
return /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainContainer, {
|
|
80
|
-
className: className,
|
|
81
|
-
height: height,
|
|
82
|
-
width: width
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.TitleWrapper, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.CardTitle, null, title), displayBannersDropdown && /*#__PURE__*/_react.default.createElement(_BannersDropdown.BannersDropdown, {
|
|
84
|
-
banners: [{
|
|
85
|
-
checked: true,
|
|
86
|
-
name: 'StopAndShop'
|
|
87
|
-
}, {
|
|
88
|
-
checked: true,
|
|
89
|
-
name: 'FoodLion'
|
|
90
|
-
}, {
|
|
91
|
-
checked: true,
|
|
92
|
-
name: 'GiantFood'
|
|
93
|
-
}, {
|
|
94
|
-
checked: true,
|
|
95
|
-
name: 'TheGiantCompany'
|
|
96
|
-
}, {
|
|
97
|
-
checked: true,
|
|
98
|
-
name: 'Hannaford'
|
|
99
|
-
}],
|
|
100
|
-
onClick: banners => {
|
|
101
|
-
onBannersDropdownClick({
|
|
102
|
-
banners
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
})), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainCard, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.List, null, count > 0 && /*#__PURE__*/_react.default.createElement("li", null, count, ' ', "products in variety"), data.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
|
|
106
|
-
key: index
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, item.label, ":"), ' ', item.value))), showStrip && /*#__PURE__*/_react.default.createElement(_EventDetailsCard.Strip, null, strip), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.IconButton, {
|
|
108
|
-
disabled: disableViewDetailsButton,
|
|
109
|
-
backgroundColor: disableViewDetailsButton ? '#E5E5E5' : '#ffffff',
|
|
110
|
-
onClick: e => {
|
|
111
|
-
viewButtonClick(e);
|
|
112
|
-
}
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(_EyeIcon.EyeIcon, {
|
|
114
|
-
width: "14",
|
|
115
|
-
height: "14"
|
|
116
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, buttonText))));
|
|
117
|
-
};
|
|
118
|
-
exports.EventDetailsCard = EventDetailsCard;
|
|
119
|
-
var _default = exports.default = EventDetailsCard;
|
|
120
|
-
EventDetailsCard.defaultProps = {
|
|
121
|
-
title: 'Dreft Portable Pretreater Pen',
|
|
122
|
-
width: 'auto',
|
|
123
|
-
height: 'auto',
|
|
124
|
-
className: '',
|
|
125
|
-
displayBannersDropdown: false,
|
|
126
|
-
banners: ['StopAndShop', 'FoodLion', 'GiantFood', 'TheGiantCompany', 'Hannaford'],
|
|
127
|
-
data: [{
|
|
128
|
-
label: 'Incremental sales',
|
|
129
|
-
value: '$25K'
|
|
130
|
-
}, {
|
|
131
|
-
label: 'Package cost',
|
|
132
|
-
value: '$97K'
|
|
133
|
-
}, {
|
|
134
|
-
label: 'ROI',
|
|
135
|
-
value: 'x3.5'
|
|
136
|
-
}],
|
|
137
|
-
count: 0,
|
|
138
|
-
showStrip: false,
|
|
139
|
-
strip: 'Sales Rank 8 out of 43 in category!',
|
|
140
|
-
buttonText: 'View Details',
|
|
141
|
-
onViewButtonClick: () => {},
|
|
142
|
-
onBannersDropdownClick: () => {},
|
|
143
|
-
disableViewDetailsButton: false
|
|
144
|
-
};
|
|
@@ -1,57 +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.Default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _EventDetailsCard = _interopRequireDefault(require("./EventDetailsCard"));
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'SAG BI/EventDetailsCard',
|
|
12
|
-
component: _EventDetailsCard.default,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
width: {
|
|
16
|
-
name: 'width',
|
|
17
|
-
control: {
|
|
18
|
-
type: 'text'
|
|
19
|
-
},
|
|
20
|
-
description: 'width of the control (in px / %)'
|
|
21
|
-
},
|
|
22
|
-
height: {
|
|
23
|
-
name: 'height',
|
|
24
|
-
control: {
|
|
25
|
-
type: 'text'
|
|
26
|
-
},
|
|
27
|
-
description: 'height of the control (in px / %)'
|
|
28
|
-
},
|
|
29
|
-
displayBannersDropdown: {
|
|
30
|
-
name: 'displayBannersDropdown',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'boolean'
|
|
33
|
-
},
|
|
34
|
-
description: 'displayBannersDropdown'
|
|
35
|
-
},
|
|
36
|
-
disableViewDetailsButton: {
|
|
37
|
-
name: 'disableViewDetailsButton',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'boolean'
|
|
40
|
-
},
|
|
41
|
-
description: 'changes ViewDetailsButton to be enabled/disabled',
|
|
42
|
-
defaultValue: ''
|
|
43
|
-
},
|
|
44
|
-
onViewButtonClick: {
|
|
45
|
-
action: 'onClick',
|
|
46
|
-
description: 'onViewButtonClick event - returns an objects of click '
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const Default = exports.Default = {
|
|
51
|
-
args: {
|
|
52
|
-
disableViewDetailsButton: true,
|
|
53
|
-
width: '368px',
|
|
54
|
-
height: '346px',
|
|
55
|
-
dotCut: true
|
|
56
|
-
}
|
|
57
|
-
};
|
|
@@ -1,94 +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.TitleWrapper = exports.Strip = exports.MainContainer = exports.MainCard = exports.List = exports.IconButton = exports.CardTitle = exports.ArrowWrap = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
-
position: relative;
|
|
11
|
-
font-family: "Poppins", sans-serif;
|
|
12
|
-
background-color: white;
|
|
13
|
-
width: ${props => props.width};
|
|
14
|
-
height: ${props => props.height};
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
border: 1px solid #f2f2f2;
|
|
17
|
-
`;
|
|
18
|
-
const TitleWrapper = exports.TitleWrapper = _styledComponents.default.div`
|
|
19
|
-
padding: 22px 16px;
|
|
20
|
-
border-radius: 8px 8px 0 0;
|
|
21
|
-
background-color: #f7f8fa;
|
|
22
|
-
display: flex;
|
|
23
|
-
gap: 10px;
|
|
24
|
-
align-items: baseline;
|
|
25
|
-
`;
|
|
26
|
-
const CardTitle = exports.CardTitle = _styledComponents.default.h3`
|
|
27
|
-
font-size: 18px;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
`;
|
|
30
|
-
const MainCard = exports.MainCard = _styledComponents.default.div`
|
|
31
|
-
padding: 12px 20px 16px;
|
|
32
|
-
|
|
33
|
-
> #ButtonWrapper {
|
|
34
|
-
margin: 0 auto;
|
|
35
|
-
a {
|
|
36
|
-
padding: 6px 12px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
const List = exports.List = _styledComponents.default.ul`
|
|
41
|
-
list-style-type: none;
|
|
42
|
-
padding: 0;
|
|
43
|
-
margin: 0 0 20px;
|
|
44
|
-
font-size: 16px;
|
|
45
|
-
li {
|
|
46
|
-
line-height: 1.2;
|
|
47
|
-
&:not(:last-child) {
|
|
48
|
-
margin-bottom: 16px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
span {
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
const Strip = exports.Strip = _styledComponents.default.div`
|
|
56
|
-
font-size: 12px;
|
|
57
|
-
font-weight: 400;
|
|
58
|
-
padding: 2px;
|
|
59
|
-
margin-bottom: 15px;
|
|
60
|
-
text-align: center;
|
|
61
|
-
border-radius: 8px;
|
|
62
|
-
background-color: #f7f8fa;
|
|
63
|
-
`;
|
|
64
|
-
const IconButton = exports.IconButton = _styledComponents.default.button`
|
|
65
|
-
color: #212121;
|
|
66
|
-
background-color: transparent;
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
display: flex;
|
|
70
|
-
gap: 6px;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
margin: 0 auto;
|
|
74
|
-
border: 1px solid #b1b1b1;
|
|
75
|
-
border-radius: 12px;
|
|
76
|
-
padding: 6px 16px;
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
transition: box-shadow 0.3s ease;
|
|
79
|
-
&:hover,
|
|
80
|
-
&:focus {
|
|
81
|
-
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
const ArrowWrap = exports.ArrowWrap = _styledComponents.default.div`
|
|
85
|
-
> svg {
|
|
86
|
-
transform: rotate(180deg);
|
|
87
|
-
transition: transform 0.3s ease;
|
|
88
|
-
}
|
|
89
|
-
&.opened {
|
|
90
|
-
svg {
|
|
91
|
-
transform: rotate(0deg);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
`;
|
|
@@ -1,61 +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.EventList = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _EventListItem = require("../EventListItem/EventListItem");
|
|
10
|
-
var _EventList = require("./EventList.style");
|
|
11
|
-
/* EventList */
|
|
12
|
-
const EventList = props => {
|
|
13
|
-
const {
|
|
14
|
-
eventsData,
|
|
15
|
-
selectTextColor,
|
|
16
|
-
width = '100%',
|
|
17
|
-
height = '100%',
|
|
18
|
-
itemHeight = '160px',
|
|
19
|
-
onSelectClick
|
|
20
|
-
} = props;
|
|
21
|
-
const displayEventsItems = () => {
|
|
22
|
-
if (eventsData && eventsData.length > 0) {
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_EventList.EventItemsContainer, {
|
|
24
|
-
id: "EventItemsContainer"
|
|
25
|
-
}, eventsData === null || eventsData === void 0 ? void 0 : eventsData.map(item => /*#__PURE__*/_react.default.createElement(_EventList.OneEventItemContainer, {
|
|
26
|
-
id: "OneEventItemContainer"
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_EventListItem.EventListItem, {
|
|
28
|
-
height: itemHeight,
|
|
29
|
-
width: width / 3,
|
|
30
|
-
eventName: item.eventName,
|
|
31
|
-
period: item.period,
|
|
32
|
-
selectTextColor: selectTextColor,
|
|
33
|
-
onClick: event => {
|
|
34
|
-
onSelectClick({
|
|
35
|
-
eventName: event === null || event === void 0 ? void 0 : event.eventName
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}))));
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
//= ======================================== MAIN RETURN ====================================
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_EventList.MainContainer, {
|
|
44
|
-
id: "MainContainer",
|
|
45
|
-
height: height,
|
|
46
|
-
width: width
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_EventList.PanelContainer, {
|
|
48
|
-
id: "PanelContainer"
|
|
49
|
-
}, displayEventsItems()));
|
|
50
|
-
//= ======================================== MAIN RETURN END====================================
|
|
51
|
-
};
|
|
52
|
-
exports.EventList = EventList;
|
|
53
|
-
var _default = exports.default = EventList;
|
|
54
|
-
EventList.defaultProps = {
|
|
55
|
-
eventsData: [],
|
|
56
|
-
selectTextColor: '#229E38',
|
|
57
|
-
width: '100%',
|
|
58
|
-
height: '100%',
|
|
59
|
-
itemHeight: '160px',
|
|
60
|
-
onSelectClick: () => {}
|
|
61
|
-
};
|
|
@@ -1,84 +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.ExampleEventList = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _EventList = _interopRequireDefault(require("./EventList"));
|
|
10
|
-
const eventsData1 = [{
|
|
11
|
-
eventName: 'Large Selling Event #10 POD3 Weeks 37 and 38 and #10 POD3 Weeks 39 and 40',
|
|
12
|
-
period: '12/06/2023 - 09/07/2023'
|
|
13
|
-
}, {
|
|
14
|
-
eventName: 'Small Selling Event #12 POD4 Weeks 37 and 38 and #10 POD3 Weeks 39 and 40',
|
|
15
|
-
period: '18/07/2023 - 09/07/2023'
|
|
16
|
-
}, {
|
|
17
|
-
eventName: 'NIC 11_23 Cycle 11',
|
|
18
|
-
period: '10/08/2023 - 09/08/2023'
|
|
19
|
-
}, {
|
|
20
|
-
eventName: 'Large Selling Event #10 POD3 Weeks 37 and 38 ',
|
|
21
|
-
period: '10/09/2023 - 29/09/2023'
|
|
22
|
-
}, {
|
|
23
|
-
eventName: 'Large Selling Event #37 and 38 ',
|
|
24
|
-
period: '13/09/2023 - 29/09/2023'
|
|
25
|
-
}, {
|
|
26
|
-
eventName: 'Large Selling Event 38 ',
|
|
27
|
-
period: '16/09/2023 - 29/09/2023'
|
|
28
|
-
}];
|
|
29
|
-
var _default = exports.default = {
|
|
30
|
-
title: 'SAG BI/EventList',
|
|
31
|
-
component: _EventList.default,
|
|
32
|
-
tags: ['autodocs'],
|
|
33
|
-
argTypes: {
|
|
34
|
-
eventsData: {
|
|
35
|
-
name: 'eventsData',
|
|
36
|
-
control: {
|
|
37
|
-
type: 'object'
|
|
38
|
-
},
|
|
39
|
-
description: ' object: to fill data '
|
|
40
|
-
},
|
|
41
|
-
width: {
|
|
42
|
-
name: 'width',
|
|
43
|
-
control: {
|
|
44
|
-
type: 'text'
|
|
45
|
-
},
|
|
46
|
-
description: 'width of the control (in px / %)'
|
|
47
|
-
},
|
|
48
|
-
height: {
|
|
49
|
-
name: 'height',
|
|
50
|
-
control: {
|
|
51
|
-
type: 'text'
|
|
52
|
-
},
|
|
53
|
-
description: 'height of the control (in px / % )'
|
|
54
|
-
},
|
|
55
|
-
itemHeight: {
|
|
56
|
-
name: 'itemHeight',
|
|
57
|
-
control: {
|
|
58
|
-
type: 'text'
|
|
59
|
-
},
|
|
60
|
-
description: 'height of the event item (in px / % )'
|
|
61
|
-
},
|
|
62
|
-
onClick: {
|
|
63
|
-
action: 'onClick',
|
|
64
|
-
description: 'onClick event - returns an object of check box {true/false} '
|
|
65
|
-
},
|
|
66
|
-
selectTextColor: {
|
|
67
|
-
name: 'selectTextColor',
|
|
68
|
-
description: 'Sets the select buttons color',
|
|
69
|
-
control: {
|
|
70
|
-
type: 'color',
|
|
71
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const ExampleEventList = exports.ExampleEventList = {
|
|
77
|
-
args: {
|
|
78
|
-
eventsData: eventsData1,
|
|
79
|
-
width: '100%',
|
|
80
|
-
height: '100%',
|
|
81
|
-
itemHeight: '160px',
|
|
82
|
-
selectTextColor: '#229E38'
|
|
83
|
-
}
|
|
84
|
-
};
|
|
@@ -1,38 +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.OneEventItemContainer = exports.MainContainer = exports.EventItemsContainer = 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-size: 1rem;
|
|
14
|
-
border-radius: 12px;
|
|
15
|
-
width: ${props => props.width};
|
|
16
|
-
height: ${props => props.height};
|
|
17
|
-
`;
|
|
18
|
-
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
border-radius: 12px;
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
font-weight: 400;
|
|
23
|
-
font-size: 14px;
|
|
24
|
-
line-height: 19px;
|
|
25
|
-
white-space: pre-wrap;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
width: 100%;
|
|
28
|
-
`;
|
|
29
|
-
const EventItemsContainer = exports.EventItemsContainer = _styledComponents.default.div`
|
|
30
|
-
display: grid;
|
|
31
|
-
grid-template-columns: repeat(3, 1fr);
|
|
32
|
-
padding: 15px 10px 30px;
|
|
33
|
-
gap: 30px;
|
|
34
|
-
width: 100%;
|
|
35
|
-
`;
|
|
36
|
-
const OneEventItemContainer = exports.OneEventItemContainer = _styledComponents.default.div`
|
|
37
|
-
margin: 0;
|
|
38
|
-
`;
|