sag_components 1.0.439 → 1.0.441

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.
Files changed (98) hide show
  1. package/dist/stories/components/TitleDescription.js +42 -37
  2. package/dist/stories/components/TitleDescription.style.js +3 -3
  3. package/dist/stories/components/TotalBenchmark.style.js +5 -5
  4. package/dist/stories/components/TotalBenchmarkAreachart.style.js +1 -1
  5. package/dist/stories/components/TotalBenchmarkBarchart.js +1 -0
  6. package/dist/stories/components/TotalBenchmarkBarchart.style.js +3 -3
  7. package/package.json +1 -1
  8. package/.history/.env_20231001120549 +0 -0
  9. package/.history/.env_20231001120613 +0 -1
  10. package/.history/.env_20231003143620 +0 -1
  11. package/.history/.eslintrc_20230928112617.js +0 -26
  12. package/.history/.eslintrc_20230928130534.js +0 -27
  13. package/.history/.eslintrc_20230928133400.js +0 -28
  14. package/.history/.eslintrc_20230928133404.js +0 -28
  15. package/.history/.eslintrc_20230928133416.js +0 -28
  16. package/.history/.eslintrc_20230928133419.js +0 -28
  17. package/.history/.eslintrc_20230928133432.js +0 -28
  18. package/.history/.eslintrc_20230928133439.js +0 -28
  19. package/.history/.eslintrc_20230928133458.js +0 -29
  20. package/.history/.eslintrc_20230928133500.js +0 -28
  21. package/.history/.eslintrc_20230928134009.js +0 -28
  22. package/.history/.eslintrc_20230928135318.js +0 -34
  23. package/.history/.eslintrc_20230928135321.js +0 -34
  24. package/.history/.eslintrc_20230928135323.js +0 -34
  25. package/.history/.eslintrc_20230928135332.js +0 -34
  26. package/.history/.eslintrc_20230928135333.js +0 -34
  27. package/.history/.eslintrc_20230928135352.js +0 -29
  28. package/.history/.eslintrc_20230928135353.js +0 -29
  29. package/.history/.eslintrc_20230928135355.js +0 -29
  30. package/.history/.eslintrc_20230928135408.js +0 -29
  31. package/.history/.eslintrc_20230928135538.js +0 -30
  32. package/.history/.eslintrc_20230928135539.js +0 -30
  33. package/.history/.eslintrc_20230928135543.js +0 -30
  34. package/.history/.gitignore_20230921093332 +0 -119
  35. package/.history/.gitignore_20230921111638 +0 -120
  36. package/.history/.gitignore_20230921111650 +0 -120
  37. package/.history/.gitignore_20230921111810 +0 -121
  38. package/.history/package-lock_20231114111138.json +0 -47810
  39. package/.history/package-lock_20231114111158.json +0 -47802
  40. package/.history/package_20231029152422.json +0 -82
  41. package/.history/package_20231029153420.json +0 -82
  42. package/.history/package_20231029154416.json +0 -82
  43. package/.history/package_20231030094127.json +0 -82
  44. package/.history/package_20231030114707.json +0 -82
  45. package/.history/package_20231030130704.json +0 -82
  46. package/.history/package_20231030132422.json +0 -82
  47. package/.history/package_20231030134051.json +0 -82
  48. package/.history/package_20231030142913.json +0 -82
  49. package/.history/package_20231030143556.json +0 -82
  50. package/.history/package_20231030144210.json +0 -82
  51. package/.history/package_20231101113942.json +0 -82
  52. package/.history/package_20231101114544.json +0 -82
  53. package/.history/package_20231101151518.json +0 -82
  54. package/.history/package_20231101154501.json +0 -82
  55. package/.history/package_20231101155811.json +0 -82
  56. package/.history/package_20231101160235.json +0 -82
  57. package/.history/package_20231101160406.json +0 -82
  58. package/.history/package_20231101161325.json +0 -82
  59. package/.history/package_20231101161333.json +0 -82
  60. package/.history/package_20231102123623.json +0 -82
  61. package/.history/package_20231102125741.json +0 -82
  62. package/.history/package_20231102130857.json +0 -82
  63. package/.history/package_20231102132227.json +0 -82
  64. package/.history/package_20231102142340.json +0 -82
  65. package/.history/package_20231102143256.json +0 -82
  66. package/.history/package_20231105153539.json +0 -82
  67. package/.history/package_20231105154332.json +0 -82
  68. package/.history/package_20231105171201.json +0 -82
  69. package/.history/package_20231106123849.json +0 -82
  70. package/.history/package_20231107170638.json +0 -82
  71. package/.history/package_20231109103647.json +0 -82
  72. package/.history/package_20231109103911.json +0 -82
  73. package/.history/package_20231109105426.json +0 -82
  74. package/.history/package_20231109132014.json +0 -82
  75. package/.history/package_20231109132115.json +0 -82
  76. package/.history/package_20231114100517.json +0 -82
  77. package/.history/package_20231114100859.json +0 -82
  78. package/.history/package_20231114101553.json +0 -82
  79. package/.history/package_20231114102545.json +0 -82
  80. package/.history/package_20231114111208.json +0 -83
  81. package/.history/package_20231114111515.json +0 -83
  82. package/.history/package_20231114112931.json +0 -83
  83. package/.history/package_20231114113014.json +0 -83
  84. package/.history/package_20231114113155.json +0 -83
  85. package/.history/package_20231114124318.json +0 -83
  86. package/.history/package_20231114125107.json +0 -83
  87. package/.history/package_20231114125510.json +0 -83
  88. package/.history/package_20231114132634.json +0 -83
  89. package/.history/package_20231116165815.json +0 -83
  90. package/.history/package_20231116165916.json +0 -83
  91. package/.history/package_20231119113637.json +0 -83
  92. package/.history/package_20231120100907.json +0 -83
  93. package/.history/package_20231121151523.json +0 -77
  94. package/.history/package_20231121155513.json +0 -77
  95. package/.history/package_20231121162434.json +0 -77
  96. package/.history/package_20231122100718.json +0 -77
  97. package/.history/package_20231128125149.json +0 -82
  98. package/.history/package_20231128125208.json +0 -82
