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,180 +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.SmallButtonTwoIcons = exports.SmallButtonRightIcon = exports.SmallButtonLeftIcon = exports.SecondaryDisabled = exports.SecondaryDefault = exports.PrimaryDisabled = exports.PrimaryDefault = exports.MediumButtonTwoIcons = exports.MediumButtonRightIcon = exports.MediumButtonLeftIcon = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _LinkButton = require("./LinkButton");
|
|
10
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
11
|
-
var _default = exports.default = {
|
|
12
|
-
title: 'SAG Core/LinkButton',
|
|
13
|
-
component: _LinkButton.LinkButton,
|
|
14
|
-
tags: ['autodocs'],
|
|
15
|
-
parameters: {
|
|
16
|
-
design: {
|
|
17
|
-
type: 'figma',
|
|
18
|
-
url: 'https://www.figma.com/design/hhRW9o3Wqj3wF89qGJ2raZ/Sagarmatha--Design-System?m=dev&node-id=299-4075'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
argTypes: {
|
|
22
|
-
text: {
|
|
23
|
-
name: 'text',
|
|
24
|
-
control: {
|
|
25
|
-
type: 'text'
|
|
26
|
-
},
|
|
27
|
-
description: 'text inside of the button'
|
|
28
|
-
},
|
|
29
|
-
type: {
|
|
30
|
-
control: {
|
|
31
|
-
type: 'radio'
|
|
32
|
-
},
|
|
33
|
-
options: ['primary', 'secondary'],
|
|
34
|
-
description: 'type of the button'
|
|
35
|
-
},
|
|
36
|
-
size: {
|
|
37
|
-
control: {
|
|
38
|
-
type: 'radio'
|
|
39
|
-
},
|
|
40
|
-
options: ['small', 'medium'],
|
|
41
|
-
description: 'size of the button'
|
|
42
|
-
},
|
|
43
|
-
disabled: {
|
|
44
|
-
name: 'disabled',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'boolean'
|
|
47
|
-
},
|
|
48
|
-
description: 'changes the button to be enabled/disabled',
|
|
49
|
-
defaultValue: ''
|
|
50
|
-
},
|
|
51
|
-
textColor: {
|
|
52
|
-
name: 'textColor',
|
|
53
|
-
control: {
|
|
54
|
-
type: 'color',
|
|
55
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
56
|
-
description: 'Sets text Color'
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
onClick: {
|
|
60
|
-
action: 'onClick',
|
|
61
|
-
description: 'returns an event click object when user clicks on a button'
|
|
62
|
-
},
|
|
63
|
-
leftIcon: {
|
|
64
|
-
name: 'leftIcon',
|
|
65
|
-
options: ['none', 'ArrowDown', 'ArrowRight', 'Select', 'Bell', 'Document', 'Download', 'Exit', 'Eye', 'Filter', 'Fly', 'Info', 'Maintenance', 'Options', 'Attached'],
|
|
66
|
-
control: {
|
|
67
|
-
type: 'select'
|
|
68
|
-
},
|
|
69
|
-
description: 'Choose an icon to apear on the button left side'
|
|
70
|
-
},
|
|
71
|
-
rightIcon: {
|
|
72
|
-
name: 'rightIcon',
|
|
73
|
-
options: ['none', 'ArrowDown', 'ArrowRight', 'Select', 'Bell', 'Document', 'Download', 'Exit', 'Eye', 'Filter', 'Fly', 'Info', 'Maintenance', 'Options', 'Attached'],
|
|
74
|
-
control: {
|
|
75
|
-
type: 'select'
|
|
76
|
-
},
|
|
77
|
-
description: 'Choose an icon to apear on the button right side'
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const PrimaryDefault = exports.PrimaryDefault = {
|
|
82
|
-
args: {
|
|
83
|
-
text: 'LinkButton',
|
|
84
|
-
type: 'primary',
|
|
85
|
-
size: 'small',
|
|
86
|
-
disabled: false,
|
|
87
|
-
leftIcon: 'none',
|
|
88
|
-
rightIcon: 'none'
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
const PrimaryDisabled = exports.PrimaryDisabled = {
|
|
92
|
-
args: {
|
|
93
|
-
text: 'LinkButton',
|
|
94
|
-
type: 'primary',
|
|
95
|
-
size: 'small',
|
|
96
|
-
disabled: true,
|
|
97
|
-
leftIcon: 'none',
|
|
98
|
-
rightIcon: 'none'
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
const SecondaryDefault = exports.SecondaryDefault = {
|
|
102
|
-
args: {
|
|
103
|
-
text: 'LinkButton',
|
|
104
|
-
type: 'secondary',
|
|
105
|
-
size: 'small',
|
|
106
|
-
disabled: false,
|
|
107
|
-
leftIcon: 'none',
|
|
108
|
-
rightIcon: 'none'
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
const SecondaryDisabled = exports.SecondaryDisabled = {
|
|
112
|
-
args: {
|
|
113
|
-
text: 'LinkButton',
|
|
114
|
-
type: 'secondary',
|
|
115
|
-
size: 'small',
|
|
116
|
-
disabled: true,
|
|
117
|
-
leftIcon: 'none',
|
|
118
|
-
rightIcon: 'none'
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
const SmallButtonTwoIcons = exports.SmallButtonTwoIcons = {
|
|
122
|
-
arg: {
|
|
123
|
-
text: 'LinkButton',
|
|
124
|
-
type: 'primary',
|
|
125
|
-
size: 'small',
|
|
126
|
-
disabled: false,
|
|
127
|
-
leftIcon: 'Filter',
|
|
128
|
-
rightIcon: 'Exit'
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
const SmallButtonLeftIcon = exports.SmallButtonLeftIcon = {
|
|
132
|
-
args: {
|
|
133
|
-
text: 'LinkButton',
|
|
134
|
-
type: 'primary',
|
|
135
|
-
size: 'small',
|
|
136
|
-
disabled: false,
|
|
137
|
-
leftIcon: 'Download',
|
|
138
|
-
rightIcon: 'none'
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const SmallButtonRightIcon = exports.SmallButtonRightIcon = {
|
|
142
|
-
args: {
|
|
143
|
-
text: 'LinkButton',
|
|
144
|
-
type: 'primary',
|
|
145
|
-
size: 'small',
|
|
146
|
-
disabled: false,
|
|
147
|
-
leftIcon: 'none',
|
|
148
|
-
rightIcon: 'Exit'
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
const MediumButtonTwoIcons = exports.MediumButtonTwoIcons = {
|
|
152
|
-
args: {
|
|
153
|
-
text: 'LinkButton',
|
|
154
|
-
type: 'primary',
|
|
155
|
-
size: 'medium',
|
|
156
|
-
disabled: false,
|
|
157
|
-
leftIcon: 'Filter',
|
|
158
|
-
rightIcon: 'Exit'
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
const MediumButtonLeftIcon = exports.MediumButtonLeftIcon = {
|
|
162
|
-
args: {
|
|
163
|
-
text: 'LinkButton',
|
|
164
|
-
type: 'primary',
|
|
165
|
-
size: 'medium',
|
|
166
|
-
disabled: false,
|
|
167
|
-
leftIcon: 'Download',
|
|
168
|
-
rightIcon: 'none'
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const MediumButtonRightIcon = exports.MediumButtonRightIcon = {
|
|
172
|
-
args: {
|
|
173
|
-
text: 'LinkButton',
|
|
174
|
-
type: 'primary',
|
|
175
|
-
size: 'medium',
|
|
176
|
-
disabled: false,
|
|
177
|
-
leftIcon: 'none',
|
|
178
|
-
rightIcon: 'Exit'
|
|
179
|
-
}
|
|
180
|
-
};
|
|
@@ -1,14 +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.LinkButtonItem = exports.LinkButtonContainer = exports.Label = exports.IconWrapper = 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;
|
|
11
|
-
const LinkButtonContainer = exports.LinkButtonContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center; \n width: ", ";\n height: ", ";\n"])), props => props.width, props => props.height);
|
|
12
|
-
const LinkButtonItem = exports.LinkButtonItem = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n flex-wrap: nowrap;\n overflow: hidden;\n width: ", ";\n height: ", "; \n color: ", "; \n box-sizing: border-box;\n gap: 8px; \n padding: 0 4px; \n font-size: ", ";\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400; \n &:hover { \n color: ", "; \n text-decoration: ", "; \n cursor: ", ";\n }\n &.LinkButtonItem-clicked { \n cursor: pointer; \n transition: background-color 0.3s, color 0.3s;\n }\n"])), props => props.width, props => props.height, props => props.disabled ? '#B1B1B1' : props.text_color, props => props.font_size, props => props.disabled ? '#B1B1B1' : props.text_color, props => props.disabled ? '' : 'underline', props => !props.disabled ? 'pointer' : 'default');
|
|
13
|
-
const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)([" \n user-select: none; \n pointer-events: none;\n"])));
|
|
14
|
-
const IconWrapper = exports.IconWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center; \n"])));
|
|
@@ -1,43 +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.LinnerDataBox = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _LinnerDataBox = require("./LinnerDataBox.style");
|
|
10
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
11
|
-
const LinnerDataBox = props => {
|
|
12
|
-
const {
|
|
13
|
-
width,
|
|
14
|
-
height,
|
|
15
|
-
data,
|
|
16
|
-
backgroundColor,
|
|
17
|
-
className
|
|
18
|
-
} = props;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_LinnerDataBox.LinnerContainer, {
|
|
20
|
-
className: className,
|
|
21
|
-
backgroundColor: backgroundColor,
|
|
22
|
-
width: width || '100%',
|
|
23
|
-
height: height || '200px'
|
|
24
|
-
}, data.map((item, index) => /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxWrap, {
|
|
25
|
-
width: "".concat(100 / data.length, "%")
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBox, null, /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxTitle, null, item.title), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContent, null, item.value !== null && item.value !== undefined ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentSign, null, item.sign), /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentValue, null, ''.concat((0, _CommonFunctions.getFormattedValue)(item.value), (0, _CommonFunctions.getFormattedUnits)(item.value)))) : /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxContentNoValue, null, "No Data")), item.extraInfo.map(extraInfoItem => /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCell, null, extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellValue, null, ''.concat('$', (0, _CommonFunctions.getFormattedValue)(extraInfoItem.value), (0, _CommonFunctions.getFormattedUnits)(extraInfoItem.value))), extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/_react.default.createElement(_LinnerDataBox.DataBoxExtraInfoCellTitle, null, extraInfoItem.title)))), index < data.length - 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
-
style: {
|
|
28
|
-
width: '1px',
|
|
29
|
-
minHeight: '100px',
|
|
30
|
-
height: '100%',
|
|
31
|
-
backgroundColor: '#D0D0D0'
|
|
32
|
-
}
|
|
33
|
-
}))));
|
|
34
|
-
};
|
|
35
|
-
exports.LinnerDataBox = LinnerDataBox;
|
|
36
|
-
var _default = exports.default = LinnerDataBox;
|
|
37
|
-
LinnerDataBox.defaultProps = {
|
|
38
|
-
className: '',
|
|
39
|
-
width: '100%',
|
|
40
|
-
height: 'auto',
|
|
41
|
-
data: [],
|
|
42
|
-
backgroundColor: '#FFFFFF'
|
|
43
|
-
};
|
|
@@ -1,56 +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.LinnerDataBoxDefault = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _LinnerDataBox = require("./LinnerDataBox");
|
|
10
|
-
const data = [{
|
|
11
|
-
title: 'Total Cost',
|
|
12
|
-
value: null,
|
|
13
|
-
sign: '$',
|
|
14
|
-
extraInfo: [{
|
|
15
|
-
value: 7000,
|
|
16
|
-
title: 'Package cost'
|
|
17
|
-
}, {
|
|
18
|
-
value: null,
|
|
19
|
-
title: 'Redemption cost'
|
|
20
|
-
}]
|
|
21
|
-
}, {
|
|
22
|
-
title: 'Actual Sales',
|
|
23
|
-
value: 150000.6,
|
|
24
|
-
sign: '$',
|
|
25
|
-
extraInfo: []
|
|
26
|
-
}, {
|
|
27
|
-
title: 'Incremental Sales',
|
|
28
|
-
value: null,
|
|
29
|
-
sign: '$',
|
|
30
|
-
extraInfo: []
|
|
31
|
-
}, {
|
|
32
|
-
title: 'Actual Sales ROI',
|
|
33
|
-
value: 19,
|
|
34
|
-
sign: 'x',
|
|
35
|
-
extraInfo: []
|
|
36
|
-
}, {
|
|
37
|
-
title: 'Incremental Sales ROI',
|
|
38
|
-
value: null,
|
|
39
|
-
sign: 'x',
|
|
40
|
-
extraInfo: []
|
|
41
|
-
}];
|
|
42
|
-
|
|
43
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
44
|
-
var _default = exports.default = {
|
|
45
|
-
title: 'SAG BI/LinnerDataBox',
|
|
46
|
-
component: _LinnerDataBox.LinnerDataBox,
|
|
47
|
-
tags: ['autodocs']
|
|
48
|
-
};
|
|
49
|
-
const LinnerDataBoxDefault = exports.LinnerDataBoxDefault = {
|
|
50
|
-
args: {
|
|
51
|
-
width: '100%',
|
|
52
|
-
height: 'auto',
|
|
53
|
-
data,
|
|
54
|
-
backgroundColor: 'white'
|
|
55
|
-
}
|
|
56
|
-
};
|
|
@@ -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.LinnerContainer = exports.DataBoxWrap = exports.DataBoxTitle = exports.DataBoxExtraInfoCellValue = exports.DataBoxExtraInfoCellTitle = exports.DataBoxExtraInfoCell = exports.DataBoxExtraInfo = exports.DataBoxContentValue = exports.DataBoxContentSign = exports.DataBoxContentNoValue = exports.DataBoxContent = exports.DataBox = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
11
|
-
const LinnerContainer = exports.LinnerContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n display: flex;\n justify-content: space-between;\n width: ", ";\n height: ", ";\n background-color: ", ";\n padding: 50px 40px 30px;\n"])), props => props.width, props => props.height, props => props.backgroundColor);
|
|
12
|
-
const DataBoxWrap = exports.DataBoxWrap = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 10px;\n justify-content: space-around;\n align-items: stretch;\n width: ", ";\n height: 100%;\n"])), props => props.width);
|
|
13
|
-
const DataBox = exports.DataBox = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-weight: 400;\n"])));
|
|
14
|
-
const DataBoxTitle = exports.DataBoxTitle = _styledComponents.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 500;\n"])));
|
|
15
|
-
const DataBoxContent = exports.DataBoxContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n"])));
|
|
16
|
-
const DataBoxContentSign = exports.DataBoxContentSign = _styledComponents.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 500;\n"])));
|
|
17
|
-
const DataBoxContentValue = exports.DataBoxContentValue = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 40px;\n font-weight: 500;\n"])));
|
|
18
|
-
const DataBoxContentNoValue = exports.DataBoxContentNoValue = _styledComponents.default.span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 500;\n margin: 20px auto 0;\n"])));
|
|
19
|
-
const DataBoxExtraInfo = exports.DataBoxExtraInfo = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n"])));
|
|
20
|
-
const DataBoxExtraInfoCell = exports.DataBoxExtraInfoCell = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 5px;\n"])));
|
|
21
|
-
const DataBoxExtraInfoCellTitle = exports.DataBoxExtraInfoCellTitle = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n color: #999;\n font-size: 12px;\n text-transform: uppercase;\n"])));
|
|
22
|
-
const DataBoxExtraInfoCellValue = exports.DataBoxExtraInfoCellValue = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n color: #999;\n font-size: 12px;\n text-transform: uppercase;\n"])));
|
|
@@ -1,82 +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 = exports.ListBox = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _CheckBoxButton = require("../CheckBoxButton/CheckBoxButton");
|
|
10
|
-
var _ListBox = require("./ListBox.style");
|
|
11
|
-
/* ListBox */
|
|
12
|
-
const ListBox = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
data,
|
|
15
|
-
width = '100%',
|
|
16
|
-
height = '100%',
|
|
17
|
-
borderColor = '#B1B1B1',
|
|
18
|
-
buttonsIconColor = '#1B30AA',
|
|
19
|
-
buttonsBorderColor = '#1B30AA',
|
|
20
|
-
buttonsTextColorChecked = '#212121',
|
|
21
|
-
buttonsTextColorUnchecked = '#212121',
|
|
22
|
-
buttonsBackgroundColorChecked = '#1B30AA',
|
|
23
|
-
buttonsBackgroundColorUnchecked = '#FFF',
|
|
24
|
-
onClick,
|
|
25
|
-
...props
|
|
26
|
-
} = _ref;
|
|
27
|
-
const [dataState, setDataState] = (0, _react.useState)(data);
|
|
28
|
-
(0, _react.useEffect)(() => {
|
|
29
|
-
const selectedData = dataState === null || dataState === void 0 ? void 0 : dataState.filter(item => item.checked === true);
|
|
30
|
-
onClick({
|
|
31
|
-
data: dataState,
|
|
32
|
-
selectedData
|
|
33
|
-
});
|
|
34
|
-
}, [dataState]);
|
|
35
|
-
const dispalyButtons = function (data, height) {
|
|
36
|
-
let paddingBottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '5px';
|
|
37
|
-
if (data && data.length > 0) {
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_ListBox.ButtonsContainer, {
|
|
39
|
-
id: "ButtonsContainer",
|
|
40
|
-
height: height,
|
|
41
|
-
paddingBottom: paddingBottom
|
|
42
|
-
}, data === null || data === void 0 ? void 0 : data.map(item => /*#__PURE__*/_react.default.createElement(_ListBox.ButtonContainer, {
|
|
43
|
-
id: "ButtonContainer"
|
|
44
|
-
}, /*#__PURE__*/_react.default.createElement(_CheckBoxButton.CheckBoxButton, {
|
|
45
|
-
backgroundColorChecked: buttonsBackgroundColorChecked,
|
|
46
|
-
backgroundColorUnchecked: buttonsBackgroundColorUnchecked,
|
|
47
|
-
borderColor: buttonsBorderColor,
|
|
48
|
-
borderRadius: "12px",
|
|
49
|
-
checked: item.checked,
|
|
50
|
-
disabled: item.disabled,
|
|
51
|
-
showIconInCheckBoxButtons: false,
|
|
52
|
-
fontSize: "14px",
|
|
53
|
-
height: "19px",
|
|
54
|
-
iconColor: buttonsIconColor,
|
|
55
|
-
iconSize: "12px",
|
|
56
|
-
label: item.label,
|
|
57
|
-
onClick: props => {
|
|
58
|
-
const newData = dataState === null || dataState === void 0 ? void 0 : dataState.map(item => item.label === props.label ? {
|
|
59
|
-
...item,
|
|
60
|
-
checked: props.checked
|
|
61
|
-
} : {
|
|
62
|
-
...item
|
|
63
|
-
});
|
|
64
|
-
setDataState(newData);
|
|
65
|
-
},
|
|
66
|
-
textColorChecked: buttonsTextColorChecked,
|
|
67
|
-
textColorUnchecked: buttonsTextColorUnchecked,
|
|
68
|
-
width: "100%"
|
|
69
|
-
}))));
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_ListBox.MainContainer, {
|
|
73
|
-
id: "MainContainer",
|
|
74
|
-
height: height,
|
|
75
|
-
width: width
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_ListBox.PanelContainer, {
|
|
77
|
-
id: "PanelContainer",
|
|
78
|
-
borderColor: borderColor
|
|
79
|
-
}, dispalyButtons(dataState, height = '50px', '0')));
|
|
80
|
-
};
|
|
81
|
-
exports.ListBox = ListBox;
|
|
82
|
-
var _default = exports.default = ListBox;
|
|
@@ -1,132 +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.Retailers = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _ListBox = require("./ListBox");
|
|
10
|
-
const viewCreativeRetailersData1 = [{
|
|
11
|
-
label: 'Food Lion',
|
|
12
|
-
checked: true,
|
|
13
|
-
disabled: false
|
|
14
|
-
}, {
|
|
15
|
-
label: 'Stop&Shop',
|
|
16
|
-
checked: true,
|
|
17
|
-
disabled: false
|
|
18
|
-
}, {
|
|
19
|
-
label: 'Giant Food',
|
|
20
|
-
checked: true,
|
|
21
|
-
disabled: false
|
|
22
|
-
}, {
|
|
23
|
-
label: 'The Giant Company',
|
|
24
|
-
checked: true,
|
|
25
|
-
disabled: false
|
|
26
|
-
}, {
|
|
27
|
-
label: 'Hannaford',
|
|
28
|
-
checked: true,
|
|
29
|
-
disabled: false
|
|
30
|
-
}];
|
|
31
|
-
var _default = exports.default = {
|
|
32
|
-
title: 'SAG Core/ListBox',
|
|
33
|
-
component: _ListBox.ListBox,
|
|
34
|
-
tags: ['autodocs'],
|
|
35
|
-
argTypes: {
|
|
36
|
-
data: {
|
|
37
|
-
name: 'data',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'object'
|
|
40
|
-
},
|
|
41
|
-
description: ' object: to fill event Attributes buttons '
|
|
42
|
-
},
|
|
43
|
-
width: {
|
|
44
|
-
name: 'width',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
},
|
|
48
|
-
description: 'width of the control (in px / %)'
|
|
49
|
-
},
|
|
50
|
-
height: {
|
|
51
|
-
name: 'height',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'text'
|
|
54
|
-
},
|
|
55
|
-
description: 'height of the control (in px / % )'
|
|
56
|
-
},
|
|
57
|
-
onClick: {
|
|
58
|
-
action: 'onClick',
|
|
59
|
-
description: 'onClick event - returns an object of check box {true/false} '
|
|
60
|
-
},
|
|
61
|
-
borderColor: {
|
|
62
|
-
name: 'borderColor',
|
|
63
|
-
control: {
|
|
64
|
-
type: 'color',
|
|
65
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
66
|
-
description: 'Sets borderColor Color '
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
buttonsIconColor: {
|
|
70
|
-
name: 'buttonsIconColor',
|
|
71
|
-
control: {
|
|
72
|
-
type: 'color',
|
|
73
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
74
|
-
description: 'Sets icons Color '
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
buttonsBorderColor: {
|
|
78
|
-
name: 'buttonsBorderColor',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'color',
|
|
81
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
82
|
-
description: 'Sets buttons border Color '
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
buttonsTextColorChecked: {
|
|
86
|
-
name: 'buttonsTextColorChecked',
|
|
87
|
-
control: {
|
|
88
|
-
type: 'color',
|
|
89
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
90
|
-
description: 'Sets text Checked Color '
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
buttonsTextColorUnchecked: {
|
|
94
|
-
name: 'buttonsTextColorUnchecked',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'color',
|
|
97
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
98
|
-
description: 'Sets text Unchecked Color '
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
buttonsBackgroundColorChecked: {
|
|
102
|
-
name: 'buttonsBackgroundColorChecked',
|
|
103
|
-
control: {
|
|
104
|
-
type: 'color',
|
|
105
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
106
|
-
description: 'Sets text background Checked Color '
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
buttonsBackgroundColorUnchecked: {
|
|
110
|
-
name: 'buttonsBackgroundColorUnchecked',
|
|
111
|
-
control: {
|
|
112
|
-
type: 'color',
|
|
113
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
114
|
-
description: 'Sets text background Unchecked Color '
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const Retailers = exports.Retailers = {
|
|
120
|
-
args: {
|
|
121
|
-
data: viewCreativeRetailersData1,
|
|
122
|
-
width: '180px',
|
|
123
|
-
height: '100%',
|
|
124
|
-
borderColor: '#B1B1B1',
|
|
125
|
-
buttonsIconColor: "#90CE9C",
|
|
126
|
-
buttonsBorderColor: "#90CE9C",
|
|
127
|
-
buttonsTextColorChecked: "#212121",
|
|
128
|
-
buttonsTextColorUnchecked: "#212121",
|
|
129
|
-
buttonsBackgroundColorChecked: "#E9F5EB",
|
|
130
|
-
buttonsBackgroundColorUnchecked: "#F2F2F2"
|
|
131
|
-
}
|
|
132
|
-
};
|
|
@@ -1,14 +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.PanelContainer = exports.MainContainer = exports.ButtonsContainer = exports.ButtonContainer = 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;
|
|
11
|
-
const MainContainer = exports.MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: 1rem;\n border-radius: 12px;\n width: ", ";\n height: ", ";\n"])), props => props.width, props => props.height);
|
|
12
|
-
const PanelContainer = exports.PanelContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n border: 1px solid ", ";\n border-radius: 12px;\n background: #ffffff;\n padding: 0.1rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 19px;\n white-space: pre-wrap;\n overflow: hidden;\n width: 100%;\n"])), props => props.borderColor);
|
|
13
|
-
const ButtonsContainer = exports.ButtonsContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n //flex-wrap: wrap;\n width: 100%;\n padding-bottom: ", "; \n"])), props => props.paddingBottom);
|
|
14
|
-
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n /* display: flex; */\n white-space: nowrap;\n margin: 0;\n padding: 6px;\n"])));
|
|
@@ -1,109 +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.MarketShareDescription = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _LampIcon = require("../../icons/LampIcon");
|
|
10
|
-
var _ExportIcon = _interopRequireDefault(require("../../icons/ExportIcon"));
|
|
11
|
-
var _MarketShareDescription = require("./MarketShareDescription.style");
|
|
12
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
13
|
-
const MarketShareDescription = props => {
|
|
14
|
-
const {
|
|
15
|
-
width,
|
|
16
|
-
height,
|
|
17
|
-
marketShareData,
|
|
18
|
-
iconColor,
|
|
19
|
-
onBannerClick,
|
|
20
|
-
dotCut
|
|
21
|
-
} = props;
|
|
22
|
-
const displayField = dataItem => {
|
|
23
|
-
var _dataItem$value;
|
|
24
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldTitleAndValueSubContainer, {
|
|
25
|
-
className: "FieldTitleAndValueSubContainer"
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldTitle, {
|
|
27
|
-
className: "FieldTitle"
|
|
28
|
-
}, dataItem.label), /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FormattedValue, {
|
|
29
|
-
className: "FormattedValue"
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.TextBeforeAndAfterValue, {
|
|
31
|
-
className: "TextBeforeAndAfterValue"
|
|
32
|
-
}, dataItem.textBefore), dotCut ? (0, _CommonFunctions.getFormattedValue)(dataItem.value && Math.abs(dataItem.value) > 0 && dataItem.value % 1 !== 0 ? (_dataItem$value = dataItem.value) === null || _dataItem$value === void 0 ? void 0 : _dataItem$value.toFixed(2) : dataItem.value) : (0, _CommonFunctions.getNumberWithCommas)(dataItem.value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(dataItem.value) : '', /*#__PURE__*/_react.default.createElement(_MarketShareDescription.TextBeforeAndAfterValue, null, dataItem.textAfter)));
|
|
33
|
-
return content;
|
|
34
|
-
};
|
|
35
|
-
const dispalyRowFields = data => {
|
|
36
|
-
if (!data && !data.length > 0) return '';
|
|
37
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.FieldsContainer, {
|
|
38
|
-
className: "FieldsContainer",
|
|
39
|
-
height: "160px"
|
|
40
|
-
}, data === null || data === void 0 ? void 0 : data.map((item, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OneFieldsContainer, {
|
|
41
|
-
className: "OneFieldsContainer",
|
|
42
|
-
padding: index === 0 ? '0px' : '0 0 0 40px'
|
|
43
|
-
}, displayField(item)), (data === null || data === void 0 ? void 0 : data.length) !== index + 1 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporatorContainer, {
|
|
44
|
-
className: "ColumnLineSeporatorContainer_vertical"
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporator, {
|
|
46
|
-
className: "ColumnLineSeporator"
|
|
47
|
-
})) : '')));
|
|
48
|
-
return content;
|
|
49
|
-
};
|
|
50
|
-
const displayRows = () => {
|
|
51
|
-
if (!marketShareData || (marketShareData === null || marketShareData === void 0 ? void 0 : marketShareData.length) === 0) return '';
|
|
52
|
-
const content = /*#__PURE__*/_react.default.createElement(_MarketShareDescription.AllRowsContainer, {
|
|
53
|
-
className: "AllRowsContainer"
|
|
54
|
-
}, marketShareData.map((item, index) => {
|
|
55
|
-
var _item$rowFooter;
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OneRowContainer, {
|
|
57
|
-
className: "OneRowContainer"
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.RowTitle, {
|
|
59
|
-
className: "RowTitle"
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextLabel, {
|
|
61
|
-
className: "InfoTextLabel",
|
|
62
|
-
dangerouslySetInnerHTML: {
|
|
63
|
-
__html: item.rowTitle
|
|
64
|
-
}
|
|
65
|
-
}), item.showBanner && /*#__PURE__*/_react.default.createElement(_MarketShareDescription.OutBanner, {
|
|
66
|
-
className: "OutBanner",
|
|
67
|
-
onClick: () => onBannerClick({
|
|
68
|
-
eventName: 'onBannerClick',
|
|
69
|
-
rowName: item.name
|
|
70
|
-
})
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement(_ExportIcon.default, {
|
|
72
|
-
color: "#212121"
|
|
73
|
-
}), "View By Banner")), dispalyRowFields(item.fieldsArray), /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextContainer, {
|
|
74
|
-
className: "InfoTextContainer"
|
|
75
|
-
}, item.rowFooter && ((_item$rowFooter = item.rowFooter) === null || _item$rowFooter === void 0 ? void 0 : _item$rowFooter.length) > 0 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.IconContainer, {
|
|
76
|
-
className: "IconContainer"
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_LampIcon.LampIcon, {
|
|
78
|
-
width: "23px",
|
|
79
|
-
height: "19px",
|
|
80
|
-
fill: iconColor
|
|
81
|
-
})) : '', /*#__PURE__*/_react.default.createElement(_MarketShareDescription.InfoTextLabel, {
|
|
82
|
-
className: "InfoTextLabel",
|
|
83
|
-
dangerouslySetInnerHTML: {
|
|
84
|
-
__html: item.rowFooter
|
|
85
|
-
}
|
|
86
|
-
}))), (marketShareData === null || marketShareData === void 0 ? void 0 : marketShareData.length) !== index + 1 ? /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporatorContainer, {
|
|
87
|
-
className: "ColumnLineSeporatorContainer_horizontal"
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_MarketShareDescription.ColumnLineSeporator, {
|
|
89
|
-
className: "ColumnLineSeporator"
|
|
90
|
-
})) : '');
|
|
91
|
-
}));
|
|
92
|
-
return content;
|
|
93
|
-
};
|
|
94
|
-
return /*#__PURE__*/_react.default.createElement(_MarketShareDescription.MainContainer, {
|
|
95
|
-
className: "MainContainer",
|
|
96
|
-
height: height,
|
|
97
|
-
width: width
|
|
98
|
-
}, displayRows());
|
|
99
|
-
};
|
|
100
|
-
exports.MarketShareDescription = MarketShareDescription;
|
|
101
|
-
var _default = exports.default = MarketShareDescription;
|
|
102
|
-
MarketShareDescription.defaultProps = {
|
|
103
|
-
marketShareData: [],
|
|
104
|
-
width: '100%',
|
|
105
|
-
height: '100%',
|
|
106
|
-
iconColor: '#1B30AA',
|
|
107
|
-
onBannerClick: () => {},
|
|
108
|
-
dotCut: false
|
|
109
|
-
};
|