sag_components 1.0.892 → 1.0.894
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/{MultipleCard/MultipleCard.style.js → BannerEventBoxTest.style.js} +2 -2
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/{SagInput/SagInput.style.js → NewInput.style.js} +2 -2
- package/dist/stories/components/SingleBarLineCharts.js +3 -1
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/package.json +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -14
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -87
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -22
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -148
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -30
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -22
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -18
- package/dist/stories/components/BarChart/BarChart.js +0 -189
- package/dist/stories/components/BarChart/BarChart.stories.js +0 -144
- package/dist/stories/components/BarChart/BarChart.style.js +0 -18
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -204
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -133
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -18
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -295
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -21
- package/dist/stories/components/Benchmark/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
- package/dist/stories/components/Benchmark/Benchmark.style.js +0 -15
- package/dist/stories/components/Button/Button.js +0 -217
- package/dist/stories/components/Button/Button.stories.js +0 -269
- package/dist/stories/components/Button/Button.style.js +0 -15
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -15
- package/dist/stories/components/Card/Card.js +0 -72
- package/dist/stories/components/Card/Card.stories.js +0 -92
- package/dist/stories/components/Card/Card.style.js +0 -18
- package/dist/stories/components/CheckBox/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/stories/components/CheckBox/CheckBox.style.js +0 -14
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -14
- package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -12
- package/dist/stories/components/CollapseData/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/stories/components/CollapseData/CollapseData.style.js +0 -21
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -267
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -35
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -17
- package/dist/stories/components/Datepicker/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
- package/dist/stories/components/Datepicker/Datepicker.style.js +0 -13
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -14
- package/dist/stories/components/Dropdown/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
- package/dist/stories/components/Dropdown/Dropdown.style.js +0 -11
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +0 -290
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +0 -220
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +0 -11
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -279
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -28
- package/dist/stories/components/DropdownNew/DropdownNew.js +0 -88
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -407
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -11
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -234
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -26
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -18
- package/dist/stories/components/EventList/EventList.js +0 -61
- package/dist/stories/components/EventList/EventList.stories.js +0 -84
- package/dist/stories/components/EventList/EventList.style.js +0 -14
- package/dist/stories/components/EventListItem/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/stories/components/EventListItem/EventListItem.style.js +0 -14
- package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -13
- package/dist/stories/components/FilterPanel/FilterPanel.js +0 -566
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -21
- package/dist/stories/components/FormInput/FormInput.js +0 -41
- package/dist/stories/components/FormSelect/FormSelect.js +0 -42
- package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -18
- package/dist/stories/components/IconButton/IconButton.js +0 -147
- package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
- package/dist/stories/components/IconButton/IconButton.style.js +0 -15
- package/dist/stories/components/Input/Input.js +0 -183
- package/dist/stories/components/Input/Input.stories.js +0 -434
- package/dist/stories/components/Input/Input.style.js +0 -17
- package/dist/stories/components/InputOld/InputOld.js +0 -90
- package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
- package/dist/stories/components/InputOld/InputOld.style.js +0 -16
- package/dist/stories/components/KpiFilter/KpiFilter.js +0 -313
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -26
- package/dist/stories/components/LinkButton/LinkButton.js +0 -207
- package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
- package/dist/stories/components/LinkButton/LinkButton.style.js +0 -14
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -43
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -56
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -22
- package/dist/stories/components/ListBox/ListBox.js +0 -82
- package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
- package/dist/stories/components/ListBox/ListBox.style.js +0 -14
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -184
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -27
- package/dist/stories/components/Modal/Modal.js +0 -21
- package/dist/stories/components/Modal/Modal.style.js +0 -17
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -18
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -122
- package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -13
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -20
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -12
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -431
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -25
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -58
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -16
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -315
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -23
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -20
- package/dist/stories/components/Popup/Popup.js +0 -172
- package/dist/stories/components/Popup/Popup.stories.js +0 -704
- package/dist/stories/components/Popup/Popup.style.js +0 -24
- package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -23
- package/dist/stories/components/PopupContent/PopupContent.js +0 -111
- package/dist/stories/components/PopupContent/PopupContent.style.js +0 -21
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -20
- package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -13
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -18
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -109
- package/dist/stories/components/QuickFilter/QuickFilter.js +0 -77
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -11
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -28
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -230
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -27
- package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -146
- package/dist/stories/components/RangePicker/RangePicker.js +0 -176
- package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
- package/dist/stories/components/RangePicker/RangePicker.style.js +0 -18
- package/dist/stories/components/ReportTable/ReportTable.js +0 -262
- package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
- package/dist/stories/components/ReportTable/ReportTable.style.js +0 -22
- package/dist/stories/components/SagButton/SagButton.js +0 -68
- package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
- package/dist/stories/components/SagButton/SagButton.style.js +0 -13
- package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -12
- package/dist/stories/components/SagInput/SagInput.js +0 -53
- package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -19
- package/dist/stories/components/SearchInput/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/stories/components/SearchInput/SearchInput.style.js +0 -12
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -19
- package/dist/stories/components/Select/Select.js +0 -135
- package/dist/stories/components/Select/Select.stories.js +0 -200
- package/dist/stories/components/Select/Select.style.js +0 -19
- package/dist/stories/components/TabMenu/TabMenu.js +0 -202
- package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
- package/dist/stories/components/TabMenu/TabMenu.style.js +0 -24
- package/dist/stories/components/Table/Table.js +0 -195
- package/dist/stories/components/Table/Table.stories.js +0 -104
- package/dist/stories/components/Table/Table.style.js +0 -17
- package/dist/stories/components/TextField/TextField.js +0 -209
- package/dist/stories/components/TextField/TextField.stories.js +0 -162
- package/dist/stories/components/TextField/TextField.style.js +0 -11
- package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -36
- package/dist/stories/components/Tooltip/Tooltip.js +0 -31
- package/dist/stories/components/Tooltip/Tooltip.style.js +0 -18
- package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -16
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -21
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -30
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -24
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -20
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -182
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -290
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -30
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -207
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -158
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -20
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -16
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -13
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -202
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -120
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -18
- package/dist/stories/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/icons/ArrowSelectIcon.js +0 -27
- package/dist/stories/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/icons/AttachedIcon.js +0 -27
- package/dist/stories/icons/BellIcon.js +0 -27
- package/dist/stories/icons/Calendar.js +0 -20
- package/dist/stories/icons/CalendarIcon.js +0 -27
- package/dist/stories/icons/CalendarInOpen.js +0 -26
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/icons/ClockIcon.js +0 -27
- package/dist/stories/icons/CloseIcon.js +0 -27
- package/dist/stories/icons/CloseXIcon.js +0 -27
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/icons/DocumentIcon.js +0 -48
- package/dist/stories/icons/DownloadIcon.js +0 -27
- package/dist/stories/icons/Duplicate.js +0 -28
- package/dist/stories/icons/ErrorIcon.js +0 -27
- package/dist/stories/icons/ExitIcon.js +0 -28
- package/dist/stories/icons/ExportIcon.js +0 -28
- package/dist/stories/icons/EyeIcon.js +0 -28
- package/dist/stories/icons/FileIcon.js +0 -27
- package/dist/stories/icons/FilterIcon.js +0 -36
- package/dist/stories/icons/FlyIcon.js +0 -28
- package/dist/stories/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/icons/HannafordIcon.js +0 -5017
- package/dist/stories/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/icons/InfoIcon.js +0 -28
- package/dist/stories/icons/LampIcon.js +0 -27
- package/dist/stories/icons/LegendLineIcon.js +0 -29
- package/dist/stories/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/icons/OptionsIcon.js +0 -27
- package/dist/stories/icons/SearchIcon.js +0 -27
- package/dist/stories/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/icons/ShoutIcon.js +0 -27
- package/dist/stories/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/icons/SucceededIcon.js +0 -27
- package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/CommonFunctions.js +0 -78
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.TotalCostSales = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _PerformanceAnalyticsOneColumn = require("./PerformanceAnalyticsOneColumn");
|
|
10
|
-
const totalsData1 = [{
|
|
11
|
-
title: 'Total Cost',
|
|
12
|
-
value: 360000,
|
|
13
|
-
dotCut: true,
|
|
14
|
-
currency: true,
|
|
15
|
-
currencyType: 'USD',
|
|
16
|
-
growthPercent: 15.2,
|
|
17
|
-
showGrowthPercentSign: true
|
|
18
|
-
}, {
|
|
19
|
-
title: 'Incremental Sales',
|
|
20
|
-
value: 960000,
|
|
21
|
-
dotCut: true,
|
|
22
|
-
currency: true,
|
|
23
|
-
currencyType: 'USD',
|
|
24
|
-
growthPercent: 13.5,
|
|
25
|
-
showGrowthPercentSign: true
|
|
26
|
-
}, {
|
|
27
|
-
title: 'Incremental Sales ROI',
|
|
28
|
-
value: 2.7,
|
|
29
|
-
dotCut: true,
|
|
30
|
-
currency: false,
|
|
31
|
-
currencyType: null,
|
|
32
|
-
growthPercent: null,
|
|
33
|
-
showGrowthPercentSign: true
|
|
34
|
-
}];
|
|
35
|
-
const data1 = [{
|
|
36
|
-
retailer: 'Food Lion',
|
|
37
|
-
offerType: 'B2G3',
|
|
38
|
-
period: '15.01.24-31.01.24',
|
|
39
|
-
roiValue: 2.5,
|
|
40
|
-
// New / existing Shoppers
|
|
41
|
-
newShoppersValue: 16,
|
|
42
|
-
newShoppersPercentValue: 15.6,
|
|
43
|
-
existingShoppersValue: 66,
|
|
44
|
-
existingShoppersPercentValue: 84.4,
|
|
45
|
-
totalShoppers: 82
|
|
46
|
-
}, {
|
|
47
|
-
retailer: 'Hannaford',
|
|
48
|
-
offerType: 'B2G3',
|
|
49
|
-
period: '02.01.24-15.01.24',
|
|
50
|
-
roiValue: 3.6,
|
|
51
|
-
// New / existing Shoppers
|
|
52
|
-
newShoppersValue: 14,
|
|
53
|
-
newShoppersPercentValue: 25.5,
|
|
54
|
-
existingShoppersValue: 35,
|
|
55
|
-
existingShoppersPercentValue: 75.5,
|
|
56
|
-
totalShoppers: 49
|
|
57
|
-
}, {
|
|
58
|
-
retailer: 'The Giant Company',
|
|
59
|
-
offerType: '20% Off',
|
|
60
|
-
period: '15.01.24-31.01.24',
|
|
61
|
-
roiValue: 2.0,
|
|
62
|
-
// New / existing Shoppers
|
|
63
|
-
newShoppersValue: 44,
|
|
64
|
-
newShoppersPercentValue: 10.5,
|
|
65
|
-
existingShoppersValue: 33,
|
|
66
|
-
existingShoppersPercentValue: 88,
|
|
67
|
-
contributionIncrementalSalesValue: 89.5,
|
|
68
|
-
totalShoppers: 77
|
|
69
|
-
}, {
|
|
70
|
-
retailer: 'Giant Food',
|
|
71
|
-
offerType: '20% Off',
|
|
72
|
-
period: '02.01.24-15.01.24',
|
|
73
|
-
roiValue: 2.5,
|
|
74
|
-
// New / existing Shoppers
|
|
75
|
-
newShoppersValue: 77,
|
|
76
|
-
newShoppersPercentValue: 8.6,
|
|
77
|
-
existingShoppersValue: 55,
|
|
78
|
-
existingShoppersPercentValue: 91.4,
|
|
79
|
-
totalShoppers: 122
|
|
80
|
-
}, {
|
|
81
|
-
retailer: 'Stop&Shop',
|
|
82
|
-
offerType: '20% Off',
|
|
83
|
-
period: '02.01.24-15.01.24',
|
|
84
|
-
roiValue: 3.3,
|
|
85
|
-
// New / existing Shoppers
|
|
86
|
-
newShoppersValue: 11,
|
|
87
|
-
newShoppersPercentValue: 25.4,
|
|
88
|
-
existingShoppersValue: 33,
|
|
89
|
-
existingShoppersPercentValue: 74.6,
|
|
90
|
-
totalShoppers: 44
|
|
91
|
-
}];
|
|
92
|
-
const legendData1 = [{
|
|
93
|
-
iconColor: '#1F7677',
|
|
94
|
-
iconType: 'Square',
|
|
95
|
-
title: '% New Shoppers'
|
|
96
|
-
}, {
|
|
97
|
-
iconColor: '#1F7677',
|
|
98
|
-
iconType: 'LegendUnionIcon',
|
|
99
|
-
title: '% New Shoppers'
|
|
100
|
-
}, {
|
|
101
|
-
iconColor: '#90CE9C',
|
|
102
|
-
iconType: 'Square',
|
|
103
|
-
title: '# Existing Shoppers'
|
|
104
|
-
}, {
|
|
105
|
-
iconColor: '#9CCB3B',
|
|
106
|
-
iconType: 'LegendUnionIcon',
|
|
107
|
-
title: '# Existing Shoppers'
|
|
108
|
-
}];
|
|
109
|
-
var _default = exports.default = {
|
|
110
|
-
title: 'SAG BI/PerformanceAnalyticsOneColumn',
|
|
111
|
-
component: _PerformanceAnalyticsOneColumn.PerformanceAnalyticsOneColumn,
|
|
112
|
-
tags: ['autodocs'],
|
|
113
|
-
parameters: {
|
|
114
|
-
design: {
|
|
115
|
-
type: 'figspec',
|
|
116
|
-
accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
argTypes: {
|
|
120
|
-
totalsData: {
|
|
121
|
-
name: 'totalsData',
|
|
122
|
-
description: 'array [] of objects: to fill the totals on top of the component '
|
|
123
|
-
},
|
|
124
|
-
data: {
|
|
125
|
-
name: 'data',
|
|
126
|
-
description: 'array [] of objects: to fill the barcharts '
|
|
127
|
-
},
|
|
128
|
-
legendData: {
|
|
129
|
-
name: 'legendData',
|
|
130
|
-
description: 'array [] of objects: to fill the legend on bottom of the component '
|
|
131
|
-
},
|
|
132
|
-
currencyType: {
|
|
133
|
-
name: 'currencyType',
|
|
134
|
-
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY', ''],
|
|
135
|
-
control: {
|
|
136
|
-
type: 'select'
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
width: {
|
|
140
|
-
name: 'Width',
|
|
141
|
-
control: {
|
|
142
|
-
type: 'text'
|
|
143
|
-
},
|
|
144
|
-
description: 'width of the control (in px / %)'
|
|
145
|
-
},
|
|
146
|
-
height: {
|
|
147
|
-
name: 'Height',
|
|
148
|
-
control: {
|
|
149
|
-
type: 'text'
|
|
150
|
-
},
|
|
151
|
-
description: 'height of the control (in px / %)'
|
|
152
|
-
},
|
|
153
|
-
lineChartHeight: {
|
|
154
|
-
name: 'lineChartHeight',
|
|
155
|
-
control: {
|
|
156
|
-
type: 'number'
|
|
157
|
-
},
|
|
158
|
-
description: 'height of the control (in px)'
|
|
159
|
-
},
|
|
160
|
-
lineChartValueType: {
|
|
161
|
-
name: 'lineChartValueType',
|
|
162
|
-
control: {
|
|
163
|
-
type: 'boolean'
|
|
164
|
-
},
|
|
165
|
-
description: 'true/false - show/hide percent sign before value'
|
|
166
|
-
},
|
|
167
|
-
lineChartValueBold: {
|
|
168
|
-
name: 'lineChartValueBold',
|
|
169
|
-
control: {
|
|
170
|
-
type: 'boolean'
|
|
171
|
-
},
|
|
172
|
-
description: 'true/false - value bolded'
|
|
173
|
-
},
|
|
174
|
-
topBarSigning: {
|
|
175
|
-
name: 'topBarSigning',
|
|
176
|
-
control: {
|
|
177
|
-
type: 'inline-radio'
|
|
178
|
-
},
|
|
179
|
-
options: ['None', 'Dollar sign ($)', 'Euro sign (€)'],
|
|
180
|
-
description: 'What a value sign to add to the top bar value string'
|
|
181
|
-
},
|
|
182
|
-
topBarPercentSigning: {
|
|
183
|
-
name: 'topBarPercentSigning',
|
|
184
|
-
control: {
|
|
185
|
-
type: 'boolean'
|
|
186
|
-
},
|
|
187
|
-
description: 'Add Percent sign aside top bars value'
|
|
188
|
-
},
|
|
189
|
-
noDataText: {
|
|
190
|
-
name: 'No Data text',
|
|
191
|
-
control: {
|
|
192
|
-
type: 'text'
|
|
193
|
-
},
|
|
194
|
-
description: 'text to display when no data found'
|
|
195
|
-
},
|
|
196
|
-
tooltipBarchartLabel1: {
|
|
197
|
-
name: 'tooltipBarchartLabel1',
|
|
198
|
-
control: {
|
|
199
|
-
type: 'text'
|
|
200
|
-
},
|
|
201
|
-
description: 'text in barchart tooltip - top'
|
|
202
|
-
},
|
|
203
|
-
tooltipBarchartLabel2: {
|
|
204
|
-
name: 'tooltipBarchartLabel2',
|
|
205
|
-
control: {
|
|
206
|
-
type: 'text'
|
|
207
|
-
},
|
|
208
|
-
description: 'text in barchart tooltip - bottom'
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
const TotalCostSales = exports.TotalCostSales = {
|
|
213
|
-
args: {
|
|
214
|
-
totalsData: totalsData1,
|
|
215
|
-
data: data1,
|
|
216
|
-
legendData: legendData1,
|
|
217
|
-
width: '100%',
|
|
218
|
-
height: '100%',
|
|
219
|
-
lineChartHeight: 50,
|
|
220
|
-
lineChartValueType: true,
|
|
221
|
-
lineChartValueBold: true,
|
|
222
|
-
colorBarchart1: '#90CE9C',
|
|
223
|
-
colorBarchart2: '#1F7677',
|
|
224
|
-
topBarPercentSigning: false,
|
|
225
|
-
topBarSigning: 'None',
|
|
226
|
-
currencyType: 'USD',
|
|
227
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.',
|
|
228
|
-
tooltipBarchartLabel1: 'New Shoppers',
|
|
229
|
-
tooltipBarchartLabel2: 'Existing Shoppers'
|
|
230
|
-
}
|
|
231
|
-
};
|
package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js
DELETED
|
@@ -1,23 +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.TotalsDataContainer = exports.TooltipValue = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipContainer = exports.ToolTipLabelAndValueContainer = exports.SegmentedButtonContainer = exports.LegendTitle = exports.LegendColorRectangle = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
11
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-self: center;\n &.NoData {\n align-self: center;\n display: flex;\n align-items: center;\n width: 50%;\n margin: 10% auto 0;\n }\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textColor, props => props.width, props => props.height);
|
|
12
|
-
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n padding: 24px 40px;\n background: white;\n @media (max-width: 1536px) {\n padding: 12px 32px;\n }\n"])));
|
|
13
|
-
const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px 0 0 10px;\n"])));
|
|
14
|
-
const TotalsDataContainer = exports.TotalsDataContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)([""])));
|
|
15
|
-
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 12px;\n }\n"])));
|
|
16
|
-
const LabelText = exports.LabelText = _styledComponents.default.tspan(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 10px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])));
|
|
17
|
-
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n background: #fff;\n font-family: \"Poppins\", sans-serif;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
18
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n margin: 0 6px 0 0;\n"])));
|
|
19
|
-
const TooltipValue = exports.TooltipValue = _styledComponents.default.p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n width: fit-content;\n margin: 0;\n"])));
|
|
20
|
-
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0;\n"])));
|
|
21
|
-
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (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);
|
|
22
|
-
const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
23
|
-
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.PerformanceAnalyticsTotals = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
10
|
-
var _PerformanceAnalyticsTotals = require("./PerformanceAnalyticsTotals.style");
|
|
11
|
-
/* PerformanceAnalyticsTotals */
|
|
12
|
-
const PerformanceAnalyticsTotals = props => {
|
|
13
|
-
const {
|
|
14
|
-
textcolor,
|
|
15
|
-
width,
|
|
16
|
-
height,
|
|
17
|
-
totalsData
|
|
18
|
-
} = props;
|
|
19
|
-
const getGrowthPercent = (growthPercent, showGrowthPercentSign) => {
|
|
20
|
-
if (!growthPercent) {
|
|
21
|
-
return '';
|
|
22
|
-
}
|
|
23
|
-
const growthPercentSign = showGrowthPercentSign && growthPercent > 0 ? '+' : '';
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.GrowthPercent, {
|
|
25
|
-
id: "GrowthPercent"
|
|
26
|
-
}, "(", growthPercentSign, growthPercent, "%)");
|
|
27
|
-
};
|
|
28
|
-
const getTotalsData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.TotalsDataContainer, {
|
|
29
|
-
id: "TotalsDataContainer"
|
|
30
|
-
}, totalsData === null || totalsData === void 0 ? void 0 : totalsData.map((item, i) => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.TitleAndValueContainer, {
|
|
31
|
-
id: "TitleAndValueContainer",
|
|
32
|
-
key: "".concat(item.title + i)
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.Title, {
|
|
34
|
-
id: "Title",
|
|
35
|
-
width: width
|
|
36
|
-
}, item.title), /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.CurrencySignAndFormattedValueContainer, {
|
|
37
|
-
id: "CurrencySignAndFormattedValueContainer"
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.FormattedValue, {
|
|
39
|
-
id: "FormattedValue",
|
|
40
|
-
width: width
|
|
41
|
-
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.CurrencySign, {
|
|
42
|
-
id: "CurrencySign"
|
|
43
|
-
}, item.currency ? (0, _CommonFunctions.getCurrencySign)(item.currencyType, item.value) : ''), item.dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value), item.dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : '', item.growthPercent ? getGrowthPercent(item.growthPercent, item.showGrowthPercentSign) : '')))));
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.ControlsContainer, {
|
|
45
|
-
id: "ControlsContainer",
|
|
46
|
-
height: height,
|
|
47
|
-
width: width,
|
|
48
|
-
textcolor: textcolor
|
|
49
|
-
}, (totalsData === null || totalsData === void 0 ? void 0 : totalsData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.Controls, {
|
|
50
|
-
id: "Controls",
|
|
51
|
-
height: height,
|
|
52
|
-
width: width
|
|
53
|
-
}, getTotalsData()) : '');
|
|
54
|
-
};
|
|
55
|
-
exports.PerformanceAnalyticsTotals = PerformanceAnalyticsTotals;
|
|
56
|
-
var _default = exports.default = PerformanceAnalyticsTotals;
|
|
57
|
-
PerformanceAnalyticsTotals.defaultProps = {
|
|
58
|
-
textcolor: '#212121',
|
|
59
|
-
width: '',
|
|
60
|
-
height: '',
|
|
61
|
-
totalsData: [{
|
|
62
|
-
title: '',
|
|
63
|
-
value: '',
|
|
64
|
-
dotCut: true,
|
|
65
|
-
currency: true,
|
|
66
|
-
currencyType: true,
|
|
67
|
-
growthPercent: true,
|
|
68
|
-
showGrowthPercentSign: true
|
|
69
|
-
}]
|
|
70
|
-
};
|
package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.TotalCostSales = exports.NewExistingShoppers = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _PerformanceAnalyticsTotals = require("./PerformanceAnalyticsTotals");
|
|
10
|
-
const totalsDataCostSales = [{
|
|
11
|
-
title: 'Total Cost',
|
|
12
|
-
value: 360000,
|
|
13
|
-
dotCut: true,
|
|
14
|
-
currency: true,
|
|
15
|
-
currencyType: 'USD',
|
|
16
|
-
growthPercent: 15.2,
|
|
17
|
-
showGrowthPercentSign: true
|
|
18
|
-
}, {
|
|
19
|
-
title: 'Incremental Sales',
|
|
20
|
-
value: 960000,
|
|
21
|
-
dotCut: true,
|
|
22
|
-
currency: true,
|
|
23
|
-
currencyType: 'USD',
|
|
24
|
-
growthPercent: 13.5,
|
|
25
|
-
showGrowthPercentSign: true
|
|
26
|
-
}, {
|
|
27
|
-
title: 'Incremental Sales ROI',
|
|
28
|
-
value: 2.7,
|
|
29
|
-
dotCut: true,
|
|
30
|
-
currency: false,
|
|
31
|
-
currencyType: null,
|
|
32
|
-
growthPercent: null,
|
|
33
|
-
showGrowthPercentSign: true
|
|
34
|
-
}];
|
|
35
|
-
const totalsDataShoppers = [{
|
|
36
|
-
title: 'Total Shoppers',
|
|
37
|
-
value: 3500000,
|
|
38
|
-
dotCut: true,
|
|
39
|
-
currency: false,
|
|
40
|
-
currencyType: null,
|
|
41
|
-
growthPercent: null,
|
|
42
|
-
showGrowthPercentSign: false
|
|
43
|
-
}, {
|
|
44
|
-
title: 'New Shoppers',
|
|
45
|
-
value: 500500,
|
|
46
|
-
dotCut: true,
|
|
47
|
-
currency: false,
|
|
48
|
-
currencyType: null,
|
|
49
|
-
growthPercent: 14.3,
|
|
50
|
-
showGrowthPercentSign: false
|
|
51
|
-
}, {
|
|
52
|
-
title: 'Existing Shoppers',
|
|
53
|
-
value: 2900000,
|
|
54
|
-
dotCut: true,
|
|
55
|
-
currency: false,
|
|
56
|
-
currencyType: null,
|
|
57
|
-
growthPercent: 85.7,
|
|
58
|
-
showGrowthPercentSign: false
|
|
59
|
-
}];
|
|
60
|
-
var _default = exports.default = {
|
|
61
|
-
title: 'SAG BI/PerformanceAnalyticsTotals',
|
|
62
|
-
component: _PerformanceAnalyticsTotals.PerformanceAnalyticsTotals,
|
|
63
|
-
tags: ['autodocs'],
|
|
64
|
-
parameters: {
|
|
65
|
-
design: {
|
|
66
|
-
type: 'figspec',
|
|
67
|
-
accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
argTypes: {
|
|
71
|
-
totalsData: {
|
|
72
|
-
name: 'totalsData',
|
|
73
|
-
description: 'array [] of objects representing totals data to display in component '
|
|
74
|
-
},
|
|
75
|
-
width: {
|
|
76
|
-
name: 'Width',
|
|
77
|
-
control: {
|
|
78
|
-
type: 'text'
|
|
79
|
-
},
|
|
80
|
-
description: 'width of the control (in px / %)'
|
|
81
|
-
},
|
|
82
|
-
height: {
|
|
83
|
-
name: 'Height',
|
|
84
|
-
control: {
|
|
85
|
-
type: 'text'
|
|
86
|
-
},
|
|
87
|
-
description: 'height of the control (in px / %)'
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
const TotalCostSales = exports.TotalCostSales = {
|
|
92
|
-
args: {
|
|
93
|
-
totalsData: totalsDataCostSales
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const NewExistingShoppers = exports.NewExistingShoppers = {
|
|
97
|
-
args: {
|
|
98
|
-
totalsData: totalsDataShoppers
|
|
99
|
-
}
|
|
100
|
-
};
|
package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js
DELETED
|
@@ -1,20 +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.TotalsDataContainer = exports.TitleAndValueContainer = exports.Title = exports.LegendFormatedValueContainer = exports.GrowthPercent = exports.FormattedValue = exports.CurrencySignAndFormattedValueContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
11
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-self: center;\n\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textColor, props => props.width, props => props.height);
|
|
12
|
-
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 20px;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background: white;\n"])));
|
|
13
|
-
const TotalsDataContainer = exports.TotalsDataContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
14
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n padding: 0 20px;\n"])));
|
|
15
|
-
const Title = exports.Title = _styledComponents.default.h4(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n line-height: 27px;\n margin: 0;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
16
|
-
const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 16px;\n"])));
|
|
17
|
-
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 18px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 11px;\n }\n"])));
|
|
18
|
-
const GrowthPercent = exports.GrowthPercent = _styledComponents.default.span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 18px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 11px;\n }\n"])));
|
|
19
|
-
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"])));
|
|
20
|
-
const LegendFormatedValueContainer = exports.LegendFormatedValueContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 0.875rem;\n"])));
|
|
@@ -1,172 +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 = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactHookForm = require("react-hook-form");
|
|
11
|
-
var _MenuItemClosedIcon = require("../../icons/MenuItemClosedIcon");
|
|
12
|
-
var _MenuItemOpenIcon = require("../../icons/MenuItemOpenIcon");
|
|
13
|
-
var _PopupContent = _interopRequireDefault(require("../PopupContent/PopupContent"));
|
|
14
|
-
var _SagButton = _interopRequireDefault(require("../SagButton/SagButton"));
|
|
15
|
-
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
16
|
-
var _Popup = require("./Popup.style");
|
|
17
|
-
const Popup = props => {
|
|
18
|
-
const {
|
|
19
|
-
title,
|
|
20
|
-
popupItemsData,
|
|
21
|
-
isPopupOpen,
|
|
22
|
-
width,
|
|
23
|
-
height,
|
|
24
|
-
borderColor,
|
|
25
|
-
subtitleTextColor,
|
|
26
|
-
onOverlayClick,
|
|
27
|
-
children,
|
|
28
|
-
onChange
|
|
29
|
-
} = props;
|
|
30
|
-
const [IsPopupOpen, setIsPopupOpen] = (0, _react.useState)(isPopupOpen);
|
|
31
|
-
const useFormMethods = (0, _reactHookForm.useForm)({
|
|
32
|
-
mode: 'onChange'
|
|
33
|
-
});
|
|
34
|
-
const divRef = (0, _react.useRef)(null);
|
|
35
|
-
const [divHeight, setDivHeight] = (0, _react.useState)(0);
|
|
36
|
-
(0, _react.useEffect)(() => {
|
|
37
|
-
if (divRef.current) {
|
|
38
|
-
const {
|
|
39
|
-
top,
|
|
40
|
-
bottom
|
|
41
|
-
} = divRef.current.getBoundingClientRect();
|
|
42
|
-
const height = bottom - top;
|
|
43
|
-
setDivHeight(height);
|
|
44
|
-
}
|
|
45
|
-
}, [height]);
|
|
46
|
-
(0, _react.useEffect)(() => {
|
|
47
|
-
setIsPopupOpen(isPopupOpen);
|
|
48
|
-
}, [isPopupOpen]);
|
|
49
|
-
const openPopup = () => {
|
|
50
|
-
setIsPopupOpen(true);
|
|
51
|
-
};
|
|
52
|
-
const closePopup = e => {
|
|
53
|
-
setIsPopupOpen(false);
|
|
54
|
-
onOverlayClick(e);
|
|
55
|
-
};
|
|
56
|
-
const AccordionItem = _ref => {
|
|
57
|
-
var _children$props, _children$props2;
|
|
58
|
-
let {
|
|
59
|
-
title,
|
|
60
|
-
rowsData,
|
|
61
|
-
children
|
|
62
|
-
} = _ref;
|
|
63
|
-
const [IsItemOpen, setIsItemOpen] = (0, _react.useState)(false);
|
|
64
|
-
const handleToggle = () => {
|
|
65
|
-
setIsItemOpen(!IsItemOpen);
|
|
66
|
-
};
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(_Popup.AccordionItemMainContainer, {
|
|
68
|
-
id: "AccordionItemMainContainer",
|
|
69
|
-
borderColor: borderColor
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.AccordionItemContainer, {
|
|
71
|
-
id: "AccordionItemContainer",
|
|
72
|
-
onClick: handleToggle,
|
|
73
|
-
style: {
|
|
74
|
-
cursor: 'pointer'
|
|
75
|
-
}
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.AccordionItemIconContainer, {
|
|
77
|
-
id: "AccordionItemIconContainer"
|
|
78
|
-
}, IsItemOpen ? /*#__PURE__*/_react.default.createElement(_MenuItemOpenIcon.MenuItemOpenIcon, null) : /*#__PURE__*/_react.default.createElement(_MenuItemClosedIcon.MenuItemClosedIcon, null)), /*#__PURE__*/_react.default.createElement(_Popup.AccordionItemTitle, {
|
|
79
|
-
id: "AccordionItemTitle",
|
|
80
|
-
subtitleTextColor: subtitleTextColor
|
|
81
|
-
}, title)), IsItemOpen && /*#__PURE__*/_react.default.createElement(_Popup.AccordionContentContainer, {
|
|
82
|
-
id: "AccordionContentContainer"
|
|
83
|
-
}, title === 'Campaigns' ? children === null || children === void 0 ? void 0 : (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.children[0] : title === 'Products' ? children === null || children === void 0 ? void 0 : (_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2.children[1] : '', /*#__PURE__*/_react.default.createElement(_PopupContent.default, {
|
|
84
|
-
id: "PopupContent",
|
|
85
|
-
width: "100%",
|
|
86
|
-
height: "100%",
|
|
87
|
-
rowsData: rowsData,
|
|
88
|
-
borderColor: borderColor,
|
|
89
|
-
onClick: () => {},
|
|
90
|
-
onChange: onChange
|
|
91
|
-
})));
|
|
92
|
-
};
|
|
93
|
-
const Accordion = _ref2 => {
|
|
94
|
-
let {
|
|
95
|
-
items,
|
|
96
|
-
children
|
|
97
|
-
} = _ref2;
|
|
98
|
-
return /*#__PURE__*/_react.default.createElement(_Popup.AccordionContainer, {
|
|
99
|
-
id: "AccordionContainer",
|
|
100
|
-
maxHeight: divHeight ? (divHeight - 190).toString().concat('', 'px') : null
|
|
101
|
-
}, items.map((item, index) => {
|
|
102
|
-
var _item$rowsData;
|
|
103
|
-
return /*#__PURE__*/_react.default.createElement(AccordionItem, {
|
|
104
|
-
key: index,
|
|
105
|
-
title: item.title,
|
|
106
|
-
rowsData: ((_item$rowsData = item.rowsData) === null || _item$rowsData === void 0 ? void 0 : _item$rowsData.length) > 0 ? item.rowsData : []
|
|
107
|
-
}, children);
|
|
108
|
-
}));
|
|
109
|
-
};
|
|
110
|
-
return /*#__PURE__*/_react.default.createElement(_Popup.MainContainer, {
|
|
111
|
-
id: "MainContainer"
|
|
112
|
-
}, IsPopupOpen && /*#__PURE__*/_react.default.createElement(_reactHookForm.FormProvider, useFormMethods, /*#__PURE__*/_react.default.createElement("form", {
|
|
113
|
-
onSubmit: useFormMethods.handleSubmit(submittedValues => console.log('submittedValues', submittedValues))
|
|
114
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.ModalOverlay, {
|
|
115
|
-
id: "ModalOverlay",
|
|
116
|
-
className: "modal-overlay",
|
|
117
|
-
onClick: e => closePopup(e)
|
|
118
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.ModalContent, {
|
|
119
|
-
id: "ModalContent",
|
|
120
|
-
ref: divRef,
|
|
121
|
-
className: "modal-content",
|
|
122
|
-
height: height,
|
|
123
|
-
width: width,
|
|
124
|
-
onClick: e => e.stopPropagation()
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.TitleContainer, {
|
|
126
|
-
id: "TitleContainer"
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.Title, null, title), /*#__PURE__*/_react.default.createElement(_Popup.Close, {
|
|
128
|
-
id: "Close",
|
|
129
|
-
className: "close",
|
|
130
|
-
onClick: e => closePopup(e)
|
|
131
|
-
}, "\xD7")), /*#__PURE__*/_react.default.createElement(Accordion, {
|
|
132
|
-
items: popupItemsData
|
|
133
|
-
}, children), /*#__PURE__*/_react.default.createElement(_Popup.ButtonsContainer, {
|
|
134
|
-
id: "ButtonsContainer"
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement(_Popup.InputCommit, {
|
|
136
|
-
value: "Save",
|
|
137
|
-
type: "submit",
|
|
138
|
-
style: {
|
|
139
|
-
backgroundColor: '#BCC6DA',
|
|
140
|
-
color: 'white',
|
|
141
|
-
transition: 'background-color 0.3s, color 0.3s'
|
|
142
|
-
},
|
|
143
|
-
borderColor: borderColor
|
|
144
|
-
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
145
|
-
text: "Save",
|
|
146
|
-
type: "primary",
|
|
147
|
-
size: "medium",
|
|
148
|
-
isSubmitButton: true
|
|
149
|
-
}), /*#__PURE__*/_react.default.createElement(_SagButton.default, {
|
|
150
|
-
textColor: "#212121",
|
|
151
|
-
backgroundColor: "#ffffff",
|
|
152
|
-
borderColor: borderColor,
|
|
153
|
-
onClickColor: "#B1B1B1",
|
|
154
|
-
radius: "8px",
|
|
155
|
-
text: "Cancel",
|
|
156
|
-
height: "40px",
|
|
157
|
-
width: "100px",
|
|
158
|
-
fontSize: "14px",
|
|
159
|
-
fontWeight: "500",
|
|
160
|
-
disabled: false,
|
|
161
|
-
onClick: e => closePopup(e)
|
|
162
|
-
})))))));
|
|
163
|
-
};
|
|
164
|
-
var _default = exports.default = Popup;
|
|
165
|
-
Popup.defaultProps = {
|
|
166
|
-
isPopupOpen: true,
|
|
167
|
-
width: '800px',
|
|
168
|
-
height: '600px',
|
|
169
|
-
onSaveClick: () => {},
|
|
170
|
-
onCancelClick: () => {},
|
|
171
|
-
onOverlayClick: () => {}
|
|
172
|
-
};
|