sag_components 1.0.1065 → 1.0.1067

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.
@@ -18,28 +18,28 @@ var _ExitIcon = require("./icons/ExitIcon");
18
18
  var _EyeIcon = require("./icons/EyeIcon");
19
19
  var _ButtonArrowRight = require("./icons/ButtonArrowRight");
20
20
  var _ReselectIcon = require("./icons/ReselectIcon");
21
- const Button = props => {
22
- const {
23
- text,
24
- type,
25
- size,
26
- height,
27
- width,
28
- disabled,
29
- textColor,
30
- backgroundColor,
31
- borderColor,
32
- hoverTextColor,
33
- hoverBackgroundColor,
34
- hoverBorderColor,
35
- disabledTextColor,
36
- disabledBackgroundColor,
37
- disabledBorderColor,
38
- leftIcon,
39
- rightIcon,
21
+ const Button = _ref => {
22
+ let {
23
+ text = '',
24
+ type = 'primary',
25
+ size = 'small',
26
+ height = '',
27
+ width = '',
28
+ disabled = false,
29
+ textColor = '',
30
+ backgroundColor = '',
31
+ borderColor = '',
32
+ hoverTextColor = '',
33
+ hoverBackgroundColor = '',
34
+ hoverBorderColor = '',
35
+ disabledTextColor = '',
36
+ disabledBackgroundColor = '',
37
+ disabledBorderColor = '',
40
38
  onClick,
41
- isSubmitButton
42
- } = props;
39
+ leftIcon = 'none',
40
+ rightIcon = 'none',
41
+ isSubmitButton = false
42
+ } = _ref;
43
43
  const [clicked, setClicked] = (0, _react.useState)(false);
44
44
  const [hover, setHover] = (0, _react.useState)(false);
45
45
  const handleSubmitButtonOnClick = () => {
@@ -77,7 +77,7 @@ const Button = props => {
77
77
  return /*#__PURE__*/_react.default.createElement(_Button.IconWrapper, {
78
78
  className: "FilterIcon"
79
79
  }, /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
80
- height: iconHeight,
80
+ height: "150px",
81
81
  width: iconWidth,
82
82
  color: color
83
83
  }));
@@ -211,25 +211,45 @@ const Button = props => {
211
211
  }, text), getRightIcon()));
212
212
  };
213
213
  exports.Button = Button;
214
- var _default = exports.default = Button;
215
- Button.defaultProps = {
216
- text: '',
217
- type: 'primary',
218
- size: 'small',
219
- height: '',
220
- width: '',
221
- disabled: false,
222
- textColor: '',
223
- backgroundColor: '',
224
- borderColor: '',
225
- hoverTextColor: '',
226
- hoverBackgroundColor: '',
227
- hoverBorderColor: '',
228
- disabledTextColor: '',
229
- disabledBackgroundColor: '',
230
- disabledBorderColor: '',
231
- onClick: () => {},
232
- leftIcon: 'none',
233
- rightIcon: 'none',
234
- isSubmitButton: false
235
- };
214
+ var _default = exports.default = Button; // Button.propTypes = {
215
+ // text: PropTypes.string,
216
+ // type: PropTypes.string,
217
+ // size: PropTypes.string,
218
+ // height: PropTypes.string,
219
+ // width: PropTypes.string,
220
+ // disabled: PropTypes.bool,
221
+ // textColor: PropTypes.string,
222
+ // backgroundColor: PropTypes.string,
223
+ // borderColor: PropTypes.string,
224
+ // hoverTextColor: PropTypes.string,
225
+ // hoverBackgroundColor: PropTypes.string,
226
+ // hoverBorderColor: PropTypes.string,
227
+ // disabledTextColor: PropTypes.string,
228
+ // disabledBackgroundColor: PropTypes.string,
229
+ // disabledBorderColor: PropTypes.string,
230
+ // onClick: PropTypes.func,
231
+ // leftIcon: PropTypes.string,
232
+ // rightIcon: PropTypes.string,
233
+ // isSubmitButton: PropTypes.bool,
234
+ // };
235
+ // Button.defaultProps = {
236
+ // text: '',
237
+ // type: 'primary',
238
+ // size: 'small',
239
+ // height: '',
240
+ // width: '',
241
+ // disabled: false,
242
+ // textColor: '',
243
+ // backgroundColor: '',
244
+ // borderColor: '',
245
+ // hoverTextColor: '',
246
+ // hoverBackgroundColor: '',
247
+ // hoverBorderColor: '',
248
+ // disabledTextColor: '',
249
+ // disabledBackgroundColor: '',
250
+ // disabledBorderColor: '',
251
+ // onClick: () => { },
252
+ // leftIcon: 'none',
253
+ // rightIcon: 'none',
254
+ // isSubmitButton: false,
255
+ // };
@@ -13,6 +13,7 @@ var _StopAndShopNewIcon = require("./icons/StopAndShopNewIcon");
13
13
  var _GiantFoodIcon_new = require("./icons/GiantFoodIcon_new");
14
14
  var _HannafordIcon_new = require("./icons/HannafordIcon_new");
15
15
  var _BannersDropdown = require("./BannersDropdown");
16
+ var _LinkButton = require("./LinkButton");
16
17
  const EventDetailsCard = props => {
17
18
  const {
18
19
  title,
@@ -101,7 +102,7 @@ const EventDetailsCard = props => {
101
102
  }
102
103
  })), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainCard, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.List, null, count > 0 && /*#__PURE__*/_react.default.createElement("li", null, count, ' ', "products in variety"), data.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
103
104
  key: index