@@ -18,7 +18,7 @@ var _ListBox = require("./ListBox");
18
18
  var _TitleDescription = require("./TitleDescription.style");
19
19
  /* TitleDescription */
20
20
  const TitleDescription = props => {
21
- var _data$objectivesDescr, _data$eventDatesValue, _data$eventDatesValue2;
21
+ var _data$externalEventDe, _data$eventDatesValue, _data$eventDatesValue2, _data$objectivesDescr;
22
22
  const {
23
23
  showRetailerIcon,
24
24
  showPeriodIcon,
@@ -48,35 +48,35 @@ const TitleDescription = props => {
48
48
  }, [viewCreativeRetailersData]);
49
49
  const getRetailerIcon = retailerName => {
50
50
  switch (retailerName) {
51
- case 'Food Lion':
51
+ case "Food Lion":
52
52
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
53
53
  id: "RetailerIconContainer"
54
54
  }, /*#__PURE__*/_react.default.createElement(_FoodLionIcon.FoodLionIcon, {
55
55
  width: "90",
56
56
  height: "20"
57
57
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
58
- case 'Hannaford':
58
+ case "Hannaford":
59
59
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
60
60
  id: "RetailerIconContainer"
61
61
  }, /*#__PURE__*/_react.default.createElement(_HannafordIcon.HannafordIcon, {
62
62
  width: "90",
63
63
  height: "20"
64
64
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
65
- case 'Giant Food':
65
+ case "Giant Food":
66
66
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
67
67
  id: "RetailerIconContainer"
68
68
  }, /*#__PURE__*/_react.default.createElement(_GiantFoodIcon.GiantFoodIcon, {
69
69
  width: "60",
70
70
  height: "20"
71
71
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
72
- case 'The Giant Company':
72
+ case "The Giant Company":
73
73
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
74
74
  id: "RetailerIconContainer"
75
75
  }, /*#__PURE__*/_react.default.createElement(_TheGiantCompanyIcon.TheGiantCompanyIcon, {
76
76
  width: "60",
77
77
  height: "20"
78
78
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
79
- case 'Stop&Shop':
79
+ case "Stop&Shop":
80
80
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
81
81
  id: "RetailerIconContainer"
82
82
  }, /*#__PURE__*/_react.default.createElement(_StopAndShopIcon.StopAndShopIcon, {
@@ -116,13 +116,13 @@ const TitleDescription = props => {
116
116
  const {
117
117
  offsetLeft
118
118
  } = viewCreativeContainerRef.current;
119
- return offsetLeft.toString().concat('', 'px');
119
+ return offsetLeft.toString().concat("", "px");
120
120
  };
121
121
  const getViewCreativeContainerTop = () => {
122
122
  const {
123
123
  offsetTop
124
124
  } = viewCreativeContainerRef.current;
125
- return (offsetTop + 33).toString().concat('', 'px');
125
+ return (offsetTop + 33).toString().concat("", "px");
126
126
  };
127
127
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.MainContainer, {
128
128
  id: "MainContainer",
@@ -178,11 +178,7 @@ const TitleDescription = props => {
178
178
  id: "Retailer"
179
179
  }, getRetailerIcon(data.retailer)), /*#__PURE__*/_react.default.createElement(_TitleDescription.FilterValue, {
180
180
  id: "FilterValue"
181
- }, data.eventType), data.externalEventDescription && /*#__PURE__*/_react.default.createElement(_TitleDescription.FieldsDelimiter, {
182
- id: "FieldsDelimiter"
183
- }, " | "), /*#__PURE__*/_react.default.createElement(_TitleDescription.FilterValue, {
184
- id: "FilterValue"
185
- }, data.externalEventDescription), data.externalEventID && /*#__PURE__*/_react.default.createElement(_TitleDescription.FieldsDelimiter, {
181
+ }, data.eventType), data.externalEventID && /*#__PURE__*/_react.default.createElement(_TitleDescription.FieldsDelimiter, {
186
182
  id: "FieldsDelimiter"
187
183
  }, " | "), /*#__PURE__*/_react.default.createElement(_TitleDescription.FilterValue, {
188
184
  id: "FilterValue"
@@ -202,8 +198,8 @@ const TitleDescription = props => {
202
198
  id: "FieldsDelimiter"
203
199
  }, " | "), /*#__PURE__*/_react.default.createElement(_TitleDescription.FilterValue, {
204
200
  id: "FilterValue"
205
- }, data.brand)), /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesAndPeriodsContainer, {
206
- id: "ObjectiesAndPeriodsContainer"
201
+ }, data.brand)), /*#__PURE__*/_react.default.createElement(_TitleDescription.FilterValuesContainer, {
202
+ id: "FilterValuesContainer"
207
203
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesContainer, {
208
204
  id: "ObjectiesContainer",
209
205
  showPeriodIcon: showPeriodIcon
@@ -211,7 +207,7 @@ const TitleDescription = props => {
211
207
  id: "ObjectivesDescription"
212
208
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectivesTitle, {
213
209
  id: "ObjectivesTitle"
214
- }, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? 'Objectives: ' : ''), data.objectivesDescription)), showPeriodIcon && /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodsContainer, {
210
+ }, (data === null || data === void 0 ? void 0 : (_data$externalEventDe = data.externalEventDescription) === null || _data$externalEventDe === void 0 ? void 0 : _data$externalEventDe.length) > 0 ? "Event Description: " : ""), data.externalEventDescription)), showPeriodIcon && /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodsContainer, {
215
211
  id: "PeriodsContainer"
216
212
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.SubLineContainer, {
217
213
  id: "SubLineContainer"
@@ -219,9 +215,18 @@ const TitleDescription = props => {
219
215
  id: "SubLineContainer"
220
216
  }, (data === null || data === void 0 ? void 0 : (_data$eventDatesValue = data.eventDatesValue) === null || _data$eventDatesValue === void 0 ? void 0 : _data$eventDatesValue.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodLabel, {
221
217
  id: "PeriodLabel"
222
- }, "Event Dates: ") : '', (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodValue, {
218
+ }, "Event Dates: ") : "", (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodValue, {
223
219
  id: "PeriodValue"
224
- }, data.eventDatesValue) : '')))));
220
+ }, data.eventDatesValue) : ""))), /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesAndPeriodsContainer, {
221
+ id: "ObjectiesAndPeriodsContainer"
222
+ }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesContainer, {
223
+ id: "ObjectiesContainer",
224
+ showPeriodIcon: showPeriodIcon
225
+ }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectivesDescription, {
226
+ id: "ObjectivesDescription"
227
+ }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectivesTitle, {
228
+ id: "ObjectivesTitle"
229
+ }, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? "Objectives: " : ""), data.objectivesDescription)))));
225
230
  };
