sag_components 2.0.0-beta80 → 2.0.0-beta82
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.d.ts +1 -1
- package/dist/index.esm.js +5 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/dist/types/components/LinkButton/LinkButton.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1074,7 +1074,7 @@ declare function LinkButton({ text, type, size, height, width, disabled, textCol
|
|
|
1074
1074
|
width?: string;
|
|
1075
1075
|
disabled?: boolean;
|
|
1076
1076
|
textColor?: string;
|
|
1077
|
-
onClick
|
|
1077
|
+
onClick?: () => void;
|
|
1078
1078
|
leftIcon?: string;
|
|
1079
1079
|
rightIcon?: string;
|
|
1080
1080
|
}): react_jsx_runtime.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -3047,7 +3047,7 @@ const LinkButton = _ref => {
|
|
|
3047
3047
|
width = '',
|
|
3048
3048
|
disabled = false,
|
|
3049
3049
|
textColor = '',
|
|
3050
|
-
onClick,
|
|
3050
|
+
onClick = () => {},
|
|
3051
3051
|
leftIcon = 'none',
|
|
3052
3052
|
rightIcon = 'none'
|
|
3053
3053
|
} = _ref;
|
|
@@ -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"
|