104
- }, /*#__PURE__*/_react.default.createElement("span", null, item.label, ":"), ' ', item.value))), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.LinkButtonContainer, {
105
+ }, /*#__PURE__*/_react.default.createElement("span", null, item.label, ":"), ' ', item.value))), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.LinkButtonContainer, null, /*#__PURE__*/_react.default.createElement(_LinkButton.LinkButton, {
105
106
  text: buttonText,
106
107
  rightIcon: "select",
107
108
  size: "small",
@@ -111,7 +112,7 @@ const EventDetailsCard = props => {
111
112
  onClick: e => {
112
113
  viewButtonClick(e);
113
114
  }
114
- })));
115
+ }))));
115
116
  };
116
117
  exports.EventDetailsCard = EventDetailsCard;
117
118
  var _default = exports.default = EventDetailsCard;
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.TitleWrapper = exports.MainContainer = exports.MainCard = exports.List = exports.LinkButtonContainer = exports.CardTitle = void 0;
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- var _LinkButton = _interopRequireDefault(require("./LinkButton"));
10
9
  const MainContainer = exports.MainContainer = _styledComponents.default.div`
11
10
  position: relative;
12
11
  font-family: "Poppins", sans-serif;
@@ -58,6 +57,6 @@ const List = exports.List = _styledComponents.default.ul`
58
57
  font-weight: 500;
59
58
  }
60
59
  `;
61
- const LinkButtonContainer = exports.LinkButtonContainer = (0, _styledComponents.default)(_LinkButton.default)`
60
+ const LinkButtonContainer = exports.LinkButtonContainer = _styledComponents.default.div`
62
61
  margin-left: auto;
63
62
  `;
@@ -33,7 +33,6 @@ const Heatmap = props => {
33
33
  const totalValue = filteredData.reduce((sum, item) => sum + item.value, 0);
34
34
  (0, _react.useEffect)(() => {
35
35
  setRefreshRequired(!refreshRequired);
36
- console.log("data", data, !refreshRequired);
37
36
  }, [data]);
38
37
 
39
38
  // Reset tooltip when height changes
@@ -91,7 +90,7 @@ const Heatmap = props => {
91
90
  opacity: 1
92
91
  },
93
92
  transition: {
94
- duration: 0.8
93
+ duration: 0.4
95
94
  },
96
95
  onMouseEnter: e => {
97
96
  var _barRefs$current$inde;
@@ -21,20 +21,33 @@ var _MenuItemOpenIcon = require("./icons/MenuItemOpenIcon");
21
21
  var _MenuItemRightIcon = require("./icons/MenuItemRightIcon");
22
22
  var _ArrowSelectIcon = _interopRequireDefault(require("./icons/ArrowSelectIcon"));
23
23
  var _InfoIcon = require("./icons/InfoIcon");
24
- const LinkButton = props => {
25
- const {
26
- text,
27
- type,
28
- size,
29
- height,
30
- width,
31
- disabled,
32
- textColor,
33
- leftIcon,
34
- rightIcon,
24
+ const LinkButton = _ref => {
25
+ let {
26
+ text = '',
27
+ type = 'primary',
28
+ size = 'small',
29
+ height = '',
30
+ width = '',
31
+ disabled = false,
32
+ textColor = '',
35
33
  onClick,
36
- className
37
- } = props;
34
+ leftIcon = 'none',
35
+ rightIcon = 'none'
36
+ } = _ref;
37
+ // const {
38
+ // text,
39
+ // type,
40
+ // size,
41
+ // height,
42
+ // width,
43
+ // disabled,
44
+ // textColor,
45
+ // leftIcon,
46
+ // rightIcon,
47
+ // onClick,
48
+ // className,
49
+ // } = props;
50
+
38
51
  const [clicked, setClicked] = (0, _react.useState)(false);
39
52
  const handleLinkButtonClick = () => {
40
53
  setClicked(true);
@@ -166,7 +179,7 @@ const LinkButton = props => {
166
179
  return getIcon(rightIcon);
167
180
  };
168
181
  return /*#__PURE__*/_react.default.createElement(_LinkButton.LinkButtonContainer, {
169
- className: className,
182
+ className: "LinkButtonContainer",
170
183
  width: width || null,
171
184
  height: height || '20px'
172
185
  }, /*#__PURE__*/_react.default.createElement(_LinkButton.LinkButtonItem, {
@@ -184,17 +197,29 @@ const LinkButton = props => {
184
197
  }, text), getRightIcon()));
185
198
  };
186
199
  exports.LinkButton = LinkButton;
187
- var _default = exports.default = LinkButton;
188
- LinkButton.defaultProps = {
189
- text: '',
190
- type: 'primary',
191
- size: 'small',
192
- height: '',
193
- width: '',
194
- disabled: false,
195
- textColor: '',
196
- onClick: () => {},
197
- leftIcon: 'none',
198
- rightIcon: 'none',
199
- className: ''
200
- };
200
+ var _default = exports.default = LinkButton; // LinkButton.propTypes = {
201
+ // text: PropTypes.string,
202
+ // type: PropTypes.string,
203
+ // size: PropTypes.string,
204
+ // height: PropTypes.string,
205
+ // width: PropTypes.string,
206
+ // disabled: PropTypes.bool,
207
+ // textColor: PropTypes.string,
208
+ // onClick: PropTypes.func,
209
+ // leftIcon: PropTypes.string,
210
+ // rightIcon: PropTypes.string,
211
+ // className: PropTypes.string,
212
+ // };
213
+ // LinkButton.defaultProps = {
214
+ // text: '',
215
+ // type: 'primary',
216
+ // size: 'small',
217
+ // height: '',
218
+ // width: '',
219
+ // disabled: false,
220
+ // textColor: '',
221
+ // onClick: () => {},
222
+ // leftIcon: 'none',
223
+ // rightIcon: 'none',
224
+ // className: '',
225
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.1065",
3
+ "version": "1.0.1067",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {