sag_components 2.0.0-beta30 → 2.0.0-beta300
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/index.d.ts +778 -281
- package/dist/index.esm.js +41110 -12908
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +37793 -9538
- package/dist/index.js.map +1 -1
- package/dist/types/components/AreaChart/AreaChart.d.ts +2 -0
- package/dist/types/components/AreaChart/AreaChart.stories.d.ts +80 -0
- package/dist/types/components/AreaChart/AreaChart.style.d.ts +8 -0
- package/dist/types/components/AttachedFile/AttachedFile.stories.d.ts +95 -0
- package/dist/types/components/BannerEventBox/BannerEventBox.d.ts +0 -37
- package/dist/types/components/BannerEventBox/BannerEventBox.stories.d.ts +40 -0
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.d.ts +0 -69
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.stories.d.ts +28 -0
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.style.d.ts +13 -12
- package/dist/types/components/BannersDropdown/BannersDropdown.d.ts +1 -1
- package/dist/types/components/BannersDropdown/BannersDropdown.stories.d.ts +19 -0
- package/dist/types/components/BarChart/BarChart.d.ts +7 -4
- package/dist/types/components/BarChart/BarChart.stories.d.ts +179 -0
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.d.ts +0 -80
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.stories.d.ts +199 -0
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.style.d.ts +1 -23
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.d.ts +0 -64
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.stories.d.ts +112 -0
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.d.ts +6 -6
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.stories.d.ts +207 -0
- package/dist/types/components/BatteryChart/BatteryChart.d.ts +2 -0
- package/dist/types/components/BatteryChart/BatteryChart.style.d.ts +18 -0
- package/dist/types/components/Benchmark/Benchmark.stories.d.ts +167 -0
- package/dist/types/components/BreakdownPanel/BreakdownPanel.d.ts +2 -0
- package/dist/types/components/BreakdownPanel/BreakdownPanel.stories.d.ts +74 -0
- package/dist/types/components/BreakdownPanel/BreakdownPanel.style.d.ts +7 -0
- package/dist/types/components/BreakdownPanel/BreakdownPanel.test.d.ts +1 -0
- package/dist/types/components/BreakdownPanel/ItemSales/BannerButton.d.ts +8 -0
- package/dist/types/components/BreakdownPanel/ItemSales/BannerButton.style.d.ts +1 -0
- package/dist/types/components/BreakdownPanel/ItemSales/CategorySalesPanel.d.ts +7 -0
- package/dist/types/components/BreakdownPanel/ItemSales/CategorySalesPanel.style.d.ts +6 -0
- package/dist/types/components/BreakdownPanel/ItemSales/ItemSalesPanel.d.ts +2 -0
- package/dist/types/components/BreakdownPanel/ItemSales/ItemSalesPanel.style.d.ts +3 -0
- package/dist/types/components/BreakdownPanel/ItemSales/ItemsCounterGraphPanel.d.ts +6 -0
- package/dist/types/components/BreakdownPanel/ItemSales/ItemsCounterGraphPanel.style.d.ts +3 -0
- package/dist/types/components/BrushChart/BrushChart.d.ts +2 -0
- package/dist/types/components/BrushChart/BrushChart.stories.d.ts +150 -0
- package/dist/types/components/BrushChart/BrushChart.style.d.ts +47 -0
- package/dist/types/components/BrushChart/Charts/BarLine.d.ts +2 -0
- package/dist/types/components/BrushChart/Charts/InnerBar.d.ts +2 -0
- package/dist/types/components/BrushChart/Charts/SingleChart.d.ts +2 -0
- package/dist/types/components/BubbleChart/BubbleChart.d.ts +16 -0
- package/dist/types/components/BubbleChart/BubbleChart.stories.d.ts +101 -0
- package/dist/types/components/BubbleChart/BubbleChart.style.d.ts +13 -0
- package/dist/types/components/Button/Button.d.ts +1 -21
- package/dist/types/components/Button/Button.stories.d.ts +245 -0
- package/dist/types/components/CampaignTool/CampaignDemoReport.d.ts +4 -4
- package/dist/types/components/CampaignTool/Card.d.ts +2 -2
- package/dist/types/components/CampaignTool/PopupContent.d.ts +3 -3
- package/dist/types/components/CampaignTool/Table.d.ts +2 -2
- package/dist/types/components/CheckBox/CheckBox.d.ts +1 -14
- package/dist/types/components/CheckBox/CheckBox.stories.d.ts +126 -0
- package/dist/types/components/CheckBoxButton/CheckBoxButton.d.ts +14 -14
- package/dist/types/components/CheckBoxButton/CheckBoxButton.stories.d.ts +187 -0
- package/dist/types/components/CollapseData/CollapseData.d.ts +11 -5
- package/dist/types/components/CollapseData/CollapseData.stories.d.ts +59 -0
- package/dist/types/components/CollapseHeader/CollapseHeader.d.ts +2 -2
- package/dist/types/components/CollapseHeader/CollapseHeader.stories.d.ts +101 -0
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.stories.d.ts +54 -0
- package/dist/types/components/ContainerTable/ContainerTable.d.ts +2 -0
- package/dist/types/components/ContainerTable/ContainerTable.stories.d.ts +61 -0
- package/dist/types/components/ContainerTable/ContainerTable.style.d.ts +7 -0
- package/dist/types/components/DialogOverlay/DialogOverlay.d.ts +1 -1
- package/dist/types/components/DialogOverlay/DialogOverlay.stories.d.ts +31 -0
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.d.ts +2 -0
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.stories.d.ts +265 -0
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.style.d.ts +10 -0
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.stories.d.ts +72 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.d.ts +6 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.stories.d.ts +110 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.style.d.ts +1 -0
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.d.ts +4 -61
- package/dist/types/components/DropdownNew/DropdownNew.d.ts +1 -80
- package/dist/types/components/DropdownNew/DropdownNew.stories.d.ts +324 -0
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +5 -58
- package/dist/types/components/EventDetailsCard/EventDetailsCard.d.ts +2 -2
- package/dist/types/components/EventDetailsCard/EventDetailsCard.stories.d.ts +122 -0
- package/dist/types/components/EventList/EventList.d.ts +3 -3
- package/dist/types/components/EventList/EventList.stories.d.ts +67 -0
- package/dist/types/components/EventListItem/EventListItem.stories.d.ts +67 -0
- package/dist/types/components/EventsTable/ColumnFilter.d.ts +7 -0
- package/dist/types/components/EventsTable/DeleteEventModal.d.ts +5 -0
- package/dist/types/components/EventsTable/EventTable.d.ts +7 -0
- package/dist/types/components/EventsTable/EventsHeader.d.ts +6 -0
- package/dist/types/components/EventsTable/EventsPage.d.ts +1 -0
- package/dist/types/components/EventsTable/EventsPage.stories.d.ts +8 -0
- package/dist/types/components/EventsTable/SendButton.d.ts +3 -0
- package/dist/types/components/EventsTable/mockEvents.d.ts +15 -0
- package/dist/types/components/FilterContainer/FilterContainer.stories.d.ts +9 -0
- package/dist/types/components/FilterPanel/FilterPanel.d.ts +10 -10
- package/dist/types/components/FilterPanel/FilterPanel.stories.d.ts +173 -0
- package/dist/types/components/FormattedValue/FormattedValue.stories.d.ts +131 -0
- package/dist/types/components/Heatmap/Heatmap.d.ts +2 -2
- package/dist/types/components/Heatmap/Heatmap.stories.d.ts +59 -0
- package/dist/types/components/Heatmap/Heatmap.style.d.ts +1 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts +89 -0
- package/dist/types/components/Input/Input.d.ts +36 -1
- package/dist/types/components/Input/Input.stories.d.ts +410 -0
- package/dist/types/components/Input/Input.style.d.ts +1 -0
- package/dist/types/components/InputOld/InputOld.d.ts +2 -2
- package/dist/types/components/InputOld/InputOld.stories.d.ts +109 -0
- package/dist/types/components/InsightsCarousel/InsightsCarousel.d.ts +11 -0
- package/dist/types/components/InsightsCarousel/InsightsCarousel.stories.d.ts +48 -0
- package/dist/types/components/InsightsCarousel/InsightsCarousel.style.d.ts +12 -0
- package/dist/types/components/ItemManagerPanel/ConfirmationDialog/ConfirmationDialog.d.ts +9 -0
- package/dist/types/components/ItemManagerPanel/ConfirmationDialog/ConfirmationDialog.style.d.ts +12 -0
- package/dist/types/components/ItemManagerPanel/ItemManagerPanel.d.ts +19 -0
- package/dist/types/components/ItemManagerPanel/ItemManagerPanel.stories.d.ts +171 -0
- package/dist/types/components/ItemManagerPanel/ItemManagerPanel.style.d.ts +27 -0
- package/dist/types/components/ItemManagerPanel/NewItemList/NewItemList.d.ts +6 -0
- package/dist/types/components/ItemManagerPanel/NewItemList/NewItemList.style.d.ts +19 -0
- package/dist/types/components/ItemManagerPanel/NewSubitem/NewSubitem.d.ts +10 -0
- package/dist/types/components/ItemManagerPanel/NewSubitem/NewSubitem.style.d.ts +16 -0
- package/dist/types/components/ItemManagerPanel/NewSubitemList/NewSubitemList.d.ts +2 -0
- package/dist/types/components/ItemManagerPanel/NewSubitemList/NewSubitemList.style.d.ts +19 -0
- package/dist/types/components/ItemManagerPanel/SuccessScreen/SuccessScreen.d.ts +9 -0
- package/dist/types/components/ItemManagerPanel/SuccessScreen/SuccessScreen.style.d.ts +16 -0
- package/dist/types/components/KpiFilter/KpiFilter.d.ts +5 -5
- package/dist/types/components/KpiFilter/KpiFilter.stories.d.ts +174 -0
- package/dist/types/components/LinkButton/LinkButton.d.ts +9 -9
- package/dist/types/components/LinkButton/LinkButton.stories.d.ts +110 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.d.ts +0 -33
- package/dist/types/components/LinnerDataBox/LinnerDataBox.data.d.ts +4 -12
- package/dist/types/components/LinnerDataBox/LinnerDataBox.stories.d.ts +39 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.style.d.ts +3 -1
- package/dist/types/components/ListBox/ListBox.d.ts +9 -9
- package/dist/types/components/ListBox/ListBox.stories.d.ts +134 -0
- package/dist/types/components/MarketShareDescription/MarketShareDescription.d.ts +3 -3
- package/dist/types/components/MarketShareDescription/MarketShareDescription.stories.d.ts +70 -0
- package/dist/types/components/MenuRoute/MenuIcons/AdvancedThresholds.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Analytics.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Budgets.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Build.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Campaigns.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Coupons.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/CustomerSegments.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Dashboard.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Execute.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/GroupBuilder.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/ItemsStores.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/PreTestWhatIf.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/RulesEngine.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/SampleRunEngine.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuIcons/Track.d.ts +6 -0
- package/dist/types/components/MenuRoute/MenuRoute.d.ts +2 -0
- package/dist/types/components/MenuRoute/MenuRoute.stories.d.ts +168 -0
- package/dist/types/components/MenuRoute/MenuRoute.style.d.ts +3 -0
- package/dist/types/components/MessageBox/MessageBox.d.ts +19 -0
- package/dist/types/components/MessageBox/MessageBox.stories.d.ts +127 -0
- package/dist/types/components/MessageBox/MessageBox.styles.d.ts +8 -0
- package/dist/types/components/Modal/Modal.d.ts +1 -1
- package/dist/types/components/ModalDrawer/ModalDrawer.d.ts +15 -0
- package/dist/types/components/ModalDrawer/ModalDrawer.stories.d.ts +7 -0
- package/dist/types/components/ModalDrawer/ModalDrawer.styles.d.ts +3 -0
- package/dist/types/components/ModalWithOverlay/ModalWithOverlay.d.ts +2 -0
- package/dist/types/components/ModalWithOverlay/ModalWithOverlay.stories.d.ts +142 -0
- package/dist/types/components/ModalWithOverlay/ModalWithOverlay.style.d.ts +8 -0
- package/dist/types/components/MonthPicker/MonthPicker.d.ts +3 -2
- package/dist/types/components/MonthPicker/MonthPicker.stories.d.ts +148 -0
- package/dist/types/components/MonthPicker/MonthPopupPicker.d.ts +2 -1
- package/dist/types/components/MonthPicker/MonthPopupPicker.style.d.ts +7 -0
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.d.ts +0 -10
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.stories.d.ts +39 -0
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.style.d.ts +1 -1
- package/dist/types/components/OneColumnContainer/OneColumnContainer.d.ts +20 -2
- package/dist/types/components/OneColumnContainer/OneColumnContainer.stories.d.ts +396 -0
- package/dist/types/components/OneColumnContainer/OneColumnContainer.style.d.ts +2 -0
- package/dist/types/components/OverlayDropdown/OverlayDropdown.d.ts +27 -0
- package/dist/types/components/OverlayDropdown/OverlayDropdown.stories.d.ts +650 -0
- package/dist/types/components/OverlayDropdown/OverlayDropdown.style.d.ts +10 -0
- package/dist/types/components/OverlayDropdown/OverlayTemplateDialog.d.ts +26 -0
- package/dist/types/components/OverlayDropdown/OverlayTemplateDialog.style.d.ts +10 -0
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.d.ts +9 -9
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.stories.d.ts +175 -0
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.d.ts +0 -27
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.d.ts +43 -0
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.d.ts +9 -9
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.d.ts +153 -0
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.d.ts +2 -2
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.d.ts +42 -0
- package/dist/types/components/PieChart/PieChart.d.ts +6 -6
- package/dist/types/components/PieChart/PieChart.stories.d.ts +201 -0
- package/dist/types/components/PopupCharts/PopupCharts.d.ts +4 -4
- package/dist/types/components/PopupCharts/PopupCharts.stories.d.ts +89 -0
- package/dist/types/components/ProductsVariety/ProductsVariety.d.ts +2 -2
- package/dist/types/components/ProductsVariety/ProductsVariety.stories.d.ts +48 -0
- package/dist/types/components/ProgressBar/ProgressBar.stories.d.ts +65 -0
- package/dist/types/components/QuarterPicker/QuarterPicker.d.ts +3 -2
- package/dist/types/components/QuarterPicker/QuarterPicker.stories.d.ts +148 -0
- package/dist/types/components/QuarterPicker/QuarterPopupPicker.d.ts +2 -1
- package/dist/types/components/QuarterPicker/QuarterPopupPicker.style.d.ts +6 -0
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +17 -15
- package/dist/types/components/QuickFilter/QuickFilter.stories.d.ts +270 -0
- package/dist/types/components/QuickFilterCards/QuickFilterCards.d.ts +7 -0
- package/dist/types/components/QuickFilterCards/QuickFilterCards.stories.d.ts +49 -0
- package/dist/types/components/QuickFilterCards/QuickFilterCards.style.d.ts +8 -0
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.d.ts +15 -7
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.style.d.ts +5 -0
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.d.ts +6 -6
- package/dist/types/components/RangePicker/RangePicker.stories.d.ts +148 -0
- package/dist/types/components/ReportTable/ReportTable.d.ts +5 -5
- package/dist/types/components/ReportTable/ReportTable.stories.d.ts +139 -0
- package/dist/types/components/SagButton/SagButton.stories.d.ts +142 -0
- package/dist/types/components/{QuickFilterDropdownSingle/SagIconButton → SagIconButton}/SagIconButton.d.ts +3 -3
- package/dist/types/components/SagIconButton/SagIconButton.stories.d.ts +129 -0
- package/dist/types/components/SagInput/SagInput.stories.d.ts +71 -0
- package/dist/types/components/SalesAndROI/SalesAndROI.d.ts +3 -3
- package/dist/types/components/SalesAndROI/SalesAndROI.stories.d.ts +139 -0
- package/dist/types/components/SearchInput/SearchInput.d.ts +0 -22
- package/dist/types/components/SearchInput/SearchInput.stories.d.ts +93 -0
- package/dist/types/components/SearchInput/SearchInput.style.d.ts +1 -0
- package/dist/types/components/SegmentedButton/SegmentedButton.d.ts +5 -2
- package/dist/types/components/SegmentedButton/SegmentedButton.stories.d.ts +168 -0
- package/dist/types/components/Select/Select.stories.d.ts +252 -0
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.d.ts +25 -25
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.stories.d.ts +226 -0
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.style.d.ts +2 -50
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.test.d.ts +1 -0
- package/dist/types/components/TabMenu/TabMenu.d.ts +1 -89
- package/dist/types/components/TabMenu/TabMenu.stories.d.ts +171 -0
- package/dist/types/components/TabMenu/TabMenu.style.d.ts +3 -50
- package/dist/types/components/Table/DropMenus/Dropdown.d.ts +41 -0
- package/dist/types/components/Table/DropMenus/Dropdown.styles.d.ts +5 -0
- package/dist/types/components/Table/DropMenus/FieldPop.d.ts +2 -0
- package/dist/types/components/Table/DropMenus/FieldPop.style.d.ts +5 -0
- package/dist/types/components/Table/DropMenus/FilterPop.d.ts +2 -0
- package/dist/types/components/Table/DropMenus/FilterPop.style.d.ts +9 -0
- package/dist/types/components/Table/DropMenus/RangePop.d.ts +2 -0
- package/dist/types/components/Table/DropMenus/RangePop.style.d.ts +11 -0
- package/dist/types/components/Table/DropMenus/SortPop.d.ts +2 -0
- package/dist/types/components/Table/DropMenus/SortPop.style.d.ts +8 -0
- package/dist/types/components/Table/FilterIcon.d.ts +6 -0
- package/dist/types/components/Table/Icons/DisabledTrashIcon.d.ts +6 -0
- package/dist/types/components/Table/Icons/FilterIcon.d.ts +4 -0
- package/dist/types/components/Table/Icons/NoDataInSearchIcon.d.ts +5 -0
- package/dist/types/components/Table/Icons/SortIcon.d.ts +5 -0
- package/dist/types/components/Table/Icons/TrashIcon.d.ts +6 -0
- package/dist/types/components/Table/NoEvents.d.ts +5 -0
- package/dist/types/components/Table/NoSearchUpcIcon.d.ts +5 -0
- package/dist/types/components/Table/NoUpcIcon.d.ts +5 -0
- package/dist/types/components/Table/NothingToTrack.d.ts +5 -0
- package/dist/types/components/Table/SortIcon.d.ts +6 -0
- package/dist/types/components/Table/Table.d.ts +5 -0
- package/dist/types/components/Table/Table.stories.d.ts +1038 -0
- package/dist/types/components/Table/Table.style.d.ts +20 -0
- package/dist/types/components/Table/TableBody.d.ts +3 -0
- package/dist/types/components/Table/TableBody.styles.d.ts +36 -0
- package/dist/types/components/Table/TableHeader.d.ts +20 -0
- package/dist/types/components/Table/TableHeader.styles.d.ts +8 -0
- package/dist/types/components/Table/data.d.ts +454 -0
- package/dist/types/components/Table/hook.d.ts +16 -0
- package/dist/types/components/Tag/Tag.d.ts +2 -0
- package/dist/types/components/Tag/Tag.stories.d.ts +112 -0
- package/dist/types/components/Tag/Tag.style.d.ts +1 -0
- package/dist/types/components/TextEllipsisTooltip/TextEllipsisTooltip.d.ts +2 -0
- package/dist/types/components/TextEllipsisTooltip/TextEllipsisTooltip.style.d.ts +4 -0
- package/dist/types/components/TitleDescription/TitleDescription.d.ts +2 -2
- package/dist/types/components/TitleDescription/TitleDescription.stories.d.ts +90 -0
- package/dist/types/components/ToasterMessageBox/ToasterMessageBox.d.ts +11 -0
- package/dist/types/components/ToasterMessageBox/ToasterMessageBox.stories.d.ts +67 -0
- package/dist/types/components/ToasterMessageBox/ToasterMessageBox.styles.d.ts +4 -0
- package/dist/types/components/ToggleSwitch/ToggleSwitch.d.ts +21 -0
- package/dist/types/components/ToggleSwitch/ToggleSwitch.stories.d.ts +15 -0
- package/dist/types/components/ToggleSwitch/ToggleSwitch.style.d.ts +3 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -22
- package/dist/types/components/Tooltip/Tooltip.stories.d.ts +83 -0
- package/dist/types/components/TopToggleList/TopToggleList.stories.d.ts +25 -0
- package/dist/types/components/TotalBenchmark/TotalBenchmark.stories.d.ts +101 -0
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.d.ts +3 -3
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.d.ts +240 -0
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.d.ts +4 -7
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.d.ts +145 -0
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.d.ts +2 -2
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.d.ts +155 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.d.ts +20 -4
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.stories.d.ts +241 -0
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.d.ts +3 -3
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.d.ts +214 -0
- package/dist/types/components/TwoBarCharts/TwoBarCharts.d.ts +7 -4
- package/dist/types/components/TwoBarCharts/TwoBarCharts.stories.d.ts +172 -0
- package/dist/types/components/WeeksPicker/WeeksCalendar.d.ts +40 -0
- package/dist/types/components/WeeksPicker/WeeksCalendar.styles.d.ts +5 -0
- package/dist/types/components/WeeksPicker/WeeksPicker.d.ts +21 -0
- package/dist/types/components/WeeksPicker/WeeksPicker.stories.d.ts +124 -0
- package/dist/types/components/WeeksPicker/WeeksPicker.style.d.ts +8 -0
- package/dist/types/icons/ArrowDownIcon.d.ts +2 -2
- package/dist/types/icons/ArrowDropDownIcon.d.ts +6 -0
- package/dist/types/icons/ArrowLeftIcon.d.ts +7 -0
- package/dist/types/icons/ArrowRightFullIcon.d.ts +5 -0
- package/dist/types/icons/ArrowSelectIcon.d.ts +3 -3
- package/dist/types/icons/ArrowUpIcon.d.ts +2 -2
- package/dist/types/icons/AttachedIcon.d.ts +3 -3
- package/dist/types/icons/BarcodeIcon.d.ts +6 -0
- package/dist/types/icons/BellIcon.d.ts +5 -5
- package/dist/types/icons/ButtonArrowRight.d.ts +4 -4
- package/dist/types/icons/CalendarIcon.d.ts +6 -0
- package/dist/types/icons/CalendarInOpen.d.ts +5 -1
- package/dist/types/icons/CheckBoxButtonCheckedIcon.d.ts +3 -3
- package/dist/types/icons/CheckBoxCheckedIcon.d.ts +3 -3
- package/dist/types/icons/CheckBoxNotCheckedIcon.d.ts +3 -3
- package/dist/types/icons/ChervronLeftIcon.d.ts +5 -1
- package/dist/types/icons/ChervronRightIcon.d.ts +5 -1
- package/dist/types/icons/ChevronIcon.d.ts +7 -0
- package/dist/types/icons/ChevronLeftIcon.d.ts +3 -3
- package/dist/types/icons/ChevronRightIcon.d.ts +3 -3
- package/dist/types/icons/ClockIcon.d.ts +2 -2
- package/dist/types/icons/CloseIcon.d.ts +3 -3
- package/dist/types/icons/CloseXIcon.d.ts +5 -5
- package/dist/types/icons/ComboBoxArrowDownIcon.d.ts +3 -3
- package/dist/types/icons/ComboBoxArrowUpIcon.d.ts +3 -3
- package/dist/types/icons/CommentIcon.d.ts +7 -0
- package/dist/types/icons/DocumentIcon.d.ts +5 -5
- package/dist/types/icons/DownArrowIcon.d.ts +5 -0
- package/dist/types/icons/DownloadIcon.d.ts +5 -5
- package/dist/types/icons/Duplicate.d.ts +7 -0
- package/dist/types/icons/ErrorIcon.d.ts +3 -3
- package/dist/types/icons/ExclamationMarkIcon.d.ts +6 -0
- package/dist/types/icons/ExitIcon.d.ts +5 -5
- package/dist/types/icons/ExportIcon.d.ts +5 -6
- package/dist/types/icons/EyeIcon.d.ts +5 -5
- package/dist/types/icons/FileIcon.d.ts +3 -3
- package/dist/types/icons/FilterIcon.d.ts +5 -5
- package/dist/types/icons/FlyIcon.d.ts +5 -6
- package/dist/types/icons/FolderIcon.d.ts +6 -0
- package/dist/types/icons/FoodLionIcon.d.ts +4 -4
- package/dist/types/icons/FoodLionNewIcon.d.ts +4 -4
- package/dist/types/icons/GiantFoodIcon.d.ts +5 -5
- package/dist/types/icons/GiantFoodIcon_new.d.ts +5 -5
- package/dist/types/icons/HannafordIcon.d.ts +4 -4
- package/dist/types/icons/HannafordIcon_new.d.ts +5 -4
- package/dist/types/icons/HannafordNewIcon.d.ts +5 -0
- package/dist/types/icons/HeroIcon.d.ts +6 -0
- package/dist/types/icons/InfoIcon.d.ts +5 -5
- package/dist/types/icons/LampIcon.d.ts +3 -3
- package/dist/types/icons/LegendLineIcon.d.ts +3 -3
- package/dist/types/icons/LegendUnionIcon.d.ts +3 -3
- package/dist/types/icons/MaintenanceIcon.d.ts +5 -5
- package/dist/types/icons/MenuItemClosedIcon.d.ts +3 -3
- package/dist/types/icons/MenuItemOpenIcon.d.ts +5 -6
- package/dist/types/icons/MenuItemRightIcon.d.ts +3 -3
- package/dist/types/icons/MenuItemUpIcon.d.ts +5 -6
- package/dist/types/icons/NoDataFoundIcon.d.ts +2 -2
- package/dist/types/icons/OkCircleIcon.d.ts +6 -0
- package/dist/types/icons/OkIcon.d.ts +6 -0
- package/dist/types/icons/OptionsIcon.d.ts +5 -5
- package/dist/types/icons/PackageSendIcon.d.ts +2 -0
- package/dist/types/icons/PenIcon.d.ts +6 -0
- package/dist/types/icons/PencilIcon.d.ts +6 -0
- package/dist/types/icons/PeopleIcon.d.ts +6 -0
- package/dist/types/icons/Plus.d.ts +6 -0
- package/dist/types/icons/PlusIcon.d.ts +6 -0
- package/dist/types/icons/RedDot.d.ts +5 -0
- package/dist/types/icons/ReselectIcon.d.ts +5 -5
- package/dist/types/icons/SearchIcon.d.ts +3 -3
- package/dist/types/icons/ShoppingCartIcon.d.ts +2 -2
- package/dist/types/icons/ShoutIcon.d.ts +3 -3
- package/dist/types/icons/Sort.d.ts +1 -0
- package/dist/types/icons/SortIcon.d.ts +6 -6
- package/dist/types/icons/SpotlightProductIcon.d.ts +3 -3
- package/dist/types/icons/StopAndShopIcon.d.ts +5 -5
- package/dist/types/icons/StopAndShopNewIcon.d.ts +5 -5
- package/dist/types/icons/SucceededIcon.d.ts +3 -3
- package/dist/types/icons/TheGiantCompanyIcon.d.ts +4 -4
- package/dist/types/icons/TheGiantCompanyNewIcon.d.ts +4 -4
- package/dist/types/icons/TrashIcon.d.ts +7 -0
- package/dist/types/icons/UpArrowIcon.d.ts +5 -0
- package/dist/types/icons/UploadIcon.d.ts +7 -0
- package/dist/types/icons/UploadIconV2.d.ts +6 -0
- package/dist/types/icons/VIcon.d.ts +6 -0
- package/dist/types/icons/index.d.ts +24 -0
- package/dist/types/index.d.ts +52 -0
- package/dist/types/utils/CommonFunctions.d.ts +6 -1
- package/dist/types/utils/ComponentFactory.d.ts +4 -0
- package/dist/types/utils/IconsHandler.d.ts +1 -1
- package/dist/types/utils/UtilsComponents/CustomTooltip.d.ts +6 -0
- package/dist/types/utils/UtilsComponents/TitleWithCustomTooltip.d.ts +7 -0
- package/dist/types/utils/UtilsComponents/useTextOverflow.d.ts +8 -0
- package/package.json +39 -38
- package/dist/App.js +0 -56
- package/dist/App.test.js +0 -10
- package/dist/Button.test.js +0 -162
- package/dist/LinkButton.test.js +0 -150
- package/dist/SingleBar.test.js +0 -120
- package/dist/setupTests.js +0 -15
- package/dist/stories/AttachedFile.stories.js +0 -37
- package/dist/stories/AutocompleteField.stories.js +0 -25
- package/dist/stories/BannerEventBox.stories.js +0 -59
- package/dist/stories/BannerEventBoxList.stories.js +0 -39
- package/dist/stories/BannerEventBoxTest.stories.js +0 -27
- package/dist/stories/BannersDropdown.stories.js +0 -64
- package/dist/stories/BarChart.stories.js +0 -306
- package/dist/stories/BarChartTwoRows.stories.js +0 -259
- package/dist/stories/BarChartWithAreaChart.stories.js +0 -134
- package/dist/stories/BarChartsByWeeks.stories.js +0 -445
- package/dist/stories/Benchmark.stories.js +0 -147
- package/dist/stories/Button.stories.js +0 -255
- package/dist/stories/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/CampaignTool/Card.stories.js +0 -92
- package/dist/stories/CampaignTool/MultipleCard.stories.js +0 -33
- package/dist/stories/CampaignTool/PageFilterBar.stories.js +0 -28
- package/dist/stories/CampaignTool/Popup.stories.js +0 -697
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/CampaignTool/Table.stories.js +0 -104
- package/dist/stories/CheckBox.stories.js +0 -107
- package/dist/stories/CheckBoxButton.stories.js +0 -150
- package/dist/stories/CollapseData.stories.js +0 -125
- package/dist/stories/CollapseHeader.stories.js +0 -123
- package/dist/stories/CollapseMenuItem.stories.js +0 -134
- package/dist/stories/Datepicker.stories.js +0 -85
- package/dist/stories/DialogOverlay.stories.js +0 -39
- package/dist/stories/DoublePanelDataRow.stories.js +0 -116
- package/dist/stories/DownloadProgress.stories.js +0 -109
- package/dist/stories/Dropdown.stories.js +0 -318
- package/dist/stories/DropdownMulti.stories.js +0 -220
- package/dist/stories/DropdownNew.stories.js +0 -407
- package/dist/stories/EventDetailsCard.stories.js +0 -122
- package/dist/stories/EventList.stories.js +0 -84
- package/dist/stories/EventListItem.stories.js +0 -65
- package/dist/stories/FilterButton.stories.js +0 -90
- package/dist/stories/FilterContainer.stories.js +0 -22
- package/dist/stories/FilterPanel.stories.js +0 -967
- package/dist/stories/FormattedValue.stories.js +0 -183
- package/dist/stories/Heatmap.stories.js +0 -118
- package/dist/stories/IconButton.stories.js +0 -126
- package/dist/stories/Input.stories.js +0 -422
- package/dist/stories/InputOld.stories.js +0 -103
- package/dist/stories/KpiFilter.stories.js +0 -401
- package/dist/stories/LinkButton.stories.js +0 -171
- package/dist/stories/LinnerDataBox.stories.js +0 -79
- package/dist/stories/ListBox.stories.js +0 -132
- package/dist/stories/MarketShareDescription.stories.js +0 -196
- package/dist/stories/MonthPicker.stories.js +0 -142
- package/dist/stories/NewInput.stories.js +0 -37
- package/dist/stories/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/OneColumnContainer.stories.js +0 -119
- package/dist/stories/PerformanceAnalytics.stories.js +0 -263
- package/dist/stories/PerformanceAnalyticsLegend.stories.js +0 -99
- package/dist/stories/PerformanceAnalyticsOneColumn.stories.js +0 -236
- package/dist/stories/PerformanceAnalyticsTotals.stories.js +0 -109
- package/dist/stories/PieChart.stories.js +0 -215
- package/dist/stories/PopupCharts.stories.js +0 -1191
- package/dist/stories/ProductsVariety.stories.js +0 -90
- package/dist/stories/ProgressBar.stories.js +0 -71
- package/dist/stories/QuarterPicker.stories.js +0 -142
- package/dist/stories/QuickFilter.stories.js +0 -275
- package/dist/stories/RangePicker.stories.js +0 -140
- package/dist/stories/ReportTable.stories.js +0 -255
- package/dist/stories/SagButton.stories.js +0 -118
- package/dist/stories/SagIconButton.stories.js +0 -122
- package/dist/stories/SagInput.stories.js +0 -69
- package/dist/stories/SalesAndROI.stories.js +0 -166
- package/dist/stories/SalesSplit.stories.js +0 -122
- package/dist/stories/SearchInput.stories.js +0 -44
- package/dist/stories/SegmentedButton.stories.js +0 -181
- package/dist/stories/Select.stories.js +0 -201
- package/dist/stories/SingleBarLineCharts.stories.js +0 -310
- package/dist/stories/TabMenu.stories.js +0 -224
- package/dist/stories/TextField.stories.js +0 -160
- package/dist/stories/TitleDescription.stories.js +0 -116
- package/dist/stories/TopToggleList.stories.js +0 -52
- package/dist/stories/TotalBenchmark.stories.js +0 -135
- package/dist/stories/TotalBenchmarkAreachart.stories.js +0 -341
- package/dist/stories/TotalBenchmarkArrows.stories.js +0 -170
- package/dist/stories/TotalBenchmarkBarchart.stories.js +0 -183
- package/dist/stories/TotalDoughnutChart.stories.js +0 -301
- package/dist/stories/TotalHorizontalCharts.stories.js +0 -291
- package/dist/stories/TwoBarCharts.stories.js +0 -185
- package/dist/stories/components/AttachedFile.js +0 -60
- package/dist/stories/components/AttachedFile.style.js +0 -48
- package/dist/stories/components/AutocompleteField.js +0 -40
- package/dist/stories/components/AutocompleteField.style.js +0 -55
- package/dist/stories/components/BannerEventBox.js +0 -97
- package/dist/stories/components/BannerEventBox.style.js +0 -78
- package/dist/stories/components/BannerEventBoxList.js +0 -153
- package/dist/stories/components/BannerEventBoxList.style.js +0 -189
- package/dist/stories/components/BannerEventBoxTest.js +0 -42
- package/dist/stories/components/BannerEventBoxTest.style.js +0 -11
- package/dist/stories/components/BannersDropdown.js +0 -119
- package/dist/stories/components/BannersDropdown.style.js +0 -99
- package/dist/stories/components/BarChart.js +0 -258
- package/dist/stories/components/BarChart.style.js +0 -60
- package/dist/stories/components/BarChartTwoRows.js +0 -220
- package/dist/stories/components/BarChartTwoRows.style.js +0 -79
- package/dist/stories/components/BarChartWithAreaChart.js +0 -268
- package/dist/stories/components/BarChartWithAreaChart.style.js +0 -67
- package/dist/stories/components/BarChartsByWeeks.js +0 -306
- package/dist/stories/components/BarChartsByWeeks.style.js +0 -96
- package/dist/stories/components/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark.style.js +0 -61
- package/dist/stories/components/Button.js +0 -255
- package/dist/stories/components/Button.style.js +0 -90
- package/dist/stories/components/CampaignTool/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +0 -48
- package/dist/stories/components/CampaignTool/Card.js +0 -72
- package/dist/stories/components/CampaignTool/Card.style.js +0 -65
- package/dist/stories/components/CampaignTool/FormInput.js +0 -41
- package/dist/stories/components/CampaignTool/FormSelect.js +0 -42
- package/dist/stories/components/CampaignTool/MultipleCard.js +0 -26
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +0 -13
- package/dist/stories/components/CampaignTool/PageFilterBar.js +0 -23
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +0 -22
- package/dist/stories/components/CampaignTool/Popup.js +0 -172
- package/dist/stories/components/CampaignTool/Popup.style.js +0 -122
- package/dist/stories/components/CampaignTool/PopupContent.js +0 -111
- package/dist/stories/components/CampaignTool/PopupContent.style.js +0 -74
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +0 -168
- package/dist/stories/components/CampaignTool/Table.js +0 -195
- package/dist/stories/components/CampaignTool/Table.style.js +0 -86
- package/dist/stories/components/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox.style.js +0 -36
- package/dist/stories/components/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton.style.js +0 -39
- package/dist/stories/components/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor.style.js +0 -13
- package/dist/stories/components/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData.style.js +0 -127
- package/dist/stories/components/CollapseHeader.js +0 -255
- package/dist/stories/components/CollapseHeader.style.js +0 -200
- package/dist/stories/components/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem.style.js +0 -61
- package/dist/stories/components/CommonFunctions.js +0 -99
- package/dist/stories/components/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker.style.js +0 -19
- package/dist/stories/components/DialogOverlay.js +0 -44
- package/dist/stories/components/DialogOverlay.style.js +0 -70
- package/dist/stories/components/DoublePanelDataRow.js +0 -70
- package/dist/stories/components/DoublePanelDataRow.style.js +0 -66
- package/dist/stories/components/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress.style.js +0 -51
- package/dist/stories/components/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown.style.js +0 -17
- package/dist/stories/components/DropdownMulti.js +0 -290
- package/dist/stories/components/DropdownMulti.style.js +0 -17
- package/dist/stories/components/DropdownMultiNew.js +0 -292
- package/dist/stories/components/DropdownMultiNew.style.js +0 -218
- package/dist/stories/components/DropdownNew.js +0 -98
- package/dist/stories/components/DropdownNew.style.js +0 -21
- package/dist/stories/components/DropdownSingleNew.js +0 -256
- package/dist/stories/components/DropdownSingleNew.style.js +0 -189
- package/dist/stories/components/EventDetailsCard.js +0 -142
- package/dist/stories/components/EventDetailsCard.style.js +0 -62
- package/dist/stories/components/EventList.js +0 -61
- package/dist/stories/components/EventList.style.js +0 -38
- package/dist/stories/components/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem.style.js +0 -47
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
- package/dist/stories/components/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer.style.js +0 -30
- package/dist/stories/components/FilterPanel.js +0 -614
- package/dist/stories/components/FilterPanel.style.js +0 -89
- package/dist/stories/components/FormattedValue.js +0 -69
- package/dist/stories/components/FormattedValue.style.js +0 -91
- package/dist/stories/components/Heatmap.js +0 -184
- package/dist/stories/components/Heatmap.style.js +0 -151
- package/dist/stories/components/IconButton.js +0 -147
- package/dist/stories/components/IconButton.style.js +0 -64
- package/dist/stories/components/Input.js +0 -186
- package/dist/stories/components/Input.style.js +0 -132
- package/dist/stories/components/InputOld.js +0 -93
- package/dist/stories/components/InputOld.style.js +0 -71
- package/dist/stories/components/KpiFilter.js +0 -345
- package/dist/stories/components/KpiFilter.style.js +0 -132
- package/dist/stories/components/LinkButton.js +0 -225
- package/dist/stories/components/LinkButton.style.js +0 -53
- package/dist/stories/components/LinnerDataBox.js +0 -54
- package/dist/stories/components/LinnerDataBox.style.js +0 -68
- package/dist/stories/components/ListBox.js +0 -82
- package/dist/stories/components/ListBox.style.js +0 -48
- package/dist/stories/components/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription.style.js +0 -215
- package/dist/stories/components/Modal.js +0 -21
- package/dist/stories/components/Modal.style.js +0 -63
- package/dist/stories/components/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker.js +0 -169
- package/dist/stories/components/MonthPicker.style.js +0 -105
- package/dist/stories/components/MonthPopupPicker.js +0 -206
- package/dist/stories/components/NewInput.js +0 -33
- package/dist/stories/components/NewInput.style.js +0 -13
- package/dist/stories/components/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage.style.js +0 -39
- package/dist/stories/components/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer.style.js +0 -107
- package/dist/stories/components/PerformanceAnalytics.js +0 -447
- package/dist/stories/components/PerformanceAnalytics.style.js +0 -144
- package/dist/stories/components/PerformanceAnalyticsLegend.js +0 -59
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +0 -63
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +0 -327
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +0 -116
- package/dist/stories/components/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +0 -89
- package/dist/stories/components/PieChart.js +0 -154
- package/dist/stories/components/PieChart.style.js +0 -154
- package/dist/stories/components/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts.style.js +0 -108
- package/dist/stories/components/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety.style.js +0 -86
- package/dist/stories/components/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar.style.js +0 -24
- package/dist/stories/components/QuarterPicker.js +0 -168
- package/dist/stories/components/QuarterPicker.style.js +0 -104
- package/dist/stories/components/QuarterPopupPicker.js +0 -186
- package/dist/stories/components/QuickFilter.js +0 -78
- package/dist/stories/components/QuickFilter.style.js +0 -21
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +0 -194
- package/dist/stories/components/QuickFilterDropdownSingle.js +0 -229
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +0 -139
- package/dist/stories/components/RangeDatePicker.js +0 -231
- package/dist/stories/components/RangePicker.js +0 -179
- package/dist/stories/components/RangePicker.style.js +0 -109
- package/dist/stories/components/ReportTable.js +0 -420
- package/dist/stories/components/ReportTable.style.js +0 -306
- package/dist/stories/components/SagButton.js +0 -68
- package/dist/stories/components/SagButton.style.js +0 -47
- package/dist/stories/components/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton.style.js +0 -30
- package/dist/stories/components/SagInput.js +0 -53
- package/dist/stories/components/SagInput.style.js +0 -41
- package/dist/stories/components/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI.style.js +0 -111
- package/dist/stories/components/SalesSplit.js +0 -153
- package/dist/stories/components/SalesSplit.style.js +0 -150
- package/dist/stories/components/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput.style.js +0 -37
- package/dist/stories/components/SegmentedButton.js +0 -124
- package/dist/stories/components/SegmentedButton.style.js +0 -100
- package/dist/stories/components/Select.js +0 -137
- package/dist/stories/components/Select.style.js +0 -104
- package/dist/stories/components/SingleBarLineCharts.js +0 -415
- package/dist/stories/components/SingleBarLineCharts.style.js +0 -101
- package/dist/stories/components/TabMenu.js +0 -241
- package/dist/stories/components/TabMenu.style.js +0 -120
- package/dist/stories/components/TextField.js +0 -209
- package/dist/stories/components/TextField.style.js +0 -18
- package/dist/stories/components/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription.style.js +0 -222
- package/dist/stories/components/Tooltip.js +0 -44
- package/dist/stories/components/Tooltip.style.js +0 -103
- package/dist/stories/components/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList.style.js +0 -51
- package/dist/stories/components/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark.style.js +0 -79
- package/dist/stories/components/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +0 -171
- package/dist/stories/components/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows.style.js +0 -108
- package/dist/stories/components/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +0 -77
- package/dist/stories/components/TotalDoughnutChart.js +0 -187
- package/dist/stories/components/TotalDoughnutChart.style.js +0 -178
- package/dist/stories/components/TotalHorizontalCharts.js +0 -236
- package/dist/stories/components/TotalHorizontalCharts.style.js +0 -93
- package/dist/stories/components/TspanTooltip.js +0 -33
- package/dist/stories/components/TspanTooltip.style.js +0 -105
- package/dist/stories/components/TwoBarCharts.js +0 -211
- package/dist/stories/components/TwoBarCharts.style.js +0 -60
- package/dist/stories/components/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/components/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/components/icons/ArrowSelectIcon.js +0 -28
- package/dist/stories/components/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/components/icons/AttachedIcon.js +0 -27
- package/dist/stories/components/icons/BellIcon.js +0 -27
- package/dist/stories/components/icons/ButtonArrowRight.js +0 -27
- package/dist/stories/components/icons/Calendar.js +0 -20
- package/dist/stories/components/icons/CalendarIcon.js +0 -27
- package/dist/stories/components/icons/CalendarInOpen.js +0 -26
- package/dist/stories/components/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/components/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/components/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/components/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/components/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/components/icons/ChevronLeftIcon.js +0 -29
- package/dist/stories/components/icons/ChevronRightIcon.js +0 -29
- package/dist/stories/components/icons/ClockIcon.js +0 -27
- package/dist/stories/components/icons/CloseIcon.js +0 -27
- package/dist/stories/components/icons/CloseXIcon.js +0 -27
- package/dist/stories/components/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/components/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/components/icons/DocumentIcon.js +0 -48
- package/dist/stories/components/icons/DownloadIcon.js +0 -27
- package/dist/stories/components/icons/Duplicate.js +0 -28
- package/dist/stories/components/icons/ErrorIcon.js +0 -28
- package/dist/stories/components/icons/ExitIcon.js +0 -28
- package/dist/stories/components/icons/ExportIcon.js +0 -28
- package/dist/stories/components/icons/EyeIcon.js +0 -28
- package/dist/stories/components/icons/FileIcon.js +0 -27
- package/dist/stories/components/icons/FilterIcon.js +0 -36
- package/dist/stories/components/icons/FlyIcon.js +0 -28
- package/dist/stories/components/icons/FoodLionChartIcon.js +0 -42
- package/dist/stories/components/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/components/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/components/icons/GiantFoodChartIcon.js +0 -40
- package/dist/stories/components/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/components/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/components/icons/HannafordChartIcon.js +0 -40
- package/dist/stories/components/icons/HannafordIcon.js +0 -5017
- package/dist/stories/components/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/components/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/components/icons/InfoIcon.js +0 -28
- package/dist/stories/components/icons/LampIcon.js +0 -30
- package/dist/stories/components/icons/LegendLineIcon.js +0 -29
- package/dist/stories/components/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/components/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/components/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/components/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/components/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/components/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/components/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/components/icons/OptionsIcon.js +0 -27
- package/dist/stories/components/icons/ReselectIcon.js +0 -27
- package/dist/stories/components/icons/SearchIcon.js +0 -27
- package/dist/stories/components/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/components/icons/ShoutIcon.js +0 -27
- package/dist/stories/components/icons/Sort.js +0 -13
- package/dist/stories/components/icons/SortIcon.js +0 -35
- package/dist/stories/components/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/components/icons/StopAndShopChartIcon.js +0 -42
- package/dist/stories/components/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/components/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/components/icons/SucceededIcon.js +0 -28
- package/dist/stories/components/icons/TheGiantCompanyChartIcon.js +0 -40
- package/dist/stories/components/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +0 -1831
- package/dist/stories/components/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/ComponentFactory.js +0 -65
- package/dist/stories/utils/IconsHandler.js +0 -150
- package/dist/stories/utils/IconsHandler.style.js +0 -16
- package/dist/stories/utils/regex/Email.regex.js +0 -7
- package/dist/stories/utils/regex/LatinWithSpaces.regex.js +0 -7
- package/dist/stories/utils/regex/OnlyEnglishLetters.regex.js +0 -7
- package/dist/stories/utils/regex/Phone.regex.js +0 -7
- package/dist/types/components/AutocompleteField/AutocompleteField.d.ts +0 -15
- package/dist/types/components/AutocompleteField/AutocompleteField.style.d.ts +0 -5
- package/dist/types/components/CodeEditor/CodeEditor.style.d.ts +0 -2
- package/dist/vite.config.js +0 -15
- /package/dist/types/components/{SingleBarLineCharts/SingleBar.test.d.ts → AreaChart/AreaChart.test.d.ts} +0 -0
- /package/dist/types/components/{QuickFilterDropdownSingle/SagIconButton → SagIconButton}/SagIconButton.style.d.ts +0 -0
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.BarChartTwoRows = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _recharts = require("recharts");
|
|
10
|
-
var _CommonFunctions = require("./CommonFunctions");
|
|
11
|
-
var _BarChartTwoRows = require("./BarChartTwoRows.style");
|
|
12
|
-
/* eslint-disable react/prop-types */
|
|
13
|
-
/* eslint-disable no-shadow */
|
|
14
|
-
/* eslint-disable react/no-unstable-nested-components */
|
|
15
|
-
/* eslint-disable no-nested-ternary */
|
|
16
|
-
|
|
17
|
-
const ICON_TYPE_SQUARE = 'Square';
|
|
18
|
-
/* BarChartsByWeeks */
|
|
19
|
-
const BarChartTwoRows = props => {
|
|
20
|
-
const {
|
|
21
|
-
className,
|
|
22
|
-
title,
|
|
23
|
-
width,
|
|
24
|
-
height,
|
|
25
|
-
barChartHeight,
|
|
26
|
-
barSize,
|
|
27
|
-
barFontSizeValue,
|
|
28
|
-
barChartData,
|
|
29
|
-
barChartColorFirst,
|
|
30
|
-
barChartColorSecond,
|
|
31
|
-
showDollarSign,
|
|
32
|
-
isDollar,
|
|
33
|
-
showReferenceLine,
|
|
34
|
-
referenceLinePoint,
|
|
35
|
-
referenceLineColor,
|
|
36
|
-
referenceLineDashed,
|
|
37
|
-
lowerValueLabel,
|
|
38
|
-
highValueLabel,
|
|
39
|
-
showLegend,
|
|
40
|
-
legendData
|
|
41
|
-
} = props;
|
|
42
|
-
const controlsContainerRef = (0, _react.useRef)();
|
|
43
|
-
const displayFormattedValue = value => {
|
|
44
|
-
if (!value) return 'N/A';
|
|
45
|
-
let formattedValue = '';
|
|
46
|
-
formattedValue = !isDollar ? ''.concat('', value.toFixed(1)) : ''.concat(showDollarSign ? '$' : '', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
47
|
-
return formattedValue;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// eslint-disable-next-line react/no-unstable-nested-components
|
|
51
|
-
const CustomTooltip = tooltipData => {
|
|
52
|
-
var _payload$0$payload, _payload$0$payload2, _payload$0$payload3, _payload$0$payload4;
|
|
53
|
-
const {
|
|
54
|
-
active,
|
|
55
|
-
payload,
|
|
56
|
-
label
|
|
57
|
-
} = tooltipData;
|
|
58
|
-
if (!active || !payload || (payload === null || payload === void 0 ? void 0 : payload.length) === 0) return null;
|
|
59
|
-
let currentTooltipLowerValue = 0;
|
|
60
|
-
let currentTooltipHighValue = 0;
|
|
61
|
-
if ((_payload$0$payload = payload[0].payload) !== null && _payload$0$payload !== void 0 && _payload$0$payload.lowerValue) currentTooltipLowerValue = (_payload$0$payload2 = payload[0].payload) === null || _payload$0$payload2 === void 0 ? void 0 : _payload$0$payload2.lowerValue;
|
|
62
|
-
if ((_payload$0$payload3 = payload[0].payload) !== null && _payload$0$payload3 !== void 0 && _payload$0$payload3.highValue) currentTooltipHighValue = (_payload$0$payload4 = payload[0].payload) === null || _payload$0$payload4 === void 0 ? void 0 : _payload$0$payload4.highValue;
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipTitle, null, `${label}`), /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipLabel, null, `${lowerValueLabel} ${displayFormattedValue(currentTooltipLowerValue)}`), /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.TooltipLabel, null, `${highValueLabel} ${displayFormattedValue(currentTooltipHighValue)}`));
|
|
64
|
-
};
|
|
65
|
-
const CustomizedTickBarChart = props => {
|
|
66
|
-
const {
|
|
67
|
-
x,
|
|
68
|
-
y,
|
|
69
|
-
payload
|
|
70
|
-
} = props;
|
|
71
|
-
if (barChartData && barChartData.length > 0 && payload) {
|
|
72
|
-
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
73
|
-
if (retailerData && retailerData.length > 0) {
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
75
|
-
transform: `translate(${x},${y})`
|
|
76
|
-
// onMouseEnter={() => handleMouseEnter(offerType)}
|
|
77
|
-
// onMouseLeave={handleMouseLeave}
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
79
|
-
x: 0,
|
|
80
|
-
y: 0,
|
|
81
|
-
dy: 16,
|
|
82
|
-
fill: "#212121"
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.LabelBoldText, {
|
|
84
|
-
textAnchor: "middle",
|
|
85
|
-
x: "0",
|
|
86
|
-
dy: "30",
|
|
87
|
-
fontSize: 16,
|
|
88
|
-
fontWeight: 600
|
|
89
|
-
}, payload.value)), /*#__PURE__*/_react.default.createElement("text", {
|
|
90
|
-
x: 0,
|
|
91
|
-
y: 0,
|
|
92
|
-
dy: 16,
|
|
93
|
-
fill: "#212121"
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.LabelText, {
|
|
95
|
-
textAnchor: "middle",
|
|
96
|
-
x: "0",
|
|
97
|
-
dy: "50",
|
|
98
|
-
fontSize: 14,
|
|
99
|
-
fontWeight: 400
|
|
100
|
-
}, retailerData[0].date)));
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
return null;
|
|
105
|
-
};
|
|
106
|
-
const CustomizedLabel = props => {
|
|
107
|
-
const {
|
|
108
|
-
x,
|
|
109
|
-
y,
|
|
110
|
-
stroke,
|
|
111
|
-
value
|
|
112
|
-
} = props;
|
|
113
|
-
return /*#__PURE__*/_react.default.createElement("text", {
|
|
114
|
-
x: x + 30,
|
|
115
|
-
y: y,
|
|
116
|
-
dy: -8,
|
|
117
|
-
fill: stroke,
|
|
118
|
-
fontSize: barFontSizeValue,
|
|
119
|
-
textAnchor: "middle"
|
|
120
|
-
}, displayFormattedValue(value));
|
|
121
|
-
};
|
|
122
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.ControlsContainer, {
|
|
123
|
-
className: className,
|
|
124
|
-
height: height,
|
|
125
|
-
width: width,
|
|
126
|
-
ref: controlsContainerRef
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.Controls, {
|
|
128
|
-
className: "Controls"
|
|
129
|
-
}, title !== '' && /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.Title, null, title), /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
130
|
-
height: barChartHeight
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.BarChart, {
|
|
132
|
-
width: width,
|
|
133
|
-
height: height,
|
|
134
|
-
data: barChartData,
|
|
135
|
-
maxBarSize: 60,
|
|
136
|
-
margin: {
|
|
137
|
-
top: 20,
|
|
138
|
-
right: 0,
|
|
139
|
-
left: 0,
|
|
140
|
-
bottom: 20
|
|
141
|
-
}
|
|
142
|
-
}, showReferenceLine && /*#__PURE__*/_react.default.createElement(_recharts.ReferenceLine, {
|
|
143
|
-
y: referenceLinePoint,
|
|
144
|
-
stroke: referenceLineColor,
|
|
145
|
-
strokeDasharray: referenceLineDashed
|
|
146
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
|
|
147
|
-
dataKey: "title",
|
|
148
|
-
tick: CustomizedTickBarChart,
|
|
149
|
-
tickLine: false,
|
|
150
|
-
height: 80,
|
|
151
|
-
interval: 0,
|
|
152
|
-
stroke: "#D0D0D0"
|
|
153
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
154
|
-
content: /*#__PURE__*/_react.default.createElement(CustomTooltip, null)
|
|
155
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, null), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
156
|
-
dataKey: "lowerValue",
|
|
157
|
-
fill: barChartColorFirst,
|
|
158
|
-
minPointSize: 5,
|
|
159
|
-
barSize: barSize !== null && barSize !== void 0 ? barSize : 60,
|
|
160
|
-
radius: 0,
|
|
161
|
-
stackId: "a"
|
|
162
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
163
|
-
dataKey: "highValue",
|
|
164
|
-
fill: barChartColorSecond,
|
|
165
|
-
stackId: "a",
|
|
166
|
-
radius: [5, 5, 0, 0]
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
168
|
-
dataKey: "value",
|
|
169
|
-
content: CustomizedLabel
|
|
170
|
-
})))), showLegend && /*#__PURE__*/_react.default.createElement(_BarChartTwoRows.LegendContainer, {
|
|
171
|
-
legendData: legendData
|
|
172
|
-
})));
|
|
173
|
-
};
|
|
174
|
-
exports.BarChartTwoRows = BarChartTwoRows;
|
|
175
|
-
var _default = exports.default = BarChartTwoRows;
|
|
176
|
-
BarChartTwoRows.defaultProps = {
|
|
177
|
-
title: 'String',
|
|
178
|
-
width: '100%',
|
|
179
|
-
height: '100%',
|
|
180
|
-
barChartHeight: 250,
|
|
181
|
-
barSize: 60,
|
|
182
|
-
barFontSizeValue: '0.6em',
|
|
183
|
-
barChartColorFirst: '#BD9EFF',
|
|
184
|
-
barChartColorSecond: '#0b00aaF',
|
|
185
|
-
showDollarSign: true,
|
|
186
|
-
isDollar: true,
|
|
187
|
-
showReferenceLine: false,
|
|
188
|
-
referenceLinePoint: 0,
|
|
189
|
-
referenceLineColor: '#212121',
|
|
190
|
-
referenceLineDashed: '5',
|
|
191
|
-
lowerValueLabel: 'Lower Value:',
|
|
192
|
-
highValueLabel: 'High Value:',
|
|
193
|
-
showLegend: true,
|
|
194
|
-
legendData: [{
|
|
195
|
-
title: 'Incremental Sales',
|
|
196
|
-
iconType: ICON_TYPE_SQUARE,
|
|
197
|
-
iconColor: '#BD9EFF'
|
|
198
|
-
}],
|
|
199
|
-
barChartData: [{
|
|
200
|
-
title: 'Food Lion',
|
|
201
|
-
date: '15.01.24-31.01.24',
|
|
202
|
-
value: 542366
|
|
203
|
-
}, {
|
|
204
|
-
title: 'Hannaford',
|
|
205
|
-
date: '15.01.24-31.01.24',
|
|
206
|
-
value: 699511
|
|
207
|
-
}, {
|
|
208
|
-
title: 'The Giant Company',
|
|
209
|
-
date: '15.01.24-31.01.24',
|
|
210
|
-
value: 403092
|
|
211
|
-
}, {
|
|
212
|
-
title: 'Giant Food',
|
|
213
|
-
date: '15.01.24-31.01.24',
|
|
214
|
-
value: 396184
|
|
215
|
-
}, {
|
|
216
|
-
title: 'Stop&Shop',
|
|
217
|
-
date: '15.01.24-31.01.24',
|
|
218
|
-
value: 415317
|
|
219
|
-
}]
|
|
220
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.Title = exports.LegendContainer = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _PerformanceAnalyticsLegend = require("./PerformanceAnalyticsLegend");
|
|
10
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
11
|
-
font-family: "Poppins", sans-serif;
|
|
12
|
-
width: ${props => props.width};
|
|
13
|
-
height: ${props => props.height};
|
|
14
|
-
border-radius: 12px;
|
|
15
|
-
align-self: center;
|
|
16
|
-
&.NoData {
|
|
17
|
-
align-self: center;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
width: 50%;
|
|
21
|
-
margin: 10% auto 0;
|
|
22
|
-
}
|
|
23
|
-
> * {
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
28
|
-
height: 100%;
|
|
29
|
-
width: 100%;
|
|
30
|
-
padding: 24px 40px;
|
|
31
|
-
background: white;
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
@media (max-width: 1536px) {
|
|
35
|
-
padding: 12px 32px;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
const Title = exports.Title = _styledComponents.default.span`
|
|
39
|
-
color: #212121;
|
|
40
|
-
display: inline-block;
|
|
41
|
-
font-size: 18px;
|
|
42
|
-
font-weight: 400;
|
|
43
|
-
margin-bottom: 14px;
|
|
44
|
-
@media (max-width: 1536px) {
|
|
45
|
-
font-size: 16px;
|
|
46
|
-
}
|
|
47
|
-
@media (max-width: 1366px) {
|
|
48
|
-
font-size: 14px;
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
const LegendContainer = exports.LegendContainer = (0, _styledComponents.default)(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend)`
|
|
52
|
-
margin-top: auto;
|
|
53
|
-
padding-bottom: 16px;
|
|
54
|
-
`;
|
|
55
|
-
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
56
|
-
border-radius: 5px;
|
|
57
|
-
padding: 8px 12px;
|
|
58
|
-
background: white;
|
|
59
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
60
|
-
margin: 0;
|
|
61
|
-
`;
|
|
62
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
63
|
-
color: #212121;
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
line-height: normal;
|
|
67
|
-
width: fit-content;
|
|
68
|
-
`;
|
|
69
|
-
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
70
|
-
color: #212121;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
font-weight: 600;
|
|
73
|
-
`;
|
|
74
|
-
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan`
|
|
75
|
-
font-size: 0.7em;
|
|
76
|
-
`;
|
|
77
|
-
const LabelText = exports.LabelText = _styledComponents.default.tspan`
|
|
78
|
-
font-size: 0.6em;
|
|
79
|
-
`;
|
|
@@ -1,268 +0,0 @@
|
|
|
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.BarChartWithAreaChart = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _recharts = require("recharts");
|
|
11
|
-
var _FoodLionChartIcon = _interopRequireDefault(require("./icons/FoodLionChartIcon"));
|
|
12
|
-
var _GiantFoodChartIcon = _interopRequireDefault(require("./icons/GiantFoodChartIcon"));
|
|
13
|
-
var _TheGiantCompanyChartIcon = _interopRequireDefault(require("./icons/TheGiantCompanyChartIcon"));
|
|
14
|
-
var _StopAndShopChartIcon = _interopRequireDefault(require("./icons/StopAndShopChartIcon"));
|
|
15
|
-
var _HannafordChartIcon = _interopRequireDefault(require("./icons/HannafordChartIcon"));
|
|
16
|
-
var _CommonFunctions = require("./CommonFunctions");
|
|
17
|
-
var _BarChartWithAreaChart = require("./BarChartWithAreaChart.style");
|
|
18
|
-
var _PerformanceAnalyticsLegend = _interopRequireDefault(require("./PerformanceAnalyticsLegend"));
|
|
19
|
-
/* eslint-disable consistent-return */
|
|
20
|
-
/* eslint-disable default-case */
|
|
21
|
-
/* eslint-disable react/prop-types */
|
|
22
|
-
/* eslint-disable no-shadow */
|
|
23
|
-
/* eslint-disable react/no-unstable-nested-components */
|
|
24
|
-
/* eslint-disable no-nested-ternary */
|
|
25
|
-
|
|
26
|
-
const ICON_TYPE_SQUARE = 'Square';
|
|
27
|
-
const BarChartWithAreaChart = props => {
|
|
28
|
-
const {
|
|
29
|
-
className,
|
|
30
|
-
title,
|
|
31
|
-
barChartData,
|
|
32
|
-
barSize,
|
|
33
|
-
barFontSizeValue,
|
|
34
|
-
barChartHeight,
|
|
35
|
-
signType,
|
|
36
|
-
width,
|
|
37
|
-
height,
|
|
38
|
-
barChartColor,
|
|
39
|
-
showLegend,
|
|
40
|
-
isAreaChartDisplayed,
|
|
41
|
-
legendData,
|
|
42
|
-
maxRange
|
|
43
|
-
} = props;
|
|
44
|
-
const controlsContainerRef = (0, _react.useRef)();
|
|
45
|
-
const displayFormattedValue = (value, signType) => {
|
|
46
|
-
if (!value) return '';
|
|
47
|
-
switch (signType) {
|
|
48
|
-
case 'dollar':
|
|
49
|
-
return ''.concat('$', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
50
|
-
case 'percentage':
|
|
51
|
-
return ''.concat((0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value), '%');
|
|
52
|
-
case 'unit':
|
|
53
|
-
return ''.concat((0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const displayRetailerIcon = (retailer, x, y) => {
|
|
57
|
-
switch (retailer) {
|
|
58
|
-
case 'Food Lion':
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
60
|
-
transform: `translate(${x - 34},${y - 10})`
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_FoodLionChartIcon.default, null));
|
|
62
|
-
case 'Hannaford':
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
64
|
-
transform: `translate(${x - 34},${y - 10})`
|
|
65
|
-
}, /*#__PURE__*/_react.default.createElement(_HannafordChartIcon.default, null));
|
|
66
|
-
case 'Stop&Shop':
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
68
|
-
transform: `translate(${x - 34},${y - 10})`
|
|
69
|
-
}, /*#__PURE__*/_react.default.createElement(_StopAndShopChartIcon.default, null));
|
|
70
|
-
case 'The Giant Company':
|
|
71
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
72
|
-
transform: `translate(${x - 34},${y - 10})`
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(_TheGiantCompanyChartIcon.default, null));
|
|
74
|
-
case 'Giant Food':
|
|
75
|
-
return /*#__PURE__*/_react.default.createElement("g", {
|
|
76
|
-
transform: `translate(${x - 34},${y - 10})`
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_GiantFoodChartIcon.default, null));
|
|
78
|
-
default:
|
|
79
|
-
return '';
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
const CustomTooltip = props => {
|
|
83
|
-
var _first$payload, _first$payload2, _first$payload3, _first$payload4;
|
|
84
|
-
const {
|
|
85
|
-
active,
|
|
86
|
-
payload,
|
|
87
|
-
label
|
|
88
|
-
} = props;
|
|
89
|
-
if (!active || !payload || (payload === null || payload === void 0 ? void 0 : payload.length) === 0) return null;
|
|
90
|
-
let currentTooltipValue = 0;
|
|
91
|
-
let currentTooltipAvgValue = 0;
|
|
92
|
-
const [first] = payload;
|
|
93
|
-
if ((_first$payload = first.payload) !== null && _first$payload !== void 0 && _first$payload.value) currentTooltipValue = (_first$payload2 = first.payload) === null || _first$payload2 === void 0 ? void 0 : _first$payload2.value;
|
|
94
|
-
if ((_first$payload3 = first.payload) !== null && _first$payload3 !== void 0 && _first$payload3.avgValue) currentTooltipAvgValue = (_first$payload4 = first.payload) === null || _first$payload4 === void 0 ? void 0 : _first$payload4.avgValue;
|
|
95
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.TooltipTitle, null, `${label}`), /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.TooltipLabel, null, `${title}: ${displayFormattedValue(currentTooltipValue, signType)}`), isAreaChartDisplayed && /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.TooltipLabel, null, `AVG. Sales: ${displayFormattedValue(currentTooltipAvgValue, signType)}`));
|
|
96
|
-
};
|
|
97
|
-
const CustomizedTickBarChart = props => {
|
|
98
|
-
const {
|
|
99
|
-
x,
|
|
100
|
-
y,
|
|
101
|
-
payload
|
|
102
|
-
} = props;
|
|
103
|
-
if (barChartData && barChartData.length > 0 && payload) {
|
|
104
|
-
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
105
|
-
if (retailerData && retailerData.length > 0) {
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement("g", null, displayRetailerIcon(payload.value, x, y), /*#__PURE__*/_react.default.createElement("g", {
|
|
107
|
-
transform: `translate(${x},${y})`
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
109
|
-
x: 0,
|
|
110
|
-
y: 15,
|
|
111
|
-
dy: 16,
|
|
112
|
-
fill: "#212121"
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.LabelText, {
|
|
114
|
-
textAnchor: "middle",
|
|
115
|
-
x: "0",
|
|
116
|
-
dy: "30",
|
|
117
|
-
fontSize: 14,
|
|
118
|
-
fontWeight: 400
|
|
119
|
-
}, retailerData[0].date))));
|
|
120
|
-
}
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
return null;
|
|
124
|
-
};
|
|
125
|
-
const CustomizedLabel = props => {
|
|
126
|
-
const {
|
|
127
|
-
x,
|
|
128
|
-
y,
|
|
129
|
-
stroke,
|
|
130
|
-
value,
|
|
131
|
-
viewBox
|
|
132
|
-
} = props;
|
|
133
|
-
if (value === undefined || value === null) {
|
|
134
|
-
return /*#__PURE__*/_react.default.createElement("text", {
|
|
135
|
-
x: x + 30,
|
|
136
|
-
y: y,
|
|
137
|
-
dy: -8,
|
|
138
|
-
fill: stroke,
|
|
139
|
-
fontSize: "0.6em",
|
|
140
|
-
textAnchor: "middle"
|
|
141
|
-
}, "N/A");
|
|
142
|
-
}
|
|
143
|
-
if (value === 0) {
|
|
144
|
-
return /*#__PURE__*/_react.default.createElement("text", {
|
|
145
|
-
x: x + 30,
|
|
146
|
-
y: y,
|
|
147
|
-
dy: -8,
|
|
148
|
-
fill: stroke,
|
|
149
|
-
fontSize: barFontSizeValue,
|
|
150
|
-
textAnchor: "middle"
|
|
151
|
-
}, "0");
|
|
152
|
-
}
|
|
153
|
-
if (value < 0) {
|
|
154
|
-
return /*#__PURE__*/_react.default.createElement("text", {
|
|
155
|
-
x: x + 30,
|
|
156
|
-
y: y + viewBox.height,
|
|
157
|
-
dy: -8,
|
|
158
|
-
fill: stroke,
|
|
159
|
-
fontSize: barFontSizeValue,
|
|
160
|
-
textAnchor: "middle"
|
|
161
|
-
}, displayFormattedValue(value, signType));
|
|
162
|
-
}
|
|
163
|
-
return /*#__PURE__*/_react.default.createElement("text", {
|
|
164
|
-
x: x + 30,
|
|
165
|
-
y: y,
|
|
166
|
-
dy: -8,
|
|
167
|
-
fill: stroke,
|
|
168
|
-
fontSize: barFontSizeValue,
|
|
169
|
-
textAnchor: "middle"
|
|
170
|
-
}, displayFormattedValue(value, signType));
|
|
171
|
-
};
|
|
172
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.ControlsContainer, {
|
|
173
|
-
className: className,
|
|
174
|
-
height: height,
|
|
175
|
-
width: width,
|
|
176
|
-
ref: controlsContainerRef
|
|
177
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.Controls, {
|
|
178
|
-
className: "Controls"
|
|
179
|
-
}, /*#__PURE__*/_react.default.createElement(_BarChartWithAreaChart.Title, null, title), /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
180
|
-
height: barChartHeight
|
|
181
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
|
|
182
|
-
data: barChartData
|
|
183
|
-
// margin={{
|
|
184
|
-
// top: 20,
|
|
185
|
-
// right: 0,
|
|
186
|
-
// bottom: -50,
|
|
187
|
-
// left: 0,
|
|
188
|
-
// }}
|
|
189
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.YAxis, {
|
|
190
|
-
type: "number",
|
|
191
|
-
width: 0,
|
|
192
|
-
display: "none",
|
|
193
|
-
domain: [0, dataMax => dataMax * maxRange],
|
|
194
|
-
allowDataOverflow: true
|
|
195
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
|
|
196
|
-
dataKey: "title",
|
|
197
|
-
tick: CustomizedTickBarChart,
|
|
198
|
-
tickLine: false,
|
|
199
|
-
height: 120,
|
|
200
|
-
stroke: "#D0D0D0",
|
|
201
|
-
allowDataOverflow: true,
|
|
202
|
-
width: 700,
|
|
203
|
-
interval: 0
|
|
204
|
-
}), isAreaChartDisplayed && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
205
|
-
content: /*#__PURE__*/_react.default.createElement(CustomTooltip, null)
|
|
206
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, null)), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
207
|
-
dataKey: "value",
|
|
208
|
-
fill: barChartColor,
|
|
209
|
-
minPointSize: 0,
|
|
210
|
-
barSize: barSize !== null && barSize !== void 0 ? barSize : 60,
|
|
211
|
-
radius: [5, 5, 0, 0]
|
|
212
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
213
|
-
dataKey: "value",
|
|
214
|
-
content: CustomizedLabel
|
|
215
|
-
})), isAreaChartDisplayed && /*#__PURE__*/_react.default.createElement(_recharts.Area, {
|
|
216
|
-
dataKey: "avgValue",
|
|
217
|
-
stroke: "#066768",
|
|
218
|
-
fill: "#0666685b"
|
|
219
|
-
}))), showLegend && /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.default, {
|
|
220
|
-
legendData: legendData
|
|
221
|
-
})));
|
|
222
|
-
};
|
|
223
|
-
exports.BarChartWithAreaChart = BarChartWithAreaChart;
|
|
224
|
-
var _default = exports.default = BarChartWithAreaChart;
|
|
225
|
-
BarChartWithAreaChart.defaultProps = {
|
|
226
|
-
title: 'Title Chart',
|
|
227
|
-
barChartData: [{
|
|
228
|
-
title: 'Food Lion',
|
|
229
|
-
date: '15.01.24-31.01.24',
|
|
230
|
-
value: 70,
|
|
231
|
-
avgValue: 42
|
|
232
|
-
}, {
|
|
233
|
-
title: 'Hannaford',
|
|
234
|
-
date: '15.01.24-31.01.24',
|
|
235
|
-
value: 50,
|
|
236
|
-
avgValue: 34
|
|
237
|
-
}, {
|
|
238
|
-
title: 'The Giant Company',
|
|
239
|
-
date: '15.01.24-31.01.24',
|
|
240
|
-
value: 40,
|
|
241
|
-
avgValue: 35
|
|
242
|
-
}, {
|
|
243
|
-
title: 'Giant Food',
|
|
244
|
-
date: '15.01.24-31.01.24',
|
|
245
|
-
value: 80,
|
|
246
|
-
avgValue: 70
|
|
247
|
-
}, {
|
|
248
|
-
title: 'Stop&Shop',
|
|
249
|
-
date: '15.01.24-31.01.24',
|
|
250
|
-
value: 20,
|
|
251
|
-
avgValue: 80
|
|
252
|
-
}],
|
|
253
|
-
width: '100%',
|
|
254
|
-
height: '100%',
|
|
255
|
-
barSize: 60,
|
|
256
|
-
barChartHeight: 50,
|
|
257
|
-
barFontSizeValue: '14px',
|
|
258
|
-
barChartColor: '#BD9EFF',
|
|
259
|
-
showLegend: true,
|
|
260
|
-
signType: 'dollar',
|
|
261
|
-
isAreaChartDisplayed: true,
|
|
262
|
-
legendData: [{
|
|
263
|
-
title: 'Incremental Sales',
|
|
264
|
-
iconType: ICON_TYPE_SQUARE,
|
|
265
|
-
iconColor: '#BD9EFF'
|
|
266
|
-
}],
|
|
267
|
-
maxRange: 2
|
|
268
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.Title = exports.RetailerIconContainer = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
-
position: relative;
|
|
11
|
-
font-family: "Poppins", sans-serif;
|
|
12
|
-
color: #212121;
|
|
13
|
-
width: ${props => props.width};
|
|
14
|
-
height: ${props => props.height};
|
|
15
|
-
min-width: 250px;
|
|
16
|
-
`;
|
|
17
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
-
background: white;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
height: ${props => props.height};
|
|
22
|
-
padding: 20px;
|
|
23
|
-
@media (max-width: 1536px) {
|
|
24
|
-
padding: 18px;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
28
|
-
border-radius: 5px;
|
|
29
|
-
padding: 8px 12px;
|
|
30
|
-
background: white;
|
|
31
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
32
|
-
margin: 0;
|
|
33
|
-
`;
|
|
34
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
35
|
-
color: #212121;
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
font-weight: 400;
|
|
38
|
-
width: fit-content;
|
|
39
|
-
`;
|
|
40
|
-
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
41
|
-
color: #212121;
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
`;
|
|
45
|
-
const Title = exports.Title = _styledComponents.default.h5`
|
|
46
|
-
font-weight: 500;
|
|
47
|
-
font-size: 18px;
|
|
48
|
-
line-height: 20px;
|
|
49
|
-
margin: 0 0 30px;
|
|
50
|
-
@media (max-width: 1536px) {
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
margin: 0 0 20px;
|
|
53
|
-
}
|
|
54
|
-
@media (max-width: 1366px) {
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan`
|
|
59
|
-
font-size: 0.7em;
|
|
60
|
-
`;
|
|
61
|
-
const LabelText = exports.LabelText = _styledComponents.default.tspan`
|
|
62
|
-
font-size: 0.6em;
|
|
63
|
-
`;
|
|
64
|
-
const RetailerIconContainer = exports.RetailerIconContainer = _styledComponents.default.div`
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
`;
|