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.esm.js +4 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -31093,7 +31093,7 @@ const GoalValue = styled.div`
|
|
|
31093
31093
|
right: 0;
|
|
31094
31094
|
z-index: 2;
|
|
31095
31095
|
margin: 0 auto;
|
|
31096
|
-
width:
|
|
31096
|
+
width: 50%;
|
|
31097
31097
|
display: inline;
|
|
31098
31098
|
padding: 0px 8px;
|
|
31099
31099
|
border: 2px solid #F2F2F2;
|
|
@@ -31221,16 +31221,10 @@ const BatteryChart = props => {
|
|
|
31221
31221
|
let newTop;
|
|
31222
31222
|
let newGoalValuePosition;
|
|
31223
31223
|
if (currentAmount > goalAmount) {
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
// Position the goal value just above the active chips
|
|
31227
|
-
|
|
31228
|
-
newGoalValuePosition = barHeight * 2.3;
|
|
31229
|
-
// newGoalValuePosition = (totalSegmentsLines - completedSegments + 4) * barHeight - barHeight / 2;
|
|
31224
|
+
newTop = (totalSegmentsLines - completedSegments - 3) * barHeight / 3; // Adjust for extra chips
|
|
31225
|
+
newGoalValuePosition = barHeight * 1.6;
|
|
31230
31226
|
} else {
|
|
31231
|
-
// Normal case: position the indicator above the active chips
|
|
31232
31227
|
newTop = (totalSegmentsLines - completedSegments) * barHeight / 1.65;
|
|
31233
|
-
// Position the goal value just above the active chips
|
|
31234
31228
|
newGoalValuePosition = newTop;
|
|
31235
31229
|
}
|
|
31236
31230
|
setTop(newTop);
|
|
@@ -31251,7 +31245,7 @@ const BatteryChart = props => {
|
|
|
31251
31245
|
className: className,
|
|
31252
31246
|
containerPadding: containerPadding,
|
|
31253
31247
|
backgroundColor: backgroundColor
|
|
31254
|
-
}, /*#__PURE__*/React$1.createElement(HeadingText, null, title), /*#__PURE__*/React$1.createElement(PanelSide, null, /*#__PURE__*/React$1.createElement(ProgressDetails, null, !noCommitment && /*#__PURE__*/React$1.createElement(HeadingPercentage, null, percentage, "%"), /*#__PURE__*/React$1.createElement(ProgressDescription, null, ask && /*#__PURE__*/React$1.createElement(ProgressItem, null, "ASK: ", `$${getFormattedValue(ask, false) + getFormattedUnits(ask)}`), target && /*#__PURE__*/React$1.createElement(ProgressItem, null, "Target: ", `$${getFormattedValue(target, false) + getFormattedUnits(target)}`)), /*#__PURE__*/React$1.createElement(ProgressLegend, null, /*#__PURE__*/React$1.createElement(LegendItem, null, /*#__PURE__*/React$1.createElement(LegendCube, {
|
|
31248
|
+
}, /*#__PURE__*/React$1.createElement(HeadingText, null, title), /*#__PURE__*/React$1.createElement(PanelSide, null, /*#__PURE__*/React$1.createElement(ProgressDetails, null, !noCommitment && /*#__PURE__*/React$1.createElement(HeadingPercentage, null, percentage, "%"), /*#__PURE__*/React$1.createElement(ProgressDescription, null, ask > 0 && /*#__PURE__*/React$1.createElement(ProgressItem, null, "ASK: ", `$${getFormattedValue(ask, false) + getFormattedUnits(ask)}`), target > 0 && /*#__PURE__*/React$1.createElement(ProgressItem, null, "Target: ", `$${getFormattedValue(target, false) + getFormattedUnits(target)}`)), /*#__PURE__*/React$1.createElement(ProgressLegend, null, /*#__PURE__*/React$1.createElement(LegendItem, null, /*#__PURE__*/React$1.createElement(LegendCube, {
|
|
31255
31249
|
color: color
|
|
31256
31250
|
}), /*#__PURE__*/React$1.createElement(LegendText, null, "Spend")), !noCommitment && /*#__PURE__*/React$1.createElement(LegendItem, null, /*#__PURE__*/React$1.createElement(LegendCube, {
|
|
31257
31251
|
color: "#E3E4E5"
|