sag_components 1.0.950 → 1.0.951
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/components/AttachedFile/AttachedFile.js +62 -0
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +36 -0
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +14 -0
- package/dist/stories/components/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile.style.js +6 -40
- package/dist/stories/components/AutocompleteField.style.js +7 -47
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +87 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +58 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +22 -0
- package/dist/stories/components/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox.style.js +14 -66
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +148 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +59 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +23 -0
- package/dist/stories/components/BannerEventBoxList.js +1 -2
- package/dist/stories/components/BannerEventBoxList.style.js +15 -174
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +115 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +64 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +18 -0
- package/dist/stories/components/BannersDropdown.style.js +10 -91
- package/dist/stories/components/BarChart/BarChart.js +189 -0
- package/dist/stories/components/BarChart/BarChart.stories.js +144 -0
- package/dist/stories/components/BarChart/BarChart.style.js +18 -0
- package/dist/stories/components/BarChart.js +2 -2
- package/dist/stories/components/BarChart.style.js +10 -52
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +204 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +133 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +18 -0
- package/dist/stories/components/BarChartTwoRows.js +2 -2
- package/dist/stories/components/BarChartTwoRows.style.js +11 -70
- package/dist/stories/components/BarChartWithAreaChart.js +7 -7
- package/dist/stories/components/BarChartWithAreaChart.style.js +11 -56
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +295 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +442 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +21 -0
- package/dist/stories/components/BarChartsByWeeks.js +3 -7
- package/dist/stories/components/BarChartsByWeeks.style.js +13 -88
- package/dist/stories/components/Benchmark/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark/Benchmark.stories.js +148 -0
- package/dist/stories/components/Benchmark/Benchmark.style.js +15 -0
- package/dist/stories/components/Benchmark.style.js +7 -53
- package/dist/stories/components/Button/Button.js +217 -0
- package/dist/stories/components/Button/Button.stories.js +269 -0
- package/dist/stories/components/Button/Button.style.js +15 -0
- package/dist/stories/components/Button.js +1 -1
- package/dist/stories/components/Button.style.js +7 -82
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +15 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +7 -40
- package/dist/stories/components/CampaignTool/Card.style.js +10 -58
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +3 -6
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +4 -14
- package/dist/stories/components/CampaignTool/Popup.style.js +16 -114
- package/dist/stories/components/CampaignTool/PopupContent.style.js +11 -64
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +9 -79
- package/dist/stories/components/Card/Card.js +72 -0
- package/dist/stories/components/Card/Card.stories.js +92 -0
- package/dist/stories/components/Card/Card.style.js +18 -0
- package/dist/stories/components/CheckBox/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox/CheckBox.stories.js +107 -0
- package/dist/stories/components/CheckBox/CheckBox.style.js +14 -0
- package/dist/stories/components/CheckBox.style.js +6 -28
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +150 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +14 -0
- package/dist/stories/components/CheckBoxButton.style.js +6 -31
- package/dist/stories/components/CodeEditor/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +12 -0
- package/dist/stories/components/CodeEditor.style.js +3 -4
- package/dist/stories/components/CollapseData/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData/CollapseData.stories.js +125 -0
- package/dist/stories/components/CollapseData/CollapseData.style.js +21 -0
- package/dist/stories/components/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData.style.js +13 -119
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +248 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +116 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +35 -0
- package/dist/stories/components/CollapseHeader.style.js +27 -192
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +161 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +17 -0
- package/dist/stories/components/CollapseMenuItem.style.js +9 -53
- package/dist/stories/components/Datepicker/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker/Datepicker.stories.js +86 -0
- package/dist/stories/components/Datepicker/Datepicker.style.js +13 -0
- package/dist/stories/components/Datepicker.style.js +3 -9
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +111 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +14 -0
- package/dist/stories/components/DownloadProgress.style.js +6 -43
- package/dist/stories/components/Dropdown/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown/Dropdown.stories.js +323 -0
- package/dist/stories/components/Dropdown/Dropdown.style.js +11 -0
- package/dist/stories/components/Dropdown.style.js +3 -9
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +3 -9
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +279 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +28 -0
- package/dist/stories/components/DropdownMultiNew.js +1 -1
- package/dist/stories/components/DropdownMultiNew.style.js +16 -193
- package/dist/stories/components/DropdownNew/DropdownNew.js +88 -0
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +407 -0
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +11 -0
- package/dist/stories/components/DropdownNew.style.js +3 -14
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +234 -0
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +26 -0
- package/dist/stories/components/DropdownSingleNew.style.js +14 -162
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +144 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +57 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +18 -0
- package/dist/stories/components/EventDetailsCard.style.js +10 -86
- package/dist/stories/components/EventList/EventList.js +61 -0
- package/dist/stories/components/EventList/EventList.stories.js +84 -0
- package/dist/stories/components/EventList/EventList.style.js +14 -0
- package/dist/stories/components/EventList.style.js +6 -30
- package/dist/stories/components/EventListItem/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem/EventListItem.stories.js +65 -0
- package/dist/stories/components/EventListItem/EventListItem.style.js +14 -0
- package/dist/stories/components/EventListItem.style.js +6 -39
- package/dist/stories/components/FilterContainer/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +23 -0
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +13 -0
- package/dist/stories/components/FilterContainer.style.js +5 -22
- package/dist/stories/components/FilterPanel/FilterPanel.js +566 -0
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +967 -0
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +21 -0
- package/dist/stories/components/FilterPanel.js +17 -17
- package/dist/stories/components/FilterPanel.style.js +13 -81
- package/dist/stories/components/FormInput/FormInput.js +41 -0
- package/dist/stories/components/FormSelect/FormSelect.js +42 -0
- package/dist/stories/components/FormattedValue/FormattedValue.js +68 -0
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +189 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +18 -0
- package/dist/stories/components/FormattedValue.style.js +10 -83
- package/dist/stories/components/HaiTooltip.js +71 -0
- package/dist/stories/components/HaiTooltip.style.js +12 -0
- package/dist/stories/components/IconButton/IconButton.js +147 -0
- package/dist/stories/components/IconButton/IconButton.stories.js +131 -0
- package/dist/stories/components/IconButton/IconButton.style.js +15 -0
- package/dist/stories/components/IconButton.style.js +7 -56
- package/dist/stories/components/Input/Input.js +183 -0
- package/dist/stories/components/Input/Input.stories.js +434 -0
- package/dist/stories/components/Input/Input.style.js +17 -0
- package/dist/stories/components/Input.style.js +9 -123
- package/dist/stories/components/InputOld/InputOld.js +90 -0
- package/dist/stories/components/InputOld/InputOld.stories.js +100 -0
- package/dist/stories/components/InputOld/InputOld.style.js +16 -0
- package/dist/stories/components/InputOld.style.js +8 -62
- package/dist/stories/components/KpiFilter/KpiFilter.js +313 -0
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +380 -0
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +26 -0
- package/dist/stories/components/KpiFilter.style.js +18 -124
- package/dist/stories/components/LinkButton/LinkButton.js +207 -0
- package/dist/stories/components/LinkButton/LinkButton.stories.js +180 -0
- package/dist/stories/components/LinkButton/LinkButton.style.js +14 -0
- package/dist/stories/components/LinkButton.style.js +6 -45
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +44 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +56 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +22 -0
- package/dist/stories/components/LinnerDataBox.js +1 -1
- package/dist/stories/components/LinnerDataBox.style.js +14 -60
- package/dist/stories/components/ListBox/ListBox.js +82 -0
- package/dist/stories/components/ListBox/ListBox.stories.js +132 -0
- package/dist/stories/components/ListBox/ListBox.style.js +14 -0
- package/dist/stories/components/ListBox.style.js +6 -40
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +184 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +27 -0
- package/dist/stories/components/MarketShareDescription.style.js +19 -207
- package/dist/stories/components/Modal/Modal.js +21 -0
- package/dist/stories/components/Modal/Modal.style.js +17 -0
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/Modal/ModalTotalCost.js +139 -0
- package/dist/stories/components/Modal.style.js +8 -56
- package/dist/stories/components/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +166 -0
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +140 -0
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +18 -0
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +122 -0
- package/dist/stories/components/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker.style.js +10 -96
- package/dist/stories/components/MonthPopupPicker.js +13 -92
- package/dist/stories/components/MultipleCard/MultipleCard.js +26 -0
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +33 -0
- package/dist/stories/components/{BannerEventBoxTest.style.js → MultipleCard/MultipleCard.style.js} +2 -2
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +5 -31
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +119 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +20 -0
- package/dist/stories/components/OneColumnContainer.style.js +12 -99
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +23 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +28 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +12 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +440 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +258 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +25 -0
- package/dist/stories/components/PerformanceAnalytics.js +9 -16
- package/dist/stories/components/PerformanceAnalytics.style.js +17 -136
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +58 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +86 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +16 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +8 -55
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +320 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +231 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +23 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +5 -12
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +15 -108
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +100 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +20 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +12 -81
- package/dist/stories/components/Popup/Popup.js +172 -0
- package/dist/stories/components/Popup/Popup.stories.js +704 -0
- package/dist/stories/components/Popup/Popup.style.js +24 -0
- package/dist/stories/components/PopupCharts/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +1203 -0
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +23 -0
- package/dist/stories/components/PopupCharts.style.js +15 -100
- package/dist/stories/components/PopupContent/PopupContent.js +111 -0
- package/dist/stories/components/PopupContent/PopupContent.style.js +21 -0
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +168 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +91 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +20 -0
- package/dist/stories/components/ProductsVariety.style.js +12 -78
- package/dist/stories/components/ProgressBar/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +72 -0
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +13 -0
- package/dist/stories/components/ProgressBar.style.js +4 -15
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +165 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +140 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +18 -0
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +109 -0
- package/dist/stories/components/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker.style.js +10 -95
- package/dist/stories/components/QuarterPopupPicker.js +12 -86
- package/dist/stories/components/QuickFilter/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +281 -0
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +11 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +28 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +27 -0
- package/dist/stories/components/QuickFilter.style.js +3 -13
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +16 -182
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +15 -127
- package/dist/stories/components/RangeDatePicker.js +12 -96
- package/dist/stories/components/RangePicker/RangeDatePicker.js +146 -0
- package/dist/stories/components/RangePicker/RangePicker.js +176 -0
- package/dist/stories/components/RangePicker/RangePicker.stories.js +138 -0
- package/dist/stories/components/RangePicker/RangePicker.style.js +18 -0
- package/dist/stories/components/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker.style.js +10 -100
- package/dist/stories/components/Rbackup.js +453 -0
- package/dist/stories/components/ReportTable/ReportTable.js +262 -0
- package/dist/stories/components/ReportTable/ReportTable.stories.js +151 -0
- package/dist/stories/components/ReportTable/ReportTable.style.js +22 -0
- package/dist/stories/components/ReportTable.style.js +14 -123
- package/dist/stories/components/SagButton/SagButton.js +68 -0
- package/dist/stories/components/SagButton/SagButton.stories.js +118 -0
- package/dist/stories/components/SagButton/SagButton.style.js +13 -0
- package/dist/stories/components/SagButton.style.js +5 -39
- package/dist/stories/components/SagIconButton/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +123 -0
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +12 -0
- package/dist/stories/components/SagIconButton.style.js +4 -22
- package/dist/stories/components/SagInput/SagInput.js +53 -0
- package/dist/stories/components/SagInput/SagInput.stories.js +69 -0
- package/dist/stories/components/{NewInput.style.js → SagInput/SagInput.style.js} +2 -2
- package/dist/stories/components/SagInput.style.js +5 -33
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +168 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +19 -0
- package/dist/stories/components/SalesAndROI.style.js +11 -103
- package/dist/stories/components/SearchInput/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput/SearchInput.stories.js +44 -0
- package/dist/stories/components/SearchInput/SearchInput.style.js +12 -0
- package/dist/stories/components/SearchInput.style.js +4 -29
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +122 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +183 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +19 -0
- package/dist/stories/components/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton.style.js +9 -90
- package/dist/stories/components/Select/Select.js +135 -0
- package/dist/stories/components/Select/Select.stories.js +200 -0
- package/dist/stories/components/Select/Select.style.js +19 -0
- package/dist/stories/components/Select.style.js +9 -93
- package/dist/stories/components/SingleBarLineCharts.js +5 -5
- package/dist/stories/components/SingleBarLineCharts.style.js +14 -88
- package/dist/stories/components/TabMenu/TabMenu.js +202 -0
- package/dist/stories/components/TabMenu/TabMenu.stories.js +76 -0
- package/dist/stories/components/TabMenu/TabMenu.style.js +24 -0
- package/dist/stories/components/TabMenu.js +7 -19
- package/dist/stories/components/TabMenu.style.js +14 -105
- package/dist/stories/components/Table/Table.js +195 -0
- package/dist/stories/components/Table/Table.stories.js +104 -0
- package/dist/stories/components/Table/Table.style.js +17 -0
- package/dist/stories/components/TableTooltip.js +71 -0
- package/dist/stories/components/TableTooltip.style.js +12 -0
- package/dist/stories/components/TextField/TextField.js +209 -0
- package/dist/stories/components/TextField/TextField.stories.js +162 -0
- package/dist/stories/components/TextField/TextField.style.js +11 -0
- package/dist/stories/components/TextField.style.js +3 -10
- package/dist/stories/components/TitleDescription/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +117 -0
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +36 -0
- package/dist/stories/components/TitleDescription.style.js +28 -214
- package/dist/stories/components/Tooltip/Tooltip.js +31 -0
- package/dist/stories/components/Tooltip/Tooltip.style.js +18 -0
- package/dist/stories/components/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip.style.js +5 -90
- package/dist/stories/components/TopToggleList/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +52 -0
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +16 -0
- package/dist/stories/components/TopToggleList.style.js +8 -43
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +138 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +21 -0
- package/dist/stories/components/TotalBenchmark.style.js +11 -71
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +343 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +30 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +22 -163
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +172 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +24 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +16 -100
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +185 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +20 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +12 -69
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +186 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +291 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +30 -0
- package/dist/stories/components/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +22 -170
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +214 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +190 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +20 -0
- package/dist/stories/components/TotalHorizontalCharts.js +3 -3
- package/dist/stories/components/TotalHorizontalCharts.style.js +12 -113
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +13 -0
- package/dist/stories/components/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip.style.js +5 -97
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +202 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +120 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +18 -0
- package/dist/stories/components/TwoBarCharts.js +2 -2
- package/dist/stories/components/TwoBarCharts.style.js +10 -52
- package/dist/stories/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/icons/ArrowSelectIcon.js +27 -0
- package/dist/stories/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/icons/AttachedIcon.js +27 -0
- package/dist/stories/icons/BellIcon.js +27 -0
- package/dist/stories/icons/Calendar.js +20 -0
- package/dist/stories/icons/CalendarIcon.js +27 -0
- package/dist/stories/icons/CalendarInOpen.js +26 -0
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/icons/ClockIcon.js +27 -0
- package/dist/stories/icons/CloseIcon.js +27 -0
- package/dist/stories/icons/CloseXIcon.js +27 -0
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/icons/DocumentIcon.js +48 -0
- package/dist/stories/icons/DownloadIcon.js +27 -0
- package/dist/stories/icons/Duplicate.js +28 -0
- package/dist/stories/icons/ErrorIcon.js +27 -0
- package/dist/stories/icons/ExitIcon.js +28 -0
- package/dist/stories/icons/ExportIcon.js +28 -0
- package/dist/stories/icons/EyeIcon.js +28 -0
- package/dist/stories/icons/FileIcon.js +27 -0
- package/dist/stories/icons/FilterIcon.js +36 -0
- package/dist/stories/icons/FlyIcon.js +28 -0
- package/dist/stories/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/icons/HannafordIcon.js +5017 -0
- package/dist/stories/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/icons/InfoIcon.js +28 -0
- package/dist/stories/icons/LampIcon.js +27 -0
- package/dist/stories/icons/LegendLineIcon.js +29 -0
- package/dist/stories/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/icons/OptionsIcon.js +27 -0
- package/dist/stories/icons/SearchIcon.js +27 -0
- package/dist/stories/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/icons/ShoutIcon.js +27 -0
- package/dist/stories/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/icons/SucceededIcon.js +27 -0
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/CommonFunctions.js +78 -0
- package/dist/stories/utils/IconsHandler.style.js +3 -8
- package/package.json +1 -1
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/components/BannerEventBoxTest.js +0 -42
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
- package/dist/stories/components/NewInput.js +0 -33
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +0 -1831
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.ReportTable = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _CheckBoxCheckedIcon = require("../../icons/CheckBoxCheckedIcon");
|
|
11
|
+
var _CheckBoxNotCheckedIcon = require("../../icons/CheckBoxNotCheckedIcon");
|
|
12
|
+
var _LinkButton = _interopRequireDefault(require("../LinkButton/LinkButton"));
|
|
13
|
+
var _ReportTable = require("./ReportTable.style");
|
|
14
|
+
var _InfoIcon = require("../../icons/InfoIcon");
|
|
15
|
+
const ReportTable = props => {
|
|
16
|
+
const {
|
|
17
|
+
tableData,
|
|
18
|
+
maxColumnsNumber,
|
|
19
|
+
useColorLinearGradient,
|
|
20
|
+
useSelectButtons,
|
|
21
|
+
disableSelectButtons,
|
|
22
|
+
disableInfo,
|
|
23
|
+
selectTextColor,
|
|
24
|
+
onSelectRowClick,
|
|
25
|
+
onAllRowsCheckBoxClick,
|
|
26
|
+
onCheckRowClick,
|
|
27
|
+
buttonText,
|
|
28
|
+
buttonIconName,
|
|
29
|
+
useCheckBoxes
|
|
30
|
+
} = props;
|
|
31
|
+
const [FormattedTableData, setFormattedTableData] = (0, _react.useState)(tableData);
|
|
32
|
+
const [AllRowsChecked, setAllRowsChecked] = (0, _react.useState)(false);
|
|
33
|
+
(0, _react.useEffect)(() => {
|
|
34
|
+
var _newTableData$columns, _tableData$columnsHea, _newTableData$columns2, _tableData$rowsValues;
|
|
35
|
+
if (!tableData || !tableData.columnsHeadings || !tableData.rowsValues) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const newTableData = {
|
|
39
|
+
columnsHeadings: [],
|
|
40
|
+
rowsValues: []
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// column heading - checkbox
|
|
44
|
+
if (useCheckBoxes && !((_newTableData$columns = newTableData.columnsHeadings) !== null && _newTableData$columns !== void 0 && _newTableData$columns.some(item => item.label === 'checkbox' && item.key === 'checkbox'))) {
|
|
45
|
+
newTableData.columnsHeadings.push({
|
|
46
|
+
label: 'checkbox',
|
|
47
|
+
key: 'checkbox'
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// columnsHeadings - regular columns
|
|
52
|
+
tableData === null || tableData === void 0 ? void 0 : (_tableData$columnsHea = tableData.columnsHeadings) === null || _tableData$columnsHea === void 0 ? void 0 : _tableData$columnsHea.forEach(item => {
|
|
53
|
+
newTableData.columnsHeadings.push(item);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// column heading - select button
|
|
57
|
+
if (useSelectButtons && !((_newTableData$columns2 = newTableData.columnsHeadings) !== null && _newTableData$columns2 !== void 0 && _newTableData$columns2.some(item => item.label === 'button' && item.key === 'button'))) {
|
|
58
|
+
newTableData.columnsHeadings.push({
|
|
59
|
+
label: 'button',
|
|
60
|
+
key: 'button'
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// rowsValues
|
|
65
|
+
const newRowValues = (_tableData$rowsValues = tableData.rowsValues) === null || _tableData$rowsValues === void 0 ? void 0 : _tableData$rowsValues.map(item => useCheckBoxes ? {
|
|
66
|
+
checkbox: 'checkbox',
|
|
67
|
+
...item
|
|
68
|
+
} : item);
|
|
69
|
+
const newRowValuesStep2 = newRowValues === null || newRowValues === void 0 ? void 0 : newRowValues.map(item => useSelectButtons ? {
|
|
70
|
+
...item,
|
|
71
|
+
button: 'button'
|
|
72
|
+
} : item);
|
|
73
|
+
const newRowValuesStep3 = newRowValuesStep2 === null || newRowValuesStep2 === void 0 ? void 0 : newRowValuesStep2.map(item => useCheckBoxes ? {
|
|
74
|
+
...item,
|
|
75
|
+
checkboxState: false
|
|
76
|
+
} : item);
|
|
77
|
+
const newRowValuesStep4 = newRowValuesStep3 === null || newRowValuesStep3 === void 0 ? void 0 : newRowValuesStep3.map((item, index) => ({
|
|
78
|
+
...item,
|
|
79
|
+
index
|
|
80
|
+
}));
|
|
81
|
+
newTableData.rowsValues = newRowValuesStep4;
|
|
82
|
+
setFormattedTableData(newTableData);
|
|
83
|
+
}, [tableData, useSelectButtons, useCheckBoxes]);
|
|
84
|
+
const columnsNumber = tableData.columnsHeadings.length;
|
|
85
|
+
const tableWidthSize = 100 / (useSelectButtons ? maxColumnsNumber + 1 : maxColumnsNumber) * (useSelectButtons ? columnsNumber + 1 : columnsNumber);
|
|
86
|
+
const handleSelectButtonRowClick = row => {
|
|
87
|
+
const {
|
|
88
|
+
checkbox: propToRemove,
|
|
89
|
+
...rest
|
|
90
|
+
} = row;
|
|
91
|
+
const {
|
|
92
|
+
button: propToRemove2,
|
|
93
|
+
...rest2
|
|
94
|
+
} = rest;
|
|
95
|
+
const {
|
|
96
|
+
checkboxState: propToRemove3,
|
|
97
|
+
...rest3
|
|
98
|
+
} = rest2;
|
|
99
|
+
onSelectRowClick(rest3);
|
|
100
|
+
};
|
|
101
|
+
const handleHeaderCheckBoxClick = () => {
|
|
102
|
+
var _FormattedTableData$r;
|
|
103
|
+
setAllRowsChecked(!AllRowsChecked);
|
|
104
|
+
const updatedTableHeaderRowsData = FormattedTableData === null || FormattedTableData === void 0 ? void 0 : (_FormattedTableData$r = FormattedTableData.rowsValues) === null || _FormattedTableData$r === void 0 ? void 0 : _FormattedTableData$r.map(item => ({
|
|
105
|
+
...item,
|
|
106
|
+
checkboxState: !AllRowsChecked
|
|
107
|
+
}));
|
|
108
|
+
setFormattedTableData({
|
|
109
|
+
...FormattedTableData,
|
|
110
|
+
rowsValues: updatedTableHeaderRowsData
|
|
111
|
+
});
|
|
112
|
+
onAllRowsCheckBoxClick({
|
|
113
|
+
AllRowsChecked: !AllRowsChecked
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const handleRowCheckBoxClick = row => {
|
|
117
|
+
var _FormattedTableData$r2;
|
|
118
|
+
if (!row) return;
|
|
119
|
+
const updatedRow = {
|
|
120
|
+
...row,
|
|
121
|
+
checkboxState: !(row !== null && row !== void 0 && row.checkboxState)
|
|
122
|
+
};
|
|
123
|
+
const updatedTableRowsData = FormattedTableData === null || FormattedTableData === void 0 ? void 0 : (_FormattedTableData$r2 = FormattedTableData.rowsValues) === null || _FormattedTableData$r2 === void 0 ? void 0 : _FormattedTableData$r2.map(item => item.index === row.index ? updatedRow : item);
|
|
124
|
+
setFormattedTableData({
|
|
125
|
+
...FormattedTableData,
|
|
126
|
+
rowsValues: updatedTableRowsData
|
|
127
|
+
});
|
|
128
|
+
const {
|
|
129
|
+
checkbox: propToRemove,
|
|
130
|
+
...rest
|
|
131
|
+
} = updatedRow;
|
|
132
|
+
const {
|
|
133
|
+
button: propToRemove2,
|
|
134
|
+
...rest2
|
|
135
|
+
} = rest;
|
|
136
|
+
onCheckRowClick(rest2);
|
|
137
|
+
};
|
|
138
|
+
const displaySelectButton = rowData => /*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
139
|
+
disabled: disableSelectButtons,
|
|
140
|
+
onClick: e => handleSelectButtonRowClick(rowData),
|
|
141
|
+
rightIcon: buttonIconName,
|
|
142
|
+
size: "medium",
|
|
143
|
+
text: buttonText || 'Select',
|
|
144
|
+
textColor: selectTextColor
|
|
145
|
+
});
|
|
146
|
+
const displayCheckBox = (rowData, isHeader) => /*#__PURE__*/_react.default.createElement(_ReportTable.SelectCheckboxContainer, {
|
|
147
|
+
className: "SelectCheckboxContainer"
|
|
148
|
+
}, /*#__PURE__*/_react.default.createElement(_ReportTable.SelectCheckboxSubContainer, {
|
|
149
|
+
className: "SelectCheckboxSubContainer",
|
|
150
|
+
selectTextColor: selectTextColor,
|
|
151
|
+
onClick: () => isHeader ? handleHeaderCheckBoxClick() : handleRowCheckBoxClick(rowData)
|
|
152
|
+
}, !isHeader && rowData !== null && rowData !== void 0 && rowData.checkboxState || isHeader && AllRowsChecked ? /*#__PURE__*/_react.default.createElement(_CheckBoxCheckedIcon.CheckBoxCheckedIcon, {
|
|
153
|
+
className: "CheckBoxCheckedIcon",
|
|
154
|
+
width: "14px",
|
|
155
|
+
height: "14px",
|
|
156
|
+
color: selectTextColor
|
|
157
|
+
}) : /*#__PURE__*/_react.default.createElement(_CheckBoxNotCheckedIcon.CheckBoxNotCheckedIcon, {
|
|
158
|
+
className: "CheckBoxNotCheckedIcon",
|
|
159
|
+
width: "14px",
|
|
160
|
+
height: "14px",
|
|
161
|
+
color: "#212121"
|
|
162
|
+
})));
|
|
163
|
+
const getMaxColnumber = () => {
|
|
164
|
+
let colNumber = maxColumnsNumber;
|
|
165
|
+
if (useSelectButtons) {
|
|
166
|
+
colNumber = +1;
|
|
167
|
+
}
|
|
168
|
+
if (useCheckBoxes) {
|
|
169
|
+
colNumber = +1;
|
|
170
|
+
}
|
|
171
|
+
return colNumber;
|
|
172
|
+
};
|
|
173
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ReportTable.TableWrapper, {
|
|
174
|
+
maxColumnsNumber: getMaxColnumber(),
|
|
175
|
+
columnsNumber: columnsNumber
|
|
176
|
+
}, /*#__PURE__*/_react.default.createElement(_ReportTable.Table, {
|
|
177
|
+
tableWidthSize: tableWidthSize
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", {
|
|
179
|
+
className: "headerRow"
|
|
180
|
+
}, FormattedTableData.columnsHeadings.map((headline, index) => {
|
|
181
|
+
if (headline.label === 'checkbox') {
|
|
182
|
+
return /*#__PURE__*/_react.default.createElement(_ReportTable.Th, {
|
|
183
|
+
key: index
|
|
184
|
+
}, displayCheckBox(headline, true));
|
|
185
|
+
}
|
|
186
|
+
if (headline.label === 'button') {
|
|
187
|
+
return /*#__PURE__*/_react.default.createElement(_ReportTable.Th, {
|
|
188
|
+
key: index
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
return /*#__PURE__*/_react.default.createElement(_ReportTable.Th, {
|
|
192
|
+
key: index
|
|
193
|
+
}, headline.label);
|
|
194
|
+
}))), /*#__PURE__*/_react.default.createElement("tbody", null, FormattedTableData.rowsValues.map((rowData, index) => /*#__PURE__*/_react.default.createElement(_ReportTable.Tr, {
|
|
195
|
+
className: "row",
|
|
196
|
+
key: index,
|
|
197
|
+
useColorLinearGradient: useColorLinearGradient
|
|
198
|
+
}, Object.values(rowData).map((value, dataIndex) => value === 'checkbox' ? /*#__PURE__*/_react.default.createElement(_ReportTable.Td, {
|
|
199
|
+
className: "checkbox",
|
|
200
|
+
key: index
|
|
201
|
+
}, displayCheckBox(rowData, false)) : value === 'button' ? /*#__PURE__*/_react.default.createElement(_ReportTable.Td, {
|
|
202
|
+
className: "button",
|
|
203
|
+
key: index
|
|
204
|
+
}, displaySelectButton(rowData)) : /*#__PURE__*/_react.default.createElement(_ReportTable.Td, {
|
|
205
|
+
className: "cell",
|
|
206
|
+
key: dataIndex
|
|
207
|
+
}, value))))))), !disableInfo ? /*#__PURE__*/_react.default.createElement(_ReportTable.InfoBlock, null, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
208
|
+
color: "#1B30AA"
|
|
209
|
+
}), /*#__PURE__*/_react.default.createElement(_ReportTable.InfoText, null, "Download table to get the full data")) : '');
|
|
210
|
+
};
|
|
211
|
+
exports.ReportTable = ReportTable;
|
|
212
|
+
var _default = exports.default = ReportTable;
|
|
213
|
+
ReportTable.defaultProps = {
|
|
214
|
+
buttonText: 'Select',
|
|
215
|
+
buttonIconName: 'select',
|
|
216
|
+
tableData: {
|
|
217
|
+
columnsHeadings: [{
|
|
218
|
+
label: 'Event Name',
|
|
219
|
+
key: 'eventName'
|
|
220
|
+
}, {
|
|
221
|
+
label: 'Retailer',
|
|
222
|
+
key: 'retailer'
|
|
223
|
+
}, {
|
|
224
|
+
label: 'Total Cost',
|
|
225
|
+
key: 'totalCost'
|
|
226
|
+
}, {
|
|
227
|
+
label: 'Inc. Baseline Sales',
|
|
228
|
+
key: 'incBaselineSales'
|
|
229
|
+
}],
|
|
230
|
+
rowsValues: [{
|
|
231
|
+
retailer: 'Large Selling Event P2 2023',
|
|
232
|
+
eventDescription: 'Food',
|
|
233
|
+
totalCost: 'Food Lion',
|
|
234
|
+
incBaselineSales: '50K'
|
|
235
|
+
}, {
|
|
236
|
+
retailer: 'Large Selling Event P2 2023',
|
|
237
|
+
eventDescription: 'Food',
|
|
238
|
+
totalCost: '$500K',
|
|
239
|
+
incBaselineSales: '50K'
|
|
240
|
+
}, {
|
|
241
|
+
retailer: 'Large Selling Event P2 2023',
|
|
242
|
+
eventDescription: 'Food',
|
|
243
|
+
totalCost: '$500K',
|
|
244
|
+
incBaselineSales: '50K'
|
|
245
|
+
}, {
|
|
246
|
+
retailer: 'Large Selling Event P2 2023',
|
|
247
|
+
eventDescription: 'Food',
|
|
248
|
+
totalCost: '$500K',
|
|
249
|
+
incBaselineSales: '50K'
|
|
250
|
+
}]
|
|
251
|
+
},
|
|
252
|
+
maxColumnsNumber: 4,
|
|
253
|
+
useColorLinearGradient: true,
|
|
254
|
+
useSelectButtons: false,
|
|
255
|
+
disableSelectButtons: false,
|
|
256
|
+
disableInfo: false,
|
|
257
|
+
selectTextColor: '#229E38',
|
|
258
|
+
onSelectRowClick: () => {},
|
|
259
|
+
onCheckRowClick: () => {},
|
|
260
|
+
onAllRowsCheckBoxClick: () => {},
|
|
261
|
+
useCheckBoxes: false
|
|
262
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
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.SelectButtonsStyle = exports.SelectButtonsDisabledStyle = exports.RegularTableStyle = exports.PreviewStyle = exports.CheckBoxStyle = exports.CheckBoxAndSelectButtonStyle = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _ReportTable = require("./ReportTable");
|
|
10
|
+
const tableData1 = {
|
|
11
|
+
columnsHeadings: [{
|
|
12
|
+
label: 'Event Name',
|
|
13
|
+
key: 'eventName'
|
|
14
|
+
}, {
|
|
15
|
+
label: 'Retailer',
|
|
16
|
+
key: 'retailer'
|
|
17
|
+
}, {
|
|
18
|
+
label: 'Total Cost',
|
|
19
|
+
key: 'totalCost'
|
|
20
|
+
}, {
|
|
21
|
+
label: 'Inc. Baseline Sales',
|
|
22
|
+
key: 'incBaselineSales'
|
|
23
|
+
}],
|
|
24
|
+
rowsValues: [{
|
|
25
|
+
retailer: 'Large Selling Event P2 2023',
|
|
26
|
+
eventDescription: 'Food',
|
|
27
|
+
totalCost: '$200K',
|
|
28
|
+
incBaselineSales: '20K'
|
|
29
|
+
}, {
|
|
30
|
+
retailer: 'Large Selling Event P2 2023',
|
|
31
|
+
eventDescription: 'Food',
|
|
32
|
+
totalCost: '$500K',
|
|
33
|
+
incBaselineSales: '50K'
|
|
34
|
+
}, {
|
|
35
|
+
retailer: 'Large Selling Event P2 2023',
|
|
36
|
+
eventDescription: 'Food',
|
|
37
|
+
totalCost: '$700K',
|
|
38
|
+
incBaselineSales: '70K'
|
|
39
|
+
}, {
|
|
40
|
+
retailer: 'Large Selling Event P2 2023',
|
|
41
|
+
eventDescription: 'Food',
|
|
42
|
+
totalCost: '$600K',
|
|
43
|
+
incBaselineSales: '60K'
|
|
44
|
+
}]
|
|
45
|
+
};
|
|
46
|
+
var _default = exports.default = {
|
|
47
|
+
title: 'SAG BI/ReportTable',
|
|
48
|
+
component: _ReportTable.ReportTable,
|
|
49
|
+
tags: ['autodocs'],
|
|
50
|
+
argTypes: {
|
|
51
|
+
title: {
|
|
52
|
+
name: 'Title',
|
|
53
|
+
control: {
|
|
54
|
+
type: 'text'
|
|
55
|
+
},
|
|
56
|
+
description: 'value of the main title',
|
|
57
|
+
defaultValue: ''
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
selectTextColor: {
|
|
61
|
+
name: 'selectTextColor',
|
|
62
|
+
description: 'Sets the select buttons color',
|
|
63
|
+
control: {
|
|
64
|
+
type: 'color',
|
|
65
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
disableSelectButtons: {
|
|
69
|
+
name: 'disableSelectButtons',
|
|
70
|
+
control: {
|
|
71
|
+
type: 'boolean'
|
|
72
|
+
},
|
|
73
|
+
description: 'changes all select buttons to be enabled/disabled',
|
|
74
|
+
defaultValue: ''
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const PreviewStyle = exports.PreviewStyle = {
|
|
78
|
+
args: {
|
|
79
|
+
title: 'Existing Repeaters (post event)',
|
|
80
|
+
maxColumnsNumber: 3,
|
|
81
|
+
useColorLinearGradient: true,
|
|
82
|
+
useSelectButtons: false,
|
|
83
|
+
disableInfo: false,
|
|
84
|
+
selectTextColor: '#229E38',
|
|
85
|
+
tableData: tableData1,
|
|
86
|
+
useCheckBoxes: false
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const RegularTableStyle = exports.RegularTableStyle = {
|
|
90
|
+
args: {
|
|
91
|
+
title: 'Existing Repeaters (post event)',
|
|
92
|
+
maxColumnsNumber: 4,
|
|
93
|
+
useColorLinearGradient: false,
|
|
94
|
+
useSelectButtons: false,
|
|
95
|
+
disableInfo: true,
|
|
96
|
+
selectTextColor: '#229E38',
|
|
97
|
+
tableData: tableData1,
|
|
98
|
+
useCheckBoxes: false
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const SelectButtonsStyle = exports.SelectButtonsStyle = {
|
|
102
|
+
args: {
|
|
103
|
+
title: 'Existing Repeaters (post event)',
|
|
104
|
+
maxColumnsNumber: 4,
|
|
105
|
+
useColorLinearGradient: false,
|
|
106
|
+
useSelectButtons: true,
|
|
107
|
+
disableInfo: true,
|
|
108
|
+
selectTextColor: '#229E38',
|
|
109
|
+
tableData: tableData1,
|
|
110
|
+
useCheckBoxes: false,
|
|
111
|
+
buttonIconName: "select",
|
|
112
|
+
disableSelectButtons: true
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const CheckBoxStyle = exports.CheckBoxStyle = {
|
|
116
|
+
args: {
|
|
117
|
+
title: 'Existing Repeaters (post event)',
|
|
118
|
+
maxColumnsNumber: 4,
|
|
119
|
+
useColorLinearGradient: false,
|
|
120
|
+
useSelectButtons: false,
|
|
121
|
+
disableInfo: true,
|
|
122
|
+
selectTextColor: '#229E38',
|
|
123
|
+
tableData: tableData1,
|
|
124
|
+
useCheckBoxes: true
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const CheckBoxAndSelectButtonStyle = exports.CheckBoxAndSelectButtonStyle = {
|
|
128
|
+
args: {
|
|
129
|
+
title: 'Existing Repeaters (post event)',
|
|
130
|
+
maxColumnsNumber: 4,
|
|
131
|
+
useColorLinearGradient: false,
|
|
132
|
+
useSelectButtons: true,
|
|
133
|
+
disableInfo: true,
|
|
134
|
+
selectTextColor: '#229E38',
|
|
135
|
+
tableData: tableData1,
|
|
136
|
+
useCheckBoxes: true
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
const SelectButtonsDisabledStyle = exports.SelectButtonsDisabledStyle = {
|
|
140
|
+
args: {
|
|
141
|
+
title: 'Existing Repeaters (post event)',
|
|
142
|
+
maxColumnsNumber: 4,
|
|
143
|
+
useColorLinearGradient: false,
|
|
144
|
+
useSelectButtons: true,
|
|
145
|
+
disableSelectButtons: true,
|
|
146
|
+
disableInfo: true,
|
|
147
|
+
selectTextColor: '#229E38',
|
|
148
|
+
tableData: tableData1,
|
|
149
|
+
useCheckBoxes: true
|
|
150
|
+
}
|
|
151
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Tr = exports.Th = exports.Td = exports.TableWrapper = exports.Table = exports.SelectCheckboxSubContainer = exports.SelectCheckboxContainer = exports.SelectButtonSubContainer = exports.SelectButtonContainer = exports.InfoText = exports.InfoBlock = 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;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n height: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const TableWrapper = exports.TableWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n white-space: nowrap;\n border: 1px solid #dddddd;\n border-radius: ", ";\n overflow-x: ", ";\n ", "\n"])), props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px', props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden', scrollableStyles);
|
|
13
|
+
const Table = exports.Table = _styledComponents.default.table(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n width: ", ";\n table-layout: fixed;\n position: relative;\n background-color: white;\n border-collapse: collapse;\n th,\n td {\n width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), props => "".concat(props.tableWidthSize, "%"));
|
|
14
|
+
const Th = exports.Th = _styledComponents.default.th(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n font-size: 12px;\n color: #212121;\n padding-top: 16px;\n padding-left: 40px;\n"])));
|
|
15
|
+
const Td = exports.Td = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 12px;\n padding-top: 20px;\n padding-bottom: 20px;\n padding-top: 16px;\n padding-left: 40px;\n"])));
|
|
16
|
+
const Tr = exports.Tr = _styledComponents.default.tr(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid #f3f4f6;\n &:last-of-type {\n &::after {\n content: \"\";\n position: absolute;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ", ";\n z-index: 2;\n }\n }\n"])), props => "".concat(props.useColorLinearGradient ? 'linear-gradient(transparent 50%, white)' : null));
|
|
17
|
+
const InfoText = exports.InfoText = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n color: #212121;\n padding-top: 20px;\n padding-bottom: 20px;\n"])));
|
|
18
|
+
const InfoBlock = exports.InfoBlock = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n background-color: white;\n"])));
|
|
19
|
+
const SelectButtonContainer = exports.SelectButtonContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"])));
|
|
20
|
+
const SelectButtonSubContainer = exports.SelectButtonSubContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n font-size: 12px;\n padding: 2px 10px;\n justify-content: flex-start;\n gap: 8px;\n color: ", ";\n background-color: ", ";\n border-radius: 10px;\n &:hover {\n background-color: #f0f0f0;\n cursor: ", "; \n }\n"])), props => props.selectTextColor, props => props.backgroundColor, props => props.cursor);
|
|
21
|
+
const SelectCheckboxContainer = exports.SelectCheckboxContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"])));
|
|
22
|
+
const SelectCheckboxSubContainer = exports.SelectCheckboxSubContainer = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n font-size: 12px;\n padding: 2px;\n justify-content: flex-start;\n gap: 8px;\n color: ", ";\n &:hover {\n background-color: #f0f0f0;\n cursor: pointer;\n }\n"])), props => props.selectTextColor);
|
|
@@ -5,127 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Tr = exports.Th = exports.Td = exports.TableWrapper = exports.Table = exports.SelectCheckboxSubContainer = exports.SelectCheckboxContainer = exports.SelectButtonSubContainer = exports.SelectButtonContainer = exports.InfoText = exports.InfoBlock = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
8
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
background: #D0D0D0;
|
|
23
|
-
border-radius: 5px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
const TableWrapper = exports.TableWrapper = _styledComponents.default.div`
|
|
27
|
-
width: 100%;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
border: 1px solid #dddddd;
|
|
30
|
-
border-radius: ${props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px'};
|
|
31
|
-
overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
|
|
32
|
-
${scrollableStyles}
|
|
33
|
-
`;
|
|
34
|
-
const Table = exports.Table = _styledComponents.default.table`
|
|
35
|
-
font-family: "Poppins", sans-serif;
|
|
36
|
-
width: ${props => `${props.tableWidthSize}%`};
|
|
37
|
-
table-layout: fixed;
|
|
38
|
-
position: relative;
|
|
39
|
-
background-color: white;
|
|
40
|
-
border-collapse: collapse;
|
|
41
|
-
th,
|
|
42
|
-
td {
|
|
43
|
-
width: 100%;
|
|
44
|
-
text-align: left;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
text-overflow: ellipsis;
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
49
|
-
const Th = exports.Th = _styledComponents.default.th`
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
color: #212121;
|
|
53
|
-
padding-top: 16px;
|
|
54
|
-
padding-left: 40px;
|
|
55
|
-
`;
|
|
56
|
-
const Td = exports.Td = _styledComponents.default.td`
|
|
57
|
-
font-weight: 400;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
padding-top: 20px;
|
|
60
|
-
padding-bottom: 20px;
|
|
61
|
-
padding-top: 16px;
|
|
62
|
-
padding-left: 40px;
|
|
63
|
-
`;
|
|
64
|
-
const Tr = exports.Tr = _styledComponents.default.tr`
|
|
65
|
-
border-bottom: 1px solid #f3f4f6;
|
|
66
|
-
&:last-of-type {
|
|
67
|
-
&::after {
|
|
68
|
-
content: "";
|
|
69
|
-
position: absolute;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
top: 0;
|
|
72
|
-
left: 0;
|
|
73
|
-
width: 100%;
|
|
74
|
-
height: 100%;
|
|
75
|
-
background: ${props => `${props.useColorLinearGradient ? 'linear-gradient(transparent 50%, white)' : null}`};
|
|
76
|
-
z-index: 2;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
const InfoText = exports.InfoText = _styledComponents.default.div`
|
|
81
|
-
font-weight: 400;
|
|
82
|
-
font-size: 14px;
|
|
83
|
-
color: #212121;
|
|
84
|
-
padding-top: 20px;
|
|
85
|
-
padding-bottom: 20px;
|
|
86
|
-
`;
|
|
87
|
-
const InfoBlock = exports.InfoBlock = _styledComponents.default.div`
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: 8px;
|
|
92
|
-
background-color: white;
|
|
93
|
-
`;
|
|
94
|
-
const SelectButtonContainer = exports.SelectButtonContainer = _styledComponents.default.div`
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: flex-start;
|
|
98
|
-
`;
|
|
99
|
-
const SelectButtonSubContainer = exports.SelectButtonSubContainer = _styledComponents.default.div`
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
font-size: 12px;
|
|
103
|
-
padding: 2px 10px;
|
|
104
|
-
justify-content: flex-start;
|
|
105
|
-
gap: 8px;
|
|
106
|
-
color: ${props => props.selectTextColor};
|
|
107
|
-
background-color: ${props => props.backgroundColor};
|
|
108
|
-
border-radius: 10px;
|
|
109
|
-
&:hover {
|
|
110
|
-
background-color: #f0f0f0;
|
|
111
|
-
cursor: ${props => props.cursor};
|
|
112
|
-
}
|
|
113
|
-
`;
|
|
114
|
-
const SelectCheckboxContainer = exports.SelectCheckboxContainer = _styledComponents.default.div`
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
justify-content: flex-start;
|
|
118
|
-
`;
|
|
119
|
-
const SelectCheckboxSubContainer = exports.SelectCheckboxSubContainer = _styledComponents.default.div`
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
font-size: 12px;
|
|
123
|
-
padding: 2px;
|
|
124
|
-
justify-content: flex-start;
|
|
125
|
-
gap: 8px;
|
|
126
|
-
color: ${props => props.selectTextColor};
|
|
127
|
-
&:hover {
|
|
128
|
-
background-color: #f0f0f0;
|
|
129
|
-
cursor: pointer;
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n height: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const TableWrapper = exports.TableWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n white-space: nowrap;\n border: 1px solid #dddddd;\n border-radius: ", ";\n overflow-x: ", ";\n ", "\n"])), props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px', props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden', scrollableStyles);
|
|
13
|
+
const Table = exports.Table = _styledComponents.default.table(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n width: ", ";\n table-layout: fixed;\n position: relative;\n background-color: white;\n border-collapse: collapse;\n th,\n td {\n width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), props => "".concat(props.tableWidthSize, "%"));
|
|
14
|
+
const Th = exports.Th = _styledComponents.default.th(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n font-size: 12px;\n color: #212121;\n padding-top: 16px;\n padding-left: 40px;\n"])));
|
|
15
|
+
const Td = exports.Td = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 12px;\n padding-top: 20px;\n padding-bottom: 20px;\n padding-top: 16px;\n padding-left: 40px;\n"])));
|
|
16
|
+
const Tr = exports.Tr = _styledComponents.default.tr(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid #f3f4f6;\n &:last-of-type {\n &::after {\n content: \"\";\n position: absolute;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ", ";\n z-index: 2;\n }\n }\n"])), props => "".concat(props.useColorLinearGradient ? 'linear-gradient(transparent 50%, white)' : null));
|
|
17
|
+
const InfoText = exports.InfoText = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n color: #212121;\n padding-top: 20px;\n padding-bottom: 20px;\n"])));
|
|
18
|
+
const InfoBlock = exports.InfoBlock = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n background-color: white;\n"])));
|
|
19
|
+
const SelectButtonContainer = exports.SelectButtonContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"])));
|
|
20
|
+
const SelectButtonSubContainer = exports.SelectButtonSubContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n font-size: 12px;\n padding: 2px 10px;\n justify-content: flex-start;\n gap: 8px;\n color: ", ";\n background-color: ", ";\n border-radius: 10px;\n &:hover {\n background-color: #f0f0f0;\n cursor: ", "; \n }\n"])), props => props.selectTextColor, props => props.backgroundColor, props => props.cursor);
|
|
21
|
+
const SelectCheckboxContainer = exports.SelectCheckboxContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"])));
|
|
22
|
+
const SelectCheckboxSubContainer = exports.SelectCheckboxSubContainer = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n font-size: 12px;\n padding: 2px;\n justify-content: flex-start;\n gap: 8px;\n color: ", ";\n &:hover {\n background-color: #f0f0f0;\n cursor: pointer;\n }\n"])), props => props.selectTextColor);
|
|
@@ -0,0 +1,68 @@
|
|
|
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 = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _SagButton = require("./SagButton.style");
|
|
10
|
+
const SagButton = props => {
|
|
11
|
+
const {
|
|
12
|
+
text,
|
|
13
|
+
disabled,
|
|
14
|
+
fontSize,
|
|
15
|
+
fontWeight,
|
|
16
|
+
textColor,
|
|
17
|
+
backgroundColor,
|
|
18
|
+
borderColor,
|
|
19
|
+
onClickColor,
|
|
20
|
+
height,
|
|
21
|
+
width,
|
|
22
|
+
radius,
|
|
23
|
+
onClick
|
|
24
|
+
} = props;
|
|
25
|
+
const [clicked, setClicked] = (0, _react.useState)(false);
|
|
26
|
+
const handleButtonClick = event => {
|
|
27
|
+
setClicked(true);
|
|
28
|
+
onClick(event);
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
setClicked(false);
|
|
31
|
+
// Add any logic you want to execute after the transition is complete
|
|
32
|
+
}, 300); // Adjust the transition duration (in milliseconds) as needed
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_SagButton.ButtonContainer, {
|
|
35
|
+
id: "ButtonContainer"
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_SagButton.Button, {
|
|
37
|
+
id: "Button",
|
|
38
|
+
className: clicked ? 'button-clicked' : '',
|
|
39
|
+
onClick: !disabled ? handleButtonClick : null,
|
|
40
|
+
width: width,
|
|
41
|
+
height: height,
|
|
42
|
+
radius: radius,
|
|
43
|
+
disabled: disabled,
|
|
44
|
+
backgroundColor: backgroundColor,
|
|
45
|
+
borderColor: borderColor,
|
|
46
|
+
onClickColor: onClickColor
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_SagButton.Label, {
|
|
48
|
+
id: "Label",
|
|
49
|
+
textColor: textColor,
|
|
50
|
+
fontSize: fontSize,
|
|
51
|
+
fontWeight: fontWeight
|
|
52
|
+
}, text)));
|
|
53
|
+
};
|
|
54
|
+
var _default = exports.default = SagButton;
|
|
55
|
+
SagButton.defaultProps = {
|
|
56
|
+
text: '',
|
|
57
|
+
textColor: '#1B30AA',
|
|
58
|
+
onClickColor: '#1B30AA',
|
|
59
|
+
backgroundColor: '#ffffff',
|
|
60
|
+
fontSize: '14px',
|
|
61
|
+
disabled: false,
|
|
62
|
+
width: '100%',
|
|
63
|
+
height: '50px',
|
|
64
|
+
radius: '12px',
|
|
65
|
+
onClick: () => {},
|
|
66
|
+
fontWeight: '500',
|
|
67
|
+
borderColor: '#1B30AA'
|
|
68
|
+
};
|