sag_components 1.0.892 → 1.0.894
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/{MultipleCard/MultipleCard.style.js → BannerEventBoxTest.style.js} +2 -2
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/{SagInput/SagInput.style.js → NewInput.style.js} +2 -2
- package/dist/stories/components/SingleBarLineCharts.js +3 -1
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/package.json +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -14
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -87
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -22
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -148
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -30
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -22
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -18
- package/dist/stories/components/BarChart/BarChart.js +0 -189
- package/dist/stories/components/BarChart/BarChart.stories.js +0 -144
- package/dist/stories/components/BarChart/BarChart.style.js +0 -18
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -204
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -133
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -18
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -295
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -21
- package/dist/stories/components/Benchmark/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
- package/dist/stories/components/Benchmark/Benchmark.style.js +0 -15
- package/dist/stories/components/Button/Button.js +0 -217
- package/dist/stories/components/Button/Button.stories.js +0 -269
- package/dist/stories/components/Button/Button.style.js +0 -15
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -15
- package/dist/stories/components/Card/Card.js +0 -72
- package/dist/stories/components/Card/Card.stories.js +0 -92
- package/dist/stories/components/Card/Card.style.js +0 -18
- package/dist/stories/components/CheckBox/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/stories/components/CheckBox/CheckBox.style.js +0 -14
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -14
- package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -12
- package/dist/stories/components/CollapseData/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/stories/components/CollapseData/CollapseData.style.js +0 -21
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -267
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -35
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -17
- package/dist/stories/components/Datepicker/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
- package/dist/stories/components/Datepicker/Datepicker.style.js +0 -13
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -14
- package/dist/stories/components/Dropdown/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
- package/dist/stories/components/Dropdown/Dropdown.style.js +0 -11
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +0 -290
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +0 -220
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +0 -11
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -279
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -28
- package/dist/stories/components/DropdownNew/DropdownNew.js +0 -88
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -407
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -11
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -234
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -26
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -18
- package/dist/stories/components/EventList/EventList.js +0 -61
- package/dist/stories/components/EventList/EventList.stories.js +0 -84
- package/dist/stories/components/EventList/EventList.style.js +0 -14
- package/dist/stories/components/EventListItem/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/stories/components/EventListItem/EventListItem.style.js +0 -14
- package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -13
- package/dist/stories/components/FilterPanel/FilterPanel.js +0 -566
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -21
- package/dist/stories/components/FormInput/FormInput.js +0 -41
- package/dist/stories/components/FormSelect/FormSelect.js +0 -42
- package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -18
- package/dist/stories/components/IconButton/IconButton.js +0 -147
- package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
- package/dist/stories/components/IconButton/IconButton.style.js +0 -15
- package/dist/stories/components/Input/Input.js +0 -183
- package/dist/stories/components/Input/Input.stories.js +0 -434
- package/dist/stories/components/Input/Input.style.js +0 -17
- package/dist/stories/components/InputOld/InputOld.js +0 -90
- package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
- package/dist/stories/components/InputOld/InputOld.style.js +0 -16
- package/dist/stories/components/KpiFilter/KpiFilter.js +0 -313
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -26
- package/dist/stories/components/LinkButton/LinkButton.js +0 -207
- package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
- package/dist/stories/components/LinkButton/LinkButton.style.js +0 -14
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -43
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -56
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -22
- package/dist/stories/components/ListBox/ListBox.js +0 -82
- package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
- package/dist/stories/components/ListBox/ListBox.style.js +0 -14
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -184
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -27
- package/dist/stories/components/Modal/Modal.js +0 -21
- package/dist/stories/components/Modal/Modal.style.js +0 -17
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -18
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -122
- package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -13
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -20
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -12
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -431
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -25
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -58
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -16
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -315
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -23
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -20
- package/dist/stories/components/Popup/Popup.js +0 -172
- package/dist/stories/components/Popup/Popup.stories.js +0 -704
- package/dist/stories/components/Popup/Popup.style.js +0 -24
- package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -23
- package/dist/stories/components/PopupContent/PopupContent.js +0 -111
- package/dist/stories/components/PopupContent/PopupContent.style.js +0 -21
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -20
- package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -13
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -18
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -109
- package/dist/stories/components/QuickFilter/QuickFilter.js +0 -77
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -11
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -28
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -230
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -27
- package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -146
- package/dist/stories/components/RangePicker/RangePicker.js +0 -176
- package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
- package/dist/stories/components/RangePicker/RangePicker.style.js +0 -18
- package/dist/stories/components/ReportTable/ReportTable.js +0 -262
- package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
- package/dist/stories/components/ReportTable/ReportTable.style.js +0 -22
- package/dist/stories/components/SagButton/SagButton.js +0 -68
- package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
- package/dist/stories/components/SagButton/SagButton.style.js +0 -13
- package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -12
- package/dist/stories/components/SagInput/SagInput.js +0 -53
- package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -19
- package/dist/stories/components/SearchInput/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/stories/components/SearchInput/SearchInput.style.js +0 -12
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -19
- package/dist/stories/components/Select/Select.js +0 -135
- package/dist/stories/components/Select/Select.stories.js +0 -200
- package/dist/stories/components/Select/Select.style.js +0 -19
- package/dist/stories/components/TabMenu/TabMenu.js +0 -202
- package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
- package/dist/stories/components/TabMenu/TabMenu.style.js +0 -24
- package/dist/stories/components/Table/Table.js +0 -195
- package/dist/stories/components/Table/Table.stories.js +0 -104
- package/dist/stories/components/Table/Table.style.js +0 -17
- package/dist/stories/components/TextField/TextField.js +0 -209
- package/dist/stories/components/TextField/TextField.stories.js +0 -162
- package/dist/stories/components/TextField/TextField.style.js +0 -11
- package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -36
- package/dist/stories/components/Tooltip/Tooltip.js +0 -31
- package/dist/stories/components/Tooltip/Tooltip.style.js +0 -18
- package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -16
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -21
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -30
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -24
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -20
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -182
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -290
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -30
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -207
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -158
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -20
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -16
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -13
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -202
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -120
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -18
- package/dist/stories/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/icons/ArrowSelectIcon.js +0 -27
- package/dist/stories/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/icons/AttachedIcon.js +0 -27
- package/dist/stories/icons/BellIcon.js +0 -27
- package/dist/stories/icons/Calendar.js +0 -20
- package/dist/stories/icons/CalendarIcon.js +0 -27
- package/dist/stories/icons/CalendarInOpen.js +0 -26
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/icons/ClockIcon.js +0 -27
- package/dist/stories/icons/CloseIcon.js +0 -27
- package/dist/stories/icons/CloseXIcon.js +0 -27
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/icons/DocumentIcon.js +0 -48
- package/dist/stories/icons/DownloadIcon.js +0 -27
- package/dist/stories/icons/Duplicate.js +0 -28
- package/dist/stories/icons/ErrorIcon.js +0 -27
- package/dist/stories/icons/ExitIcon.js +0 -28
- package/dist/stories/icons/ExportIcon.js +0 -28
- package/dist/stories/icons/EyeIcon.js +0 -28
- package/dist/stories/icons/FileIcon.js +0 -27
- package/dist/stories/icons/FilterIcon.js +0 -36
- package/dist/stories/icons/FlyIcon.js +0 -28
- package/dist/stories/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/icons/HannafordIcon.js +0 -5017
- package/dist/stories/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/icons/InfoIcon.js +0 -28
- package/dist/stories/icons/LampIcon.js +0 -27
- package/dist/stories/icons/LegendLineIcon.js +0 -29
- package/dist/stories/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/icons/OptionsIcon.js +0 -27
- package/dist/stories/icons/SearchIcon.js +0 -27
- package/dist/stories/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/icons/ShoutIcon.js +0 -27
- package/dist/stories/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/icons/SucceededIcon.js +0 -27
- package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/CommonFunctions.js +0 -78
|
@@ -1,138 +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 _RangePicker = _interopRequireDefault(require("./RangePicker"));
|
|
10
|
-
// Input.stories.js
|
|
11
|
-
// Update the path based on your actual file structure
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'SAG Core/RangePicker',
|
|
14
|
-
component: _RangePicker.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
|
-
label: 'Date Range',
|
|
111
|
-
borderRadius: '12px',
|
|
112
|
-
required: true,
|
|
113
|
-
width: '250px',
|
|
114
|
-
height: '60px',
|
|
115
|
-
placeholder: 'Select Dates',
|
|
116
|
-
disabled: false,
|
|
117
|
-
borderColor: '#E7E7E7',
|
|
118
|
-
borderColorFocus: '#066768',
|
|
119
|
-
textColor: '#212121'
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// Story for the Initial Value state
|
|
124
|
-
const InitialValue = exports.InitialValue = {
|
|
125
|
-
args: {
|
|
126
|
-
label: 'Date Range',
|
|
127
|
-
borderRadius: '12px',
|
|
128
|
-
required: true,
|
|
129
|
-
width: '250px',
|
|
130
|
-
height: '60px',
|
|
131
|
-
placeholder: 'Select Dates',
|
|
132
|
-
disabled: false,
|
|
133
|
-
borderColor: '#E7E7E7',
|
|
134
|
-
borderColorFocus: '#066768',
|
|
135
|
-
textColor: '#212121',
|
|
136
|
-
selectedValue: '06/08/2024 - 14/08/2024'
|
|
137
|
-
}
|
|
138
|
-
};
|
|
@@ -1,18 +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.RangePickerContainer = exports.OptionsContainer = exports.InputContainer = exports.ErrorLabel = exports.CalendarDiv = 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;
|
|
11
|
-
const RangePickerContainer = exports.RangePickerContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin-bottom: 10px;\n width: ", ";\n height: ", ";\n"])), props => props.width || '100%', props => props.height || '60px');
|
|
12
|
-
const CalendarDiv = exports.CalendarDiv = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: 11px;\n height: 12px;\n top: ", ";\n right: 15px;\n \n &:hover {\n cursor: ", ";\n }\n\n"])), props => parseInt(props.height, 10) / 2 || '20px', props => props.disabled ? 'not-allowed' : 'pointer');
|
|
13
|
-
const InputContainer = exports.InputContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n flex-direction: row;\n flex-wrap: nowrap; \n justify-content: flex-start;\n align-content: center; \n white-space: pre-wrap;\n align-items: center;\n overflow: hidden; \n width: 100%;\n height: 100%; \n box-sizing: border-box;\n background-color: transparent; \n border: 1px solid ", ";\n font-family: \"Poppins\", sans-serif;\n font-weight: 400;\n font-size: 14px;\n border-radius: 12px;\n outline: none;\n color: ", ";\n \n &:hover {\n border: 1px solid ", ";\n cursor: ", ";\n }\n\n &:focus { \n border: 1px solid ", "; \n }\n"])), props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1', props => props.disabled ? '#888' : '#212121', props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121', props => props.disabled ? 'not-allowed' : 'pointer', props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121');
|
|
14
|
-
const StyledInput = exports.StyledInput = _styledComponents.default.input(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 20px;\n font-size: 14px;\n border-radius: ", ";\n border: none;\n outline: none;\n width: ", ";\n height: ", ";\n transition: border-color 0.3s ease; \n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n"])), props => props.borderRadius || '4px', props => props.width || '90%', props => props.height || '60px', props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333', props => props.disabled ? 'not-allowed' : 'text');
|
|
15
|
-
const StyledLabel = exports.StyledLabel = _styledComponents.default.label(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", ";\n padding-inline-end: 5px;\n padding-inline-start: 5px;\n margin-right: 20px;\n width: ", ";\n color: ", ";\n background-color: white;\n position: absolute;\n top: ", ";\n left: 15px;\n transform: translateY(-50%);\n transition: top 0.3s ease, font-size 0.3s ease;\n display: flex;\n font-family: Poppins;\n font-weight: 400;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n"])), props => props.isFocused || props.hasValue ? '14px' : '14px', props => props.isFocused || props.hasValue ? 'auto' : '150px', props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333', props => props.isFocused || props.hasValue ? '0px' : '50%');
|
|
16
|
-
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: red;\n margin-left: 5px;\n"])));
|
|
17
|
-
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n color: red;\n margin-top: 5px;\n"])));
|
|
18
|
-
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n margin: 0;\n padding-top: 8px;\n"])));
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.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
|
-
};
|
|
@@ -1,151 +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.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
|
-
};
|
|
@@ -1,22 +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.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);
|
|
@@ -1,68 +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 _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
|
-
};
|