sag_components 1.0.1021 → 1.0.1022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/TotalHorizontalCharts.js +17 -14
- package/dist/stories/components/TotalHorizontalCharts.style.js +37 -1
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/package.json +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -48
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -97
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -78
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -153
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -59
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -189
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -99
- package/dist/stories/components/BarChart/BarChart.js +0 -191
- package/dist/stories/components/BarChart/BarChart.stories.js +0 -153
- package/dist/stories/components/BarChart/BarChart.style.js +0 -60
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -213
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -299
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
- package/dist/stories/components/Benchmark/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
- package/dist/stories/components/Benchmark/Benchmark.style.js +0 -61
- package/dist/stories/components/Button/Button.js +0 -217
- package/dist/stories/components/Button/Button.stories.js +0 -269
- package/dist/stories/components/Button/Button.style.js +0 -90
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -48
- package/dist/stories/components/Card/Card.js +0 -72
- package/dist/stories/components/Card/Card.stories.js +0 -92
- package/dist/stories/components/Card/Card.style.js +0 -65
- package/dist/stories/components/CheckBox/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/stories/components/CheckBox/CheckBox.style.js +0 -36
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
- package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -13
- package/dist/stories/components/CollapseData/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/stories/components/CollapseData/CollapseData.style.js +0 -127
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -249
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -200
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
- package/dist/stories/components/Datepicker/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
- package/dist/stories/components/Datepicker/Datepicker.style.js +0 -19
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -51
- package/dist/stories/components/Dropdown/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
- package/dist/stories/components/Dropdown/Dropdown.style.js +0 -17
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -292
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -216
- package/dist/stories/components/DropdownNew/DropdownNew.js +0 -98
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -416
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -21
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -254
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -187
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -94
- package/dist/stories/components/EventList/EventList.js +0 -61
- package/dist/stories/components/EventList/EventList.stories.js +0 -84
- package/dist/stories/components/EventList/EventList.style.js +0 -38
- package/dist/stories/components/EventListItem/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/stories/components/EventListItem/EventListItem.style.js +0 -47
- package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -30
- package/dist/stories/components/FilterPanel/FilterPanel.js +0 -566
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -89
- package/dist/stories/components/FormInput/FormInput.js +0 -41
- package/dist/stories/components/FormSelect/FormSelect.js +0 -42
- package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -91
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/IconButton/IconButton.js +0 -147
- package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
- package/dist/stories/components/IconButton/IconButton.style.js +0 -64
- package/dist/stories/components/Input/Input.js +0 -183
- package/dist/stories/components/Input/Input.stories.js +0 -434
- package/dist/stories/components/Input/Input.style.js +0 -130
- package/dist/stories/components/InputOld/InputOld.js +0 -90
- package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
- package/dist/stories/components/InputOld/InputOld.style.js +0 -69
- package/dist/stories/components/KpiFilter/KpiFilter.js +0 -330
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -132
- package/dist/stories/components/LinkButton/LinkButton.js +0 -207
- package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
- package/dist/stories/components/LinkButton/LinkButton.style.js +0 -53
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -46
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -78
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
- package/dist/stories/components/ListBox/ListBox.js +0 -82
- package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
- package/dist/stories/components/ListBox/ListBox.style.js +0 -48
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -198
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
- package/dist/stories/components/Modal/Modal.js +0 -21
- package/dist/stories/components/Modal/Modal.style.js +0 -65
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -103
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -200
- package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +0 -13
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -22
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -447
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -59
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -327
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
- package/dist/stories/components/Popup/Popup.js +0 -172
- package/dist/stories/components/Popup/Popup.stories.js +0 -704
- package/dist/stories/components/Popup/Popup.style.js +0 -122
- package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -108
- package/dist/stories/components/PopupContent/PopupContent.js +0 -111
- package/dist/stories/components/PopupContent/PopupContent.style.js +0 -74
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -86
- package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -24
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -102
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -182
- package/dist/stories/components/QuickFilter/QuickFilter.js +0 -78
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -21
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -194
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -229
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -139
- package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -229
- package/dist/stories/components/RangePicker/RangePicker.js +0 -176
- package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
- package/dist/stories/components/RangePicker/RangePicker.style.js +0 -107
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/ReportTable/ReportTable.js +0 -262
- package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
- package/dist/stories/components/ReportTable/ReportTable.style.js +0 -131
- package/dist/stories/components/SagButton/SagButton.js +0 -68
- package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
- package/dist/stories/components/SagButton/SagButton.style.js +0 -47
- package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -30
- package/dist/stories/components/SagInput/SagInput.js +0 -53
- package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
- package/dist/stories/components/SagInput/SagInput.style.js +0 -41
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -111
- package/dist/stories/components/SearchInput/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/stories/components/SearchInput/SearchInput.style.js +0 -37
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -100
- package/dist/stories/components/Select/Select.js +0 -135
- package/dist/stories/components/Select/Select.stories.js +0 -200
- package/dist/stories/components/Select/Select.style.js +0 -102
- package/dist/stories/components/TabMenu/TabMenu.js +0 -214
- package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
- package/dist/stories/components/TabMenu/TabMenu.style.js +0 -115
- package/dist/stories/components/Table/Table.js +0 -195
- package/dist/stories/components/Table/Table.stories.js +0 -104
- package/dist/stories/components/Table/Table.style.js +0 -86
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
- package/dist/stories/components/TextField/TextField.js +0 -209
- package/dist/stories/components/TextField/TextField.stories.js +0 -162
- package/dist/stories/components/TextField/TextField.style.js +0 -18
- package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -222
- package/dist/stories/components/Tooltip/Tooltip.js +0 -31
- package/dist/stories/components/Tooltip/Tooltip.style.js +0 -103
- package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -51
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -81
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -186
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -291
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -229
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -228
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -58
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -33
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -105
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -204
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
- package/dist/stories/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/icons/ArrowSelectIcon.js +0 -27
- package/dist/stories/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/icons/AttachedIcon.js +0 -27
- package/dist/stories/icons/BellIcon.js +0 -27
- package/dist/stories/icons/Calendar.js +0 -20
- package/dist/stories/icons/CalendarIcon.js +0 -27
- package/dist/stories/icons/CalendarInOpen.js +0 -26
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/icons/ClockIcon.js +0 -27
- package/dist/stories/icons/CloseIcon.js +0 -27
- package/dist/stories/icons/CloseXIcon.js +0 -27
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/icons/DocumentIcon.js +0 -48
- package/dist/stories/icons/DownloadIcon.js +0 -27
- package/dist/stories/icons/Duplicate.js +0 -28
- package/dist/stories/icons/ErrorIcon.js +0 -27
- package/dist/stories/icons/ExitIcon.js +0 -28
- package/dist/stories/icons/ExportIcon.js +0 -28
- package/dist/stories/icons/EyeIcon.js +0 -28
- package/dist/stories/icons/FileIcon.js +0 -27
- package/dist/stories/icons/FilterIcon.js +0 -36
- package/dist/stories/icons/FlyIcon.js +0 -28
- package/dist/stories/icons/FoodLionChartIcon.js +0 -42
- package/dist/stories/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/icons/GiantFoodChartIcon.js +0 -40
- package/dist/stories/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/icons/HannafordChartIcon.js +0 -40
- package/dist/stories/icons/HannafordIcon.js +0 -5017
- package/dist/stories/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/icons/InfoIcon.js +0 -28
- package/dist/stories/icons/LampIcon.js +0 -27
- package/dist/stories/icons/LegendLineIcon.js +0 -29
- package/dist/stories/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/icons/OptionsIcon.js +0 -27
- package/dist/stories/icons/SearchIcon.js +0 -27
- package/dist/stories/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/icons/ShoutIcon.js +0 -27
- package/dist/stories/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/icons/StopAndShopChartIcon.js +0 -42
- package/dist/stories/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/icons/SucceededIcon.js +0 -27
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/CommonFunctions.js +0 -83
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ProductsVarietyTitleContainer = exports.ProductsVarietyTitle = exports.ProductsVarietySubTitle = exports.ProductsVarietyMainContainer = exports.ProductsVarietyContentContainer = exports.ProductsVarietyContainer = exports.ProductsTitle = exports.ProductContainer = exports.ProductButtonContainer = exports.Product = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const ProductsVarietyMainContainer = exports.ProductsVarietyMainContainer = _styledComponents.default.div`
|
|
10
|
-
font-family: "Poppins", sans-serif;
|
|
11
|
-
position: relative;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 10px;
|
|
14
|
-
background: #ffffff;
|
|
15
|
-
border-radius: 12px;
|
|
16
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
17
|
-
`;
|
|
18
|
-
const ProductsVarietyContainer = exports.ProductsVarietyContainer = _styledComponents.default.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
align-items: center;
|
|
22
|
-
margin: 0 10px;
|
|
23
|
-
`;
|
|
24
|
-
const ProductsVarietyTitleContainer = exports.ProductsVarietyTitleContainer = _styledComponents.default.div`
|
|
25
|
-
font-size: 20px;
|
|
26
|
-
line-height: 25px;
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: flex-start;
|
|
29
|
-
align-items: center;
|
|
30
|
-
margin: 10px;
|
|
31
|
-
gap: 15px;
|
|
32
|
-
`;
|
|
33
|
-
const ProductsVarietyTitle = exports.ProductsVarietyTitle = _styledComponents.default.h3`
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
font-size: 20px;
|
|
36
|
-
margin: 0;
|
|
37
|
-
`;
|
|
38
|
-
const ProductsVarietySubTitle = exports.ProductsVarietySubTitle = _styledComponents.default.h3`
|
|
39
|
-
color: #757171;
|
|
40
|
-
font-weight: 500;
|
|
41
|
-
font-size: 20px;
|
|
42
|
-
margin: 0;
|
|
43
|
-
`;
|
|
44
|
-
const ProductsVarietyContentContainer = exports.ProductsVarietyContentContainer = _styledComponents.default.div`
|
|
45
|
-
display: flex;
|
|
46
|
-
justify-content: flex-start;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
align-items: flex-start;
|
|
49
|
-
margin: 10px;
|
|
50
|
-
padding: 10px 20px 20px 50px;
|
|
51
|
-
font-size: 20px;
|
|
52
|
-
line-height: 25px;
|
|
53
|
-
`;
|
|
54
|
-
const ProductsTitle = exports.ProductsTitle = _styledComponents.default.h3`
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
font-size: 14px;
|
|
57
|
-
margin: 10px 0;
|
|
58
|
-
`;
|
|
59
|
-
const ProductContainer = exports.ProductContainer = _styledComponents.default.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: flex-start;
|
|
62
|
-
align-items: center;
|
|
63
|
-
border-bottom: 1px solid #00000010;
|
|
64
|
-
width: 100%;
|
|
65
|
-
gap: 20px;
|
|
66
|
-
`;
|
|
67
|
-
const Product = exports.Product = _styledComponents.default.h3`
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
border-radius: 12px;
|
|
71
|
-
`;
|
|
72
|
-
const ProductButtonContainer = exports.ProductButtonContainer = _styledComponents.default.div`
|
|
73
|
-
display: flex;
|
|
74
|
-
gap: 10px;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: space-between;
|
|
77
|
-
height: 25px;
|
|
78
|
-
padding: 0 15px;
|
|
79
|
-
user-select: none;
|
|
80
|
-
border-radius: 12px;
|
|
81
|
-
background: ${props => props.background || '#ffffff'};
|
|
82
|
-
&:hover {
|
|
83
|
-
background-color: #f0f0f0;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _ProgressBar = require("./ProgressBar.style");
|
|
10
|
-
const ProgressBar = props => {
|
|
11
|
-
const {
|
|
12
|
-
progressPercent,
|
|
13
|
-
refreshInterval,
|
|
14
|
-
height,
|
|
15
|
-
width,
|
|
16
|
-
color
|
|
17
|
-
} = props;
|
|
18
|
-
const [progress, setProgress] = (0, _react.useState)(0);
|
|
19
|
-
(0, _react.useEffect)(() => {
|
|
20
|
-
const timer = setInterval(() => {
|
|
21
|
-
setProgress(currentProgress => {
|
|
22
|
-
const newProgress = currentProgress + 1;
|
|
23
|
-
if (newProgress > 100) {
|
|
24
|
-
clearInterval(timer);
|
|
25
|
-
return 100;
|
|
26
|
-
}
|
|
27
|
-
return newProgress;
|
|
28
|
-
});
|
|
29
|
-
}, refreshInterval);
|
|
30
|
-
return () => clearInterval(timer);
|
|
31
|
-
}, [progressPercent, refreshInterval]);
|
|
32
|
-
(0, _react.useEffect)(() => {
|
|
33
|
-
setProgress(progressPercent);
|
|
34
|
-
}, [progressPercent]);
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_ProgressBar.ProgressBarContainer, {
|
|
36
|
-
className: "ProgressBarContainer",
|
|
37
|
-
width: width,
|
|
38
|
-
height: height
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_ProgressBar.ProgressBarFiller, {
|
|
40
|
-
className: "ProgressBarFiller",
|
|
41
|
-
color: color,
|
|
42
|
-
progress: progress
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
var _default = exports.default = ProgressBar;
|
|
46
|
-
ProgressBar.defaultProps = {
|
|
47
|
-
progressPercent: 0,
|
|
48
|
-
refreshInterval: 100,
|
|
49
|
-
width: '100%',
|
|
50
|
-
height: '9px',
|
|
51
|
-
color: '#066768'
|
|
52
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.WideBlue = exports.SmallGreen = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _ProgressBar = _interopRequireDefault(require("./ProgressBar"));
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'SAG Core/ProgressBar',
|
|
12
|
-
component: _ProgressBar.default,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: {
|
|
15
|
-
progressPercent: {
|
|
16
|
-
name: 'progressPercent',
|
|
17
|
-
control: {
|
|
18
|
-
type: 'number',
|
|
19
|
-
min: 0,
|
|
20
|
-
max: 100
|
|
21
|
-
},
|
|
22
|
-
description: 'progressPercent - set this value to increase or decrease progress current value - in percent 0% - 100%. Allows control of the progressBar'
|
|
23
|
-
},
|
|
24
|
-
refreshInterval: {
|
|
25
|
-
name: 'refreshInterval',
|
|
26
|
-
control: {
|
|
27
|
-
type: 'number'
|
|
28
|
-
},
|
|
29
|
-
description: 'refreshInterval - in miliseconds - speed of progress bar'
|
|
30
|
-
},
|
|
31
|
-
width: {
|
|
32
|
-
name: 'width',
|
|
33
|
-
control: {
|
|
34
|
-
type: 'text'
|
|
35
|
-
},
|
|
36
|
-
description: 'width of the progress bar'
|
|
37
|
-
},
|
|
38
|
-
height: {
|
|
39
|
-
name: 'height',
|
|
40
|
-
control: {
|
|
41
|
-
type: 'text'
|
|
42
|
-
},
|
|
43
|
-
description: 'height of the progress bar'
|
|
44
|
-
},
|
|
45
|
-
color: {
|
|
46
|
-
name: 'color',
|
|
47
|
-
description: 'Sets the color of bar',
|
|
48
|
-
control: {
|
|
49
|
-
type: 'color',
|
|
50
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const SmallGreen = exports.SmallGreen = {
|
|
56
|
-
args: {
|
|
57
|
-
progressPercent: 0,
|
|
58
|
-
refreshInterval: 100,
|
|
59
|
-
width: '200px',
|
|
60
|
-
height: '9px',
|
|
61
|
-
color: '#92CF17'
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const WideBlue = exports.WideBlue = {
|
|
65
|
-
args: {
|
|
66
|
-
progressPercent: 0,
|
|
67
|
-
refreshInterval: 100,
|
|
68
|
-
width: '800px',
|
|
69
|
-
height: '9px',
|
|
70
|
-
color: '#1B30AA'
|
|
71
|
-
}
|
|
72
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ProgressBarFiller = exports.ProgressBarContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
// Styled-components for the progress container and the filler
|
|
10
|
-
const ProgressBarContainer = exports.ProgressBarContainer = _styledComponents.default.div`
|
|
11
|
-
width: ${props => props.width};
|
|
12
|
-
background-color: #F2F2F2;
|
|
13
|
-
border-radius: 12px;
|
|
14
|
-
height: ${props => props.height};
|
|
15
|
-
margin: 5px 0;
|
|
16
|
-
`;
|
|
17
|
-
const ProgressBarFiller = exports.ProgressBarFiller = _styledComponents.default.div`
|
|
18
|
-
background-color: ${props => props.color};
|
|
19
|
-
height: 100%;
|
|
20
|
-
text-align: center;
|
|
21
|
-
border-radius: 12px;
|
|
22
|
-
transition: width 0.5s ease-in-out;
|
|
23
|
-
width: ${props => props.progress}%;
|
|
24
|
-
`;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
11
|
-
var _Calendar = _interopRequireDefault(require("../../icons/Calendar"));
|
|
12
|
-
var _CalendarInOpen = _interopRequireDefault(require("../../icons/CalendarInOpen"));
|
|
13
|
-
var _QuarterPicker = require("./QuarterPicker.style");
|
|
14
|
-
var _QuarterPopupPicker = _interopRequireDefault(require("./QuarterPopupPicker"));
|
|
15
|
-
// CustomInput.js
|
|
16
|
-
|
|
17
|
-
const QuarterPicker = _ref => {
|
|
18
|
-
let {
|
|
19
|
-
availableQuarters,
|
|
20
|
-
// ["Q1-2024"]
|
|
21
|
-
label,
|
|
22
|
-
onChange,
|
|
23
|
-
borderRadius,
|
|
24
|
-
required,
|
|
25
|
-
width,
|
|
26
|
-
height,
|
|
27
|
-
placeholder,
|
|
28
|
-
disabled,
|
|
29
|
-
borderColor,
|
|
30
|
-
borderColorFocus,
|
|
31
|
-
textColor,
|
|
32
|
-
selectedValue
|
|
33
|
-
} = _ref;
|
|
34
|
-
const [isFocused, setIsFocused] = (0, _react.useState)(false);
|
|
35
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
36
|
-
const [value, setValue] = (0, _react.useState)('');
|
|
37
|
-
const [startDateValue, setStartDateValue] = (0, _react.useState)(null);
|
|
38
|
-
const [hoverInputContainer, setHoverInputContainer] = (0, _react.useState)(false);
|
|
39
|
-
const [hoverOptionsContainer, setHoverOptionsContainer] = (0, _react.useState)(false);
|
|
40
|
-
const inputRef = (0, _react.useRef)(null);
|
|
41
|
-
(0, _react.useEffect)(() => {
|
|
42
|
-
const handleClickOutside = event => {
|
|
43
|
-
if (inputRef.current && !inputRef.current.contains(event.target)) {
|
|
44
|
-
setIsFocused(false);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// Add event listener for clicks on the document
|
|
49
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
50
|
-
|
|
51
|
-
// Cleanup event listener on component unmount
|
|
52
|
-
return () => {
|
|
53
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
54
|
-
};
|
|
55
|
-
}, []);
|
|
56
|
-
(0, _react.useEffect)(() => {
|
|
57
|
-
if (selectedValue && selectedValue.includes('-')) {
|
|
58
|
-
const dateArray = selectedValue.split('-');
|
|
59
|
-
const startDate = new Date(dateArray[0]);
|
|
60
|
-
setStartDateValue((0, _moment.default)(startDate).format('MM'));
|
|
61
|
-
setValue(selectedValue);
|
|
62
|
-
}
|
|
63
|
-
}, [selectedValue]);
|
|
64
|
-
(0, _react.useEffect)(() => {
|
|
65
|
-
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
66
|
-
setIsFocused(false);
|
|
67
|
-
setIsOpen(false);
|
|
68
|
-
}
|
|
69
|
-
}, [hoverInputContainer, hoverOptionsContainer]);
|
|
70
|
-
const onChangeDate = startDate => {
|
|
71
|
-
if (startDate) {
|
|
72
|
-
setIsOpen(!isOpen);
|
|
73
|
-
setIsFocused(false);
|
|
74
|
-
setStartDateValue(startDate);
|
|
75
|
-
setValue(`${startDate}`);
|
|
76
|
-
onChange(`${startDate}`);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const onChangeEvent = e => {
|
|
80
|
-
const dateArray = e.target.value;
|
|
81
|
-
const arr = dateArray.split(' - ');
|
|
82
|
-
const startDate = new Date(arr[0]);
|
|
83
|
-
setStartDateValue((0, _moment.default)(startDate).format('MM'));
|
|
84
|
-
onChange(e);
|
|
85
|
-
setValue(e.target.value);
|
|
86
|
-
};
|
|
87
|
-
const toggleDatePicker = () => {
|
|
88
|
-
setIsOpen(!isOpen);
|
|
89
|
-
};
|
|
90
|
-
const handleFocus = () => {
|
|
91
|
-
setIsFocused(true);
|
|
92
|
-
};
|
|
93
|
-
const handleBlur = () => {
|
|
94
|
-
setIsFocused(false);
|
|
95
|
-
};
|
|
96
|
-
return /*#__PURE__*/_react.default.createElement(_QuarterPicker.QuarterPickerContainer, {
|
|
97
|
-
className: "QuarterPickerContainer",
|
|
98
|
-
onClick: handleFocus,
|
|
99
|
-
width: width,
|
|
100
|
-
height: height
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(_QuarterPicker.InputContainer, {
|
|
102
|
-
className: "InputContainer",
|
|
103
|
-
isFocused: isFocused,
|
|
104
|
-
hasValue: value,
|
|
105
|
-
disabled: disabled,
|
|
106
|
-
textColor: textColor,
|
|
107
|
-
borderColor: borderColor,
|
|
108
|
-
borderColorFocus: borderColorFocus,
|
|
109
|
-
onMouseEnter: () => setHoverInputContainer(true),
|
|
110
|
-
onMouseLeave: () => setHoverInputContainer(false)
|
|
111
|
-
}, /*#__PURE__*/_react.default.createElement(_QuarterPicker.StyledLabel, {
|
|
112
|
-
className: "StyledLabel",
|
|
113
|
-
onClick: handleFocus,
|
|
114
|
-
isFocused: isFocused,
|
|
115
|
-
hasValue: value,
|
|
116
|
-
disabled: disabled,
|
|
117
|
-
textColor: textColor,
|
|
118
|
-
borderColor: borderColor,
|
|
119
|
-
borderColorFocus: borderColorFocus
|
|
120
|
-
}, label, required && /*#__PURE__*/_react.default.createElement(_QuarterPicker.RequiredIndicator, null, "*")), /*#__PURE__*/_react.default.createElement(_QuarterPicker.StyledInput, {
|
|
121
|
-
className: "StyledInput",
|
|
122
|
-
ref: inputRef,
|
|
123
|
-
value: value,
|
|
124
|
-
onChange: onChangeEvent,
|
|
125
|
-
onFocus: handleFocus,
|
|
126
|
-
onBlur: handleBlur,
|
|
127
|
-
isFocused: isFocused,
|
|
128
|
-
borderColorFocus: borderColorFocus,
|
|
129
|
-
borderRadius: borderRadius,
|
|
130
|
-
width: width,
|
|
131
|
-
height: height,
|
|
132
|
-
placeholder: isFocused ? placeholder : '',
|
|
133
|
-
disabled: disabled,
|
|
134
|
-
borderColor: borderColor,
|
|
135
|
-
textColor: textColor
|
|
136
|
-
}), /*#__PURE__*/_react.default.createElement(_QuarterPicker.CalendarDiv, {
|
|
137
|
-
className: "CalendarDiv",
|
|
138
|
-
width: width,
|
|
139
|
-
onClick: toggleDatePicker
|
|
140
|
-
}, isOpen === true ? /*#__PURE__*/_react.default.createElement(_CalendarInOpen.default, null) : /*#__PURE__*/_react.default.createElement(_Calendar.default, null))), /*#__PURE__*/_react.default.createElement(_QuarterPicker.OptionsContainer, {
|
|
141
|
-
className: "OptionsContainer",
|
|
142
|
-
onMouseEnter: () => setHoverOptionsContainer(true),
|
|
143
|
-
onMouseLeave: () => setHoverOptionsContainer(false)
|
|
144
|
-
}, /*#__PURE__*/_react.default.createElement(_QuarterPopupPicker.default, {
|
|
145
|
-
className: "QuarterPopupPicker",
|
|
146
|
-
isOpen: isOpen,
|
|
147
|
-
onChangeDate: onChangeDate,
|
|
148
|
-
value: value,
|
|
149
|
-
setValue: setValue,
|
|
150
|
-
startDateValue: startDateValue,
|
|
151
|
-
availableQuarters: availableQuarters
|
|
152
|
-
})));
|
|
153
|
-
};
|
|
154
|
-
QuarterPicker.defaultProps = {
|
|
155
|
-
required: true,
|
|
156
|
-
width: '200%',
|
|
157
|
-
height: '60px',
|
|
158
|
-
disabled: false,
|
|
159
|
-
placeholder: 'Enter here..',
|
|
160
|
-
borderColor: '#000000',
|
|
161
|
-
borderColorFocus: '#000000',
|
|
162
|
-
textColor: '#000000',
|
|
163
|
-
selectedValue: ''
|
|
164
|
-
};
|
|
165
|
-
var _default = exports.default = QuarterPicker;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.InitialValue = exports.Default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _QuarterPicker = _interopRequireDefault(require("./QuarterPicker"));
|
|
10
|
-
// Input.stories.js
|
|
11
|
-
// Update the path based on your actual file structure
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'SAG Core/QuarterPicker',
|
|
14
|
-
component: _QuarterPicker.default,
|
|
15
|
-
tags: ['autodocs'],
|
|
16
|
-
argTypes: {
|
|
17
|
-
label: {
|
|
18
|
-
name: 'label',
|
|
19
|
-
type: {
|
|
20
|
-
name: 'string'
|
|
21
|
-
},
|
|
22
|
-
description: 'Label for the input',
|
|
23
|
-
defaultValue: {
|
|
24
|
-
summary: 'Input Label'
|
|
25
|
-
},
|
|
26
|
-
control: {
|
|
27
|
-
type: 'text'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
value: {
|
|
31
|
-
name: 'value',
|
|
32
|
-
type: {
|
|
33
|
-
name: 'string'
|
|
34
|
-
},
|
|
35
|
-
description: 'Value of the input',
|
|
36
|
-
defaultValue: {
|
|
37
|
-
summary: ''
|
|
38
|
-
},
|
|
39
|
-
control: {
|
|
40
|
-
type: 'text'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
onChange: {
|
|
44
|
-
name: 'onChange',
|
|
45
|
-
type: {
|
|
46
|
-
name: 'function'
|
|
47
|
-
},
|
|
48
|
-
description: 'Callback function for input change',
|
|
49
|
-
defaultValue: {
|
|
50
|
-
summary: '() => {}'
|
|
51
|
-
},
|
|
52
|
-
control: {
|
|
53
|
-
type: null
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
borderRadius: {
|
|
57
|
-
name: 'borderRadius',
|
|
58
|
-
type: {
|
|
59
|
-
name: 'string'
|
|
60
|
-
},
|
|
61
|
-
description: 'Border radius of the input',
|
|
62
|
-
defaultValue: {
|
|
63
|
-
summary: ''
|
|
64
|
-
},
|
|
65
|
-
control: {
|
|
66
|
-
type: 'text'
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
required: {
|
|
70
|
-
name: 'required',
|
|
71
|
-
type: {
|
|
72
|
-
name: 'boolean'
|
|
73
|
-
},
|
|
74
|
-
description: 'Indicates if the input is required',
|
|
75
|
-
defaultValue: {
|
|
76
|
-
summary: false
|
|
77
|
-
},
|
|
78
|
-
control: {
|
|
79
|
-
type: 'boolean'
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
textColor: {
|
|
83
|
-
name: 'textColor',
|
|
84
|
-
description: 'Sets the text Color ',
|
|
85
|
-
control: {
|
|
86
|
-
type: 'color',
|
|
87
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
borderColor: {
|
|
91
|
-
name: 'borderColor',
|
|
92
|
-
description: 'Sets the border Color ',
|
|
93
|
-
control: {
|
|
94
|
-
type: 'color',
|
|
95
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
borderColorFocus: {
|
|
99
|
-
name: 'borderColorFocus',
|
|
100
|
-
description: 'Sets the border Color Focus ',
|
|
101
|
-
control: {
|
|
102
|
-
type: 'color',
|
|
103
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}; // Story for the default state
|
|
108
|
-
const Default = exports.Default = {
|
|
109
|
-
args: {
|
|
110
|
-
availableQuarters: ['Q1-2024', 'Q2-2024'],
|
|
111
|
-
label: 'Quarter',
|
|
112
|
-
borderRadius: '12px',
|
|
113
|
-
required: true,
|
|
114
|
-
width: '250px',
|
|
115
|
-
height: '60px',
|
|
116
|
-
placeholder: 'Select Quarter',
|
|
117
|
-
disabled: false,
|
|
118
|
-
borderColor: '#E7E7E7',
|
|
119
|
-
borderColorFocus: '#066768',
|
|
120
|
-
textColor: '#212121'
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// Story for the initial value state
|
|
125
|
-
const InitialValue = exports.InitialValue = {
|
|
126
|
-
args: {
|
|
127
|
-
availableQuarters: ['Q1-2024', 'Q2-2024'],
|
|
128
|
-
label: 'Quarter',
|
|
129
|
-
borderRadius: '12px',
|
|
130
|
-
required: true,
|
|
131
|
-
width: '250px',
|
|
132
|
-
height: '60px',
|
|
133
|
-
placeholder: 'Select Quarter',
|
|
134
|
-
disabled: false,
|
|
135
|
-
borderColor: '#E7E7E7',
|
|
136
|
-
borderColorFocus: '#066768',
|
|
137
|
-
textColor: '#212121',
|
|
138
|
-
selectedValue: 'Q2-2024'
|
|
139
|
-
}
|
|
140
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.StyledLabel = exports.StyledInput = exports.RequiredIndicator = exports.QuarterPickerContainer = exports.OptionsContainer = exports.InputContainer = exports.ErrorLabel = exports.CalendarDiv = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const QuarterPickerContainer = exports.QuarterPickerContainer = _styledComponents.default.div`
|
|
10
|
-
position: relative;
|
|
11
|
-
margin-bottom: 10px;
|
|
12
|
-
width: ${props => props.width || '100%'};
|
|
13
|
-
height: ${props => props.height || '60px'};
|
|
14
|
-
`;
|
|
15
|
-
const CalendarDiv = exports.CalendarDiv = _styledComponents.default.div`
|
|
16
|
-
position: absolute;
|
|
17
|
-
width: 11px;
|
|
18
|
-
height: 11px;
|
|
19
|
-
top: ${props => parseInt(props.height, 10) / 2 || '20px'};
|
|
20
|
-
right: 25px;
|
|
21
|
-
`;
|
|
22
|
-
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
flex-wrap: nowrap;
|
|
26
|
-
justify-content: flex-start;
|
|
27
|
-
align-content: center;
|
|
28
|
-
white-space: pre-wrap;
|
|
29
|
-
align-items: center;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
background-color: transparent;
|
|
35
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
36
|
-
font-family: "Poppins", sans-serif;
|
|
37
|
-
font-weight: 400;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
border-radius: 12px;
|
|
40
|
-
outline: none;
|
|
41
|
-
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
45
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:focus {
|
|
49
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
53
|
-
padding: 20px;
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
border-radius: ${props => props.borderRadius || '4px'};
|
|
56
|
-
border: none;
|
|
57
|
-
outline: none;
|
|
58
|
-
width: ${props => props.width || '90%'};
|
|
59
|
-
height: ${props => props.height || '60px'};
|
|
60
|
-
transition: border-color 0.3s ease;
|
|
61
|
-
font-family: Poppins;
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
font-style: normal;
|
|
64
|
-
font-weight: 400;
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
67
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
68
|
-
`;
|
|
69
|
-
const StyledLabel = exports.StyledLabel = _styledComponents.default.label`
|
|
70
|
-
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
71
|
-
padding-inline-end: 5px;
|
|
72
|
-
padding-inline-start: 5px;
|
|
73
|
-
margin-right: 20px;
|
|
74
|
-
width: ${props => props.isFocused || props.hasValue ? 'auto' : '150px'};
|
|
75
|
-
color: ${props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333'};
|
|
76
|
-
background-color: white;
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
79
|
-
left: 15px;
|
|
80
|
-
transform: translateY(-50%);
|
|
81
|
-
transition: top 0.3s ease, font-size 0.3s ease;
|
|
82
|
-
display: flex;
|
|
83
|
-
font-family: Poppins;
|
|
84
|
-
font-weight: 400;
|
|
85
|
-
align-items: center;
|
|
86
|
-
box-sizing: border-box;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
`;
|
|
89
|
-
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span`
|
|
90
|
-
color: red;
|
|
91
|
-
margin-left: 5px;
|
|
92
|
-
`;
|
|
93
|
-
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div`
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
color: red;
|
|
96
|
-
margin-top: 5px;
|
|
97
|
-
`;
|
|
98
|
-
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
99
|
-
display: block;
|
|
100
|
-
margin: 0;
|
|
101
|
-
padding-top: 8px;
|
|
102
|
-
`;
|