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
|
@@ -5,174 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.TextAfterValue = exports.LegendTitleAndFormatedValueContainer = exports.LegendTitle = exports.LegendFormattedValue = exports.LegendFormatedValueContainer = exports.LegendControlsContainer = exports.LegendContainer = exports.LegendColorRectangle = exports.FormattedValue = exports.DoughnutChartContainer = exports.DoughnutChartAndLegendContainer = exports.CurrencySignAndFormattedValueContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
8
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
font-
|
|
29
|
-
font-
|
|
30
|
-
font-size: ${props => props.rootFont};
|
|
31
|
-
color: ${props => props.textColor};
|
|
32
|
-
width: ${props => props.width};
|
|
33
|
-
height: ${props => props.height};
|
|
34
|
-
border-radius: 12px;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
@media (max-width: 1536px) {
|
|
38
|
-
${scrollableStyles}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
> * {
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
background: white;
|
|
51
|
-
border-radius: 12px;
|
|
52
|
-
`;
|
|
53
|
-
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
background: white;
|
|
56
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
57
|
-
border-radius: 5px;
|
|
58
|
-
padding: 6px 10px;
|
|
59
|
-
margin: 0;
|
|
60
|
-
`;
|
|
61
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p`
|
|
62
|
-
color: #212121;
|
|
63
|
-
font-family: "Poppins", sans-serif;
|
|
64
|
-
font-size: 12px;
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
font-style: normal;
|
|
67
|
-
width: max-content; // fit-content;
|
|
68
|
-
line-height: normal;
|
|
69
|
-
margin: 0;
|
|
70
|
-
`;
|
|
71
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
padding: 0 20px;
|
|
75
|
-
`;
|
|
76
|
-
const Title = exports.Title = _styledComponents.default.h4`
|
|
77
|
-
font-weight: 500;
|
|
78
|
-
font-size: 1rem;
|
|
79
|
-
margin: 0;
|
|
80
|
-
@media (max-width: 1536px) {
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
}
|
|
83
|
-
@media (max-width: 1366px) {
|
|
84
|
-
font-size: 12px;
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
87
|
-
const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div`
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
gap: 5px;
|
|
91
|
-
align-items: baseline;
|
|
92
|
-
`;
|
|
93
|
-
const CurrencySign = exports.CurrencySign = _styledComponents.default.span`
|
|
94
|
-
font-weight: 500;
|
|
95
|
-
font-size: 16px;
|
|
96
|
-
@media (max-width: 1536px) {
|
|
97
|
-
font-size: 14px;
|
|
98
|
-
}
|
|
99
|
-
@media (max-width: 1366px) {
|
|
100
|
-
font-size: 11px;
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
103
|
-
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
104
|
-
font-weight: 500;
|
|
105
|
-
font-size: 40px;
|
|
106
|
-
@media (max-width: 1536px) {
|
|
107
|
-
font-size: 24px;
|
|
108
|
-
}
|
|
109
|
-
@media (max-width: 1366px) {
|
|
110
|
-
font-size: 20px;
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
const TextAfterValue = exports.TextAfterValue = _styledComponents.default.div`
|
|
114
|
-
font-weight: 400;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
@media (max-width: 1536px) {
|
|
117
|
-
font-size: 11px;
|
|
118
|
-
}
|
|
119
|
-
@media (max-width: 1366px) {
|
|
120
|
-
font-size: 10px;
|
|
121
|
-
}
|
|
122
|
-
`;
|
|
123
|
-
const DoughnutChartAndLegendContainer = exports.DoughnutChartAndLegendContainer = _styledComponents.default.div`
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: space-between;
|
|
126
|
-
margin-top: auto;
|
|
127
|
-
padding: 0 20px ;
|
|
128
|
-
margin-bottom: 20px;
|
|
129
|
-
`;
|
|
130
|
-
const DoughnutChartContainer = exports.DoughnutChartContainer = _styledComponents.default.div`
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
min-width: 90px;
|
|
134
|
-
min-height: 90px;
|
|
135
|
-
`;
|
|
136
|
-
const LegendContainer = exports.LegendContainer = _styledComponents.default.div`
|
|
137
|
-
padding-left: 10px;
|
|
138
|
-
display: flex;
|
|
139
|
-
flex-direction: column;
|
|
140
|
-
justify-content: space-evenly;
|
|
141
|
-
`;
|
|
142
|
-
const LegendControlsContainer = exports.LegendControlsContainer = _styledComponents.default.div`
|
|
143
|
-
display: flex;
|
|
144
|
-
gap: 0.5rem;
|
|
145
|
-
align-items: center;
|
|
146
|
-
margin-bottom: 0.375rem;
|
|
147
|
-
`;
|
|
148
|
-
const LegendTitleAndFormatedValueContainer = exports.LegendTitleAndFormatedValueContainer = _styledComponents.default.div`
|
|
149
|
-
flex-grow: 1;
|
|
150
|
-
`;
|
|
151
|
-
const LegendFormatedValueContainer = exports.LegendFormatedValueContainer = _styledComponents.default.div`
|
|
152
|
-
font-size: 0.875rem;
|
|
153
|
-
`;
|
|
154
|
-
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div`
|
|
155
|
-
width: 0.875rem;
|
|
156
|
-
min-width: 0.875rem;
|
|
157
|
-
height: 0.875rem;
|
|
158
|
-
border-radius: 2px;
|
|
159
|
-
background: ${props => props.color};
|
|
160
|
-
`;
|
|
161
|
-
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5`
|
|
162
|
-
font-weight: 400;
|
|
163
|
-
font-size: 16px;
|
|
164
|
-
gap: 5px;
|
|
165
|
-
margin: 0;
|
|
166
|
-
display: flex;
|
|
167
|
-
justify-content: space-between;
|
|
168
|
-
@media (max-width: 1536px) {
|
|
169
|
-
font-size: 11px;
|
|
170
|
-
}
|
|
171
|
-
@media (max-width: 1366px) {
|
|
172
|
-
font-size: 10px;
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
const LegendFormattedValue = exports.LegendFormattedValue = _styledComponents.default.span`
|
|
176
|
-
font-weight: 500;
|
|
177
|
-
white-space: nowrap;
|
|
178
|
-
`;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n display: flex;\n align-items: center;\n @media (max-width: 1536px) {\n ", "\n }\n\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textColor, props => props.width, props => props.height, scrollableStyles);
|
|
13
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background: white;\n border-radius: 12px; \n"])));
|
|
14
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n background: white;\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n padding: 6px 10px;\n margin: 0;\n"])));
|
|
15
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n width: max-content; // fit-content;\n line-height: normal;\n margin: 0;\n"])));
|
|
16
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n padding: 0 20px;\n"])));
|
|
17
|
+
const Title = exports.Title = _styledComponents.default.h4(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n margin: 0;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
18
|
+
const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 5px;\n align-items: baseline;\n"])));
|
|
19
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 11px;\n }\n"])));
|
|
20
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\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"])));
|
|
21
|
+
const TextAfterValue = exports.TextAfterValue = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)([" \n font-weight: 400;\n font-size: 12px;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
22
|
+
const DoughnutChartAndLegendContainer = exports.DoughnutChartAndLegendContainer = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n margin-top: auto;\n padding: 0 20px ;\n margin-bottom: 20px; \n"])));
|
|
23
|
+
const DoughnutChartContainer = exports.DoughnutChartContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center; \n min-width: 90px;\n min-height: 90px; \n"])));
|
|
24
|
+
const LegendContainer = exports.LegendContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n padding-left: 10px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly; \n"])));
|
|
25
|
+
const LegendControlsContainer = exports.LegendControlsContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-bottom: 0.375rem;\n"])));
|
|
26
|
+
const LegendTitleAndFormatedValueContainer = exports.LegendTitleAndFormatedValueContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n"])));
|
|
27
|
+
const LegendFormatedValueContainer = exports.LegendFormatedValueContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 0.875rem;\n"])));
|
|
28
|
+
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.875rem;\n min-width: 0.875rem;\n height: 0.875rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
29
|
+
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 16px;\n gap: 5px;\n margin: 0;\n display: flex;\n justify-content: space-between;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
30
|
+
const LegendFormattedValue = exports.LegendFormattedValue = _styledComponents.default.span(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n white-space: nowrap;\n"])));
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.TotalHorizontalCharts = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _recharts = require("recharts");
|
|
11
|
+
var _TspanTooltip = _interopRequireDefault(require("../TspanTooltip/TspanTooltip"));
|
|
12
|
+
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
13
|
+
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
14
|
+
var _TotalHorizontalCharts = require("./TotalHorizontalCharts.style");
|
|
15
|
+
const TotalHorizontalCharts = props => {
|
|
16
|
+
const {
|
|
17
|
+
title,
|
|
18
|
+
value,
|
|
19
|
+
dotCut,
|
|
20
|
+
currencySign,
|
|
21
|
+
currencyType,
|
|
22
|
+
chartsData,
|
|
23
|
+
labelFontSize,
|
|
24
|
+
labelLimitedLetters,
|
|
25
|
+
width,
|
|
26
|
+
height,
|
|
27
|
+
rightGap,
|
|
28
|
+
textColor,
|
|
29
|
+
noDataText,
|
|
30
|
+
showPercentAsideValue,
|
|
31
|
+
isDollar,
|
|
32
|
+
isPercentage,
|
|
33
|
+
showDollarSign,
|
|
34
|
+
className
|
|
35
|
+
} = props;
|
|
36
|
+
const barBackgrounds = chartsData.map(bg => bg.color);
|
|
37
|
+
const [widthChartContainer, setWidthChartContainer] = (0, _react.useState)(0);
|
|
38
|
+
const [heightChartContainer, setHeightChartContainer] = (0, _react.useState)(0);
|
|
39
|
+
const chartContainerRef = (0, _react.useRef)();
|
|
40
|
+
const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
|
|
41
|
+
const [tooltipText, setTooltipText] = (0, _react.useState)({
|
|
42
|
+
content: '',
|
|
43
|
+
clientX: 0,
|
|
44
|
+
clientY: 0
|
|
45
|
+
});
|
|
46
|
+
(0, _react.useEffect)(() => {
|
|
47
|
+
if (chartContainerRef.current) {
|
|
48
|
+
setWidthChartContainer(chartContainerRef.current.clientWidth);
|
|
49
|
+
setHeightChartContainer(chartContainerRef.current.clientHeight);
|
|
50
|
+
}
|
|
51
|
+
}, [width, height]);
|
|
52
|
+
const CustomizedLabel = props => showPercentAsideValue ? /*#__PURE__*/_react.default.createElement("text", {
|
|
53
|
+
x: props.x + (props.width <= 0 ? -12 : props.width) + 56,
|
|
54
|
+
y: props.y + 4,
|
|
55
|
+
dy: props.height / 2,
|
|
56
|
+
dx: -8,
|
|
57
|
+
fill: props.stroke,
|
|
58
|
+
fontSize: 12,
|
|
59
|
+
fontWeight: 500,
|
|
60
|
+
textAnchor: "middle"
|
|
61
|
+
}, ''.concat((0, _CommonFunctions.getFormattedValue)(props.value), (0, _CommonFunctions.getFormattedUnits)(props.value)), /*#__PURE__*/_react.default.createElement("tspan", {
|
|
62
|
+
fontWeight: 400
|
|
63
|
+
}, " (".concat((props.value / value * 100).toFixed(0), "%)"))) : /*#__PURE__*/_react.default.createElement("text", {
|
|
64
|
+
x: props.x + (props.width <= 0 ? -12 : props.width) + 40,
|
|
65
|
+
y: props.y + 4,
|
|
66
|
+
dy: props.height / 2,
|
|
67
|
+
dx: -8,
|
|
68
|
+
fill: props.stroke,
|
|
69
|
+
fontSize: 12,
|
|
70
|
+
fontWeight: 400,
|
|
71
|
+
textAnchor: "middle"
|
|
72
|
+
}, !isDollar ? ''.concat((0, _CommonFunctions.getFormattedValue)(props.value), isPercentage ? '%' : (0, _CommonFunctions.getFormattedUnits)(props.value)) : ''.concat(showDollarSign ? '$' : '', (0, _CommonFunctions.getFormattedValue)(props.value), (0, _CommonFunctions.getFormattedUnits)(props.value)));
|
|
73
|
+
const CustomizedTickBarChart = props => {
|
|
74
|
+
const {
|
|
75
|
+
x,
|
|
76
|
+
y,
|
|
77
|
+
height,
|
|
78
|
+
payload,
|
|
79
|
+
fill,
|
|
80
|
+
orientation,
|
|
81
|
+
stroke
|
|
82
|
+
} = props;
|
|
83
|
+
const handleMouseEnter = content => {
|
|
84
|
+
setTooltipText(prevState => ({
|
|
85
|
+
...prevState,
|
|
86
|
+
content: content !== prevState.content ? content : prevState.content,
|
|
87
|
+
clientX: x / 1.2,
|
|
88
|
+
clientY: y - 20
|
|
89
|
+
}));
|
|
90
|
+
setShowLegendTooltip(true);
|
|
91
|
+
};
|
|
92
|
+
const handleMouseLeave = () => {
|
|
93
|
+
if (showLegendTooltip === false) return;
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
setShowLegendTooltip(false);
|
|
96
|
+
}, 1200);
|
|
97
|
+
};
|
|
98
|
+
if (chartsData && chartsData.length > 0 && payload) {
|
|
99
|
+
const chartsDataLabel = chartsData.filter(item => item.name === payload.value);
|
|
100
|
+
if (chartsDataLabel && chartsDataLabel.length > 0) {
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement("g", {
|
|
102
|
+
onMouseEnter: () => handleMouseEnter(payload.value),
|
|
103
|
+
onMouseLeave: handleMouseLeave
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
105
|
+
style: {
|
|
106
|
+
whiteSpace: 'nowrap'
|
|
107
|
+
},
|
|
108
|
+
height: height,
|
|
109
|
+
x: 20,
|
|
110
|
+
y: y,
|
|
111
|
+
fontSize: labelFontSize,
|
|
112
|
+
orientation: orientation,
|
|
113
|
+
stroke: stroke,
|
|
114
|
+
textAnchor: "start"
|
|
115
|
+
// verticalAnchor="middle"
|
|
116
|
+
,
|
|
117
|
+
fill: fill
|
|
118
|
+
}, payload.value.length > labelLimitedLetters - 1 ? "".concat(payload.value.slice(0, labelLimitedLetters), "...") : payload.value));
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
};
|
|
124
|
+
return /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.ControlsContainer, {
|
|
125
|
+
height: height,
|
|
126
|
+
width: width,
|
|
127
|
+
textColor: textColor,
|
|
128
|
+
className: className
|
|
129
|
+
}, (chartsData === null || chartsData === void 0 ? void 0 : chartsData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.TitleAndValueContainer, {
|
|
130
|
+
id: "TitleAndValueContainer"
|
|
131
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.Header, null, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.Title, null, title), /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.FormattedValue, {
|
|
132
|
+
id: "FormattedValue"
|
|
133
|
+
}, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.CurrencySign, {
|
|
134
|
+
id: "CurrencySign"
|
|
135
|
+
}, currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, value) : ''), dotCut ? (0, _CommonFunctions.getFormattedValue)(value && Math.abs(value) > 0 && value % 1 !== 0 ? value === null || value === void 0 ? void 0 : value.toFixed(2) : value) : (0, _CommonFunctions.getNumberWithCommas)(value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : ''))), /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.ChartWrapper, null, /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.ChartInner, {
|
|
136
|
+
ref: chartContainerRef
|
|
137
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
138
|
+
height: heightChartContainer - 10,
|
|
139
|
+
width: widthChartContainer
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
|
|
141
|
+
width: widthChartContainer * 0.4,
|
|
142
|
+
layout: "vertical",
|
|
143
|
+
data: chartsData,
|
|
144
|
+
margin: {
|
|
145
|
+
top: 10,
|
|
146
|
+
right: 20,
|
|
147
|
+
bottom: 50,
|
|
148
|
+
left: 10
|
|
149
|
+
}
|
|
150
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
|
|
151
|
+
type: "number",
|
|
152
|
+
domain: [0, dataMax => dataMax * rightGap],
|
|
153
|
+
allowDataOverflow: true,
|
|
154
|
+
hide: true
|
|
155
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.YAxis, {
|
|
156
|
+
dataKey: "name",
|
|
157
|
+
type: "category",
|
|
158
|
+
width: widthChartContainer * 0.3,
|
|
159
|
+
tickLine: false,
|
|
160
|
+
interval: 0,
|
|
161
|
+
allowDataOverflow: true,
|
|
162
|
+
axisLine: false
|
|
163
|
+
// tick={{ fontSize: 12 }}
|
|
164
|
+
,
|
|
165
|
+
tick: CustomizedTickBarChart
|
|
166
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
167
|
+
dataKey: "value",
|
|
168
|
+
barSize: 20,
|
|
169
|
+
fill: "#8884d8",
|
|
170
|
+
barCategoryGap: 0,
|
|
171
|
+
barGap: 5
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
173
|
+
dataKey: "value",
|
|
174
|
+
content: CustomizedLabel
|
|
175
|
+
}), chartsData.map((entry, index) =>
|
|
176
|
+
/*#__PURE__*/
|
|
177
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
178
|
+
_react.default.createElement(_recharts.Cell, {
|
|
179
|
+
key: "cell-".concat(index),
|
|
180
|
+
fill: barBackgrounds[index % 20]
|
|
181
|
+
}))), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
|
|
182
|
+
direction: "top",
|
|
183
|
+
content: tooltipText.content,
|
|
184
|
+
top: tooltipText.clientY,
|
|
185
|
+
left: tooltipText.clientX,
|
|
186
|
+
style: {
|
|
187
|
+
pointerEvents: 'none'
|
|
188
|
+
}
|
|
189
|
+
})))))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
190
|
+
noDataText: noDataText
|
|
191
|
+
}));
|
|
192
|
+
};
|
|
193
|
+
exports.TotalHorizontalCharts = TotalHorizontalCharts;
|
|
194
|
+
var _default = exports.default = TotalHorizontalCharts;
|
|
195
|
+
TotalHorizontalCharts.defaultProps = {
|
|
196
|
+
className: '',
|
|
197
|
+
title: 'SALES',
|
|
198
|
+
value: 0,
|
|
199
|
+
dotCut: false,
|
|
200
|
+
currencySign: false,
|
|
201
|
+
currencyType: 'USD',
|
|
202
|
+
chartsData: [],
|
|
203
|
+
labelFontSize: 10,
|
|
204
|
+
labelLimitedLetters: 12,
|
|
205
|
+
width: '100%',
|
|
206
|
+
height: '100%',
|
|
207
|
+
rightGap: 1.25,
|
|
208
|
+
textColor: '#212121',
|
|
209
|
+
noDataText: 'No Data',
|
|
210
|
+
showPercentAsideValue: false,
|
|
211
|
+
isDollar: true,
|
|
212
|
+
isPercentage: false,
|
|
213
|
+
showDollarSign: true
|
|
214
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
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.SalesGreenTheme = exports.SalesBlueTheme = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _TotalHorizontalCharts = _interopRequireDefault(require("./TotalHorizontalCharts"));
|
|
10
|
+
const chartsData1 = [{
|
|
11
|
+
name: 'MTN DEW GE-SODA',
|
|
12
|
+
value: 166898.22,
|
|
13
|
+
color: 'rgba(31, 118, 119, 0.6)'
|
|
14
|
+
}, {
|
|
15
|
+
name: 'CHEETOS GE-CHIPS, SNACKS',
|
|
16
|
+
value: 33380.98,
|
|
17
|
+
color: 'rgba(31, 118, 119, 0.9)'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'CHEETOS SNACKING',
|
|
20
|
+
value: 12940.18,
|
|
21
|
+
color: 'rgba(31, 118, 119, 0.8)'
|
|
22
|
+
}, {
|
|
23
|
+
name: 'LAMB WESTON FF-POTATOES ONIONS',
|
|
24
|
+
value: -666828.24,
|
|
25
|
+
color: 'rgba(31, 118, 119, 0.7)'
|
|
26
|
+
}];
|
|
27
|
+
const chartsData2 = [{
|
|
28
|
+
name: 'Lysoe',
|
|
29
|
+
value: 52795.7313,
|
|
30
|
+
color: 'rgba(94, 101, 238, 0.1)'
|
|
31
|
+
}, {
|
|
32
|
+
name: 'Ensueno',
|
|
33
|
+
value: 29792.315,
|
|
34
|
+
color: 'rgba(94, 101, 238, 0.2)'
|
|
35
|
+
}, {
|
|
36
|
+
name: 'Starbucks Frappuccino',
|
|
37
|
+
value: 20,
|
|
38
|
+
color: 'rgba(94, 101, 238, 0.3)'
|
|
39
|
+
}, {
|
|
40
|
+
name: 'Pringles',
|
|
41
|
+
value: 15,
|
|
42
|
+
color: 'rgba(94, 101, 238, 0.4)'
|
|
43
|
+
}, {
|
|
44
|
+
name: 'Chunky Bowls',
|
|
45
|
+
value: 10,
|
|
46
|
+
color: 'rgba(94, 101, 238, 0.4)'
|
|
47
|
+
}];
|
|
48
|
+
var _default = exports.default = {
|
|
49
|
+
title: 'SAG BI/TotalHorizontalCharts',
|
|
50
|
+
component: _TotalHorizontalCharts.default,
|
|
51
|
+
tags: ['autodocs'],
|
|
52
|
+
parameters: {
|
|
53
|
+
design: {
|
|
54
|
+
type: 'figspec',
|
|
55
|
+
accessToken: 'figd_vlq2HLcwzTQLvrhLrFWY_Be8CqbuyKcltE9oyHnR'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
argTypes: {
|
|
59
|
+
title: {
|
|
60
|
+
name: 'Title',
|
|
61
|
+
description: 'Title on top of the component',
|
|
62
|
+
control: {
|
|
63
|
+
type: 'text'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
value: {
|
|
67
|
+
name: 'Value',
|
|
68
|
+
description: 'Value (total)',
|
|
69
|
+
control: {
|
|
70
|
+
type: 'number',
|
|
71
|
+
min: 0,
|
|
72
|
+
max: 100000000000000
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
dotCut: {
|
|
76
|
+
name: 'Dot Cut',
|
|
77
|
+
description: 'True/false - format total value with dot cut',
|
|
78
|
+
control: {
|
|
79
|
+
type: 'boolean'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
currencySign: {
|
|
83
|
+
name: 'Currency Sign',
|
|
84
|
+
description: 'True/false - show/hide currency sign before total value',
|
|
85
|
+
control: {
|
|
86
|
+
type: 'boolean'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
currencyType: {
|
|
90
|
+
name: 'Currency Type',
|
|
91
|
+
description: 'Choose currency sign',
|
|
92
|
+
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY'],
|
|
93
|
+
control: {
|
|
94
|
+
type: 'select'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
width: {
|
|
98
|
+
name: 'Width',
|
|
99
|
+
description: 'Width of the control (in px / %)',
|
|
100
|
+
control: {
|
|
101
|
+
type: 'text'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
height: {
|
|
105
|
+
name: 'Height',
|
|
106
|
+
description: 'Height of the control (in px / %)',
|
|
107
|
+
control: {
|
|
108
|
+
type: 'text'
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
textColor: {
|
|
112
|
+
name: 'Text Color',
|
|
113
|
+
description: 'Sets the text color',
|
|
114
|
+
control: {
|
|
115
|
+
type: 'color',
|
|
116
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
chartsData: {
|
|
120
|
+
name: 'Charts Data',
|
|
121
|
+
description: 'Array [] of objects: {displayName: string, value: number, color: string} to fill the pie chart. Please note: the name must be unique'
|
|
122
|
+
},
|
|
123
|
+
labelFontSize: {
|
|
124
|
+
name: 'Label Font Size',
|
|
125
|
+
description: 'Font size of the labels',
|
|
126
|
+
control: {
|
|
127
|
+
type: 'number',
|
|
128
|
+
min: 0,
|
|
129
|
+
max: 100
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
labelLimitedLetters: {
|
|
133
|
+
name: 'Label Limited Letters',
|
|
134
|
+
description: 'Limit the number of letters in the label',
|
|
135
|
+
control: {
|
|
136
|
+
type: 'number',
|
|
137
|
+
min: 0,
|
|
138
|
+
max: 100
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
noDataText: {
|
|
142
|
+
name: 'No Data Text',
|
|
143
|
+
description: 'Text to display when no data found',
|
|
144
|
+
control: {
|
|
145
|
+
type: 'text'
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
showPercentAsideValue: {
|
|
149
|
+
name: 'Show Percent Aside Value',
|
|
150
|
+
description: 'Show the percentage aside the value',
|
|
151
|
+
control: {
|
|
152
|
+
type: 'boolean'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const SalesGreenTheme = exports.SalesGreenTheme = {
|
|
158
|
+
args: {
|
|
159
|
+
title: 'SALES',
|
|
160
|
+
value: 56500,
|
|
161
|
+
dotCut: true,
|
|
162
|
+
currencySign: true,
|
|
163
|
+
currencyType: 'USD',
|
|
164
|
+
chartsData: chartsData1,
|
|
165
|
+
labelFontSize: 12,
|
|
166
|
+
labelLimitedLetters: 12,
|
|
167
|
+
width: '390px',
|
|
168
|
+
height: '260px',
|
|
169
|
+
textColor: '#212121',
|
|
170
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
171
|
+
showPercentAsideValue: true
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
const SalesBlueTheme = exports.SalesBlueTheme = {
|
|
175
|
+
args: {
|
|
176
|
+
title: 'SALES',
|
|
177
|
+
value: 56500,
|
|
178
|
+
dotCut: true,
|
|
179
|
+
currencySign: true,
|
|
180
|
+
currencyType: 'USD',
|
|
181
|
+
chartsData: chartsData2,
|
|
182
|
+
labelFontSize: 12,
|
|
183
|
+
labelLimitedLetters: 15,
|
|
184
|
+
width: '100%',
|
|
185
|
+
height: '240px',
|
|
186
|
+
textColor: '#212121',
|
|
187
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
188
|
+
showPercentAsideValue: false
|
|
189
|
+
}
|
|
190
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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.OutBanner = exports.Header = exports.FormattedValue = exports.CurrencySign = exports.ControlsContainer = exports.ChartWrapper = exports.ChartInner = 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;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
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 background-color: white;\n display: flex;\n flex-direction: column;\n // justify-content: center;\n .top {\n text-align: center;\n white-space: normal;\n &:before {\n display: none;\n }\n }\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
13
|
+
const ChartWrapper = exports.ChartWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n width: 100%;\n ", "\n"])), scrollableStyles);
|
|
14
|
+
const ChartInner = exports.ChartInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-height: 120%;\n width: 100%;\n"])));
|
|
15
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n padding: 16px;\n"])));
|
|
16
|
+
const Header = exports.Header = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)([""])));
|
|
17
|
+
const Title = exports.Title = _styledComponents.default.h4(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 400;\n line-height: 1;\n margin: 0 0 8px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
18
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n display: flex;\n align-items: baseline;\n line-height: 1;\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n"])));
|
|
19
|
+
const OutBanner = exports.OutBanner = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 8px;\n align-items: baseline;\n font-size: 14px;\n font-weight: 400;\n color: ", ";\n cursor: pointer;\n @media (max-width: 1536px) {\n font-size: 10px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n > svg {\n width: 14px;\n height: 14px;\n @media (max-width: 1536px) {\n width: 12px;\n height: 12px;\n }\n @media (max-width: 1366px) {\n width: 8px;\n height: 8px;\n }\n }\n"])), props => props.textColor);
|
|
20
|
+
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 11px;\n }\n"])));
|
|
@@ -65,7 +65,7 @@ const TotalHorizontalCharts = props => {
|
|
|
65
65
|
textAnchor: "middle"
|
|
66
66
|
}, ''.concat((0, _CommonFunctions.getFormattedValue)(props.value), (0, _CommonFunctions.getFormattedUnits)(props.value)), /*#__PURE__*/_react.default.createElement("tspan", {
|
|
67
67
|
fontWeight: 400
|
|
68
|
-
},
|
|
68
|
+
}, " (".concat((props.value / value * 100).toFixed(0), "%)"))) : /*#__PURE__*/_react.default.createElement("text", {
|
|
69
69
|
x: props.x + (props.width <= 0 ? -12 : props.width) + 40,
|
|
70
70
|
y: props.y + 4,
|
|
71
71
|
dy: props.height / 2,
|
|
@@ -120,7 +120,7 @@ const TotalHorizontalCharts = props => {
|
|
|
120
120
|
// verticalAnchor="middle"
|
|
121
121
|
,
|
|
122
122
|
fill: fill
|
|
123
|
-
}, payload.value.length > labelLimitedLetters - 1 ?
|
|
123
|
+
}, payload.value.length > labelLimitedLetters - 1 ? "".concat(payload.value.slice(0, labelLimitedLetters), "...") : payload.value));
|
|
124
124
|
}
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
@@ -181,7 +181,7 @@ const TotalHorizontalCharts = props => {
|
|
|
181
181
|
/*#__PURE__*/
|
|
182
182
|
// eslint-disable-next-line react/no-array-index-key
|
|
183
183
|
_react.default.createElement(_recharts.Cell, {
|
|
184
|
-
key:
|
|
184
|
+
key: "cell-".concat(index),
|
|
185
185
|
fill: barBackgrounds[index % 20]
|
|
186
186
|
}))), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
|
|
187
187
|
direction: "top",
|