sag_components 1.0.975 → 1.0.976
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/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +40 -6
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +71 -15
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +10 -5
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +182 -16
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart/BarChart.js +5 -3
- package/dist/stories/components/BarChart/BarChart.stories.js +29 -20
- package/dist/stories/components/BarChart/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +53 -44
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +166 -40
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +72 -11
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark/Benchmark.style.js +53 -7
- package/dist/stories/components/Button/Button.js +1 -1
- package/dist/stories/components/Button/Button.style.js +82 -7
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/Card/Card.style.js +57 -10
- package/dist/stories/components/CheckBox/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +2 -1
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +49 -36
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +204 -16
- package/dist/stories/components/DropdownNew/DropdownNew.js +21 -11
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +18 -9
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +13 -3
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +30 -10
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +175 -14
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel/FilterPanel.js +22 -17
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +81 -13
- package/dist/stories/components/FilterPanel.js +4 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton/IconButton.style.js +56 -7
- package/dist/stories/components/Input/Input.style.js +122 -9
- package/dist/stories/components/InputOld/InputOld.style.js +61 -8
- package/dist/stories/components/KpiFilter/KpiFilter.js +18 -1
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +4 -2
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +32 -10
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +17 -3
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal/Modal.style.js +56 -8
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +95 -10
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +91 -13
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +5 -3
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +14 -4
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +14 -13
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/Popup/Popup.style.js +114 -16
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +100 -15
- package/dist/stories/components/PopupContent/PopupContent.style.js +64 -11
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +94 -10
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +85 -12
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +2 -2
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/RangePicker/RangeDatePicker.js +95 -12
- package/dist/stories/components/RangePicker/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker/RangePicker.style.js +99 -10
- package/dist/stories/components/ReportTable/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select/Select.style.js +92 -9
- package/dist/stories/components/TabMenu/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu/TabMenu.style.js +105 -14
- package/dist/stories/components/Table/Table.js +2 -2
- package/dist/stories/components/Table/Table.style.js +78 -9
- package/dist/stories/components/TextField/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +47 -32
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +52 -14
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +51 -13
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +6 -4
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +88 -23
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/CommonFunctions.js +13 -8
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
package/dist/Button.test.js
CHANGED
|
@@ -10,7 +10,7 @@ require("@testing-library/jest-dom");
|
|
|
10
10
|
/* eslint-disable no-undef */
|
|
11
11
|
|
|
12
12
|
test('Button Check text', () => {
|
|
13
|
-
(0, _react2.render)(
|
|
13
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
14
14
|
text: "test",
|
|
15
15
|
type: "primary",
|
|
16
16
|
size: "small",
|
|
@@ -24,7 +24,7 @@ test('Button Check text', () => {
|
|
|
24
24
|
test('Button Check type functionality: when "primary" type selected then background color must be specified as "rgb(146, 207, 23)" ', () => {
|
|
25
25
|
const {
|
|
26
26
|
container
|
|
27
|
-
} = (0, _react2.render)(
|
|
27
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
28
28
|
text: "Button",
|
|
29
29
|
type: "primary",
|
|
30
30
|
size: "small",
|
|
@@ -40,7 +40,7 @@ test('Button Check type functionality: when "primary" type selected then backgro
|
|
|
40
40
|
test('Button Check type functionality: when "secondary" type selected then background color must be specified as "rgb(232, 245, 235)" ', () => {
|
|
41
41
|
const {
|
|
42
42
|
container
|
|
43
|
-
} = (0, _react2.render)(
|
|
43
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
44
44
|
text: "Button",
|
|
45
45
|
type: "secondary",
|
|
46
46
|
size: "small",
|
|
@@ -56,7 +56,7 @@ test('Button Check type functionality: when "secondary" type selected then backg
|
|
|
56
56
|
test('Button Check disabled functionality: when disabled prop is true, button textColor should be "rgb(177, 177, 177)" ', () => {
|
|
57
57
|
const {
|
|
58
58
|
container
|
|
59
|
-
} = (0, _react2.render)(
|
|
59
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
60
60
|
text: "Button",
|
|
61
61
|
type: "primary",
|
|
62
62
|
size: "small",
|
|
@@ -72,7 +72,7 @@ test('Button Check disabled functionality: when disabled prop is true, button te
|
|
|
72
72
|
test('Button Check leftIcon functionality: when "Filter" icons is specified as the leftIcon props, it should be rendered on the screen', () => {
|
|
73
73
|
const {
|
|
74
74
|
container
|
|
75
|
-
} = (0, _react2.render)(
|
|
75
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
76
76
|
text: "Button",
|
|
77
77
|
type: "primary",
|
|
78
78
|
size: "small",
|
|
@@ -86,7 +86,7 @@ test('Button Check leftIcon functionality: when "Filter" icons is specified as
|
|
|
86
86
|
test('Button Check rightIcon functionality: when "Exit" icons is specified as the rightIcon props, it should be rendered on the screen', () => {
|
|
87
87
|
const {
|
|
88
88
|
container
|
|
89
|
-
} = (0, _react2.render)(
|
|
89
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
90
90
|
text: "Button",
|
|
91
91
|
type: "primary",
|
|
92
92
|
size: "small",
|
|
@@ -100,7 +100,7 @@ test('Button Check rightIcon functionality: when "Exit" icons is specified as th
|
|
|
100
100
|
test('Button Check leftIcon and rightIcon functionality: when "Filter" and "Exit" icons is specified as the leftIcon and rightIcon props, it should be rendered on the screen', () => {
|
|
101
101
|
const {
|
|
102
102
|
container
|
|
103
|
-
} = (0, _react2.render)(
|
|
103
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
104
104
|
text: "Button",
|
|
105
105
|
type: "primary",
|
|
106
106
|
size: "small",
|
|
@@ -116,7 +116,7 @@ test('Button Check leftIcon and rightIcon functionality: when "Filter" and "Exit
|
|
|
116
116
|
test('Button Check small/medium functionality: when "small" the height must be "33px" ', () => {
|
|
117
117
|
const {
|
|
118
118
|
container
|
|
119
|
-
} = (0, _react2.render)(
|
|
119
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
120
120
|
text: "Button",
|
|
121
121
|
type: "primary",
|
|
122
122
|
size: "small",
|
|
@@ -132,7 +132,7 @@ test('Button Check small/medium functionality: when "small" the height must be "
|
|
|
132
132
|
test('Button Check small/medium functionality: when "medium" the height must be "45px" ', () => {
|
|
133
133
|
const {
|
|
134
134
|
container
|
|
135
|
-
} = (0, _react2.render)(
|
|
135
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
136
136
|
text: "Button",
|
|
137
137
|
type: "primary",
|
|
138
138
|
size: "medium",
|
|
@@ -146,7 +146,7 @@ test('Button Check small/medium functionality: when "medium" the height must be
|
|
|
146
146
|
test('Button Check specific height and width functionality: when height = 100px and width = 200px it should override small/medium functionality ', () => {
|
|
147
147
|
const {
|
|
148
148
|
container
|
|
149
|
-
} = (0, _react2.render)(
|
|
149
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
150
150
|
text: "Button",
|
|
151
151
|
type: "primary",
|
|
152
152
|
size: "small",
|
package/dist/LinkButton.test.js
CHANGED
|
@@ -10,7 +10,7 @@ require("@testing-library/jest-dom");
|
|
|
10
10
|
/* eslint-disable no-undef */
|
|
11
11
|
|
|
12
12
|
test('LinkButton Check text', () => {
|
|
13
|
-
(0, _react2.render)(
|
|
13
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
14
14
|
text: "test",
|
|
15
15
|
type: "secondary",
|
|
16
16
|
size: "small",
|
|
@@ -22,7 +22,7 @@ test('LinkButton Check text', () => {
|
|
|
22
22
|
test('LinkButton Check type functionality: when "primary" type selected then text color must be specified as "rgb(146, 207, 23)" ', () => {
|
|
23
23
|
const {
|
|
24
24
|
container
|
|
25
|
-
} = (0, _react2.render)(
|
|
25
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
26
26
|
text: "LinkButton",
|
|
27
27
|
type: "primary",
|
|
28
28
|
size: "small",
|
|
@@ -36,7 +36,7 @@ test('LinkButton Check type functionality: when "primary" type selected then tex
|
|
|
36
36
|
test('LinkButton Check type functionality: when "secondary" type selected then background color must be specified as "rgb(232, 245, 235)" ', () => {
|
|
37
37
|
const {
|
|
38
38
|
container
|
|
39
|
-
} = (0, _react2.render)(
|
|
39
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
40
40
|
text: "LinkButton",
|
|
41
41
|
type: "secondary",
|
|
42
42
|
size: "small",
|
|
@@ -50,7 +50,7 @@ test('LinkButton Check type functionality: when "secondary" type selected then b
|
|
|
50
50
|
test('LinkButton Check disabled functionality: when disabled prop is true, button textColor should be "rgb(177, 177, 177)" ', () => {
|
|
51
51
|
const {
|
|
52
52
|
container
|
|
53
|
-
} = (0, _react2.render)(
|
|
53
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
54
54
|
text: "LinkButton",
|
|
55
55
|
type: "primary",
|
|
56
56
|
size: "small",
|
|
@@ -64,7 +64,7 @@ test('LinkButton Check disabled functionality: when disabled prop is true, butto
|
|
|
64
64
|
test('LinkButton Check leftIcon and rightIcon functionality: when "Filter" and "Exit" icons is specified as the leftIcon and rightIcon props, it should be rendered on the screen', () => {
|
|
65
65
|
const {
|
|
66
66
|
container
|
|
67
|
-
} = (0, _react2.render)(
|
|
67
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
68
68
|
text: "LinkButton",
|
|
69
69
|
type: "primary",
|
|
70
70
|
size: "small",
|
|
@@ -80,7 +80,7 @@ test('LinkButton Check leftIcon and rightIcon functionality: when "Filter" and "
|
|
|
80
80
|
test('LinkButton Check rightIcon functionality: when "Exit" icons is specified as the rightIcon props, it should be rendered on the screen', () => {
|
|
81
81
|
const {
|
|
82
82
|
container
|
|
83
|
-
} = (0, _react2.render)(
|
|
83
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
84
84
|
text: "LinkButton",
|
|
85
85
|
type: "primary",
|
|
86
86
|
size: "small",
|
|
@@ -93,7 +93,7 @@ test('LinkButton Check rightIcon functionality: when "Exit" icons is specified a
|
|
|
93
93
|
test('LinkButton Check leftIcon functionality: when "Filter" icons is specified as the leftIcon props, it should be rendered on the screen', () => {
|
|
94
94
|
const {
|
|
95
95
|
container
|
|
96
|
-
} = (0, _react2.render)(
|
|
96
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
97
97
|
text: "LinkButton",
|
|
98
98
|
type: "primary",
|
|
99
99
|
size: "small",
|
|
@@ -106,7 +106,7 @@ test('LinkButton Check leftIcon functionality: when "Filter" icons is specified
|
|
|
106
106
|
test('LinkButton Check small/medium functionality: when "small" the font-size must be "14px" ', () => {
|
|
107
107
|
const {
|
|
108
108
|
container
|
|
109
|
-
} = (0, _react2.render)(
|
|
109
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
110
110
|
text: "LinkButton",
|
|
111
111
|
type: "primary",
|
|
112
112
|
size: "small",
|
|
@@ -120,7 +120,7 @@ test('LinkButton Check small/medium functionality: when "small" the font-size mu
|
|
|
120
120
|
test('LinkButton Check small/medium functionality: when "medium" the font-size must be "16px" ', () => {
|
|
121
121
|
const {
|
|
122
122
|
container
|
|
123
|
-
} = (0, _react2.render)(
|
|
123
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
124
124
|
text: "LinkButton",
|
|
125
125
|
type: "primary",
|
|
126
126
|
size: "medium",
|
|
@@ -134,7 +134,7 @@ test('LinkButton Check small/medium functionality: when "medium" the font-size m
|
|
|
134
134
|
test('LinkButton Check specific height and width functionality: when height = 100px and width = 200px it should override small/medium functionality ', () => {
|
|
135
135
|
const {
|
|
136
136
|
container
|
|
137
|
-
} = (0, _react2.render)(
|
|
137
|
+
} = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
138
138
|
text: "LinkButton",
|
|
139
139
|
type: "primary",
|
|
140
140
|
size: "small",
|
package/dist/SingleBar.test.js
CHANGED
|
@@ -45,7 +45,7 @@ const legendData1 = [{
|
|
|
45
45
|
title: 'Incremental Sales ROI'
|
|
46
46
|
}];
|
|
47
47
|
test('SingleBarLineCharts Check if title data is rendered', async () => {
|
|
48
|
-
(0, _react2.render)(
|
|
48
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_SingleBarLineCharts.default, {
|
|
49
49
|
width: "100%",
|
|
50
50
|
height: "100%",
|
|
51
51
|
title: "Total Cost Sales",
|
|
@@ -82,7 +82,7 @@ test('SingleBarLineCharts Check if title data is rendered', async () => {
|
|
|
82
82
|
expect(total2Element).toBeInTheDocument();
|
|
83
83
|
});
|
|
84
84
|
test('SingleBarLineCharts Check if legend data is rendered', async () => {
|
|
85
|
-
(0, _react2.render)(
|
|
85
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_SingleBarLineCharts.default, {
|
|
86
86
|
width: "100%",
|
|
87
87
|
height: "100%",
|
|
88
88
|
title: "Total Cost Sales",
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var _App = _interopRequireDefault(require("./App"));
|
|
|
8
8
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
9
9
|
|
|
10
10
|
const root = _client.default.createRoot(document.getElementById('root'));
|
|
11
|
-
root.render(
|
|
11
|
+
root.render(/*#__PURE__*/_react.default.createElement(_react.default.StrictMode, null, /*#__PURE__*/_react.default.createElement(_App.default, null)));
|
|
12
12
|
|
|
13
13
|
// If you want to start measuring performance in your app, pass a function
|
|
14
14
|
// to log results (for example: reportWebVitals(console.log))
|
|
@@ -33,7 +33,7 @@ const AttachedFile = props => {
|
|
|
33
33
|
onRemoveFile(fileToRemove);
|
|
34
34
|
};
|
|
35
35
|
return /*#__PURE__*/_react.default.createElement(_AttachedFile.AttachedFileContainer, null, selectedFiles.map(file => /*#__PURE__*/_react.default.createElement(_AttachedFile.UploadedFile, {
|
|
36
|
-
key:
|
|
36
|
+
key: `${file.name}_${file.lastModified}`
|
|
37
37
|
}, /*#__PURE__*/_react.default.createElement(_FileIcon.default, null), /*#__PURE__*/_react.default.createElement("span", null, file.name), /*#__PURE__*/_react.default.createElement(_AttachedFile.RemoveButton, {
|
|
38
38
|
onClick: () => handleRemoveFile(file)
|
|
39
39
|
}, /*#__PURE__*/_react.default.createElement(_CloseIcon.default, null)))), /*#__PURE__*/_react.default.createElement(_LinkButton.default, {
|
|
@@ -5,10 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.UploadedFile = exports.RemoveButton = exports.InputLabel = exports.AttachedFileContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const AttachedFileContainer = exports.AttachedFileContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: 'Poppins';
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
`;
|
|
14
|
+
const InputLabel = exports.InputLabel = _styledComponents.default.label`
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
> span {
|
|
20
|
+
color: ${props => props.inputColor};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const UploadedFile = exports.UploadedFile = _styledComponents.default.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
align-items: center;
|
|
27
|
+
color: #A4A4A4;
|
|
28
|
+
max-width: 220px;
|
|
29
|
+
padding: 2px 8px;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
> span {
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
> svg {
|
|
37
|
+
min-width: 12px;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const RemoveButton = exports.RemoveButton = _styledComponents.default.button`
|
|
41
|
+
border: none;
|
|
42
|
+
background: none;
|
|
43
|
+
padding: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
`;
|
|
@@ -12,6 +12,7 @@ var _TheGiantCompanyNewIcon = require("../../icons/TheGiantCompanyNewIcon");
|
|
|
12
12
|
var _StopAndShopNewIcon = require("../../icons/StopAndShopNewIcon");
|
|
13
13
|
var _GiantFoodIcon_new = require("../../icons/GiantFoodIcon_new");
|
|
14
14
|
var _HannafordIcon_new = require("../../icons/HannafordIcon_new");
|
|
15
|
+
var _Button = require("../Button/Button");
|
|
15
16
|
const BannerEventBox = props => {
|
|
16
17
|
const {
|
|
17
18
|
width,
|
|
@@ -20,34 +21,36 @@ const BannerEventBox = props => {
|
|
|
20
21
|
description,
|
|
21
22
|
dates,
|
|
22
23
|
data,
|
|
23
|
-
onInfoClick
|
|
24
|
+
onInfoClick,
|
|
25
|
+
buttonText,
|
|
26
|
+
disabled
|
|
24
27
|
} = props;
|
|
25
28
|
const formatedBanners = () => {
|
|
26
29
|
switch (banner) {
|
|
27
|
-
case
|
|
30
|
+
case "Stop&Shop":
|
|
28
31
|
return {
|
|
29
32
|
icon: /*#__PURE__*/_react.default.createElement(_StopAndShopNewIcon.StopAndShopNewIcon, null),
|
|
30
|
-
name:
|
|
33
|
+
name: "Stop&Shop"
|
|
31
34
|
};
|
|
32
|
-
case
|
|
35
|
+
case "Food Lion":
|
|
33
36
|
return {
|
|
34
37
|
icon: /*#__PURE__*/_react.default.createElement(_FoodLionNewIcon.FoodLionNewIcon, null),
|
|
35
|
-
name:
|
|
38
|
+
name: "Food Lion"
|
|
36
39
|
};
|
|
37
|
-
case
|
|
40
|
+
case "Giant Food":
|
|
38
41
|
return {
|
|
39
42
|
icon: /*#__PURE__*/_react.default.createElement(_GiantFoodIcon_new.GiantFoodNewIcon, null),
|
|
40
|
-
name:
|
|
43
|
+
name: "Giant Food"
|
|
41
44
|
};
|
|
42
|
-
case
|
|
45
|
+
case "The Giant Company":
|
|
43
46
|
return {
|
|
44
47
|
icon: /*#__PURE__*/_react.default.createElement(_TheGiantCompanyNewIcon.TheGiantCompanyIcon, null),
|
|
45
|
-
name:
|
|
48
|
+
name: "The Giant Company"
|
|
46
49
|
};
|
|
47
|
-
case
|
|
50
|
+
case "Hannaford":
|
|
48
51
|
return {
|
|
49
52
|
icon: /*#__PURE__*/_react.default.createElement(_HannafordIcon_new.HannafordNewIcon, null),
|
|
50
|
-
name:
|
|
53
|
+
name: "Hannaford"
|
|
51
54
|
};
|
|
52
55
|
default:
|
|
53
56
|
return null;
|
|
@@ -59,29 +62,36 @@ const BannerEventBox = props => {
|
|
|
59
62
|
return /*#__PURE__*/_react.default.createElement(_BannerEventBox.MainContainer, {
|
|
60
63
|
height: height,
|
|
61
64
|
width: width
|
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.TitleWrapper, null, formatedBanners(banner).icon, "|", /*#__PURE__*/_react.default.createElement(_BannerEventBox.CardTitle, null, formatedBanners(banner).name)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Description"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, description)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Dates:"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, dates.join(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.TitleWrapper, null, formatedBanners(banner).icon, "|", /*#__PURE__*/_react.default.createElement(_BannerEventBox.CardTitle, null, formatedBanners(banner).name)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Description"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, description)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Dates:"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, dates.join(" - "))), /*#__PURE__*/_react.default.createElement(_BannerEventBox.ButtonWrap, null, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
66
|
+
leftIcon: "Eye",
|
|
67
|
+
onClick: () => onInfoClickHandler(banner),
|
|
68
|
+
text: buttonText,
|
|
69
|
+
type: "secondary",
|
|
70
|
+
disabled: disabled
|
|
71
|
+
})), /*#__PURE__*/_react.default.createElement(_BannerEventBox.DetailsWrapper, null, data === null || data === void 0 ? void 0 : data.map((item, index) => item && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
65
72
|
key: item.name
|
|
66
73
|
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.KeyBlock, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Key, null, item.name), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Count, null, item.items)), index !== data.length - 1 && /*#__PURE__*/_react.default.createElement(_BannerEventBox.Seperator, null)))));
|
|
67
74
|
};
|
|
68
75
|
exports.BannerEventBox = BannerEventBox;
|
|
69
76
|
var _default = exports.default = BannerEventBox;
|
|
70
77
|
BannerEventBox.defaultProps = {
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
73
|
-
banner:
|
|
74
|
-
description:
|
|
75
|
-
dates: [
|
|
78
|
+
width: "auto",
|
|
79
|
+
height: "auto",
|
|
80
|
+
banner: "Food Lion",
|
|
81
|
+
description: "Dreft Portable Pretreater Pen",
|
|
82
|
+
dates: ["2021-06-01", "2021-06-30"],
|
|
83
|
+
buttonText: "View Creative",
|
|
76
84
|
data: [{
|
|
77
|
-
name:
|
|
85
|
+
name: "Supplier",
|
|
78
86
|
items: 7
|
|
79
87
|
}, {
|
|
80
|
-
name:
|
|
88
|
+
name: "Brands",
|
|
81
89
|
items: 8
|
|
82
90
|
}, {
|
|
83
|
-
name:
|
|
91
|
+
name: "Product Lines",
|
|
84
92
|
items: 9
|
|
85
93
|
}],
|
|
86
|
-
onInfoClick: () => {}
|
|
94
|
+
onInfoClick: () => {},
|
|
95
|
+
disabled: false,
|
|
96
|
+
buttonText: "View creative"
|
|
87
97
|
};
|
|
@@ -4,19 +4,75 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TitleWrapper = exports.Text = exports.Seperator = exports.MoreInfo = exports.MainContainer = exports.KeyBlock = exports.Key = exports.Headline = exports.DetailsWrapper = exports.Count = exports.CardTitle = exports.Block = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
7
|
+
exports.TitleWrapper = exports.Text = exports.Seperator = exports.MoreInfo = exports.MainContainer = exports.KeyBlock = exports.Key = exports.Headline = exports.DetailsWrapper = exports.Count = exports.CardTitle = exports.ButtonWrap = exports.Block = void 0;
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
width: ${props => props.width};
|
|
11
|
+
height: ${props => props.height};
|
|
12
|
+
font-family: 'Poppins', sans-serif;
|
|
13
|
+
color: #212121;
|
|
14
|
+
background-color: white;
|
|
15
|
+
padding: 20px;
|
|
16
|
+
border-radius: 12px;
|
|
17
|
+
border: 1px solid #D0D0D0;
|
|
18
|
+
`;
|
|
19
|
+
const TitleWrapper = exports.TitleWrapper = _styledComponents.default.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
`;
|
|
25
|
+
const CardTitle = exports.CardTitle = _styledComponents.default.h5`
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
margin: 0;
|
|
29
|
+
`;
|
|
30
|
+
const Headline = exports.Headline = _styledComponents.default.h6`
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
margin: 0;
|
|
34
|
+
`;
|
|
35
|
+
const Block = exports.Block = _styledComponents.default.div`
|
|
36
|
+
margin-bottom: 12px;
|
|
37
|
+
`;
|
|
38
|
+
const Text = exports.Text = _styledComponents.default.p`
|
|
39
|
+
color: #8B8989;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
margin: 0;
|
|
43
|
+
`;
|
|
44
|
+
const MoreInfo = exports.MoreInfo = _styledComponents.default.span`
|
|
45
|
+
color: #229E38;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
text-decoration: underline;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
`;
|
|
51
|
+
const DetailsWrapper = exports.DetailsWrapper = _styledComponents.default.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
align-items: stretch;
|
|
55
|
+
margin-top: 12px;
|
|
56
|
+
`;
|
|
57
|
+
const KeyBlock = exports.KeyBlock = _styledComponents.default.div`
|
|
58
|
+
/* position: relative; */
|
|
59
|
+
`;
|
|
60
|
+
const Key = exports.Key = _styledComponents.default.span`
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 4px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
`;
|
|
67
|
+
const Count = exports.Count = _styledComponents.default.span`
|
|
68
|
+
color: #8B8989;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
`;
|
|
72
|
+
const Seperator = exports.Seperator = _styledComponents.default.div`
|
|
73
|
+
border-right: 1px solid #F2F2F2;
|
|
74
|
+
`;
|
|
75
|
+
const ButtonWrap = exports.ButtonWrap = _styledComponents.default.div`
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
`;
|
|
@@ -34,7 +34,8 @@ const BannerEventBoxList = props => {
|
|
|
34
34
|
linkText,
|
|
35
35
|
disableToggle,
|
|
36
36
|
bannerWidth,
|
|
37
|
-
loaderColor
|
|
37
|
+
loaderColor,
|
|
38
|
+
showDraft
|
|
38
39
|
} = props;
|
|
39
40
|
const [IsItemOpen, setIsItemOpen] = (0, _react.useState)(false);
|
|
40
41
|
const handleToggle = () => {
|
|
@@ -92,8 +93,10 @@ const BannerEventBoxList = props => {
|
|
|
92
93
|
description: item === null || item === void 0 ? void 0 : item.description,
|
|
93
94
|
dates: item === null || item === void 0 ? void 0 : item.dates,
|
|
94
95
|
data: item === null || item === void 0 ? void 0 : item.data,
|
|
95
|
-
onInfoClick: () => retailerFile(item === null || item === void 0 ? void 0 : item.banner)
|
|
96
|
-
|
|
96
|
+
onInfoClick: () => retailerFile(item === null || item === void 0 ? void 0 : item.banner),
|
|
97
|
+
disabled: item === null || item === void 0 ? void 0 : item.disabled,
|
|
98
|
+
buttonText: item.buttonText
|
|
99
|
+
})), showDraft && /*#__PURE__*/_react.default.createElement(_BannerEventBoxList.DraftTag, null, "DRAFT")) : children));
|
|
97
100
|
};
|
|
98
101
|
BannerEventBoxList.defaultProps = {
|
|
99
102
|
className: '',
|
|
@@ -105,7 +108,8 @@ BannerEventBoxList.defaultProps = {
|
|
|
105
108
|
toggleColor: '#212121',
|
|
106
109
|
data: [{
|
|
107
110
|
banner: 'Stop&Shop',
|
|
108
|
-
description:
|
|
111
|
+
description: `description description description description description description description description description description
|
|
112
|
+
description description description description description description description description description `,
|
|
109
113
|
dates: ['01/01/2024', '14/01/2024'],
|
|
110
114
|
data: [{
|
|
111
115
|
name: 'Product Line',
|
|
@@ -143,6 +147,7 @@ BannerEventBoxList.defaultProps = {
|
|
|
143
147
|
disableToggle: false,
|
|
144
148
|
children: null,
|
|
145
149
|
bannerWidth: 'auto',
|
|
146
|
-
loaderColor: '#212121'
|
|
150
|
+
loaderColor: '#212121',
|
|
151
|
+
showDraft: false
|
|
147
152
|
};
|
|
148
153
|
var _default = exports.default = BannerEventBoxList;
|