226
231
  exports.TitleDescription = TitleDescription;
227
232
  var _default = exports.default = TitleDescription;
@@ -229,32 +234,32 @@ TitleDescription.defaultProps = {
229
234
  showRetailerIcon: true,
230
235
  showPeriodIcon: true,
231
236
  viewCreativeRetailersData: [{
232
- label: 'Food Lion'
237
+ label: "Food Lion"
233
238
  }, {
234
- label: 'Stop&Shop'
239
+ label: "Stop&Shop"
235
240
  }, {
236
- label: 'Giant Food'
241
+ label: "Giant Food"
237
242
  }, {
238
- label: 'The Giant Company'
243
+ label: "The Giant Company"
239
244
  }, {
240
- label: 'Hannaford'
245
+ label: "Hannaford"
241
246
  }],
242
247
  data: {
243
- eventName: 'Large Selling Event P2 2023',
244
- eventType: 'Large Selling Event',
245
- retailer: 'The Giant Company',
246
- objectivesDescription: 'Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. Adipiscing quam sodales vestibulum pretium sit adipiscing ultricies viverra. Sollicitudin penatibus fermentum fermentum faucibus viverra augue viverra. Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. ',
247
- eventDatesValue: 'Feb 1, 2023 - Feb 28, 2023',
248
- externalEventDescription: 'Large Selling Event P2 Description',
249
- externalEventID: 'LSE2_23',
250
- storeType: 'Total',
251
- category: '',
252
- supplier: '',
253
- brand: ''
248
+ eventName: "Large Selling Event P2 2023",
249
+ eventType: "Large Selling Event",
250
+ retailer: "The Giant Company",
251
+ objectivesDescription: "Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. Adipiscing quam sodales vestibulum pretium sit adipiscing ultricies viverra. Sollicitudin penatibus fermentum fermentum faucibus viverra augue viverra. Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. ",
252
+ eventDatesValue: "Feb 1, 2023 - Feb 28, 2023",
253
+ externalEventDescription: "Large Selling Event P2 Description",
254
+ externalEventID: "LSE2_23",
255
+ storeType: "Total",
256
+ category: "",
257
+ supplier: "",
258
+ brand: ""
254
259
  },
255
260
  viewCreativeOnClick: () => {},
256
- width: '100%',
257
- height: '100%',
258
- textcolor: '#212121',
261
+ width: "100%",
262
+ height: "100%",
263
+ textcolor: "#212121",
259
264
  disabled: false
260
265
  };
