sag_components 2.0.0-beta27 → 2.0.0-beta29
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/App.js +56 -0
- package/dist/App.test.js +10 -0
- package/dist/Button.test.js +162 -0
- package/dist/LinkButton.test.js +150 -0
- package/dist/SingleBar.test.js +120 -0
- package/dist/index.esm.js +2208 -544
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2207 -544
- package/dist/index.js.map +1 -1
- package/dist/setupTests.js +15 -0
- package/dist/stories/AttachedFile.stories.js +37 -0
- package/dist/stories/AutocompleteField.stories.js +25 -0
- package/dist/stories/BannerEventBox.stories.js +59 -0
- package/dist/stories/BannerEventBoxList.stories.js +39 -0
- package/dist/stories/BannerEventBoxTest.stories.js +27 -0
- package/dist/stories/BannersDropdown.stories.js +64 -0
- package/dist/stories/BarChart.stories.js +306 -0
- package/dist/stories/BarChartTwoRows.stories.js +259 -0
- package/dist/stories/BarChartWithAreaChart.stories.js +134 -0
- package/dist/stories/BarChartsByWeeks.stories.js +445 -0
- package/dist/stories/Benchmark.stories.js +147 -0
- package/dist/stories/Button.stories.js +255 -0
- package/dist/stories/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/CampaignTool/Card.stories.js +92 -0
- package/dist/stories/CampaignTool/MultipleCard.stories.js +33 -0
- package/dist/stories/CampaignTool/PageFilterBar.stories.js +28 -0
- package/dist/stories/CampaignTool/Popup.stories.js +697 -0
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/CampaignTool/Table.stories.js +104 -0
- package/dist/stories/CheckBox.stories.js +107 -0
- package/dist/stories/CheckBoxButton.stories.js +150 -0
- package/dist/stories/CollapseData.stories.js +125 -0
- package/dist/stories/CollapseHeader.stories.js +123 -0
- package/dist/stories/CollapseMenuItem.stories.js +134 -0
- package/dist/stories/Datepicker.stories.js +85 -0
- package/dist/stories/DialogOverlay.stories.js +39 -0
- package/dist/stories/DoublePanelDataRow.stories.js +116 -0
- package/dist/stories/DownloadProgress.stories.js +109 -0
- package/dist/stories/Dropdown.stories.js +318 -0
- package/dist/stories/DropdownMulti.stories.js +220 -0
- package/dist/stories/DropdownNew.stories.js +407 -0
- package/dist/stories/EventDetailsCard.stories.js +122 -0
- package/dist/stories/EventList.stories.js +84 -0
- package/dist/stories/EventListItem.stories.js +65 -0
- package/dist/stories/FilterButton.stories.js +90 -0
- package/dist/stories/FilterContainer.stories.js +22 -0
- package/dist/stories/FilterPanel.stories.js +967 -0
- package/dist/stories/FormattedValue.stories.js +183 -0
- package/dist/stories/Heatmap.stories.js +118 -0
- package/dist/stories/IconButton.stories.js +126 -0
- package/dist/stories/Input.stories.js +422 -0
- package/dist/stories/InputOld.stories.js +103 -0
- package/dist/stories/KpiFilter.stories.js +401 -0
- package/dist/stories/LinkButton.stories.js +171 -0
- package/dist/stories/LinnerDataBox.stories.js +79 -0
- package/dist/stories/ListBox.stories.js +132 -0
- package/dist/stories/MarketShareDescription.stories.js +196 -0
- package/dist/stories/MonthPicker.stories.js +142 -0
- package/dist/stories/NewInput.stories.js +37 -0
- package/dist/stories/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/OneColumnContainer.stories.js +119 -0
- package/dist/stories/PerformanceAnalytics.stories.js +263 -0
- package/dist/stories/PerformanceAnalyticsLegend.stories.js +99 -0
- package/dist/stories/PerformanceAnalyticsOneColumn.stories.js +236 -0
- package/dist/stories/PerformanceAnalyticsTotals.stories.js +109 -0
- package/dist/stories/PieChart.stories.js +215 -0
- package/dist/stories/PopupCharts.stories.js +1191 -0
- package/dist/stories/ProductsVariety.stories.js +90 -0
- package/dist/stories/ProgressBar.stories.js +71 -0
- package/dist/stories/QuarterPicker.stories.js +142 -0
- package/dist/stories/QuickFilter.stories.js +275 -0
- package/dist/stories/RangePicker.stories.js +140 -0
- package/dist/stories/ReportTable.stories.js +255 -0
- package/dist/stories/SagButton.stories.js +118 -0
- package/dist/stories/SagIconButton.stories.js +122 -0
- package/dist/stories/SagInput.stories.js +69 -0
- package/dist/stories/SalesAndROI.stories.js +166 -0
- package/dist/stories/SalesSplit.stories.js +122 -0
- package/dist/stories/SearchInput.stories.js +44 -0
- package/dist/stories/SegmentedButton.stories.js +181 -0
- package/dist/stories/Select.stories.js +201 -0
- package/dist/stories/SingleBarLineCharts.stories.js +310 -0
- package/dist/stories/TabMenu.stories.js +224 -0
- package/dist/stories/TextField.stories.js +160 -0
- package/dist/stories/TitleDescription.stories.js +116 -0
- package/dist/stories/TopToggleList.stories.js +52 -0
- package/dist/stories/TotalBenchmark.stories.js +135 -0
- package/dist/stories/TotalBenchmarkAreachart.stories.js +341 -0
- package/dist/stories/TotalBenchmarkArrows.stories.js +170 -0
- package/dist/stories/TotalBenchmarkBarchart.stories.js +183 -0
- package/dist/stories/TotalDoughnutChart.stories.js +301 -0
- package/dist/stories/TotalHorizontalCharts.stories.js +291 -0
- package/dist/stories/TwoBarCharts.stories.js +185 -0
- package/dist/stories/components/AttachedFile.js +60 -0
- package/dist/stories/components/AttachedFile.style.js +48 -0
- package/dist/stories/components/AutocompleteField.js +40 -0
- package/dist/stories/components/AutocompleteField.style.js +55 -0
- package/dist/stories/components/BannerEventBox.js +97 -0
- package/dist/stories/components/BannerEventBox.style.js +78 -0
- package/dist/stories/components/BannerEventBoxList.js +153 -0
- package/dist/stories/components/BannerEventBoxList.style.js +189 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/BannersDropdown.js +119 -0
- package/dist/stories/components/BannersDropdown.style.js +99 -0
- package/dist/stories/components/BarChart.js +258 -0
- package/dist/stories/components/BarChart.style.js +60 -0
- package/dist/stories/components/BarChartTwoRows.js +220 -0
- package/dist/stories/components/BarChartTwoRows.style.js +79 -0
- package/dist/stories/components/BarChartWithAreaChart.js +268 -0
- package/dist/stories/components/BarChartWithAreaChart.style.js +67 -0
- package/dist/stories/components/BarChartsByWeeks.js +306 -0
- package/dist/stories/components/BarChartsByWeeks.style.js +96 -0
- package/dist/stories/components/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark.style.js +61 -0
- package/dist/stories/components/Button.js +255 -0
- package/dist/stories/components/Button.style.js +90 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +48 -0
- package/dist/stories/components/CampaignTool/Card.js +72 -0
- package/dist/stories/components/CampaignTool/Card.style.js +65 -0
- package/dist/stories/components/CampaignTool/FormInput.js +41 -0
- package/dist/stories/components/CampaignTool/FormSelect.js +42 -0
- package/dist/stories/components/CampaignTool/MultipleCard.js +26 -0
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +13 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.js +23 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +22 -0
- package/dist/stories/components/CampaignTool/Popup.js +172 -0
- package/dist/stories/components/CampaignTool/Popup.style.js +122 -0
- package/dist/stories/components/CampaignTool/PopupContent.js +111 -0
- package/dist/stories/components/CampaignTool/PopupContent.style.js +74 -0
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +168 -0
- package/dist/stories/components/CampaignTool/Table.js +195 -0
- package/dist/stories/components/CampaignTool/Table.style.js +86 -0
- package/dist/stories/components/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox.style.js +36 -0
- package/dist/stories/components/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton.style.js +39 -0
- package/dist/stories/components/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor.style.js +13 -0
- package/dist/stories/components/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData.style.js +127 -0
- package/dist/stories/components/CollapseHeader.js +255 -0
- package/dist/stories/components/CollapseHeader.style.js +200 -0
- package/dist/stories/components/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem.style.js +61 -0
- package/dist/stories/components/CommonFunctions.js +99 -0
- package/dist/stories/components/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker.style.js +19 -0
- package/dist/stories/components/DialogOverlay.js +44 -0
- package/dist/stories/components/DialogOverlay.style.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.style.js +66 -0
- package/dist/stories/components/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress.style.js +51 -0
- package/dist/stories/components/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown.style.js +17 -0
- package/dist/stories/components/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti.style.js +17 -0
- package/dist/stories/components/DropdownMultiNew.js +292 -0
- package/dist/stories/components/DropdownMultiNew.style.js +218 -0
- package/dist/stories/components/DropdownNew.js +98 -0
- package/dist/stories/components/DropdownNew.style.js +21 -0
- package/dist/stories/components/DropdownSingleNew.js +256 -0
- package/dist/stories/components/DropdownSingleNew.style.js +189 -0
- package/dist/stories/components/EventDetailsCard.js +142 -0
- package/dist/stories/components/EventDetailsCard.style.js +62 -0
- package/dist/stories/components/EventList.js +61 -0
- package/dist/stories/components/EventList.style.js +38 -0
- package/dist/stories/components/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem.style.js +47 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer.style.js +30 -0
- package/dist/stories/components/FilterPanel.js +614 -0
- package/dist/stories/components/FilterPanel.style.js +89 -0
- package/dist/stories/components/FormattedValue.js +69 -0
- package/dist/stories/components/FormattedValue.style.js +91 -0
- package/dist/stories/components/Heatmap.js +184 -0
- package/dist/stories/components/Heatmap.style.js +151 -0
- package/dist/stories/components/IconButton.js +147 -0
- package/dist/stories/components/IconButton.style.js +64 -0
- package/dist/stories/components/Input.js +186 -0
- package/dist/stories/components/Input.style.js +132 -0
- package/dist/stories/components/InputOld.js +93 -0
- package/dist/stories/components/InputOld.style.js +71 -0
- package/dist/stories/components/KpiFilter.js +345 -0
- package/dist/stories/components/KpiFilter.style.js +132 -0
- package/dist/stories/components/LinkButton.js +225 -0
- package/dist/stories/components/LinkButton.style.js +53 -0
- package/dist/stories/components/LinnerDataBox.js +54 -0
- package/dist/stories/components/LinnerDataBox.style.js +68 -0
- package/dist/stories/components/ListBox.js +82 -0
- package/dist/stories/components/ListBox.style.js +48 -0
- package/dist/stories/components/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription.style.js +215 -0
- package/dist/stories/components/Modal.js +21 -0
- package/dist/stories/components/Modal.style.js +63 -0
- package/dist/stories/components/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/ModalTotalCost.js +139 -0
- package/dist/stories/components/MonthPicker.js +169 -0
- package/dist/stories/components/MonthPicker.style.js +105 -0
- package/dist/stories/components/MonthPopupPicker.js +206 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +39 -0
- package/dist/stories/components/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer.style.js +107 -0
- package/dist/stories/components/PerformanceAnalytics.js +447 -0
- package/dist/stories/components/PerformanceAnalytics.style.js +144 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +59 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +63 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +327 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +116 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +89 -0
- package/dist/stories/components/PieChart.js +154 -0
- package/dist/stories/components/PieChart.style.js +154 -0
- package/dist/stories/components/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts.style.js +108 -0
- package/dist/stories/components/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety.style.js +86 -0
- package/dist/stories/components/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar.style.js +24 -0
- package/dist/stories/components/QuarterPicker.js +168 -0
- package/dist/stories/components/QuarterPicker.style.js +104 -0
- package/dist/stories/components/QuarterPopupPicker.js +186 -0
- package/dist/stories/components/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter.style.js +21 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +194 -0
- package/dist/stories/components/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +139 -0
- package/dist/stories/components/RangeDatePicker.js +231 -0
- package/dist/stories/components/RangePicker.js +179 -0
- package/dist/stories/components/RangePicker.style.js +109 -0
- package/dist/stories/components/ReportTable.js +420 -0
- package/dist/stories/components/ReportTable.style.js +306 -0
- package/dist/stories/components/SagButton.js +68 -0
- package/dist/stories/components/SagButton.style.js +47 -0
- package/dist/stories/components/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton.style.js +30 -0
- package/dist/stories/components/SagInput.js +53 -0
- package/dist/stories/components/SagInput.style.js +41 -0
- package/dist/stories/components/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI.style.js +111 -0
- package/dist/stories/components/SalesSplit.js +153 -0
- package/dist/stories/components/SalesSplit.style.js +150 -0
- package/dist/stories/components/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput.style.js +37 -0
- package/dist/stories/components/SegmentedButton.js +124 -0
- package/dist/stories/components/SegmentedButton.style.js +100 -0
- package/dist/stories/components/Select.js +137 -0
- package/dist/stories/components/Select.style.js +104 -0
- package/dist/stories/components/SingleBarLineCharts.js +415 -0
- package/dist/stories/components/SingleBarLineCharts.style.js +101 -0
- package/dist/stories/components/TabMenu.js +241 -0
- package/dist/stories/components/TabMenu.style.js +120 -0
- package/dist/stories/components/TextField.js +209 -0
- package/dist/stories/components/TextField.style.js +18 -0
- package/dist/stories/components/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription.style.js +222 -0
- package/dist/stories/components/Tooltip.js +44 -0
- package/dist/stories/components/Tooltip.style.js +103 -0
- package/dist/stories/components/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList.style.js +51 -0
- package/dist/stories/components/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark.style.js +79 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +171 -0
- package/dist/stories/components/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +108 -0
- package/dist/stories/components/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +77 -0
- package/dist/stories/components/TotalDoughnutChart.js +187 -0
- package/dist/stories/components/TotalDoughnutChart.style.js +178 -0
- package/dist/stories/components/TotalHorizontalCharts.js +236 -0
- package/dist/stories/components/TotalHorizontalCharts.style.js +93 -0
- package/dist/stories/components/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip.style.js +105 -0
- package/dist/stories/components/TwoBarCharts.js +211 -0
- package/dist/stories/components/TwoBarCharts.style.js +60 -0
- package/dist/stories/components/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowSelectIcon.js +28 -0
- package/dist/stories/components/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/components/icons/AttachedIcon.js +27 -0
- package/dist/stories/components/icons/BellIcon.js +27 -0
- package/dist/stories/components/icons/ButtonArrowRight.js +27 -0
- package/dist/stories/components/icons/Calendar.js +20 -0
- package/dist/stories/components/icons/CalendarIcon.js +27 -0
- package/dist/stories/components/icons/CalendarInOpen.js +26 -0
- package/dist/stories/components/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/components/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/components/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/components/icons/ChevronLeftIcon.js +29 -0
- package/dist/stories/components/icons/ChevronRightIcon.js +29 -0
- package/dist/stories/components/icons/ClockIcon.js +27 -0
- package/dist/stories/components/icons/CloseIcon.js +27 -0
- package/dist/stories/components/icons/CloseXIcon.js +27 -0
- package/dist/stories/components/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/components/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/components/icons/DocumentIcon.js +48 -0
- package/dist/stories/components/icons/DownloadIcon.js +27 -0
- package/dist/stories/components/icons/Duplicate.js +28 -0
- package/dist/stories/components/icons/ErrorIcon.js +28 -0
- package/dist/stories/components/icons/ExitIcon.js +28 -0
- package/dist/stories/components/icons/ExportIcon.js +28 -0
- package/dist/stories/components/icons/EyeIcon.js +28 -0
- package/dist/stories/components/icons/FileIcon.js +27 -0
- package/dist/stories/components/icons/FilterIcon.js +36 -0
- package/dist/stories/components/icons/FlyIcon.js +28 -0
- package/dist/stories/components/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/components/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/components/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/components/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/components/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/components/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/components/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/components/icons/HannafordIcon.js +5017 -0
- package/dist/stories/components/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/components/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/components/icons/InfoIcon.js +28 -0
- package/dist/stories/components/icons/LampIcon.js +30 -0
- package/dist/stories/components/icons/LegendLineIcon.js +29 -0
- package/dist/stories/components/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/components/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/components/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/components/icons/OptionsIcon.js +27 -0
- package/dist/stories/components/icons/ReselectIcon.js +27 -0
- package/dist/stories/components/icons/SearchIcon.js +27 -0
- package/dist/stories/components/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/components/icons/ShoutIcon.js +27 -0
- package/dist/stories/components/icons/Sort.js +13 -0
- package/dist/stories/components/icons/SortIcon.js +35 -0
- package/dist/stories/components/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/components/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/components/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/components/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/components/icons/SucceededIcon.js +28 -0
- package/dist/stories/components/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/dist/stories/components/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/ComponentFactory.js +65 -0
- package/dist/stories/utils/IconsHandler.js +150 -0
- package/dist/stories/utils/IconsHandler.style.js +16 -0
- package/dist/stories/utils/regex/Email.regex.js +7 -0
- package/dist/stories/utils/regex/LatinWithSpaces.regex.js +7 -0
- package/dist/stories/utils/regex/OnlyEnglishLetters.regex.js +7 -0
- package/dist/stories/utils/regex/Phone.regex.js +7 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.data.d.ts +23 -0
- package/dist/vite.config.js +15 -0
- package/package.json +4 -4
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.StyledInput = exports.OptionsSubContainer = exports.OptionsContainer = exports.OptionItem = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconContainer = exports.ErrorMessage = exports.DropdownWrapper = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
/* eslint-disable no-nested-ternary */
|
|
10
|
+
|
|
11
|
+
const scrollableStyles = `
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar {
|
|
15
|
+
width: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar-track {
|
|
19
|
+
background: #E8E8E8;
|
|
20
|
+
border-radius: 5px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar-thumb {
|
|
24
|
+
background: #D0D0D0;
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
const DropdownWrapper = exports.DropdownWrapper = _styledComponents.default.div`
|
|
29
|
+
position: relative;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-content: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
width: ${props => props.width || '300px'};
|
|
36
|
+
font-family: "Poppins", sans-serif;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
border-radius: 10px;
|
|
40
|
+
`;
|
|
41
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
42
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
padding-inline-end: 5px;
|
|
45
|
+
padding-inline-start: 5px;
|
|
46
|
+
margin-right: 10px;
|
|
47
|
+
z-index: 2;
|
|
48
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
49
|
+
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
|
|
52
|
+
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
53
|
+
font-family: Poppins;
|
|
54
|
+
transform: translateY(-50%);
|
|
55
|
+
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
gap: 4px;
|
|
60
|
+
&:hover {
|
|
61
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
flex-wrap: nowrap;
|
|
68
|
+
justify-content: flex-start;
|
|
69
|
+
align-content: center;
|
|
70
|
+
white-space: pre-wrap;
|
|
71
|
+
align-items: center;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
padding: 0 5px 0 0;
|
|
74
|
+
margin-bottom: 8px;
|
|
75
|
+
gap: 4px;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
81
|
+
font-family: "Poppins", sans-serif;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
border-radius: 12px;
|
|
85
|
+
outline: none;
|
|
86
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
87
|
+
&:hover {
|
|
88
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
89
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
90
|
+
}
|
|
91
|
+
&:focus {
|
|
92
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
`;
|
|
96
|
+
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
flex-wrap: nowrap;
|
|
100
|
+
align-content: center;
|
|
101
|
+
align-items: flex-start;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
white-space: pre-wrap;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
padding: 10px 4px 10px 10px;
|
|
106
|
+
width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
min-height: 53px;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
background-color: transparent;
|
|
111
|
+
border-radius: 12px;
|
|
112
|
+
outline: none;
|
|
113
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
114
|
+
`;
|
|
115
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
116
|
+
width: calc(100% - 10px);
|
|
117
|
+
height: 20px;
|
|
118
|
+
font-family: Poppins;
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
outline: none;
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
124
|
+
border: none;
|
|
125
|
+
`;
|
|
126
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
127
|
+
margin: 0;
|
|
128
|
+
top: 100%;
|
|
129
|
+
left: 0;
|
|
130
|
+
z-index: 100;
|
|
131
|
+
width: 100%;
|
|
132
|
+
background-color: #fff;
|
|
133
|
+
display: ${props => {
|
|
134
|
+
var _props$filteredoption;
|
|
135
|
+
return props.showoptions && ((_props$filteredoption = props.filteredoptions) === null || _props$filteredoption === void 0 ? void 0 : _props$filteredoption.length) > 0 ? 'block' : 'none';
|
|
136
|
+
}};
|
|
137
|
+
`;
|
|
138
|
+
const OptionsSubContainer = exports.OptionsSubContainer = _styledComponents.default.ul`
|
|
139
|
+
${scrollableStyles}
|
|
140
|
+
list-style: none;
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
margin: 0;
|
|
143
|
+
padding: 8px 12px;
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 100%;
|
|
146
|
+
left: 0;
|
|
147
|
+
z-index: 101;
|
|
148
|
+
width: calc(100% - 23px);
|
|
149
|
+
font-family: Poppins;
|
|
150
|
+
border-radius: 4px;
|
|
151
|
+
background-color: white;
|
|
152
|
+
display: ${props => {
|
|
153
|
+
var _props$filteredoption2;
|
|
154
|
+
return props.showoptions && ((_props$filteredoption2 = props.filteredoptions) === null || _props$filteredoption2 === void 0 ? void 0 : _props$filteredoption2.length) > 0 ? 'block' : 'none';
|
|
155
|
+
}};
|
|
156
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
157
|
+
max-height: 400px;
|
|
158
|
+
overflow: auto;
|
|
159
|
+
`;
|
|
160
|
+
const OptionItem = exports.OptionItem = _styledComponents.default.li`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
justify-content: flex-start;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
padding: 10px;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
color: #212121;
|
|
169
|
+
font-family: Poppins;
|
|
170
|
+
font-size: 14px;
|
|
171
|
+
font-style: normal;
|
|
172
|
+
font-weight: 400;
|
|
173
|
+
transition: background-color 0.3s;
|
|
174
|
+
background-color: ${props => props.selected ? '#C7E4FF' : '#fff'};
|
|
175
|
+
|
|
176
|
+
&:hover {
|
|
177
|
+
background-color: #EDF6FF;
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
180
|
+
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
color: red;
|
|
183
|
+
margin-top: 5px;
|
|
184
|
+
`;
|
|
185
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
186
|
+
display: flex;
|
|
187
|
+
padding: 2px;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`;
|
|
@@ -0,0 +1,142 @@
|
|
|
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.EventDetailsCard = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _EventDetailsCard = require("./EventDetailsCard.style");
|
|
10
|
+
var _FoodLionNewIcon = require("./icons/FoodLionNewIcon");
|
|
11
|
+
var _TheGiantCompanyNewIcon = require("./icons/TheGiantCompanyNewIcon");
|
|
12
|
+
var _StopAndShopNewIcon = require("./icons/StopAndShopNewIcon");
|
|
13
|
+
var _GiantFoodIcon_new = require("./icons/GiantFoodIcon_new");
|
|
14
|
+
var _HannafordIcon_new = require("./icons/HannafordIcon_new");
|
|
15
|
+
var _BannersDropdown = require("./BannersDropdown");
|
|
16
|
+
var _LinkButton = require("./LinkButton");
|
|
17
|
+
const EventDetailsCard = props => {
|
|
18
|
+
const {
|
|
19
|
+
title,
|
|
20
|
+
width,
|
|
21
|
+
height,
|
|
22
|
+
className,
|
|
23
|
+
displayBannersDropdown,
|
|
24
|
+
banners,
|
|
25
|
+
data,
|
|
26
|
+
count,
|
|
27
|
+
buttonText,
|
|
28
|
+
buttonTextColor = "#229E38",
|
|
29
|
+
onViewButtonClick,
|
|
30
|
+
onBannersDropdownClick,
|
|
31
|
+
disableViewDetailsButton
|
|
32
|
+
} = props;
|
|
33
|
+
const [processedBanners, setProcessedBanners] = (0, _react.useState)([]);
|
|
34
|
+
(0, _react.useEffect)(() => {
|
|
35
|
+
const formatedBanners = banners.map(banner => {
|
|
36
|
+
if (banner === 'StopAndShop') {
|
|
37
|
+
return {
|
|
38
|
+
icon: /*#__PURE__*/_react.default.createElement(_StopAndShopNewIcon.StopAndShopNewIcon, null),
|
|
39
|
+
name: 'Stop&Shop',
|
|
40
|
+
checked: true
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (banner === 'FoodLion') {
|
|
44
|
+
return {
|
|
45
|
+
icon: /*#__PURE__*/_react.default.createElement(_FoodLionNewIcon.FoodLionNewIcon, null),
|
|
46
|
+
name: 'Food lion',
|
|
47
|
+
checked: false
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
if (banner === 'GiantFood') {
|
|
51
|
+
return {
|
|
52
|
+
icon: /*#__PURE__*/_react.default.createElement(_GiantFoodIcon_new.GiantFoodNewIcon, null),
|
|
53
|
+
name: 'Giant Food',
|
|
54
|
+
checked: true
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (banner === 'TheGiantCompany') {
|
|
58
|
+
return {
|
|
59
|
+
icon: /*#__PURE__*/_react.default.createElement(_TheGiantCompanyNewIcon.TheGiantCompanyIcon, null),
|
|
60
|
+
name: 'The Giant Company',
|
|
61
|
+
checked: true
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (banner === 'Hannaford') {
|
|
65
|
+
return {
|
|
66
|
+
icon: /*#__PURE__*/_react.default.createElement(_HannafordIcon_new.HannafordNewIcon, null),
|
|
67
|
+
name: 'Hannaford',
|
|
68
|
+
checked: false
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
});
|
|
73
|
+
setProcessedBanners(formatedBanners);
|
|
74
|
+
}, []);
|
|
75
|
+
const viewButtonClick = e => {
|
|
76
|
+
onViewButtonClick(e);
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainContainer, {
|
|
79
|
+
className: className,
|
|
80
|
+
height: height,
|
|
81
|
+
width: width
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.TitleWrapper, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.CardTitle, null, title), displayBannersDropdown && /*#__PURE__*/_react.default.createElement(_BannersDropdown.BannersDropdown, {
|
|
83
|
+
banners: [{
|
|
84
|
+
checked: true,
|
|
85
|
+
name: 'StopAndShop'
|
|
86
|
+
}, {
|
|
87
|
+
checked: true,
|
|
88
|
+
name: 'FoodLion'
|
|
89
|
+
}, {
|
|
90
|
+
checked: true,
|
|
91
|
+
name: 'GiantFood'
|
|
92
|
+
}, {
|
|
93
|
+
checked: true,
|
|
94
|
+
name: 'TheGiantCompany'
|
|
95
|
+
}, {
|
|
96
|
+
checked: true,
|
|
97
|
+
name: 'Hannaford'
|
|
98
|
+
}],
|
|
99
|
+
onClick: banners => {
|
|
100
|
+
onBannersDropdownClick({
|
|
101
|
+
banners
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
})), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainCard, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.List, null, count > 0 && /*#__PURE__*/_react.default.createElement("li", null, count, ' ', "products in variety"), data.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
|
|
105
|
+
key: index
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, item.label, ":"), ' ', item.value))), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.LinkButtonContainer, null, /*#__PURE__*/_react.default.createElement(_LinkButton.LinkButton, {
|
|
107
|
+
text: buttonText,
|
|
108
|
+
rightIcon: "select",
|
|
109
|
+
size: "small",
|
|
110
|
+
type: "primary",
|
|
111
|
+
textColor: buttonTextColor,
|
|
112
|
+
disabled: disableViewDetailsButton,
|
|
113
|
+
onClick: e => {
|
|
114
|
+
viewButtonClick(e);
|
|
115
|
+
}
|
|
116
|
+
}))));
|
|
117
|
+
};
|
|
118
|
+
exports.EventDetailsCard = EventDetailsCard;
|
|
119
|
+
var _default = exports.default = EventDetailsCard;
|
|
120
|
+
EventDetailsCard.defaultProps = {
|
|
121
|
+
title: 'Dreft Portable Pretreater Pen',
|
|
122
|
+
width: 'auto',
|
|
123
|
+
height: 'auto',
|
|
124
|
+
className: '',
|
|
125
|
+
displayBannersDropdown: false,
|
|
126
|
+
banners: ['StopAndShop', 'FoodLion', 'GiantFood', 'TheGiantCompany', 'Hannaford'],
|
|
127
|
+
data: [{
|
|
128
|
+
label: 'Incremental sales',
|
|
129
|
+
value: '$25K'
|
|
130
|
+
}, {
|
|
131
|
+
label: 'Package cost',
|
|
132
|
+
value: '$97K'
|
|
133
|
+
}, {
|
|
134
|
+
label: 'ROI',
|
|
135
|
+
value: 'x3.5'
|
|
136
|
+
}],
|
|
137
|
+
count: 0,
|
|
138
|
+
buttonText: 'Select',
|
|
139
|
+
onViewButtonClick: () => {},
|
|
140
|
+
onBannersDropdownClick: () => {},
|
|
141
|
+
disableViewDetailsButton: false
|
|
142
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TitleWrapper = exports.MainContainer = exports.MainCard = exports.List = exports.LinkButtonContainer = exports.CardTitle = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
background-color: white;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
border: 1px solid #f2f2f2;
|
|
19
|
+
`;
|
|
20
|
+
const TitleWrapper = exports.TitleWrapper = _styledComponents.default.div`
|
|
21
|
+
padding: 22px 20px;
|
|
22
|
+
border-radius: 8px 8px 0 0;
|
|
23
|
+
background-color: #f7f8fa;
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 10px;
|
|
26
|
+
align-items: baseline;
|
|
27
|
+
`;
|
|
28
|
+
const CardTitle = exports.CardTitle = _styledComponents.default.span`
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
`;
|
|
32
|
+
const MainCard = exports.MainCard = _styledComponents.default.div`
|
|
33
|
+
padding: 20px;
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
|
|
38
|
+
> #ButtonWrapper {
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
a {
|
|
41
|
+
padding: 6px 12px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const List = exports.List = _styledComponents.default.ul`
|
|
46
|
+
list-style-type: none;
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0 0 auto;
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
li {
|
|
51
|
+
line-height: 1.2;
|
|
52
|
+
&:not(:last-child) {
|
|
53
|
+
margin-bottom: 16px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
span {
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
const LinkButtonContainer = exports.LinkButtonContainer = _styledComponents.default.div`
|
|
61
|
+
margin-left: auto;
|
|
62
|
+
`;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.EventList = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _EventListItem = require("./EventListItem");
|
|
10
|
+
var _EventList = require("./EventList.style");
|
|
11
|
+
/* EventList */
|
|
12
|
+
const EventList = props => {
|
|
13
|
+
const {
|
|
14
|
+
eventsData,
|
|
15
|
+
selectTextColor,
|
|
16
|
+
width = '100%',
|
|
17
|
+
height = '100%',
|
|
18
|
+
itemHeight = '160px',
|
|
19
|
+
onSelectClick
|
|
20
|
+
} = props;
|
|
21
|
+
const displayEventsItems = () => {
|
|
22
|
+
if (eventsData && eventsData.length > 0) {
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_EventList.EventItemsContainer, {
|
|
24
|
+
id: "EventItemsContainer"
|
|
25
|
+
}, eventsData === null || eventsData === void 0 ? void 0 : eventsData.map(item => /*#__PURE__*/_react.default.createElement(_EventList.OneEventItemContainer, {
|
|
26
|
+
id: "OneEventItemContainer"
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_EventListItem.EventListItem, {
|
|
28
|
+
height: itemHeight,
|
|
29
|
+
width: width / 3,
|
|
30
|
+
eventName: item.eventName,
|
|
31
|
+
period: item.period,
|
|
32
|
+
selectTextColor: selectTextColor,
|
|
33
|
+
onClick: event => {
|
|
34
|
+
onSelectClick({
|
|
35
|
+
eventName: event === null || event === void 0 ? void 0 : event.eventName
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}))));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//= ======================================== MAIN RETURN ====================================
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_EventList.MainContainer, {
|
|
44
|
+
id: "MainContainer",
|
|
45
|
+
height: height,
|
|
46
|
+
width: width
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_EventList.PanelContainer, {
|
|
48
|
+
id: "PanelContainer"
|
|
49
|
+
}, displayEventsItems()));
|
|
50
|
+
//= ======================================== MAIN RETURN END====================================
|
|
51
|
+
};
|
|
52
|
+
exports.EventList = EventList;
|
|
53
|
+
var _default = exports.default = EventList;
|
|
54
|
+
EventList.defaultProps = {
|
|
55
|
+
eventsData: [],
|
|
56
|
+
selectTextColor: '#229E38',
|
|
57
|
+
width: '100%',
|
|
58
|
+
height: '100%',
|
|
59
|
+
itemHeight: '160px',
|
|
60
|
+
onSelectClick: () => {}
|
|
61
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PanelContainer = exports.OneEventItemContainer = exports.MainContainer = exports.EventItemsContainer = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
/* display: flex; */
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: "Poppins", sans-serif;
|
|
13
|
+
font-size: 1rem;
|
|
14
|
+
border-radius: 12px;
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
`;
|
|
18
|
+
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
padding: 0 10px;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 19px;
|
|
25
|
+
white-space: pre-wrap;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
width: 100%;
|
|
28
|
+
`;
|
|
29
|
+
const EventItemsContainer = exports.EventItemsContainer = _styledComponents.default.div`
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: repeat(3, 1fr);
|
|
32
|
+
padding: 15px 10px 30px;
|
|
33
|
+
gap: 30px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
`;
|
|
36
|
+
const OneEventItemContainer = exports.OneEventItemContainer = _styledComponents.default.div`
|
|
37
|
+
margin: 0;
|
|
38
|
+
`;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.EventListItem = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _LinkButton = _interopRequireDefault(require("./LinkButton"));
|
|
10
|
+
var _EventListItem = require("./EventListItem.style");
|
|
11
|
+
const EventListItem = props => {
|
|
12
|
+
const {
|
|
13
|
+
eventName,
|
|
14
|
+
period,
|
|
15
|
+
width,
|
|
16
|
+
height,
|
|
17
|
+
selectTextColor,
|
|
18
|
+
onClick
|
|
19
|
+
} = props;
|
|
20
|
+
const handleOnClick = event => {
|
|
21
|
+
onClick({
|
|
22
|
+
eventName,
|
|
23
|
+
event
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_EventListItem.EventListItemControlsContainer, {
|
|
27
|
+
height: height,
|
|
28
|
+
width: width
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement(_EventListItem.Period, {
|
|
30
|
+
className: "Period"
|
|
31
|
+
}, period), /*#__PURE__*/_react.default.createElement(_EventListItem.EventName, {
|
|
32
|
+
className: "EventName"
|
|
33
|
+
}, eventName), /*#__PURE__*/_react.default.createElement(_EventListItem.SelectButtonContainer, null, /*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
34
|
+
size: "medium",
|
|
35
|
+
text: "Select",
|
|
36
|
+
rightIcon: "Select",
|
|
37
|
+
textColor: selectTextColor,
|
|
38
|
+
onClick: handleOnClick
|
|
39
|
+
})));
|
|
40
|
+
};
|
|
41
|
+
exports.EventListItem = EventListItem;
|
|
42
|
+
var _default = exports.default = EventListItem;
|
|
43
|
+
EventListItem.defaultProps = {
|
|
44
|
+
eventName: '',
|
|
45
|
+
period: 'DD.MM.YYYY - DD.MM.YYYY',
|
|
46
|
+
width: 'auto',
|
|
47
|
+
height: 'auto',
|
|
48
|
+
selectTextColor: '#212121',
|
|
49
|
+
onClick: () => {}
|
|
50
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SelectButtonContainer = exports.Period = exports.EventName = exports.EventListItemControlsContainer = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
const EventListItemControlsContainer = exports.EventListItemControlsContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
width: ${props => props.width};
|
|
13
|
+
height: ${props => props.height};
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-content: center;
|
|
17
|
+
background-color: #ffffff;
|
|
18
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
|
|
19
|
+
padding: 20px;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
`;
|
|
22
|
+
const EventName = exports.EventName = _styledComponents.default.span`
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
@media (max-width: 1536px) {
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
const Period = exports.Period = _styledComponents.default.span`
|
|
29
|
+
color: #b1b1b1;
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
margin-bottom: 8px;
|
|
32
|
+
@media (max-width: 1536px) {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const SelectButtonContainer = exports.SelectButtonContainer = _styledComponents.default.span`
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
margin-top: auto;
|
|
42
|
+
gap: 8px;
|
|
43
|
+
color: ${props => props.selectTextColor};
|
|
44
|
+
@media (max-width: 1536px) {
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.FilterButton = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _FilterButton = require("./FilterButton.style");
|
|
10
|
+
var _FilterIcon = require("./icons/FilterIcon");
|
|
11
|
+
const FilterButton = props => {
|
|
12
|
+
const {
|
|
13
|
+
color,
|
|
14
|
+
activeColor,
|
|
15
|
+
height,
|
|
16
|
+
buttonText,
|
|
17
|
+
iconWidth,
|
|
18
|
+
iconHeight,
|
|
19
|
+
disabled,
|
|
20
|
+
openState,
|
|
21
|
+
onButtonClick
|
|
22
|
+
} = props;
|
|
23
|
+
const [activeState, setActiveState] = (0, _react.useState)(openState);
|
|
24
|
+
const onClickHandler = event => {
|
|
25
|
+
onButtonClick(event);
|
|
26
|
+
setActiveState(!activeState);
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_FilterButton.FilterButtonWrapper, {
|
|
29
|
+
height: height,
|
|
30
|
+
color: activeState ? activeColor : color,
|
|
31
|
+
disabled: disabled,
|
|
32
|
+
onClick: event => {
|
|
33
|
+
onClickHandler(event);
|
|
34
|
+
}
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
|
|
36
|
+
width: iconWidth,
|
|
37
|
+
height: iconHeight,
|
|
38
|
+
color: activeState ? activeColor : color
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement(_FilterButton.SpanText, null, buttonText));
|
|
40
|
+
};
|
|
41
|
+
exports.FilterButton = FilterButton;
|
|
42
|
+
var _default = exports.default = FilterButton;
|
|
43
|
+
FilterButton.defaultProps = {
|
|
44
|
+
buttonText: 'Filter',
|
|
45
|
+
height: '40px',
|
|
46
|
+
color: '#212121',
|
|
47
|
+
activeColor: '#229E38',
|
|
48
|
+
iconHeight: 12,
|
|
49
|
+
iconWidth: 12,
|
|
50
|
+
openState: false,
|
|
51
|
+
disabled: false,
|
|
52
|
+
onButtonClick: () => {}
|
|
53
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SpanText = exports.FilterButtonWrapper = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2;
|
|
11
|
+
const FilterButtonWrapper = exports.FilterButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background: transparent;\n transition: box-shadow 0.3s ease;\n &:hover, &:focus {\n cursor: pointer;\n box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);\n }\n"])), props => props.height, props => props.color, props => props.color);
|
|
12
|
+
const SpanText = exports.SpanText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
@@ -0,0 +1,29 @@
|
|
|
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.FilterContainer = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _FilterContainer = require("./FilterContainer.style");
|
|
10
|
+
const FilterContainer = exports.FilterContainer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
11
|
+
let {
|
|
12
|
+
itemClass,
|
|
13
|
+
nodeRef,
|
|
14
|
+
...props
|
|
15
|
+
} = _ref;
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_FilterContainer.FilterDivContainer, {
|
|
17
|
+
className: itemClass,
|
|
18
|
+
style: {
|
|
19
|
+
width: '100%',
|
|
20
|
+
height: '100%'
|
|
21
|
+
}
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: props.className,
|
|
24
|
+
ref: nodeRef
|
|
25
|
+
}, props.children));
|
|
26
|
+
});
|
|
27
|
+
FilterContainer.propTypes = {};
|
|
28
|
+
FilterContainer.defaultProps = {};
|
|
29
|
+
var _default = exports.default = FilterContainer;
|