sag_components 1.0.786 → 1.0.787

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.
@@ -16,5 +16,5 @@ const ColumnTitle = exports.ColumnTitle = _styledComponents.default.div(_templat
16
16
  const IconContainer = exports.IconContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 20px;\n height: 20px;\n top: 10px;\n right: 10px;\n position: absolute;\n"])));
17
17
  const LoadingDiv = exports.LoadingDiv = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 20px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n width: 76%;\n height: 65%;\n"])));
18
18
  const OneColumnContainerMainDiv = exports.OneColumnContainerMainDiv = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: flex-start;\n justify-content: center; \n background-color: white;\n width: ", ";\n height: ", ";\n display: ", ";\n grid-template-columns: ", ";\n \n"])), props => props.width, props => props.height, props => props.display, props => props.gridTemplateColumns);
19
- const BannerContainer = exports.BannerContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: 140px;\n height: 20px;\n top: 22px;\n right: ", "; \n font-family: \"Poppins\", sans-serif;\n user-select: none;\n"])), props => props.right);
19
+ const BannerContainer = exports.BannerContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n z-index: 99;\n width: 140px;\n height: 20px;\n top: 22px;\n right: ", "; \n font-family: \"Poppins\", sans-serif;\n user-select: none;\n"])), props => props.right);
20
20
  const OutBanner = exports.OutBanner = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)([" \n display: flex;\n justify-content: flex-end;\n align-items: center; \n gap: 8px; \n font-size: 14px;\n font-weight: 400;\n color: ", ";\n cursor: pointer;\n @media (max-width: 1536px) {\n font-size: 13px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n > svg {\n width: 14px;\n height: 14px;\n @media (max-width: 1536px) {\n width: 13px;\n height: 13px;\n }\n @media (max-width: 1366px) {\n width: 12px;\n height: 12px;\n }\n }\n"])), props => props.textColor);
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
+ var _MarketShareDescription = _interopRequireDefault(require("./MarketShareDescription"));
10
11
  var _TabMenu = require("./TabMenu.style");
11
12
  var _SearchInput = _interopRequireDefault(require("./SearchInput"));
12
13
  var _SagIconButton = _interopRequireDefault(require("./SagIconButton"));
@@ -94,7 +95,93 @@ TabMenu.defaultProps = {
94
95
  currentTab: 0,
95
96
  tabs: [{
96
97
  title: 'Overview',
97
- content: 'Content for Tab 2'
98
+ content: /*#__PURE__*/_react.default.createElement(_MarketShareDescription.default, {
99
+ marketShareData: [{
100
+ name: 'pringlesHarvestBlend',
101
+ rowTitle: 'Pringles Harvest Blend',
102
+ fieldsArray: [{
103
+ label: 'Pre-event',
104
+ value: 1.2,
105
+ textBefore: '',
106
+ textAfter: '%'
107
+ }, {
108
+ label: 'Event',
109
+ value: 2,
110
+ textBefore: '',
111
+ textAfter: '%'
112
+ }, {
113
+ label: 'Post-event',
114
+ value: 2.3,
115
+ textBefore: '',
116
+ textAfter: '%'
117
+ }],
118
+ rowFooter: "<strong>Pringles Harvest Blend </strong>\n <p1>market share </p1>\n <strong>increased by 98% </strong>\n <p1>following the event</p1>",
119
+ showBanner: false
120
+ }, {
121
+ name: 'pringles',
122
+ rowTitle: 'Pringles',
123
+ fieldsArray: [{
124
+ label: 'Pre-event',
125
+ value: 2.8,
126
+ textBefore: '',
127
+ textAfter: '%'
128
+ }, {
129
+ label: 'Event',
130
+ value: 3.5,
131
+ textBefore: '',
132
+ textAfter: '%'
133
+ }, {
134
+ label: 'Post-event',
135
+ value: 3.05,
136
+ textBefore: '',
137
+ textAfter: '%'
138
+ }],
139
+ rowFooter: "<strong>Pringles Harvest Blend </strong>\n <p1>market share </p1>\n <strong>increased by 98% </strong>\n <p1>following the event</p1>",
140
+ showBanner: false
141
+ }, {
142
+ name: 'pringlesHarvestBlend',
143
+ rowTitle: 'Pringles Harvest Blend',
144
+ fieldsArray: [{
145
+ label: 'Pre-event',
146
+ value: 1.2,
147
+ textBefore: '',
148
+ textAfter: '%'
149
+ }, {
150
+ label: 'Event',
151
+ value: 2,
152
+ textBefore: '',
153
+ textAfter: '%'
154
+ }, {
155
+ label: 'Post-event',
156
+ value: 2.3,
157
+ textBefore: '',
158
+ textAfter: '%'
159
+ }],
160
+ rowFooter: "<strong>Pringles Harvest Blend </strong>\n <p1>market share </p1>\n <strong>increased by 98% </strong>\n <p1>following the event</p1>",
161
+ showBanner: false
162
+ }, {
163
+ name: 'pringles',
164
+ rowTitle: 'Pringles',
165
+ fieldsArray: [{
166
+ label: 'Pre-event',
167
+ value: 2.8,
168
+ textBefore: '',
169
+ textAfter: '%'
170
+ }, {
171
+ label: 'Event',
172
+ value: 3.5,
173
+ textBefore: '',
174
+ textAfter: '%'
175
+ }, {
176
+ label: 'Post-event',
177
+ value: 3.05,
178
+ textBefore: '',
179
+ textAfter: '%'
180
+ }],
181
+ rowFooter: "<strong>Pringles Harvest Blend </strong>\n <p1>market share </p1>\n <strong>increased by 98% </strong>\n <p1>following the event</p1>",
182
+ showBanner: false
183
+ }]
184
+ })
98
185
  }, {
99
186
  title: 'Sales',
100
187
  content: 'Content for Tab 3'
@@ -19,6 +19,7 @@ var _TitleDescription = require("./TitleDescription.style");
19
19
  const TitleDescription = props => {
20
20
  var _data$eventDescriptio, _data$eventDatesValue, _data$eventDatesValue2, _data$objectivesDescr;
21
21
  const {
22
+ className,
22
23
  showRetailerIcon,
23
24
  showPeriodIcon,
24
25
  viewCreativeRetailersData,
@@ -125,7 +126,8 @@ const TitleDescription = props => {
125
126
  return (offsetTop + 33).toString().concat('', 'px');
126
127
  };
127
128
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.MainContainer, {
128
- id: "MainContainer",
129
+ id: "TitleDescription",
130
+ className: className,
129
131
  height: height,
130
132
  width: width,
131
133
  textcolor: textcolor
@@ -233,6 +235,7 @@ const TitleDescription = props => {
233
235
  exports.TitleDescription = TitleDescription;
234
236
  var _default = exports.default = TitleDescription;
235
237
  TitleDescription.defaultProps = {
238
+ className: '',
236
239
  showRetailerIcon: true,
237
240
  showPeriodIcon: true,
238
241
  viewCreativeRetailersData: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.786",
3
+ "version": "1.0.787",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {