sag_components 1.0.976 → 1.0.978
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/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/BarChartsByWeeks.js +3 -0
- package/dist/stories/components/CommonFunctions.js +1 -2
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FormattedValue.js +3 -2
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -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/DropdownMulti/DropdownMulti.js +0 -290
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +0 -220
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +0 -11
- 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 -571
- 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/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/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/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,36 +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.Label = exports.ControlsContainer = exports.Controls = exports.CheckBoxIconContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: ${props => props.height};
|
|
12
|
-
width: ${props => props.width};
|
|
13
|
-
font-size: ${props => props.fontSize};
|
|
14
|
-
font-family: Poppins;
|
|
15
|
-
margin: 0;
|
|
16
|
-
`;
|
|
17
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
`;
|
|
21
|
-
const Label = exports.Label = _styledComponents.default.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
padding: 0 10px 0 10px;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
@media (max-width: 1536px) {
|
|
26
|
-
font-size: 11px;
|
|
27
|
-
}
|
|
28
|
-
@media (max-width: 1366px) {
|
|
29
|
-
font-size: 10px;
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
const CheckBoxIconContainer = exports.CheckBoxIconContainer = _styledComponents.default.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
margin: 0;
|
|
35
|
-
cursor: ${props => props.disabled ? 'default' : 'pointer'};
|
|
36
|
-
`;
|
|
@@ -1,69 +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.CheckBoxButton = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _CheckBoxButtonCheckedIcon = require("../../icons/CheckBoxButtonCheckedIcon");
|
|
10
|
-
var _CheckBoxButton = require("./CheckBoxButton.style");
|
|
11
|
-
/* CheckBoxButton */
|
|
12
|
-
const CheckBoxButton = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
label,
|
|
15
|
-
displayLabel,
|
|
16
|
-
checked = false,
|
|
17
|
-
disabled = false,
|
|
18
|
-
showIconInCheckBoxButtons = true,
|
|
19
|
-
width = '100px',
|
|
20
|
-
height = '14px',
|
|
21
|
-
iconSize = '12px',
|
|
22
|
-
fontSize = '14px',
|
|
23
|
-
iconColor = '#1B30AA',
|
|
24
|
-
borderColor = '#1B30AA',
|
|
25
|
-
borderRadius = '12px',
|
|
26
|
-
textColorChecked = '#212121',
|
|
27
|
-
textColorUnchecked = '#212121',
|
|
28
|
-
backgroundColorChecked = '#E9F1FF',
|
|
29
|
-
backgroundColorUnchecked = '#F2F2F2',
|
|
30
|
-
onClick,
|
|
31
|
-
...props
|
|
32
|
-
} = _ref;
|
|
33
|
-
const [checkedState, setCheckedState] = (0, _react.useState)(checked);
|
|
34
|
-
(0, _react.useEffect)(() => {
|
|
35
|
-
setCheckedState(checked);
|
|
36
|
-
}, [checked]);
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_CheckBoxButton.ControlsContainer, {
|
|
38
|
-
id: "ControlsContainer",
|
|
39
|
-
fontSize: fontSize,
|
|
40
|
-
width: width,
|
|
41
|
-
height: height
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_CheckBoxButton.Controls, {
|
|
43
|
-
id: "Controls",
|
|
44
|
-
disabled: disabled,
|
|
45
|
-
borderRadius: borderRadius,
|
|
46
|
-
backgroundColor: checkedState ? backgroundColorChecked : backgroundColorUnchecked,
|
|
47
|
-
borderColor: disabled ? backgroundColorChecked : checkedState ? borderColor : backgroundColorUnchecked,
|
|
48
|
-
onClick: () => {
|
|
49
|
-
if (!disabled) {
|
|
50
|
-
setCheckedState(!checkedState);
|
|
51
|
-
onClick({
|
|
52
|
-
label,
|
|
53
|
-
checked: !checkedState
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, checkedState ? showIconInCheckBoxButtons && /*#__PURE__*/_react.default.createElement(_CheckBoxButton.CheckBoxButtonIconContainer, {
|
|
58
|
-
id: "CheckBoxButtonIconContainer"
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_CheckBoxButtonCheckedIcon.CheckBoxButtonCheckedIcon, {
|
|
60
|
-
width: iconSize,
|
|
61
|
-
height: iconSize,
|
|
62
|
-
color: disabled ? '#B1B1B1' : iconColor
|
|
63
|
-
})) : '', /*#__PURE__*/_react.default.createElement(_CheckBoxButton.Label, {
|
|
64
|
-
id: "Label",
|
|
65
|
-
textColor: disabled ? '#B1B1B1' : checkedState ? textColorChecked : textColorUnchecked
|
|
66
|
-
}, displayLabel ? displayLabel : label)));
|
|
67
|
-
};
|
|
68
|
-
exports.CheckBoxButton = CheckBoxButton;
|
|
69
|
-
var _default = exports.default = CheckBoxButton;
|
|
@@ -1,150 +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.Retailer = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _CheckBoxButton = require("./CheckBoxButton");
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'SAG Core/CheckBox Button',
|
|
12
|
-
component: _CheckBoxButton.CheckBoxButton,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
label: {
|
|
16
|
-
name: 'label',
|
|
17
|
-
control: {
|
|
18
|
-
type: 'text'
|
|
19
|
-
},
|
|
20
|
-
description: 'label of the object'
|
|
21
|
-
},
|
|
22
|
-
checked: {
|
|
23
|
-
name: 'checked',
|
|
24
|
-
control: {
|
|
25
|
-
type: 'boolean'
|
|
26
|
-
},
|
|
27
|
-
description: 'checked / not checked boolean'
|
|
28
|
-
},
|
|
29
|
-
disabled: {
|
|
30
|
-
name: 'disabled',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'boolean'
|
|
33
|
-
},
|
|
34
|
-
description: 'disabled / enabled boolean'
|
|
35
|
-
},
|
|
36
|
-
showIconInCheckBoxButtons: {
|
|
37
|
-
name: 'showIconInCheckBoxButtons',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'boolean'
|
|
40
|
-
},
|
|
41
|
-
description: 'show Icon In boolean'
|
|
42
|
-
},
|
|
43
|
-
width: {
|
|
44
|
-
name: 'width',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
},
|
|
48
|
-
description: 'width of the component (in px)'
|
|
49
|
-
},
|
|
50
|
-
height: {
|
|
51
|
-
name: 'height',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'text'
|
|
54
|
-
},
|
|
55
|
-
description: 'height of the component'
|
|
56
|
-
},
|
|
57
|
-
fontSize: {
|
|
58
|
-
name: 'fontSize',
|
|
59
|
-
control: {
|
|
60
|
-
type: 'text'
|
|
61
|
-
},
|
|
62
|
-
description: 'font size (in px)'
|
|
63
|
-
},
|
|
64
|
-
iconColor: {
|
|
65
|
-
name: 'iconColor',
|
|
66
|
-
control: {
|
|
67
|
-
type: 'color',
|
|
68
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
69
|
-
description: 'Sets icon Color'
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
borderColor: {
|
|
73
|
-
name: 'borderColor',
|
|
74
|
-
control: {
|
|
75
|
-
type: 'color',
|
|
76
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
77
|
-
description: 'Sets border Color'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
borderRadius: {
|
|
81
|
-
name: 'borderRadius',
|
|
82
|
-
control: {
|
|
83
|
-
type: 'text'
|
|
84
|
-
},
|
|
85
|
-
description: 'border Radius (in px)'
|
|
86
|
-
},
|
|
87
|
-
iconSize: {
|
|
88
|
-
name: 'iconSize',
|
|
89
|
-
control: {
|
|
90
|
-
type: 'text'
|
|
91
|
-
},
|
|
92
|
-
description: 'icon size (in px)'
|
|
93
|
-
},
|
|
94
|
-
onClick: {
|
|
95
|
-
action: 'onClick',
|
|
96
|
-
description: 'onClick event - returns an object of check box {true/false} '
|
|
97
|
-
},
|
|
98
|
-
textColorChecked: {
|
|
99
|
-
name: 'textColorChecked',
|
|
100
|
-
control: {
|
|
101
|
-
type: 'color',
|
|
102
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
103
|
-
description: 'Sets text Checked Color'
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
textColorUnchecked: {
|
|
107
|
-
name: 'textColorUnchecked',
|
|
108
|
-
control: {
|
|
109
|
-
type: 'color',
|
|
110
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
111
|
-
description: 'Sets text Unchecked Color'
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
backgroundColorChecked: {
|
|
115
|
-
name: 'backgroundColorChecked',
|
|
116
|
-
control: {
|
|
117
|
-
type: 'color',
|
|
118
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
119
|
-
description: 'Sets background Checked Color'
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
backgroundColorUnchecked: {
|
|
123
|
-
name: 'backgroundColorUnchecked',
|
|
124
|
-
control: {
|
|
125
|
-
type: 'color',
|
|
126
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
127
|
-
description: 'Sets background Unchecked Color'
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const Retailer = exports.Retailer = {
|
|
133
|
-
args: {
|
|
134
|
-
label: 'Retailer',
|
|
135
|
-
checked: true,
|
|
136
|
-
disabled: false,
|
|
137
|
-
showIconInCheckBoxButtons: true,
|
|
138
|
-
width: '100%',
|
|
139
|
-
height: '29px',
|
|
140
|
-
fontSize: '14px',
|
|
141
|
-
iconSize: '12px',
|
|
142
|
-
iconColor: '#1B30AA',
|
|
143
|
-
borderColor: '#1B30AA',
|
|
144
|
-
borderRadius: '12px',
|
|
145
|
-
textColorChecked: '#1B30AA',
|
|
146
|
-
textColorUnchecked: '#212121',
|
|
147
|
-
backgroundColorChecked: '#E9F1FF',
|
|
148
|
-
backgroundColorUnchecked: '#F2F2F2'
|
|
149
|
-
}
|
|
150
|
-
};
|
|
@@ -1,39 +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.Label = exports.ControlsContainer = exports.Controls = exports.CheckBoxButtonIconContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: ${props => props.height};
|
|
12
|
-
width: ${props => props.width};
|
|
13
|
-
font-size: ${props => props.fontSize};
|
|
14
|
-
font-family: Poppins;
|
|
15
|
-
margin: 0;
|
|
16
|
-
`;
|
|
17
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
border-radius: ${props => props.borderRadius};
|
|
21
|
-
background: ${props => props.backgroundColor};
|
|
22
|
-
border: 1px solid ${props => props.borderColor};
|
|
23
|
-
cursor: ${props => props.disabled ? 'default' : 'pointer'};
|
|
24
|
-
`;
|
|
25
|
-
const Label = exports.Label = _styledComponents.default.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
padding: 0 10px 0 10px;
|
|
28
|
-
color: ${props => props.textColor};
|
|
29
|
-
@media (max-width: 1536px) {
|
|
30
|
-
font-size: 11px;
|
|
31
|
-
}
|
|
32
|
-
@media (max-width: 1366px) {
|
|
33
|
-
font-size: 10px;
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
|
-
const CheckBoxButtonIconContainer = exports.CheckBoxButtonIconContainer = _styledComponents.default.div`
|
|
37
|
-
display: flex;
|
|
38
|
-
margin: 0 0 0 10px;
|
|
39
|
-
`;
|
|
@@ -1,43 +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 = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactAce = _interopRequireDefault(require("react-ace"));
|
|
10
|
-
require("ace-builds/src-noconflict/mode-mysql");
|
|
11
|
-
require("ace-builds/src-noconflict/theme-monokai");
|
|
12
|
-
require("ace-builds/src-noconflict/ext-language_tools");
|
|
13
|
-
require("ace-builds/src-noconflict/snippets/mysql");
|
|
14
|
-
// CodeEditor.js
|
|
15
|
-
|
|
16
|
-
const CodeEditor = _ref => {
|
|
17
|
-
let {
|
|
18
|
-
value,
|
|
19
|
-
onChange
|
|
20
|
-
} = _ref;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_reactAce.default, {
|
|
22
|
-
style: {
|
|
23
|
-
height: '300px',
|
|
24
|
-
width: '100%'
|
|
25
|
-
},
|
|
26
|
-
mode: "mysql",
|
|
27
|
-
theme: "monokai",
|
|
28
|
-
value: value,
|
|
29
|
-
onChange: onChange,
|
|
30
|
-
name: "code-editor",
|
|
31
|
-
editorProps: {
|
|
32
|
-
$blockScrolling: true
|
|
33
|
-
},
|
|
34
|
-
setOptions: {
|
|
35
|
-
enableBasicAutocompletion: true,
|
|
36
|
-
enableLiveAutocompletion: true,
|
|
37
|
-
enableSnippets: true,
|
|
38
|
-
showLineNumbers: true,
|
|
39
|
-
tabSize: 1
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var _default = exports.default = CodeEditor;
|
|
@@ -1,13 +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.AceEditorContent = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _reactAce = _interopRequireDefault(require("react-ace"));
|
|
10
|
-
const AceEditorContent = exports.AceEditorContent = (0, _styledComponents.default)(_reactAce.default)`
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 400px;
|
|
13
|
-
`;
|
|
@@ -1,66 +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.CollapseData = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _CollapseData = require("./CollapseData.style");
|
|
10
|
-
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
11
|
-
var _ShoppingCartIcon = require("../../icons/ShoppingCartIcon");
|
|
12
|
-
var _ClockIcon = require("../../icons/ClockIcon");
|
|
13
|
-
var _ArrowUpIcon = require("../../icons/ArrowUpIcon");
|
|
14
|
-
var _ArrowDownIcon = require("../../icons/ArrowDownIcon");
|
|
15
|
-
const CollapseData = props => {
|
|
16
|
-
const {
|
|
17
|
-
title,
|
|
18
|
-
tableData,
|
|
19
|
-
noDataText,
|
|
20
|
-
width,
|
|
21
|
-
height
|
|
22
|
-
} = props;
|
|
23
|
-
const [activeIndex, setActiveIndex] = (0, _react.useState)(null);
|
|
24
|
-
const handleClick = index => {
|
|
25
|
-
setActiveIndex(activeIndex === index ? null : index);
|
|
26
|
-
};
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_CollapseData.AccordionWrapper, {
|
|
28
|
-
width: width,
|
|
29
|
-
height: height
|
|
30
|
-
}, tableData.length === 0 ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
31
|
-
noDataText: noDataText
|
|
32
|
-
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CollapseData.ComponentHeader, null, title), tableData.map(section => /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
-
key: section.key,
|
|
34
|
-
className: "accordion-section",
|
|
35
|
-
id: section.key
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_CollapseData.TitleAccordion, {
|
|
37
|
-
isopen: activeIndex === section.key,
|
|
38
|
-
onClick: () => handleClick(section.key)
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_CollapseData.IconAndTitle, null, section.icon === 'Basket' ? /*#__PURE__*/_react.default.createElement(_ShoppingCartIcon.ShoppingCartIcon, null) : /*#__PURE__*/_react.default.createElement(_ClockIcon.ClockIcon, null), /*#__PURE__*/_react.default.createElement("u", null, section.title)), /*#__PURE__*/_react.default.createElement(_CollapseData.ArrowAndNumber, null, /*#__PURE__*/_react.default.createElement(_CollapseData.IconDiv, null, section.value >= 0 ? /*#__PURE__*/_react.default.createElement(_ArrowUpIcon.ArrowUpIcon, {
|
|
40
|
-
width: "11px",
|
|
41
|
-
height: "12px"
|
|
42
|
-
}) : /*#__PURE__*/_react.default.createElement(_ArrowDownIcon.ArrowDownIcon, {
|
|
43
|
-
width: "11px",
|
|
44
|
-
height: "12px"
|
|
45
|
-
})), /*#__PURE__*/_react.default.createElement(_CollapseData.TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/_react.default.createElement(_CollapseData.TableWrapper, null, /*#__PURE__*/_react.default.createElement(_CollapseData.Table, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/_react.default.createElement(_CollapseData.Th, {
|
|
46
|
-
key: `${i + headline}`
|
|
47
|
-
}, headline.title)))), /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, section.table.map((data, i) => {
|
|
48
|
-
if (data.value !== null) {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_CollapseData.Td, {
|
|
50
|
-
key: `${i + data}`
|
|
51
|
-
}, `${data.value >= 0 ? '+' : ''}${data.value.toFixed(1)}${section.valueType}`);
|
|
52
|
-
}
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_CollapseData.Td, {
|
|
54
|
-
key: `${i + data}`
|
|
55
|
-
}, "No Data");
|
|
56
|
-
})))))))));
|
|
57
|
-
};
|
|
58
|
-
exports.CollapseData = CollapseData;
|
|
59
|
-
var _default = exports.default = CollapseData;
|
|
60
|
-
CollapseData.defaultProps = {
|
|
61
|
-
title: '',
|
|
62
|
-
noDataText: '',
|
|
63
|
-
width: '455px',
|
|
64
|
-
height: '379px',
|
|
65
|
-
tableData: []
|
|
66
|
-
};
|
|
@@ -1,125 +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.SmallContainedStyle = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _CollapseData = require("./CollapseData");
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'SAG BI/Collapse Data',
|
|
12
|
-
component: _CollapseData.CollapseData,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
title: {
|
|
16
|
-
name: 'title',
|
|
17
|
-
control: {
|
|
18
|
-
type: 'text'
|
|
19
|
-
},
|
|
20
|
-
description: 'value of the main title',
|
|
21
|
-
defaultValue: ''
|
|
22
|
-
},
|
|
23
|
-
tableData: {
|
|
24
|
-
name: 'tableData',
|
|
25
|
-
control: {
|
|
26
|
-
type: 'object'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
width: {
|
|
30
|
-
name: 'width',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'text'
|
|
33
|
-
},
|
|
34
|
-
description: 'width of the component, minimum 400px'
|
|
35
|
-
},
|
|
36
|
-
height: {
|
|
37
|
-
name: 'height',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'text'
|
|
40
|
-
},
|
|
41
|
-
description: 'height of the component'
|
|
42
|
-
},
|
|
43
|
-
noDataText: {
|
|
44
|
-
name: 'noDataText',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
},
|
|
48
|
-
description: 'message that will appears if there is no information to display'
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const SmallContainedStyle = exports.SmallContainedStyle = {
|
|
53
|
-
args: {
|
|
54
|
-
title: 'Existing Repeaters (post event)',
|
|
55
|
-
height: '379px',
|
|
56
|
-
width: '455px',
|
|
57
|
-
tableData: [{
|
|
58
|
-
key: 0,
|
|
59
|
-
icon: 'Basket',
|
|
60
|
-
title: 'Basket (Units) Change',
|
|
61
|
-
value: 19.97,
|
|
62
|
-
valueType: '%',
|
|
63
|
-
table: [{
|
|
64
|
-
title: 'Food Lion',
|
|
65
|
-
value: -1.9
|
|
66
|
-
}, {
|
|
67
|
-
title: 'Hannaford',
|
|
68
|
-
value: null
|
|
69
|
-
}, {
|
|
70
|
-
title: 'Giant Food',
|
|
71
|
-
value: -2.03
|
|
72
|
-
}, {
|
|
73
|
-
title: 'The Giant Company',
|
|
74
|
-
value: 19.2
|
|
75
|
-
}, {
|
|
76
|
-
title: 'Stop&Shop',
|
|
77
|
-
value: 4.7
|
|
78
|
-
}]
|
|
79
|
-
}, {
|
|
80
|
-
key: 1,
|
|
81
|
-
icon: 'Basket',
|
|
82
|
-
title: 'Basket ($) Change',
|
|
83
|
-
value: 31.65,
|
|
84
|
-
valueType: '%',
|
|
85
|
-
table: [{
|
|
86
|
-
title: 'Food Lion',
|
|
87
|
-
value: 3.75
|
|
88
|
-
}, {
|
|
89
|
-
title: 'Hannaford',
|
|
90
|
-
value: null
|
|
91
|
-
}, {
|
|
92
|
-
title: 'Giant Food',
|
|
93
|
-
value: 7.643
|
|
94
|
-
}, {
|
|
95
|
-
title: 'The Giant Company',
|
|
96
|
-
value: 2.939
|
|
97
|
-
}, {
|
|
98
|
-
title: 'Stop&Shop',
|
|
99
|
-
value: 17.322
|
|
100
|
-
}]
|
|
101
|
-
}, {
|
|
102
|
-
key: 2,
|
|
103
|
-
icon: 'Visits',
|
|
104
|
-
title: 'Visits Change',
|
|
105
|
-
value: -58.57,
|
|
106
|
-
valueType: '%',
|
|
107
|
-
table: [{
|
|
108
|
-
title: 'Food Lion',
|
|
109
|
-
value: -6.05
|
|
110
|
-
}, {
|
|
111
|
-
title: 'Hannaford',
|
|
112
|
-
value: null
|
|
113
|
-
}, {
|
|
114
|
-
title: 'Giant Food',
|
|
115
|
-
value: -37.68
|
|
116
|
-
}, {
|
|
117
|
-
title: 'The Giant Company',
|
|
118
|
-
value: -10.369
|
|
119
|
-
}, {
|
|
120
|
-
title: 'Stop&Shop',
|
|
121
|
-
value: -4.48
|
|
122
|
-
}]
|
|
123
|
-
}]
|
|
124
|
-
}
|
|
125
|
-
};
|
|
@@ -1,127 +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.TitleDiv = exports.TitleAccordion = exports.Th = exports.Td = exports.TableWrapper = exports.Table = exports.IconDiv = exports.IconAndTitle = exports.ComponentHeader = exports.ArrowAndNumber = exports.AccordionWrapper = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const AccordionWrapper = exports.AccordionWrapper = _styledComponents.default.div`
|
|
10
|
-
width: ${props => props.width};
|
|
11
|
-
height: ${props => props.height};
|
|
12
|
-
padding: 0 20px;
|
|
13
|
-
background-color: white;
|
|
14
|
-
`;
|
|
15
|
-
const TitleAccordion = exports.TitleAccordion = _styledComponents.default.div`
|
|
16
|
-
width: 100%;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
align-items: center;
|
|
19
|
-
background-color: ${props => props.isopen ? '#D0D0D0' : '#FFFFFF'};
|
|
20
|
-
margin-bottom: 16px;
|
|
21
|
-
`;
|
|
22
|
-
const IconAndTitle = exports.IconAndTitle = _styledComponents.default.div`
|
|
23
|
-
width: auto;
|
|
24
|
-
font-family: "poppins";
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
line-height: 24px;
|
|
28
|
-
display: flex;
|
|
29
|
-
float: left;
|
|
30
|
-
align-items: center;
|
|
31
|
-
@media (max-width: 1536px) {
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
}
|
|
34
|
-
& > svg {
|
|
35
|
-
margin-right: 15px;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
const ArrowAndNumber = exports.ArrowAndNumber = _styledComponents.default.div`
|
|
39
|
-
float: right;
|
|
40
|
-
font-family: "poppins";
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: space-between;
|
|
45
|
-
width: 23%;
|
|
46
|
-
margin-right: 20px;
|
|
47
|
-
`;
|
|
48
|
-
const IconDiv = exports.IconDiv = _styledComponents.default.div`
|
|
49
|
-
display: flex;
|
|
50
|
-
justify-content: flex-end;
|
|
51
|
-
width: 25%;
|
|
52
|
-
`;
|
|
53
|
-
const TitleDiv = exports.TitleDiv = _styledComponents.default.div`
|
|
54
|
-
width: 70%;
|
|
55
|
-
text-align: left;
|
|
56
|
-
padding-left: 3px;
|
|
57
|
-
@media (max-width: 1536px) {
|
|
58
|
-
font-size: 11px;
|
|
59
|
-
}
|
|
60
|
-
@media (max-width: 1366px) {
|
|
61
|
-
font-size: 10px;
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
const TableWrapper = exports.TableWrapper = _styledComponents.default.div`
|
|
65
|
-
overflow-x: auto;
|
|
66
|
-
margin-bottom: 22px;
|
|
67
|
-
&::-webkit-scrollbar {
|
|
68
|
-
height: 8px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&::-webkit-scrollbar-track {
|
|
72
|
-
background: #E8E8E8;
|
|
73
|
-
border-radius: 5px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&::-webkit-scrollbar-thumb {
|
|
77
|
-
background: #D0D0D0;
|
|
78
|
-
border-radius: 5px;
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
const Table = exports.Table = _styledComponents.default.table`
|
|
82
|
-
width: 100%;
|
|
83
|
-
border-collapse: collapse;
|
|
84
|
-
overflow: auto;
|
|
85
|
-
table-layout: fixed;
|
|
86
|
-
`;
|
|
87
|
-
const Th = exports.Th = _styledComponents.default.th`
|
|
88
|
-
background-color: white;
|
|
89
|
-
font-family: "poppins";
|
|
90
|
-
font-weight: 600;
|
|
91
|
-
font-size: 12px;
|
|
92
|
-
border: 1px solid #ccc;
|
|
93
|
-
padding: 10px;
|
|
94
|
-
text-align: center;
|
|
95
|
-
line-height: 18px;
|
|
96
|
-
border-top: none;
|
|
97
|
-
border-left: none;
|
|
98
|
-
&:last-of-type {
|
|
99
|
-
border-right: none;
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
const Td = exports.Td = _styledComponents.default.td`
|
|
103
|
-
border: 1px solid #ccc;
|
|
104
|
-
padding: 10px;
|
|
105
|
-
text-align: center;
|
|
106
|
-
line-height: 21px;
|
|
107
|
-
font-size: 14px;
|
|
108
|
-
font-family: "poppins";
|
|
109
|
-
font-weight: 400;
|
|
110
|
-
border-bottom: none;
|
|
111
|
-
border-left: none;
|
|
112
|
-
&:last-of-type {
|
|
113
|
-
border-right: none;
|
|
114
|
-
}
|
|
115
|
-
`;
|
|
116
|
-
const ComponentHeader = exports.ComponentHeader = _styledComponents.default.h3`
|
|
117
|
-
font-family: "poppins";
|
|
118
|
-
font-weight: 500;
|
|
119
|
-
font-size: 18px;
|
|
120
|
-
line-height: 27px;
|
|
121
|
-
@media (max-width: 1536px) {
|
|
122
|
-
font-size: 14px;
|
|
123
|
-
}
|
|
124
|
-
@media (max-width: 1366px) {
|
|
125
|
-
font-size: 12px;
|
|
126
|
-
}
|
|
127
|
-
`;
|