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,103 +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.TooltipWrapper = exports.TooltipTip = exports.TooltipContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
/* Custom properties */
|
|
10
|
-
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div`
|
|
11
|
-
--tooltip-text-color: black;
|
|
12
|
-
--tooltip-background-color: white;
|
|
13
|
-
--tooltip-margin: 40px;
|
|
14
|
-
--tooltip-arrow-size: 10px;
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
/* Wrapping */
|
|
18
|
-
const TooltipWrapper = exports.TooltipWrapper = _styledComponents.default.div`
|
|
19
|
-
display: inline-block;
|
|
20
|
-
position: relative;
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
/* Absolute positioning */
|
|
24
|
-
const TooltipTip = exports.TooltipTip = _styledComponents.default.div`
|
|
25
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
26
|
-
position: absolute;
|
|
27
|
-
border-radius: 4px;
|
|
28
|
-
left: 50%;
|
|
29
|
-
transform: translateX(-50%);
|
|
30
|
-
padding: 4px 6px;
|
|
31
|
-
color: var(--tooltip-text-color);
|
|
32
|
-
background: var(--tooltip-background-color);
|
|
33
|
-
font-size: 12px;
|
|
34
|
-
font-family: sans-serif;
|
|
35
|
-
line-height: 1;
|
|
36
|
-
z-index: 100;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
|
|
39
|
-
/* CSS border triangles */
|
|
40
|
-
&.controls::before {
|
|
41
|
-
content: " ";
|
|
42
|
-
left: 50%;
|
|
43
|
-
border: solid transparent;
|
|
44
|
-
height: 0;
|
|
45
|
-
width: 0;
|
|
46
|
-
position: absolute;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
border-width: var(--tooltip-arrow-size);
|
|
49
|
-
margin-left: calc(var(--tooltip-arrow-size) * -1);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Absolute positioning */
|
|
53
|
-
&.controls.top {
|
|
54
|
-
top: calc(var(--tooltip-margin) * -1.8 );
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* CSS border triangles */
|
|
58
|
-
&.controls.top::before {
|
|
59
|
-
top: 100%;
|
|
60
|
-
border-top-color: var(--tooltip-background-color);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* Absolute positioning */
|
|
64
|
-
&.controls.right {
|
|
65
|
-
left: calc(70% + var(--tooltip-margin));
|
|
66
|
-
top: 50%;
|
|
67
|
-
transform: translateX(0) translateY(-50%);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* CSS border triangles */
|
|
71
|
-
&.controls.right::before {
|
|
72
|
-
left: calc(var(--tooltip-arrow-size) * -1);
|
|
73
|
-
top: 50%;
|
|
74
|
-
transform: translateX(0) translateY(-50%);
|
|
75
|
-
border-right-color: var(--tooltip-background-color);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* Absolute positioning */
|
|
79
|
-
&.controls.bottom {
|
|
80
|
-
bottom: calc(var(--tooltip-margin) * -1);
|
|
81
|
-
}
|
|
82
|
-
/* CSS border triangles */
|
|
83
|
-
&.controls.bottom::before {
|
|
84
|
-
bottom: 100%;
|
|
85
|
-
border-bottom-color: var(--tooltip-background-color);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Absolute positioning */
|
|
89
|
-
&.controls.left {
|
|
90
|
-
left: auto;
|
|
91
|
-
right: calc(70% + var(--tooltip-margin));
|
|
92
|
-
top: 50%;
|
|
93
|
-
transform: translateX(0) translateY(-50%);
|
|
94
|
-
}
|
|
95
|
-
/* CSS border triangles */
|
|
96
|
-
&.controls.left::before {
|
|
97
|
-
left: auto;
|
|
98
|
-
right: calc(var(--tooltip-arrow-size) * -2);
|
|
99
|
-
top: 50%;
|
|
100
|
-
transform: translateX(0) translateY(-50%);
|
|
101
|
-
border-left-color: var(--tooltip-background-color);
|
|
102
|
-
}
|
|
103
|
-
`;
|
|
@@ -1,46 +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 _TopToggleList = require("./TopToggleList.style");
|
|
10
|
-
const TopToggleList = props => {
|
|
11
|
-
const {
|
|
12
|
-
title,
|
|
13
|
-
list,
|
|
14
|
-
width,
|
|
15
|
-
height
|
|
16
|
-
} = props;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_TopToggleList.TopToggleListMainContainer, {
|
|
18
|
-
width: width
|
|
19
|
-
}, /*#__PURE__*/_react.default.createElement(_TopToggleList.Title, null, title), /*#__PURE__*/_react.default.createElement(_TopToggleList.ListContainer, {
|
|
20
|
-
height: height
|
|
21
|
-
}, list.map(item => /*#__PURE__*/_react.default.createElement(_TopToggleList.ListItem, {
|
|
22
|
-
key: item.value
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement(_TopToggleList.Item, null, item.label)))));
|
|
24
|
-
};
|
|
25
|
-
var _default = exports.default = TopToggleList;
|
|
26
|
-
TopToggleList.defaultProps = {
|
|
27
|
-
width: '100%',
|
|
28
|
-
height: '100%',
|
|
29
|
-
title: 'Products Variety',
|
|
30
|
-
list: [{
|
|
31
|
-
value: '1',
|
|
32
|
-
label: 'Product 1'
|
|
33
|
-
}, {
|
|
34
|
-
value: '2',
|
|
35
|
-
label: 'Product 2'
|
|
36
|
-
}, {
|
|
37
|
-
value: '3',
|
|
38
|
-
label: 'Product 3'
|
|
39
|
-
}, {
|
|
40
|
-
value: '4',
|
|
41
|
-
label: 'Product 4'
|
|
42
|
-
}, {
|
|
43
|
-
value: '5',
|
|
44
|
-
label: 'Product 5'
|
|
45
|
-
}]
|
|
46
|
-
};
|
|
@@ -1,52 +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.Example = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _TopToggleList = _interopRequireDefault(require("./TopToggleList"));
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'SAG BI/TopToggleList',
|
|
12
|
-
component: _TopToggleList.default,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
title: {
|
|
16
|
-
name: 'Title',
|
|
17
|
-
control: {
|
|
18
|
-
type: 'text'
|
|
19
|
-
},
|
|
20
|
-
description: 'Title text',
|
|
21
|
-
defaultValue: 'Product Name'
|
|
22
|
-
},
|
|
23
|
-
list: {
|
|
24
|
-
name: 'List',
|
|
25
|
-
description: 'array [] of objects: {value: string, label: string } to fill the product items. '
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const Example = exports.Example = {
|
|
30
|
-
args: {
|
|
31
|
-
title: 'Products Variety',
|
|
32
|
-
list: [{
|
|
33
|
-
value: '1',
|
|
34
|
-
label: 'Product 1'
|
|
35
|
-
}, {
|
|
36
|
-
value: '2',
|
|
37
|
-
label: 'Product 2'
|
|
38
|
-
}, {
|
|
39
|
-
value: '3',
|
|
40
|
-
label: 'Product 3'
|
|
41
|
-
}, {
|
|
42
|
-
value: '4',
|
|
43
|
-
label: 'Product 4'
|
|
44
|
-
}, {
|
|
45
|
-
value: '5',
|
|
46
|
-
label: 'Product 5'
|
|
47
|
-
}, {
|
|
48
|
-
value: '6',
|
|
49
|
-
label: 'Product 6'
|
|
50
|
-
}]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
@@ -1,51 +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.TopToggleListMainContainer = exports.Title = exports.ListItem = exports.ListContainer = exports.Item = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const scrollableStyles = `
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
&::-webkit-scrollbar {
|
|
13
|
-
width: 8px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&::-webkit-scrollbar-track {
|
|
17
|
-
background: #E8E8E8;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&::-webkit-scrollbar-thumb {
|
|
22
|
-
background: #D0D0D0;
|
|
23
|
-
border-radius: 5px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
const TopToggleListMainContainer = exports.TopToggleListMainContainer = _styledComponents.default.div`
|
|
27
|
-
font-family: "Lato", sans-serif;
|
|
28
|
-
color: #212121;
|
|
29
|
-
padding: 0 24px;
|
|
30
|
-
width: ${props => props.width};
|
|
31
|
-
`;
|
|
32
|
-
const Title = exports.Title = _styledComponents.default.h4`
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
font-weight: 600;
|
|
35
|
-
margin: 20px 0 12px;
|
|
36
|
-
`;
|
|
37
|
-
const ListContainer = exports.ListContainer = _styledComponents.default.ul`
|
|
38
|
-
height: ${props => props.height};
|
|
39
|
-
padding: 0;
|
|
40
|
-
margin: 0;
|
|
41
|
-
list-style-type: none;
|
|
42
|
-
${scrollableStyles}
|
|
43
|
-
`;
|
|
44
|
-
const ListItem = exports.ListItem = _styledComponents.default.li`
|
|
45
|
-
padding: 20px 0;
|
|
46
|
-
border-bottom: 1px solid #F3F4F6;
|
|
47
|
-
`;
|
|
48
|
-
const Item = exports.Item = _styledComponents.default.span`
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
font-weight: 400;
|
|
51
|
-
`;
|
|
@@ -1,97 +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.TotalBenchmark = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
10
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
11
|
-
var _Benchmark = require("../Benchmark/Benchmark");
|
|
12
|
-
var _TotalBenchmark = require("./TotalBenchmark.style");
|
|
13
|
-
/* TotalBenchmark */
|
|
14
|
-
const TotalBenchmark = props => {
|
|
15
|
-
const {
|
|
16
|
-
data,
|
|
17
|
-
dotCut,
|
|
18
|
-
addingBenchmark,
|
|
19
|
-
width,
|
|
20
|
-
height,
|
|
21
|
-
textcolor,
|
|
22
|
-
noDataText
|
|
23
|
-
} = props;
|
|
24
|
-
const DEFAULT_ROOT_FONT = 16;
|
|
25
|
-
const DEFAULT_COMPONENT_WIDTH = 250;
|
|
26
|
-
const [rootFont, setRootFont] = (0, _react.useState)(DEFAULT_ROOT_FONT.toString().concat('', 'px'));
|
|
27
|
-
const controlsContainerRef = (0, _react.useRef)();
|
|
28
|
-
(0, _react.useEffect)(() => {
|
|
29
|
-
const {
|
|
30
|
-
offsetWidth
|
|
31
|
-
} = controlsContainerRef.current;
|
|
32
|
-
setRootFont(getRootFont(offsetWidth));
|
|
33
|
-
}, [width]);
|
|
34
|
-
const getRootFont = width => {
|
|
35
|
-
const relation = width.toString().replace('px', '').replace('%', '') / DEFAULT_COMPONENT_WIDTH;
|
|
36
|
-
const fontRoot = (DEFAULT_ROOT_FONT * relation).toString().concat('', 'px');
|
|
37
|
-
return fontRoot;
|
|
38
|
-
};
|
|
39
|
-
const getSizeFactor = () => rootFont.toString().replace('px', '') / DEFAULT_ROOT_FONT;
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_TotalBenchmark.ControlsContainer, {
|
|
41
|
-
id: "ControlsContainer",
|
|
42
|
-
height: height,
|
|
43
|
-
width: width,
|
|
44
|
-
textcolor: textcolor,
|
|
45
|
-
ref: controlsContainerRef
|
|
46
|
-
}, (data === null || data === void 0 ? void 0 : data.length) > 0 ? data.map((item, index) => /*#__PURE__*/_react.default.createElement(_TotalBenchmark.Controls, {
|
|
47
|
-
id: "Controls",
|
|
48
|
-
index: index,
|
|
49
|
-
width: width,
|
|
50
|
-
key: item.title
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmark.TitleAndValueContainer, {
|
|
52
|
-
id: "TitleAndValueContainer"
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmark.Title, {
|
|
54
|
-
id: "Title",
|
|
55
|
-
width: width
|
|
56
|
-
}, item.title), /*#__PURE__*/_react.default.createElement(_TotalBenchmark.BenchmarkContainerParent, {
|
|
57
|
-
id: "BenchmarkContainerParent"
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmark.FormattedValue, {
|
|
59
|
-
id: "FormattedValue",
|
|
60
|
-
width: width
|
|
61
|
-
}, item.value != undefined && item.value != null ? dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value) : '', item.value !== undefined && item.value != null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : '', item.value === undefined || item.value === null ? /*#__PURE__*/_react.default.createElement(_TotalBenchmark.FormattedValueNoData, null, "No Data") : ''), addingBenchmark && /*#__PURE__*/_react.default.createElement(_TotalBenchmark.BenchmarkContainer, {
|
|
62
|
-
id: "BenchmarkContainer",
|
|
63
|
-
width: width
|
|
64
|
-
}, item.totalValue ? /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
65
|
-
id: "Benchmark",
|
|
66
|
-
totalValue: item.totalValue,
|
|
67
|
-
currentValue: item.value ? item.value : 0,
|
|
68
|
-
benchmarkValue: item.benchmarkValue ? item.benchmarkValue : 0,
|
|
69
|
-
height: 12 * getSizeFactor(),
|
|
70
|
-
width: 85 * getSizeFactor(),
|
|
71
|
-
color: "#79DB95",
|
|
72
|
-
linearGradientColor: "#C3EFD0",
|
|
73
|
-
linearGradientUnderAvarageColor: "#FDB1B1",
|
|
74
|
-
underAvarageColor: "#FD5959",
|
|
75
|
-
backgroundColor: "#F2F2F2"
|
|
76
|
-
}) : ''))))) : /*#__PURE__*/_react.default.createElement(_TotalBenchmark.NoDataFoundContainer, {
|
|
77
|
-
id: "NoDataFoundContainer"
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
79
|
-
noDataText: noDataText
|
|
80
|
-
})));
|
|
81
|
-
};
|
|
82
|
-
exports.TotalBenchmark = TotalBenchmark;
|
|
83
|
-
var _default = exports.default = TotalBenchmark;
|
|
84
|
-
TotalBenchmark.defaultProps = {
|
|
85
|
-
data: {
|
|
86
|
-
title: 'Redemptions',
|
|
87
|
-
value: 60000,
|
|
88
|
-
totalValue: 20000,
|
|
89
|
-
benchmarkValue: 1000
|
|
90
|
-
},
|
|
91
|
-
dotCut: true,
|
|
92
|
-
width: '260px',
|
|
93
|
-
height: '350px',
|
|
94
|
-
addingBenchmark: true,
|
|
95
|
-
textcolor: '#212121',
|
|
96
|
-
noDataText: ''
|
|
97
|
-
};
|
|
@@ -1,138 +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.TwoBenchmarks = exports.OneBenchmark = exports.DataWithNulls = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _TotalBenchmark = require("./TotalBenchmark");
|
|
10
|
-
const arrDataOneBenchmark = [{
|
|
11
|
-
title: 'Redemptions',
|
|
12
|
-
value: 21500,
|
|
13
|
-
totalValue: 60000,
|
|
14
|
-
benchmarkValue: 30000
|
|
15
|
-
}, {
|
|
16
|
-
title: 'Redemptions Units',
|
|
17
|
-
value: 12400
|
|
18
|
-
}];
|
|
19
|
-
const arrDataTwoBenchmarks = [{
|
|
20
|
-
title: 'Redemptions',
|
|
21
|
-
value: 41500,
|
|
22
|
-
totalValue: 60000,
|
|
23
|
-
benchmarkValue: 20000
|
|
24
|
-
}, {
|
|
25
|
-
title: 'Redemptions Units',
|
|
26
|
-
value: 15400,
|
|
27
|
-
totalValue: 60000,
|
|
28
|
-
benchmarkValue: 40000
|
|
29
|
-
}];
|
|
30
|
-
const arrDataWithNulls = [{
|
|
31
|
-
title: 'Redemptions',
|
|
32
|
-
value: null,
|
|
33
|
-
totalValue: 60000,
|
|
34
|
-
benchmarkValue: 20000
|
|
35
|
-
}, {
|
|
36
|
-
title: 'Redemptions Units',
|
|
37
|
-
value: 15400,
|
|
38
|
-
totalValue: 60000,
|
|
39
|
-
benchmarkValue: 40000
|
|
40
|
-
}];
|
|
41
|
-
var _default = exports.default = {
|
|
42
|
-
title: 'SAG BI/TotalBenchmark',
|
|
43
|
-
component: _TotalBenchmark.TotalBenchmark,
|
|
44
|
-
tags: ['autodocs'],
|
|
45
|
-
argTypes: {
|
|
46
|
-
topTitle: {
|
|
47
|
-
name: 'Top Title',
|
|
48
|
-
control: {
|
|
49
|
-
type: 'text'
|
|
50
|
-
},
|
|
51
|
-
description: ''
|
|
52
|
-
},
|
|
53
|
-
bottomTitle: {
|
|
54
|
-
name: 'Bottom Title',
|
|
55
|
-
control: {
|
|
56
|
-
type: 'text'
|
|
57
|
-
},
|
|
58
|
-
description: ''
|
|
59
|
-
},
|
|
60
|
-
dotCut: {
|
|
61
|
-
name: 'dotCut',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean'
|
|
64
|
-
},
|
|
65
|
-
description: 'true/false - format total value with dot cut'
|
|
66
|
-
},
|
|
67
|
-
width: {
|
|
68
|
-
name: 'width',
|
|
69
|
-
control: {
|
|
70
|
-
type: 'text'
|
|
71
|
-
},
|
|
72
|
-
description: 'width of the control (in px or %)'
|
|
73
|
-
},
|
|
74
|
-
height: {
|
|
75
|
-
name: 'height',
|
|
76
|
-
control: {
|
|
77
|
-
type: 'text'
|
|
78
|
-
},
|
|
79
|
-
description: 'height of the control (in px or %)'
|
|
80
|
-
},
|
|
81
|
-
addingBenchmark: {
|
|
82
|
-
name: 'Add Benchmark',
|
|
83
|
-
control: {
|
|
84
|
-
type: 'boolean'
|
|
85
|
-
},
|
|
86
|
-
description: 'true/false - Adding Benchmark'
|
|
87
|
-
},
|
|
88
|
-
textColor: {
|
|
89
|
-
name: 'textColor',
|
|
90
|
-
description: 'Sets the text color',
|
|
91
|
-
control: {
|
|
92
|
-
type: 'color',
|
|
93
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
data: {
|
|
97
|
-
description: 'array [] of objects: {title: string, value:number, totalValue: number | udefined} to fill the benchmark. To hide the benchmark: do not set totalValue '
|
|
98
|
-
},
|
|
99
|
-
noDataText: {
|
|
100
|
-
name: 'noDataText',
|
|
101
|
-
control: {
|
|
102
|
-
type: 'text'
|
|
103
|
-
},
|
|
104
|
-
description: 'text to display when no data found'
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_TotalBenchmark.TotalBenchmark, args);
|
|
109
|
-
const OneBenchmark = exports.OneBenchmark = {
|
|
110
|
-
args: {
|
|
111
|
-
data: arrDataOneBenchmark,
|
|
112
|
-
dotCut: true,
|
|
113
|
-
width: '250px',
|
|
114
|
-
height: '280px',
|
|
115
|
-
textColor: '#212121',
|
|
116
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.'
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const TwoBenchmarks = exports.TwoBenchmarks = {
|
|
120
|
-
args: {
|
|
121
|
-
data: arrDataTwoBenchmarks,
|
|
122
|
-
dotCut: true,
|
|
123
|
-
width: '250px',
|
|
124
|
-
height: '280px',
|
|
125
|
-
textColor: '#212121',
|
|
126
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const DataWithNulls = exports.DataWithNulls = {
|
|
130
|
-
args: {
|
|
131
|
-
data: arrDataWithNulls,
|
|
132
|
-
dotCut: true,
|
|
133
|
-
width: '250px',
|
|
134
|
-
height: '280px',
|
|
135
|
-
textColor: '#212121',
|
|
136
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
137
|
-
}
|
|
138
|
-
};
|
|
@@ -1,81 +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.TitleAndValueContainer = exports.Title = exports.NoDataFoundContainer = exports.FormattedValueNoData = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainerParent = exports.BenchmarkContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const MIN_HEIGHT = 300;
|
|
10
|
-
const MIN_WIDTH = 260;
|
|
11
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
position: relative;
|
|
14
|
-
font-family: "Poppins", sans-serif;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
color: ${props => props.textcolor};
|
|
17
|
-
width: ${props => props.width};
|
|
18
|
-
height: ${props => props.height};
|
|
19
|
-
border-radius: 12px;
|
|
20
|
-
align-content: center;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
place-content: space-between;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
align-items: flex-start;
|
|
25
|
-
background: #ffffff;
|
|
26
|
-
`;
|
|
27
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
28
|
-
border-radius: 12px;
|
|
29
|
-
background: #ffffff;
|
|
30
|
-
margin-bottom: 2rem;
|
|
31
|
-
padding: 0px 0.8rem;
|
|
32
|
-
`;
|
|
33
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
34
|
-
width: 100%;
|
|
35
|
-
`;
|
|
36
|
-
const Title = exports.Title = _styledComponents.default.div`
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
font-size: 1rem;
|
|
39
|
-
@media (max-width: 1366px) {
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
}
|
|
42
|
-
@media (max-width: 1536px) {
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
47
|
-
/* width: 100%; */
|
|
48
|
-
font-weight: 500;
|
|
49
|
-
font-size: 40px;
|
|
50
|
-
@media (max-width: 1366px) {
|
|
51
|
-
font-size: 20px;
|
|
52
|
-
}
|
|
53
|
-
@media (max-width: 1536px) {
|
|
54
|
-
font-size: 24px;
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
57
|
-
const FormattedValueNoData = exports.FormattedValueNoData = _styledComponents.default.div`
|
|
58
|
-
width: 100%;
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
`;
|
|
62
|
-
const BenchmarkContainerParent = exports.BenchmarkContainerParent = _styledComponents.default.div`
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: baseline;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
margin: 0;
|
|
68
|
-
`;
|
|
69
|
-
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
70
|
-
width: 100%;
|
|
71
|
-
margin-top: 0;
|
|
72
|
-
margin-left: 1rem;
|
|
73
|
-
height: 0.9rem;
|
|
74
|
-
`;
|
|
75
|
-
const NoDataFoundContainer = exports.NoDataFoundContainer = _styledComponents.default.div`
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
align-items: center;
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
`;
|