sag_components 2.0.0-beta80 → 2.0.0-beta81

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/index.js CHANGED
@@ -31103,7 +31103,7 @@ const GoalValue = styled__default["default"].div`
31103
31103
  right: 0;
31104
31104
  z-index: 2;
31105
31105
  margin: 0 auto;
31106
- width: 40%;
31106
+ width: 50%;
31107
31107
  display: inline;
31108
31108
  padding: 0px 8px;
31109
31109
  border: 2px solid #F2F2F2;
@@ -31231,16 +31231,10 @@ const BatteryChart = props => {
31231
31231
  let newTop;
31232
31232
  let newGoalValuePosition;
31233
31233
  if (currentAmount > goalAmount) {
31234
- // Position the indicator slightly below the top chip
31235
- newTop = barHeight * 1.5; // Slightly below the 4th chip
31236
- // Position the goal value just above the active chips
31237
-
31238
- newGoalValuePosition = barHeight * 2.3;
31239
- // newGoalValuePosition = (totalSegmentsLines - completedSegments + 4) * barHeight - barHeight / 2;
31234
+ newTop = (totalSegmentsLines - completedSegments - 3) * barHeight / 3; // Adjust for extra chips
31235
+ newGoalValuePosition = barHeight * 1.6;
31240
31236
  } else {
31241
- // Normal case: position the indicator above the active chips
31242
31237
  newTop = (totalSegmentsLines - completedSegments) * barHeight / 1.65;
31243
- // Position the goal value just above the active chips
31244
31238
  newGoalValuePosition = newTop;
31245
31239
  }
31246
31240
  setTop(newTop);
@@ -31261,7 +31255,7 @@ const BatteryChart = props => {
31261
31255
  className: className,
31262
31256
  containerPadding: containerPadding,
31263
31257
  backgroundColor: backgroundColor
31264
- }, /*#__PURE__*/React__default["default"].createElement(HeadingText, null, title), /*#__PURE__*/React__default["default"].createElement(PanelSide, null, /*#__PURE__*/React__default["default"].createElement(ProgressDetails, null, !noCommitment && /*#__PURE__*/React__default["default"].createElement(HeadingPercentage, null, percentage, "%"), /*#__PURE__*/React__default["default"].createElement(ProgressDescription, null, ask && /*#__PURE__*/React__default["default"].createElement(ProgressItem, null, "ASK: ", `$${getFormattedValue(ask, false) + getFormattedUnits(ask)}`), target && /*#__PURE__*/React__default["default"].createElement(ProgressItem, null, "Target: ", `$${getFormattedValue(target, false) + getFormattedUnits(target)}`)), /*#__PURE__*/React__default["default"].createElement(ProgressLegend, null, /*#__PURE__*/React__default["default"].createElement(LegendItem, null, /*#__PURE__*/React__default["default"].createElement(LegendCube, {
31258
+ }, /*#__PURE__*/React__default["default"].createElement(HeadingText, null, title), /*#__PURE__*/React__default["default"].createElement(PanelSide, null, /*#__PURE__*/React__default["default"].createElement(ProgressDetails, null, !noCommitment && /*#__PURE__*/React__default["default"].createElement(HeadingPercentage, null, percentage, "%"), /*#__PURE__*/React__default["default"].createElement(ProgressDescription, null, ask > 0 && /*#__PURE__*/React__default["default"].createElement(ProgressItem, null, "ASK: ", `$${getFormattedValue(ask, false) + getFormattedUnits(ask)}`), target > 0 && /*#__PURE__*/React__default["default"].createElement(ProgressItem, null, "Target: ", `$${getFormattedValue(target, false) + getFormattedUnits(target)}`)), /*#__PURE__*/React__default["default"].createElement(ProgressLegend, null, /*#__PURE__*/React__default["default"].createElement(LegendItem, null, /*#__PURE__*/React__default["default"].createElement(LegendCube, {
31265
31259
  color: color
31266
31260
  }), /*#__PURE__*/React__default["default"].createElement(LegendText, null, "Spend")), !noCommitment && /*#__PURE__*/React__default["default"].createElement(LegendItem, null, /*#__PURE__*/React__default["default"].createElement(LegendCube, {
31267
31261
  color: "#E3E4E5"