sag_components 1.0.950 → 1.0.951
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/components/AttachedFile/AttachedFile.js +62 -0
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +36 -0
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +14 -0
- package/dist/stories/components/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile.style.js +6 -40
- package/dist/stories/components/AutocompleteField.style.js +7 -47
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +87 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +58 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +22 -0
- package/dist/stories/components/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox.style.js +14 -66
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +148 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +59 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +23 -0
- package/dist/stories/components/BannerEventBoxList.js +1 -2
- package/dist/stories/components/BannerEventBoxList.style.js +15 -174
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +115 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +64 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +18 -0
- package/dist/stories/components/BannersDropdown.style.js +10 -91
- package/dist/stories/components/BarChart/BarChart.js +189 -0
- package/dist/stories/components/BarChart/BarChart.stories.js +144 -0
- package/dist/stories/components/BarChart/BarChart.style.js +18 -0
- package/dist/stories/components/BarChart.js +2 -2
- package/dist/stories/components/BarChart.style.js +10 -52
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +204 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +133 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +18 -0
- package/dist/stories/components/BarChartTwoRows.js +2 -2
- package/dist/stories/components/BarChartTwoRows.style.js +11 -70
- package/dist/stories/components/BarChartWithAreaChart.js +7 -7
- package/dist/stories/components/BarChartWithAreaChart.style.js +11 -56
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +295 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +442 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +21 -0
- package/dist/stories/components/BarChartsByWeeks.js +3 -7
- package/dist/stories/components/BarChartsByWeeks.style.js +13 -88
- package/dist/stories/components/Benchmark/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark/Benchmark.stories.js +148 -0
- package/dist/stories/components/Benchmark/Benchmark.style.js +15 -0
- package/dist/stories/components/Benchmark.style.js +7 -53
- package/dist/stories/components/Button/Button.js +217 -0
- package/dist/stories/components/Button/Button.stories.js +269 -0
- package/dist/stories/components/Button/Button.style.js +15 -0
- package/dist/stories/components/Button.js +1 -1
- package/dist/stories/components/Button.style.js +7 -82
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +15 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +7 -40
- package/dist/stories/components/CampaignTool/Card.style.js +10 -58
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +3 -6
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +4 -14
- package/dist/stories/components/CampaignTool/Popup.style.js +16 -114
- package/dist/stories/components/CampaignTool/PopupContent.style.js +11 -64
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +9 -79
- package/dist/stories/components/Card/Card.js +72 -0
- package/dist/stories/components/Card/Card.stories.js +92 -0
- package/dist/stories/components/Card/Card.style.js +18 -0
- package/dist/stories/components/CheckBox/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox/CheckBox.stories.js +107 -0
- package/dist/stories/components/CheckBox/CheckBox.style.js +14 -0
- package/dist/stories/components/CheckBox.style.js +6 -28
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +150 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +14 -0
- package/dist/stories/components/CheckBoxButton.style.js +6 -31
- package/dist/stories/components/CodeEditor/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +12 -0
- package/dist/stories/components/CodeEditor.style.js +3 -4
- package/dist/stories/components/CollapseData/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData/CollapseData.stories.js +125 -0
- package/dist/stories/components/CollapseData/CollapseData.style.js +21 -0
- package/dist/stories/components/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData.style.js +13 -119
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +248 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +116 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +35 -0
- package/dist/stories/components/CollapseHeader.style.js +27 -192
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +161 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +17 -0
- package/dist/stories/components/CollapseMenuItem.style.js +9 -53
- package/dist/stories/components/Datepicker/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker/Datepicker.stories.js +86 -0
- package/dist/stories/components/Datepicker/Datepicker.style.js +13 -0
- package/dist/stories/components/Datepicker.style.js +3 -9
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +111 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +14 -0
- package/dist/stories/components/DownloadProgress.style.js +6 -43
- package/dist/stories/components/Dropdown/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown/Dropdown.stories.js +323 -0
- package/dist/stories/components/Dropdown/Dropdown.style.js +11 -0
- package/dist/stories/components/Dropdown.style.js +3 -9
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +3 -9
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +279 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +28 -0
- package/dist/stories/components/DropdownMultiNew.js +1 -1
- package/dist/stories/components/DropdownMultiNew.style.js +16 -193
- package/dist/stories/components/DropdownNew/DropdownNew.js +88 -0
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +407 -0
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +11 -0
- package/dist/stories/components/DropdownNew.style.js +3 -14
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +234 -0
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +26 -0
- package/dist/stories/components/DropdownSingleNew.style.js +14 -162
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +144 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +57 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +18 -0
- package/dist/stories/components/EventDetailsCard.style.js +10 -86
- package/dist/stories/components/EventList/EventList.js +61 -0
- package/dist/stories/components/EventList/EventList.stories.js +84 -0
- package/dist/stories/components/EventList/EventList.style.js +14 -0
- package/dist/stories/components/EventList.style.js +6 -30
- package/dist/stories/components/EventListItem/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem/EventListItem.stories.js +65 -0
- package/dist/stories/components/EventListItem/EventListItem.style.js +14 -0
- package/dist/stories/components/EventListItem.style.js +6 -39
- package/dist/stories/components/FilterContainer/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +23 -0
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +13 -0
- package/dist/stories/components/FilterContainer.style.js +5 -22
- package/dist/stories/components/FilterPanel/FilterPanel.js +566 -0
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +967 -0
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +21 -0
- package/dist/stories/components/FilterPanel.js +17 -17
- package/dist/stories/components/FilterPanel.style.js +13 -81
- package/dist/stories/components/FormInput/FormInput.js +41 -0
- package/dist/stories/components/FormSelect/FormSelect.js +42 -0
- package/dist/stories/components/FormattedValue/FormattedValue.js +68 -0
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +189 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +18 -0
- package/dist/stories/components/FormattedValue.style.js +10 -83
- package/dist/stories/components/HaiTooltip.js +71 -0
- package/dist/stories/components/HaiTooltip.style.js +12 -0
- package/dist/stories/components/IconButton/IconButton.js +147 -0
- package/dist/stories/components/IconButton/IconButton.stories.js +131 -0
- package/dist/stories/components/IconButton/IconButton.style.js +15 -0
- package/dist/stories/components/IconButton.style.js +7 -56
- package/dist/stories/components/Input/Input.js +183 -0
- package/dist/stories/components/Input/Input.stories.js +434 -0
- package/dist/stories/components/Input/Input.style.js +17 -0
- package/dist/stories/components/Input.style.js +9 -123
- package/dist/stories/components/InputOld/InputOld.js +90 -0
- package/dist/stories/components/InputOld/InputOld.stories.js +100 -0
- package/dist/stories/components/InputOld/InputOld.style.js +16 -0
- package/dist/stories/components/InputOld.style.js +8 -62
- package/dist/stories/components/KpiFilter/KpiFilter.js +313 -0
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +380 -0
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +26 -0
- package/dist/stories/components/KpiFilter.style.js +18 -124
- package/dist/stories/components/LinkButton/LinkButton.js +207 -0
- package/dist/stories/components/LinkButton/LinkButton.stories.js +180 -0
- package/dist/stories/components/LinkButton/LinkButton.style.js +14 -0
- package/dist/stories/components/LinkButton.style.js +6 -45
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +44 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +56 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +22 -0
- package/dist/stories/components/LinnerDataBox.js +1 -1
- package/dist/stories/components/LinnerDataBox.style.js +14 -60
- package/dist/stories/components/ListBox/ListBox.js +82 -0
- package/dist/stories/components/ListBox/ListBox.stories.js +132 -0
- package/dist/stories/components/ListBox/ListBox.style.js +14 -0
- package/dist/stories/components/ListBox.style.js +6 -40
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +184 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +27 -0
- package/dist/stories/components/MarketShareDescription.style.js +19 -207
- package/dist/stories/components/Modal/Modal.js +21 -0
- package/dist/stories/components/Modal/Modal.style.js +17 -0
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/Modal/ModalTotalCost.js +139 -0
- package/dist/stories/components/Modal.style.js +8 -56
- package/dist/stories/components/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +166 -0
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +140 -0
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +18 -0
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +122 -0
- package/dist/stories/components/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker.style.js +10 -96
- package/dist/stories/components/MonthPopupPicker.js +13 -92
- package/dist/stories/components/MultipleCard/MultipleCard.js +26 -0
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +33 -0
- package/dist/stories/components/{BannerEventBoxTest.style.js → MultipleCard/MultipleCard.style.js} +2 -2
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +5 -31
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +119 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +20 -0
- package/dist/stories/components/OneColumnContainer.style.js +12 -99
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +23 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +28 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +12 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +440 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +258 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +25 -0
- package/dist/stories/components/PerformanceAnalytics.js +9 -16
- package/dist/stories/components/PerformanceAnalytics.style.js +17 -136
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +58 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +86 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +16 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +8 -55
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +320 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +231 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +23 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +5 -12
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +15 -108
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +100 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +20 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +12 -81
- package/dist/stories/components/Popup/Popup.js +172 -0
- package/dist/stories/components/Popup/Popup.stories.js +704 -0
- package/dist/stories/components/Popup/Popup.style.js +24 -0
- package/dist/stories/components/PopupCharts/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +1203 -0
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +23 -0
- package/dist/stories/components/PopupCharts.style.js +15 -100
- package/dist/stories/components/PopupContent/PopupContent.js +111 -0
- package/dist/stories/components/PopupContent/PopupContent.style.js +21 -0
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +168 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +91 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +20 -0
- package/dist/stories/components/ProductsVariety.style.js +12 -78
- package/dist/stories/components/ProgressBar/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +72 -0
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +13 -0
- package/dist/stories/components/ProgressBar.style.js +4 -15
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +165 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +140 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +18 -0
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +109 -0
- package/dist/stories/components/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker.style.js +10 -95
- package/dist/stories/components/QuarterPopupPicker.js +12 -86
- package/dist/stories/components/QuickFilter/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +281 -0
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +11 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +28 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +27 -0
- package/dist/stories/components/QuickFilter.style.js +3 -13
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +16 -182
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +15 -127
- package/dist/stories/components/RangeDatePicker.js +12 -96
- package/dist/stories/components/RangePicker/RangeDatePicker.js +146 -0
- package/dist/stories/components/RangePicker/RangePicker.js +176 -0
- package/dist/stories/components/RangePicker/RangePicker.stories.js +138 -0
- package/dist/stories/components/RangePicker/RangePicker.style.js +18 -0
- package/dist/stories/components/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker.style.js +10 -100
- package/dist/stories/components/Rbackup.js +453 -0
- package/dist/stories/components/ReportTable/ReportTable.js +262 -0
- package/dist/stories/components/ReportTable/ReportTable.stories.js +151 -0
- package/dist/stories/components/ReportTable/ReportTable.style.js +22 -0
- package/dist/stories/components/ReportTable.style.js +14 -123
- package/dist/stories/components/SagButton/SagButton.js +68 -0
- package/dist/stories/components/SagButton/SagButton.stories.js +118 -0
- package/dist/stories/components/SagButton/SagButton.style.js +13 -0
- package/dist/stories/components/SagButton.style.js +5 -39
- package/dist/stories/components/SagIconButton/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +123 -0
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +12 -0
- package/dist/stories/components/SagIconButton.style.js +4 -22
- package/dist/stories/components/SagInput/SagInput.js +53 -0
- package/dist/stories/components/SagInput/SagInput.stories.js +69 -0
- package/dist/stories/components/{NewInput.style.js → SagInput/SagInput.style.js} +2 -2
- package/dist/stories/components/SagInput.style.js +5 -33
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +168 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +19 -0
- package/dist/stories/components/SalesAndROI.style.js +11 -103
- package/dist/stories/components/SearchInput/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput/SearchInput.stories.js +44 -0
- package/dist/stories/components/SearchInput/SearchInput.style.js +12 -0
- package/dist/stories/components/SearchInput.style.js +4 -29
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +122 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +183 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +19 -0
- package/dist/stories/components/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton.style.js +9 -90
- package/dist/stories/components/Select/Select.js +135 -0
- package/dist/stories/components/Select/Select.stories.js +200 -0
- package/dist/stories/components/Select/Select.style.js +19 -0
- package/dist/stories/components/Select.style.js +9 -93
- package/dist/stories/components/SingleBarLineCharts.js +5 -5
- package/dist/stories/components/SingleBarLineCharts.style.js +14 -88
- package/dist/stories/components/TabMenu/TabMenu.js +202 -0
- package/dist/stories/components/TabMenu/TabMenu.stories.js +76 -0
- package/dist/stories/components/TabMenu/TabMenu.style.js +24 -0
- package/dist/stories/components/TabMenu.js +7 -19
- package/dist/stories/components/TabMenu.style.js +14 -105
- package/dist/stories/components/Table/Table.js +195 -0
- package/dist/stories/components/Table/Table.stories.js +104 -0
- package/dist/stories/components/Table/Table.style.js +17 -0
- package/dist/stories/components/TableTooltip.js +71 -0
- package/dist/stories/components/TableTooltip.style.js +12 -0
- package/dist/stories/components/TextField/TextField.js +209 -0
- package/dist/stories/components/TextField/TextField.stories.js +162 -0
- package/dist/stories/components/TextField/TextField.style.js +11 -0
- package/dist/stories/components/TextField.style.js +3 -10
- package/dist/stories/components/TitleDescription/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +117 -0
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +36 -0
- package/dist/stories/components/TitleDescription.style.js +28 -214
- package/dist/stories/components/Tooltip/Tooltip.js +31 -0
- package/dist/stories/components/Tooltip/Tooltip.style.js +18 -0
- package/dist/stories/components/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip.style.js +5 -90
- package/dist/stories/components/TopToggleList/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +52 -0
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +16 -0
- package/dist/stories/components/TopToggleList.style.js +8 -43
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +138 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +21 -0
- package/dist/stories/components/TotalBenchmark.style.js +11 -71
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +343 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +30 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +22 -163
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +172 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +24 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +16 -100
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +185 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +20 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +12 -69
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +186 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +291 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +30 -0
- package/dist/stories/components/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +22 -170
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +214 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +190 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +20 -0
- package/dist/stories/components/TotalHorizontalCharts.js +3 -3
- package/dist/stories/components/TotalHorizontalCharts.style.js +12 -113
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +13 -0
- package/dist/stories/components/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip.style.js +5 -97
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +202 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +120 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +18 -0
- package/dist/stories/components/TwoBarCharts.js +2 -2
- package/dist/stories/components/TwoBarCharts.style.js +10 -52
- package/dist/stories/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/icons/ArrowSelectIcon.js +27 -0
- package/dist/stories/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/icons/AttachedIcon.js +27 -0
- package/dist/stories/icons/BellIcon.js +27 -0
- package/dist/stories/icons/Calendar.js +20 -0
- package/dist/stories/icons/CalendarIcon.js +27 -0
- package/dist/stories/icons/CalendarInOpen.js +26 -0
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/icons/ClockIcon.js +27 -0
- package/dist/stories/icons/CloseIcon.js +27 -0
- package/dist/stories/icons/CloseXIcon.js +27 -0
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/icons/DocumentIcon.js +48 -0
- package/dist/stories/icons/DownloadIcon.js +27 -0
- package/dist/stories/icons/Duplicate.js +28 -0
- package/dist/stories/icons/ErrorIcon.js +27 -0
- package/dist/stories/icons/ExitIcon.js +28 -0
- package/dist/stories/icons/ExportIcon.js +28 -0
- package/dist/stories/icons/EyeIcon.js +28 -0
- package/dist/stories/icons/FileIcon.js +27 -0
- package/dist/stories/icons/FilterIcon.js +36 -0
- package/dist/stories/icons/FlyIcon.js +28 -0
- package/dist/stories/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/icons/HannafordIcon.js +5017 -0
- package/dist/stories/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/icons/InfoIcon.js +28 -0
- package/dist/stories/icons/LampIcon.js +27 -0
- package/dist/stories/icons/LegendLineIcon.js +29 -0
- package/dist/stories/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/icons/OptionsIcon.js +27 -0
- package/dist/stories/icons/SearchIcon.js +27 -0
- package/dist/stories/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/icons/ShoutIcon.js +27 -0
- package/dist/stories/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/icons/SucceededIcon.js +27 -0
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/CommonFunctions.js +78 -0
- package/dist/stories/utils/IconsHandler.style.js +3 -8
- package/package.json +1 -1
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/components/BannerEventBoxTest.js +0 -42
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
- package/dist/stories/components/NewInput.js +0 -33
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +0 -1831
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.EventWeeksLegendTitle = exports.EventWeeksLegendMainContainer = exports.EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElement = exports.EventWeeksLegendContainer = exports.EventWeeksLegendColorRectangle = exports.DetailsRowArrowContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.AreaChartContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
11
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n min-width: 250px;\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
12
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n /* justify-content: space-between; */\n background: #ffffff;\n border-radius: 12px;\n flex-basis: 100%;\n"])));
|
|
13
|
+
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: auto;\n width: 100%; \n height: 50%;\n"])));
|
|
14
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 5px;\n background: #ffffff;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
15
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n"])));
|
|
16
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 600;\n line-height: normal;\n"])));
|
|
17
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 1rem;\n"])));
|
|
18
|
+
const Title = exports.Title = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
19
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
20
|
+
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n width: 22px;\n margin-right: 5px;\n @media (max-width: 1366px) {\n width: 12px;\n }\n @media (max-width: 1536px) {\n width: 14px;\n }\n"])));
|
|
21
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
|
|
22
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
23
|
+
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0;\n"])));
|
|
24
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|
|
25
|
+
const EventWeeksLegendMainContainer = exports.EventWeeksLegendMainContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-top: 2px;\n align-items: center;\n"])));
|
|
26
|
+
const EventWeeksLegendContainer = exports.EventWeeksLegendContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n margin-top: 2px;\n align-items: center;\n"])));
|
|
27
|
+
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n line-height: 14px;\n margin: 0 0 0 5px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
28
|
+
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.4rem;\n min-width: 0.4rem;\n height: 0.4rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
29
|
+
const EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElementsContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: 0px;\n align-items: center;\n justify-content: space-around;\n width: 90%;\n"])));
|
|
30
|
+
const EventWeeksLegendDataElement = exports.EventWeeksLegendDataElement = _styledComponents.default.h4(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n font-weight: 400;\n font-size: 10px;\n line-height: 11px;\n margin: 0px;\n width: 100%;\n justify-content: center;\n align-content: center;\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n background: ", ";\n @media (max-width: 1536px) {\n font-size: 9px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])), props => props.borderLeftRadius, props => props.borderLeftRadius, props => props.borderRightRadius, props => props.borderRightRadius, props => props.color);
|
|
@@ -90,7 +90,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
90
90
|
payload
|
|
91
91
|
} = item;
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
93
|
-
transform:
|
|
93
|
+
transform: "translate(".concat(x, ",").concat(y, ")")
|
|
94
94
|
}, activeLabel === payload.value && /*#__PURE__*/_react.default.createElement("rect", {
|
|
95
95
|
x: -15,
|
|
96
96
|
y: 0,
|
|
@@ -115,7 +115,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
115
115
|
} = _ref;
|
|
116
116
|
if (active && payload && payload.length) {
|
|
117
117
|
setActiveLabel(label);
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipTitle, null,
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipTitle, null, "".concat(label)), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, "".concat(value1Title, " ").concat((0, _CommonFunctions.getFormattedValue)(payload[0].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[0].value))), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.TooltipLabel, null, "".concat(value2Title, " ").concat((0, _CommonFunctions.getFormattedValue)(payload[1].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[1].value))));
|
|
119
119
|
}
|
|
120
120
|
return null;
|
|
121
121
|
};
|
|
@@ -169,7 +169,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
169
169
|
id: "ValueAndBenchmarkContainer"
|
|
170
170
|
}, value !== undefined && value != null ? getArrowSign(arrowSign) : '', /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValue, {
|
|
171
171
|
id: "FormattedValue"
|
|
172
|
-
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null,
|
|
172
|
+
}, value !== undefined && value != null ? /*#__PURE__*/_react.default.createElement("span", null, "".concat(value, " "), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.CurrencySign, null, "%")) : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.FormattedValueNoDataMessage, null, value === undefined || value === null ? 'No Data' : ''), addingBenchmark && benchmarkTotalValue ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.BenchmarkContainer, {
|
|
173
173
|
id: "BenchmarkContainer"
|
|
174
174
|
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
175
175
|
id: "Benchmark",
|
|
@@ -5,167 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.EventWeeksLegendTitle = exports.EventWeeksLegendMainContainer = exports.EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElement = exports.EventWeeksLegendContainer = exports.EventWeeksLegendColorRectangle = exports.DetailsRowArrowContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.AreaChartContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
8
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
position: relative;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
width:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
margin-top:
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: 50%;
|
|
32
|
-
`;
|
|
33
|
-
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
34
|
-
border-radius: 5px;
|
|
35
|
-
background: #ffffff;
|
|
36
|
-
border-radius: 5px;
|
|
37
|
-
padding: 8px 12px;
|
|
38
|
-
display: grid;
|
|
39
|
-
`;
|
|
40
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
41
|
-
color: #212121;
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
line-height: normal;
|
|
45
|
-
width: fit-content;
|
|
46
|
-
`;
|
|
47
|
-
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
48
|
-
color: #212121;
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
line-height: normal;
|
|
52
|
-
`;
|
|
53
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
54
|
-
padding: 0 1rem;
|
|
55
|
-
`;
|
|
56
|
-
const Title = exports.Title = _styledComponents.default.div`
|
|
57
|
-
font-weight: 500;
|
|
58
|
-
font-size: 1rem;
|
|
59
|
-
@media (max-width: 1366px) {
|
|
60
|
-
font-size: 12px;
|
|
61
|
-
}
|
|
62
|
-
@media (max-width: 1536px) {
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div`
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
`;
|
|
70
|
-
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div`
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: flex-end;
|
|
73
|
-
width: 22px;
|
|
74
|
-
margin-right: 5px;
|
|
75
|
-
@media (max-width: 1366px) {
|
|
76
|
-
width: 12px;
|
|
77
|
-
}
|
|
78
|
-
@media (max-width: 1536px) {
|
|
79
|
-
width: 14px;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
83
|
-
font-weight: 500;
|
|
84
|
-
font-size: 40px;
|
|
85
|
-
@media (max-width: 1366px) {
|
|
86
|
-
font-size: 20px;
|
|
87
|
-
}
|
|
88
|
-
@media (max-width: 1536px) {
|
|
89
|
-
font-size: 24px;
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
const CurrencySign = exports.CurrencySign = _styledComponents.default.span`
|
|
93
|
-
font-size: 16px;
|
|
94
|
-
@media (max-width: 1366px) {
|
|
95
|
-
font-size: 12px;
|
|
96
|
-
}
|
|
97
|
-
@media (max-width: 1536px) {
|
|
98
|
-
font-size: 14px;
|
|
99
|
-
}
|
|
100
|
-
`;
|
|
101
|
-
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div`
|
|
102
|
-
margin-left: 0.3rem;
|
|
103
|
-
font-weight: 700;
|
|
104
|
-
font-size: 16px;
|
|
105
|
-
margin: 0;
|
|
106
|
-
`;
|
|
107
|
-
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div`
|
|
108
|
-
display: flex;
|
|
109
|
-
margin-left: 1.5rem;
|
|
110
|
-
`;
|
|
111
|
-
const EventWeeksLegendMainContainer = exports.EventWeeksLegendMainContainer = _styledComponents.default.div`
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
margin-top: 2px;
|
|
116
|
-
align-items: center;
|
|
117
|
-
`;
|
|
118
|
-
const EventWeeksLegendContainer = exports.EventWeeksLegendContainer = _styledComponents.default.div`
|
|
119
|
-
display: flex;
|
|
120
|
-
justify-content: center;
|
|
121
|
-
flex-direction: row;
|
|
122
|
-
margin-top: 2px;
|
|
123
|
-
align-items: center;
|
|
124
|
-
`;
|
|
125
|
-
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4`
|
|
126
|
-
font-weight: 400;
|
|
127
|
-
font-size: 14px;
|
|
128
|
-
line-height: 14px;
|
|
129
|
-
margin: 0 0 0 5px;
|
|
130
|
-
@media (max-width: 1536px) {
|
|
131
|
-
font-size: 14px;
|
|
132
|
-
}
|
|
133
|
-
@media (max-width: 1366px) {
|
|
134
|
-
font-size: 12px;
|
|
135
|
-
}
|
|
136
|
-
`;
|
|
137
|
-
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div`
|
|
138
|
-
width: 0.4rem;
|
|
139
|
-
min-width: 0.4rem;
|
|
140
|
-
height: 0.4rem;
|
|
141
|
-
border-radius: 2px;
|
|
142
|
-
background: ${props => props.color};
|
|
143
|
-
`;
|
|
144
|
-
const EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElementsContainer = _styledComponents.default.div`
|
|
145
|
-
display: flex;
|
|
146
|
-
margin: 0px;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: space-around;
|
|
149
|
-
width: 90%;
|
|
150
|
-
`;
|
|
151
|
-
const EventWeeksLegendDataElement = exports.EventWeeksLegendDataElement = _styledComponents.default.h4`
|
|
152
|
-
display: flex;
|
|
153
|
-
font-weight: 400;
|
|
154
|
-
font-size: 10px;
|
|
155
|
-
line-height: 11px;
|
|
156
|
-
margin: 0px;
|
|
157
|
-
width: 100%;
|
|
158
|
-
justify-content: center;
|
|
159
|
-
align-content: center;
|
|
160
|
-
border-top-left-radius: ${props => props.borderLeftRadius};
|
|
161
|
-
border-bottom-left-radius: ${props => props.borderLeftRadius};
|
|
162
|
-
border-top-right-radius: ${props => props.borderRightRadius};
|
|
163
|
-
border-bottom-right-radius: ${props => props.borderRightRadius};
|
|
164
|
-
background: ${props => props.color};
|
|
165
|
-
@media (max-width: 1536px) {
|
|
166
|
-
font-size: 9px;
|
|
167
|
-
}
|
|
168
|
-
@media (max-width: 1366px) {
|
|
169
|
-
font-size: 8px;
|
|
170
|
-
}
|
|
171
|
-
`;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
11
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n min-width: 250px;\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
12
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n /* justify-content: space-between; */\n background: #ffffff;\n border-radius: 12px;\n flex-basis: 100%;\n"])));
|
|
13
|
+
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: auto;\n width: 100%; \n height: 50%;\n"])));
|
|
14
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 5px;\n background: #ffffff;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
15
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n"])));
|
|
16
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 600;\n line-height: normal;\n"])));
|
|
17
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 1rem;\n"])));
|
|
18
|
+
const Title = exports.Title = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
19
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
20
|
+
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n width: 22px;\n margin-right: 5px;\n @media (max-width: 1366px) {\n width: 12px;\n }\n @media (max-width: 1536px) {\n width: 14px;\n }\n"])));
|
|
21
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
|
|
22
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
23
|
+
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0;\n"])));
|
|
24
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|
|
25
|
+
const EventWeeksLegendMainContainer = exports.EventWeeksLegendMainContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-top: 2px;\n align-items: center;\n"])));
|
|
26
|
+
const EventWeeksLegendContainer = exports.EventWeeksLegendContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n margin-top: 2px;\n align-items: center;\n"])));
|
|
27
|
+
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n line-height: 14px;\n margin: 0 0 0 5px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
28
|
+
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.4rem;\n min-width: 0.4rem;\n height: 0.4rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
29
|
+
const EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElementsContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: 0px;\n align-items: center;\n justify-content: space-around;\n width: 90%;\n"])));
|
|
30
|
+
const EventWeeksLegendDataElement = exports.EventWeeksLegendDataElement = _styledComponents.default.h4(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n font-weight: 400;\n font-size: 10px;\n line-height: 11px;\n margin: 0px;\n width: 100%;\n justify-content: center;\n align-content: center;\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n background: ", ";\n @media (max-width: 1536px) {\n font-size: 9px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])), props => props.borderLeftRadius, props => props.borderLeftRadius, props => props.borderRightRadius, props => props.borderRightRadius, props => props.color);
|
|
@@ -0,0 +1,149 @@
|
|
|
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.TotalBenchmarkArrows = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ArrowUpIcon = require("../../icons/ArrowUpIcon");
|
|
10
|
+
var _ArrowDownIcon = require("../../icons/ArrowDownIcon");
|
|
11
|
+
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
12
|
+
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
13
|
+
var _Benchmark = require("../Benchmark/Benchmark");
|
|
14
|
+
var _TotalBenchmarkArrows = require("./TotalBenchmarkArrows.style");
|
|
15
|
+
/* TotalBenchmarkArrows */
|
|
16
|
+
const TotalBenchmarkArrows = props => {
|
|
17
|
+
const {
|
|
18
|
+
title,
|
|
19
|
+
value,
|
|
20
|
+
addingBenchmark,
|
|
21
|
+
benchmarkTotalValue,
|
|
22
|
+
benchmarkValue,
|
|
23
|
+
detailsTitle,
|
|
24
|
+
detailsData,
|
|
25
|
+
dotCut,
|
|
26
|
+
width,
|
|
27
|
+
height,
|
|
28
|
+
textcolor,
|
|
29
|
+
noDataText
|
|
30
|
+
} = props;
|
|
31
|
+
const DEFAULT_ROOT_FONT = 16;
|
|
32
|
+
const DEFAULT_COMPONENT_WIDTH = 250;
|
|
33
|
+
const DEFAULT_COMPONENT_HEIGHT = 280;
|
|
34
|
+
const [rootFont, setRootFont] = (0, _react.useState)(DEFAULT_ROOT_FONT.toString().concat('', 'px'));
|
|
35
|
+
const [heightFactor, setHeightFactor] = (0, _react.useState)(1);
|
|
36
|
+
const controlsContainerRef = (0, _react.useRef)();
|
|
37
|
+
(0, _react.useEffect)(() => {
|
|
38
|
+
const {
|
|
39
|
+
offsetWidth
|
|
40
|
+
} = controlsContainerRef.current;
|
|
41
|
+
setRootFont(getRootFont(offsetWidth));
|
|
42
|
+
}, [width]);
|
|
43
|
+
(0, _react.useEffect)(() => {
|
|
44
|
+
const {
|
|
45
|
+
offsetHeight
|
|
46
|
+
} = controlsContainerRef.current;
|
|
47
|
+
const factor = offsetHeight / DEFAULT_COMPONENT_HEIGHT;
|
|
48
|
+
setHeightFactor(factor);
|
|
49
|
+
}, [height]);
|
|
50
|
+
const getRootFont = width => {
|
|
51
|
+
const relation = width.toString().replace('px', '').replace('%', '') / DEFAULT_COMPONENT_WIDTH;
|
|
52
|
+
const fontRoot = (DEFAULT_ROOT_FONT * relation).toString().concat('', 'px');
|
|
53
|
+
return fontRoot;
|
|
54
|
+
};
|
|
55
|
+
const getSizeFactor = () => rootFont.toString().replace('px', '') / DEFAULT_ROOT_FONT;
|
|
56
|
+
const getArrowSign = arrowSign => {
|
|
57
|
+
if (!arrowSign) {
|
|
58
|
+
return '';
|
|
59
|
+
}
|
|
60
|
+
if (arrowSign === 'up') {
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowArrowContainer, {
|
|
62
|
+
id: "DetailsRowArrowContainer",
|
|
63
|
+
value: value,
|
|
64
|
+
height: 12 * getSizeFactor()
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_ArrowUpIcon.ArrowUpIcon, {
|
|
66
|
+
width: 12 * getSizeFactor(),
|
|
67
|
+
height: 12 * getSizeFactor()
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowArrowContainer, {
|
|
71
|
+
id: "DetailsRowArrowContainer",
|
|
72
|
+
value: value,
|
|
73
|
+
height: 12 * getSizeFactor()
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_ArrowDownIcon.ArrowDownIcon, {
|
|
75
|
+
width: 12 * getSizeFactor(),
|
|
76
|
+
height: 12 * getSizeFactor()
|
|
77
|
+
}));
|
|
78
|
+
};
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.ControlsContainer, {
|
|
80
|
+
id: "ControlsContainer",
|
|
81
|
+
height: height,
|
|
82
|
+
width: width,
|
|
83
|
+
textcolor: textcolor,
|
|
84
|
+
ref: controlsContainerRef
|
|
85
|
+
}, (detailsData === null || detailsData === void 0 ? void 0 : detailsData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.Controls, {
|
|
86
|
+
id: "Controls"
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.Title, {
|
|
88
|
+
id: "Title"
|
|
89
|
+
}, title), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.ValueAndBenchmarkContainer, {
|
|
90
|
+
id: "ValueAndBenchmarkContainer"
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.FormattedValue, {
|
|
92
|
+
id: "FormattedValue"
|
|
93
|
+
}, value !== undefined && value != null && dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value), value !== undefined && value != null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : ''), addingBenchmark && benchmarkTotalValue ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.BenchmarkContainer, {
|
|
94
|
+
id: "BenchmarkContainer"
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
96
|
+
totalValue: benchmarkTotalValue,
|
|
97
|
+
currentValue: value !== null && value !== void 0 ? value : 0,
|
|
98
|
+
benchmarkValue: benchmarkValue !== null && benchmarkValue !== void 0 ? benchmarkValue : 0,
|
|
99
|
+
height: 12 * getSizeFactor(),
|
|
100
|
+
width: 85 * getSizeFactor(),
|
|
101
|
+
color: "#79DB95",
|
|
102
|
+
linearGradientColor: "#C3EFD0",
|
|
103
|
+
linearGradientUnderAvarageColor: "#FDB1B1",
|
|
104
|
+
underAvarageColor: "#FD5959",
|
|
105
|
+
backgroundColor: "#F2F2F2"
|
|
106
|
+
})) : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsContainer, {
|
|
107
|
+
id: "DetailsContainer"
|
|
108
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsTitle, {
|
|
109
|
+
id: "DetailsTitle"
|
|
110
|
+
}, detailsTitle), detailsData.map(item => /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowContainer, {
|
|
111
|
+
id: "DetailsRowContainer",
|
|
112
|
+
key: item.title
|
|
113
|
+
}, item.value !== undefined && item.value != null ? getArrowSign(item.value >= 0 ? 'up' : 'down') : '', /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowFormattedValue, {
|
|
114
|
+
id: "DetailsRowFormattedValue"
|
|
115
|
+
}, item.value !== undefined && item.value != null ? Math.abs(item.value) : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowPercentSign, {
|
|
116
|
+
id: "DetailsRowPercentSign"
|
|
117
|
+
}, item.value !== undefined && item.value != null ? ' % ' : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowFormattedValueNoDataMessage, {
|
|
118
|
+
id: "DetailsRowFormattedValueNoDataMessage"
|
|
119
|
+
}, item.value === undefined || item.value === null ? 'No Data' : ''), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.DetailsRowTitle, {
|
|
120
|
+
id: "DetailsRowTitle"
|
|
121
|
+
}, item.title))))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
122
|
+
noDataText: noDataText
|
|
123
|
+
}));
|
|
124
|
+
};
|
|
125
|
+
exports.TotalBenchmarkArrows = TotalBenchmarkArrows;
|
|
126
|
+
var _default = exports.default = TotalBenchmarkArrows;
|
|
127
|
+
TotalBenchmarkArrows.defaultProps = {
|
|
128
|
+
title: 'Title',
|
|
129
|
+
value: 100,
|
|
130
|
+
addingBenchmark: 200,
|
|
131
|
+
benchmarkTotalValue: 300,
|
|
132
|
+
benchmarkValue: 400,
|
|
133
|
+
detailsTitle: '',
|
|
134
|
+
detailsData: [{
|
|
135
|
+
title: 'Basket (Units) Change',
|
|
136
|
+
value: null
|
|
137
|
+
}, {
|
|
138
|
+
title: 'Basket ($) Change',
|
|
139
|
+
value: 30
|
|
140
|
+
}, {
|
|
141
|
+
title: 'Visits Change',
|
|
142
|
+
value: 30
|
|
143
|
+
}],
|
|
144
|
+
dotCut: true,
|
|
145
|
+
width: '250px',
|
|
146
|
+
height: '280px',
|
|
147
|
+
textcolor: '#212121',
|
|
148
|
+
noDataText: ''
|
|
149
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
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.LessAvarage = exports.GreaterAvarage = exports.DataWithNulls = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _TotalBenchmarkArrows = require("./TotalBenchmarkArrows");
|
|
10
|
+
const arrDetailsData = [{
|
|
11
|
+
title: 'Basket Change',
|
|
12
|
+
value: 16
|
|
13
|
+
}, {
|
|
14
|
+
title: 'Visits Change',
|
|
15
|
+
value: -5
|
|
16
|
+
}];
|
|
17
|
+
const arrDetailsDataUp = [{
|
|
18
|
+
title: 'Basket Change',
|
|
19
|
+
value: 50
|
|
20
|
+
}, {
|
|
21
|
+
title: 'Visits Change',
|
|
22
|
+
value: 30
|
|
23
|
+
}];
|
|
24
|
+
const arrDetailsDataWithNulls = [{
|
|
25
|
+
title: 'Basket (Units) Change',
|
|
26
|
+
value: null
|
|
27
|
+
}, {
|
|
28
|
+
title: 'Basket ($) Change',
|
|
29
|
+
value: 30
|
|
30
|
+
}, {
|
|
31
|
+
title: 'Visits Change',
|
|
32
|
+
value: 30
|
|
33
|
+
}];
|
|
34
|
+
var _default = exports.default = {
|
|
35
|
+
title: 'SAG BI/TotalBenchmarkArrows',
|
|
36
|
+
component: _TotalBenchmarkArrows.TotalBenchmarkArrows,
|
|
37
|
+
tags: ['autodocs'],
|
|
38
|
+
argTypes: {
|
|
39
|
+
dotCut: {
|
|
40
|
+
name: 'dotCut',
|
|
41
|
+
control: {
|
|
42
|
+
type: 'boolean'
|
|
43
|
+
},
|
|
44
|
+
description: 'true/false - format total value with dot cut'
|
|
45
|
+
},
|
|
46
|
+
title: {
|
|
47
|
+
name: 'title',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'text'
|
|
50
|
+
},
|
|
51
|
+
description: 'title on top of the component'
|
|
52
|
+
},
|
|
53
|
+
value: {
|
|
54
|
+
name: 'value',
|
|
55
|
+
control: {
|
|
56
|
+
type: 'number',
|
|
57
|
+
min: 0,
|
|
58
|
+
max: 100000000000000
|
|
59
|
+
},
|
|
60
|
+
description: 'value (title) '
|
|
61
|
+
},
|
|
62
|
+
addingBenchmark: {
|
|
63
|
+
name: 'Add Benchmark',
|
|
64
|
+
control: {
|
|
65
|
+
type: 'boolean'
|
|
66
|
+
},
|
|
67
|
+
description: 'true/false - Adding Benchmark'
|
|
68
|
+
},
|
|
69
|
+
benchmarkTotalValue: {
|
|
70
|
+
name: 'benchmarkTotalValue',
|
|
71
|
+
control: {
|
|
72
|
+
type: 'number',
|
|
73
|
+
min: 0,
|
|
74
|
+
max: 100000000000000
|
|
75
|
+
},
|
|
76
|
+
description: 'benchmarkTotalValue - set total value of the benchmark'
|
|
77
|
+
},
|
|
78
|
+
benchmarkValue: {
|
|
79
|
+
name: 'benchmarkValue',
|
|
80
|
+
control: {
|
|
81
|
+
type: 'number',
|
|
82
|
+
min: 0,
|
|
83
|
+
max: 100000000000000
|
|
84
|
+
},
|
|
85
|
+
description: 'benchmarkValue - set total value of the benchmark delimeter line'
|
|
86
|
+
},
|
|
87
|
+
detailsTitle: {
|
|
88
|
+
name: 'detailsTitle',
|
|
89
|
+
control: {
|
|
90
|
+
type: 'text'
|
|
91
|
+
},
|
|
92
|
+
description: 'title on top of the details'
|
|
93
|
+
},
|
|
94
|
+
width: {
|
|
95
|
+
name: 'width',
|
|
96
|
+
control: {
|
|
97
|
+
type: 'text'
|
|
98
|
+
},
|
|
99
|
+
description: 'width of the control (in px)'
|
|
100
|
+
},
|
|
101
|
+
height: {
|
|
102
|
+
name: 'height',
|
|
103
|
+
control: {
|
|
104
|
+
type: 'text'
|
|
105
|
+
},
|
|
106
|
+
description: 'height of the control (in px)'
|
|
107
|
+
},
|
|
108
|
+
textcolor: {
|
|
109
|
+
name: 'textcolor',
|
|
110
|
+
description: 'Sets the text color',
|
|
111
|
+
control: {
|
|
112
|
+
type: 'color',
|
|
113
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
detailsData: {
|
|
117
|
+
description: 'array [] of objects: {title: string, value:number } to fill the details data. value can be negative '
|
|
118
|
+
},
|
|
119
|
+
noDataText: {
|
|
120
|
+
name: 'noDataText',
|
|
121
|
+
control: {
|
|
122
|
+
type: 'text'
|
|
123
|
+
},
|
|
124
|
+
description: 'text to display when no data found'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const LessAvarage = exports.LessAvarage = {
|
|
129
|
+
args: {
|
|
130
|
+
title: 'New Repeaters',
|
|
131
|
+
value: 21500,
|
|
132
|
+
benchmarkTotalValue: 60000,
|
|
133
|
+
benchmarkValue: 30000,
|
|
134
|
+
detailsTitle: 'Existing Repeaters',
|
|
135
|
+
detailsData: arrDetailsData,
|
|
136
|
+
dotCut: true,
|
|
137
|
+
width: '310px',
|
|
138
|
+
height: '280px',
|
|
139
|
+
textcolor: '#212121',
|
|
140
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.'
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const GreaterAvarage = exports.GreaterAvarage = {
|
|
144
|
+
args: {
|
|
145
|
+
title: 'New Repeaters',
|
|
146
|
+
value: 50500,
|
|
147
|
+
benchmarkTotalValue: 60000,
|
|
148
|
+
benchmarkValue: 30000,
|
|
149
|
+
detailsTitle: 'Existing Repeaters',
|
|
150
|
+
detailsData: arrDetailsDataUp,
|
|
151
|
+
dotCut: true,
|
|
152
|
+
width: '310px',
|
|
153
|
+
height: '280px',
|
|
154
|
+
textcolor: '#212121',
|
|
155
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
const DataWithNulls = exports.DataWithNulls = {
|
|
159
|
+
args: {
|
|
160
|
+
title: 'New Repeaters',
|
|
161
|
+
value: 50500,
|
|
162
|
+
benchmarkTotalValue: 60000,
|
|
163
|
+
benchmarkValue: 30000,
|
|
164
|
+
detailsTitle: 'Existing Repeaters',
|
|
165
|
+
detailsData: arrDetailsDataWithNulls,
|
|
166
|
+
dotCut: true,
|
|
167
|
+
width: '310px',
|
|
168
|
+
height: '280px',
|
|
169
|
+
textcolor: '#212121',
|
|
170
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
171
|
+
}
|
|
172
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ValueAndBenchmarkContainer = exports.Title = exports.FormattedValue = exports.DetailsTitle = exports.DetailsRowTitle = exports.DetailsRowPercentSign = exports.DetailsRowFormattedValueNoDataMessage = exports.DetailsRowFormattedValue = exports.DetailsRowContainer = exports.DetailsRowArrowContainer = exports.DetailsContainer = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
11
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-content: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
12
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n border-radius: 12px;\n width: 90%;\n height: 100%;\n background: #ffffff; \n flex-direction: column;\n flex-basis: 100%;\n //align-items: center;\n align-items: flex-start;\n justify-content: space-between;\n padding: 0px 0.8rem;\n \n"])));
|
|
13
|
+
const Title = exports.Title = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)([" \n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
14
|
+
const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: baseline;\n height: 45%;\n"])));
|
|
15
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.1rem;\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1536px) {\n font-size: 24px;\n } \n @media (max-width: 1366px) {\n font-size: 20px;\n }\n"])));
|
|
16
|
+
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 0.77778rem;\n width: 5.35rem;\n"])));
|
|
17
|
+
const DetailsContainer = exports.DetailsContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n height: 50%;\n"])));
|
|
18
|
+
const DetailsTitle = exports.DetailsTitle = _styledComponents.default.h5(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n margin-top: 0;\n margin-bottom: 12px;\n @media (max-width: 1536px) {\n font-size: 14px;\n } \n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
19
|
+
const DetailsRowContainer = exports.DetailsRowContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n text-align: center;\n align-items: baseline;\n gap: 4px;\n font-weight: 700;\n font-size: 14px;\n"])));
|
|
20
|
+
const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n"])));
|
|
21
|
+
const DetailsRowFormattedValue = exports.DetailsRowFormattedValue = _styledComponents.default.span(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 700;\n"])));
|
|
22
|
+
const DetailsRowFormattedValueNoDataMessage = exports.DetailsRowFormattedValueNoDataMessage = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0; \n"])));
|
|
23
|
+
const DetailsRowPercentSign = exports.DetailsRowPercentSign = _styledComponents.default.span(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n"])));
|
|
24
|
+
const DetailsRowTitle = exports.DetailsRowTitle = _styledComponents.default.span(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n"])));
|