@@ -17,20 +17,20 @@ const ViewCreativeContainer = exports.ViewCreativeContainer = _styledComponents.
17
17
  const ViewCreativeTextField = exports.ViewCreativeTextField = _styledComponents.default.h4(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n line-height: 19px;\n font-size: 14px;\n font-weight: 400;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n margin: 3px 10px;\n"])));
18
18
  const ViewCreativeButtonAndListBoxContainer = exports.ViewCreativeButtonAndListBoxContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n overflow: visible;\n font-size: 18px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
19
19
  const ViewCreativeListBoxContainer = exports.ViewCreativeListBoxContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: absolute;\n \n left: ", ";\n top: ", ";\n /* height: ", ";\n width: ", "; */\n\n z-index:1000;\n"])), props => props.left, props => props.top, props => props.height, props => props.width);
20
- const FilterValuesContainer = exports.FilterValuesContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n width: 100%;\n margin: 0.5rem;\n"])));
20
+ const FilterValuesContainer = exports.FilterValuesContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n width: 100%;\n margin: 0.5rem 0 0 0;\n"])));
21
21
  const FilterValue = exports.FilterValue = _styledComponents.default.p(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n line-height: 19px;\n font-size: 14px;\n font-weight: 400;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n margin: 0;\n"])));
22
22
  const FieldsDelimiter = exports.FieldsDelimiter = _styledComponents.default.p(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n color: #ccc;\n margin: 0;\n"])));
23
23
  const Retailer = exports.Retailer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n color: #1b30aa;\n margin: 0;\n margin-inline-end: 5px;\n"])));
24
24
  const Space = exports.Space = _styledComponents.default.p(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0;\n"])));
25
25
  const RetailerIconContainer = exports.RetailerIconContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n"])));
26
26
  const ObjectiesContainer = exports.ObjectiesContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n width: ", ";\n"])), props => !props.showPeriodIcon ? '100%' : '75%');
27
- const ObjectiesAndPeriodsContainer = exports.ObjectiesAndPeriodsContainer = _styledComponents.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n"])));
27
+ const ObjectiesAndPeriodsContainer = exports.ObjectiesAndPeriodsContainer = _styledComponents.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n margin: 0.5rem 0 0 0;\n"])));
28
28
  const ObjectivesTitle = exports.ObjectivesTitle = _styledComponents.default.strong(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n"])));
29
29
  const ObjectivesDescription = exports.ObjectivesDescription = _styledComponents.default.p(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 19px;\n font-size: 14px;\n font-weight: 400;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n margin: 0;\n"])));
30
30
  const ObjectivesShowMore = exports.ObjectivesShowMore = _styledComponents.default.a(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n &:hover {\n cursor: ", ";\n }\n"])), props => props.disabled ? '#B1B1B1' : '#1b30aa', props => !props.disabled ? 'pointer' : 'default');
31
31
  const BottonsContainer = exports.BottonsContainer = _styledComponents.default.div(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2.default)(["\n\n align-items: center;\n justify-content: flex-end;\n min-height: 1.5rem;\n"])));
32
32
  const DownloadButtonContainer = exports.DownloadButtonContainer = _styledComponents.default.div(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)([""])));
33
- const PeriodsContainer = exports.PeriodsContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n justify-content: flex-start;\n white-space: pre-wrap;\n margin-left: 40px;\n width: 25%;\n font-size: 14px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n } \n"])));
33
+ const PeriodsContainer = exports.PeriodsContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n justify-content: flex-start;\n white-space: pre-wrap;\n margin-left: 40px;\n width: 20%;\n font-size: 14px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n } \n"])));
34
34
  const SubLineContainer = exports.SubLineContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n"])));
35
35
  const PeriodLabel = exports.PeriodLabel = _styledComponents.default.strong(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 19px;\n font-size: 14px;\n font-weight: 500;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n } \n"])));
36
36
  const PeriodValue = exports.PeriodValue = _styledComponents.default.p(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 19px;\n font-size: 14px;\n font-weight: 400;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n margin: 0 0 0 10px;\n"])));
@@ -11,11 +11,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
11
11
  const MIN_HEIGHT = 300;
12
12
  const MIN_WIDTH = 260;
13
13
  const ControlsContainer = exports.ControlsContainer = _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 color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-content: center;\n flex-direction: column;\n place-content: space-between;\n justify-content: space-between;\n align-items: flex-start;\n background: #ffffff;\n"])), props => props.textcolor, props => props.width, props => props.height);
14
- const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n //display: flex;\n border-radius: 12px;\n /* width: 90%;\n height: 40%; */\n //justify-content: center;\n //align-items: flex-start;\n background: #ffffff;\n margin-bottom: 2rem;\n padding: 0px 0.8rem;\n"])));
15
- const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n //display: flex;\n //flex-direction: column;\n width: 100%;\n"])));
16
- const Title = exports.Title = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n //margin-bottom: 1rem;\n"])));
17
- const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-weight: 500;\n font-size: 2.22222rem;\n"])));
14
+ const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 12px;\n background: #ffffff;\n margin-bottom: 2rem;\n padding: 0px 0.8rem;\n"])));
15
+ const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
16
+ const Title = exports.Title = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
17
+ const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
18
18
  const FormattedValueNoData = exports.FormattedValueNoData = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-weight: 700;\n font-size: 16px;\n"])));
19
19
  const BenchmarkContainerParent = exports.BenchmarkContainerParent = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n width: 100%;\n height: 100%;\n margin: 0;\n"])));
20
- const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-top: 0;\n margin-left: 1rem;\n height: 0.9rem;\n //margin: 0;\n"])));
20
+ const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-top: 0;\n margin-left: 1rem;\n height: 0.9rem;\n"])));
21
21
  const NoDataFoundContainer = exports.NoDataFoundContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n"])));
@@ -17,7 +17,7 @@ const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div(_templ
17
17
  const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 1rem;\n"])));
18
18
  const Title = exports.Title = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
19
19
  const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n"])));
20
- const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n margin-right: 5px;\n @media (max-width: 1366px) {\n width: 12px;\n }\n @media (max-width: 1536px) {\n width: 14px;\n }\n"])));
20
+ const DetailsRowArrowContainer = exports.DetailsRowArrowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-end;\n width: 22px;\n margin-right: 5px;\n @media (max-width: 1366px) {\n width: 12px;\n }\n @media (max-width: 1536px) {\n width: 14px;\n }\n"])));
21
21
  const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
22
22
  const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
23
23
  const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0;\n"])));
@@ -117,6 +117,7 @@ const TotalBenchmarkBarchart = props => {
117
117
  }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
118
118
  dataKey: "value",
119
119
  name: "title",
120
+ maxBarSize: 55,
120
121
  radius: [5, 5, 0, 0]
121
122
  }, getFormattedBarChartData().map(entry => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
122
123
  key: entry.id,
@@ -10,11 +10,11 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
11
11
  const ControlsContainer = exports.ControlsContainer = _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 color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-content: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: #ffffff;\n"])), props => props.textColor, props => props.width, props => props.height);
12
12
  const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n border-radius: 12px;\n background: #ffffff; \n justify-content: space-between;\n flex-direction: column;\n flex-basis: 100%;\n"])));
13
- const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0px;\n"])));
14
- const Title = exports.Title = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem; \n"])));
13
+ const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0px;\n"])));
14
+ const Title = exports.Title = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 1rem; \n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
15
15
  const ValueAndBenchmarkContainer = exports.ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: flex-start;\n align-items: baseline; \n\n"])));
16
16
  const CurrencySign = exports.CurrencySign = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)([" \n font-weight: 500;\n font-size: 1rem;\n"])));
