sag_components 1.0.786 → 1.0.788
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"));
|
|
@@ -39,7 +40,7 @@ const TabMenu = props => {
|
|
|
39
40
|
}, [currentTab]);
|
|
40
41
|
return /*#__PURE__*/_react.default.createElement(_TabMenu.TabMenuContainer, {
|
|
41
42
|
className: className
|
|
42
|
-
}, showFilterButton && /*#__PURE__*/_react.default.createElement(_TabMenu.SagIconButtonWrap, {
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_TabMenu.TopRow, null, showFilterButton && /*#__PURE__*/_react.default.createElement(_TabMenu.SagIconButtonWrap, {
|
|
43
44
|
id: "filterButton",
|
|
44
45
|
iconName: "Filter",
|
|
45
46
|
buttonText: "",
|
|
@@ -67,7 +68,7 @@ const TabMenu = props => {
|
|
|
67
68
|
color: color,
|
|
68
69
|
width: "".concat(100 / tabs.length, "%"),
|
|
69
70
|
role: "presentation"
|
|
70
|
-
}))), showActions && /*#__PURE__*/_react.default.createElement(_TabMenu.ActionsWrapper, {
|
|
71
|
+
})))), showActions && /*#__PURE__*/_react.default.createElement(_TabMenu.ActionsWrapper, {
|
|
71
72
|
className: "ActionsWrapper"
|
|
72
73
|
}, showLabel && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TabMenu.Label, {
|
|
73
74
|
className: "Label"
|
|
@@ -94,7 +95,93 @@ TabMenu.defaultProps = {
|
|
|
94
95
|
currentTab: 0,
|
|
95
96
|
tabs: [{
|
|
96
97
|
title: 'Overview',
|
|
97
|
-
content:
|
|
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'
|
|
@@ -4,19 +4,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Tabs = exports.TabMenuContainer = exports.Tab = exports.SearchInputWrap = exports.SagIconButtonWrap = exports.PresentationSlider = exports.Nav = exports.Label = exports.Body = exports.ActionsWrapper = void 0;
|
|
7
|
+
exports.TopRow = exports.Tabs = exports.TabMenuContainer = exports.Tab = exports.SearchInputWrap = exports.SagIconButtonWrap = exports.PresentationSlider = exports.Nav = exports.Label = exports.Body = exports.ActionsWrapper = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _SagIconButton = _interopRequireDefault(require("./SagIconButton"));
|
|
11
11
|
var _SearchInput = _interopRequireDefault(require("./SearchInput"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
13
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
14
|
+
const TabMenuContainer = exports.TabMenuContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: 'Poppins', sans-serif;\n display: grid;\n gap: 20px;\n"])));
|
|
15
|
+
const TopRow = exports.TopRow = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 20px;\n"])));
|
|
16
|
+
const Nav = exports.Nav = _styledComponents.default.nav(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
17
|
+
const Tabs = exports.Tabs = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
18
|
+
const Tab = exports.Tab = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n position: relative;\n text-align: center;\n padding: 8px 12px;\n font-size: 16px;\n color: #000000;\n &.active {\n font-weight: 600;\n color: ", ";\n border-bottom: 1mm solid #229E38;\n //2px solid ", ";\n }\n"])), props => props.color, props => props.color);
|
|
19
|
+
const PresentationSlider = exports.PresentationSlider = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: #EAEAEA;\n &::before {\n content: '';\n position: absolute;\n left: 0;\n z-index: 1;\n width: ", ";\n height: 2px;\n /* background-color: ", "; */\n transform: translateX(calc(100% * ", "));\n transition: transform .35s ease;\n }\n"])), props => props.width, props => props.color, props => props.activeTab);
|
|
20
|
+
const Body = exports.Body = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n ", "\n"])), scrollableStyles);
|
|
21
|
+
const Label = exports.Label = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n font-weight: 400;\n padding: 8px;\n color: #5a5a5a;\n background-color: #E7E7E7;\n border-radius: 4px;\n > span {\n font-weight: 500;\n }\n ~ span {\n margin: 0 24px;\n font-weight: 400;\n }\n"])));
|
|
22
|
+
const ActionsWrapper = exports.ActionsWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n"])));
|
|
23
|
+
const SagIconButtonWrap = exports.SagIconButtonWrap = (0, _styledComponents.default)(_SagIconButton.default)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
24
|
+
const SearchInputWrap = exports.SearchInputWrap = (0, _styledComponents.default)(_SearchInput.default)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: auto;\n"])));
|
|
@@ -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: "
|
|
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: [{
|