17
- const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.1rem;\n font-weight: 500;\n font-size: 2.22222rem;\n"])));
17
+ const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.1rem;\n font-weight: 500;\n font-size: 40px;\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n"])));
18
18
  const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0; \n"])));
19
19
  const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.7em;\n width: 5.35em;\n"])));
20
20
  const BarchartContainer = exports.BarchartContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n"])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.439",
3
+ "version": "1.0.441",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
File without changes
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_YdAmQQKQ2B6ZngEijA0JiqNNUdJvP23G46NK7-fc
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_MOcc8-aS91XJ3mFdtNlH4oPVY73ChHlmw6-hKhsb
@@ -1,26 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- },
26
- };
@@ -1,27 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- },
27
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- /*eslint linebreak-style: ["error", "windows"]*/
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- eslint linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows']
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,29 +0,0 @@
1
- /* eslint-disable linebreak-style */
2
- module.exports = {
3
- env: {
4
- browser: true,
5
- es2021: true,
6
- },
7
- extends: 'airbnb',
8
- overrides: [
9
- {
10
- env: {
11
- node: true,
12
- },
13
- files: [
14
- '.eslintrc.{js,cjs}',
15
- ],
16
- parserOptions: {
17
- sourceType: 'script',
18
- },
19
- },
20
- ],
21
- parserOptions: {
22
- ecmaVersion: 'latest',
23
- sourceType: 'module',
24
- },
25
- rules: {
26
- 'max-len': 'off',
27
- 'linebreak-style': ['error', 'windows'],
28
- },
29
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- },
28
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- "react/function-component-definition": [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };