@lunit/oui 2.4.5 → 2.4.6

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,7 +18,7 @@ const Segments = ({ segments, isCutoff }) => {
18
18
  if (segment.color === 'jet') {
19
19
  return _jsx(HeatmapGraphSVG, { width: `${segment.width}%` });
20
20
  }
21
- return (_jsx(GraphSegment, { color: segment.color, width: segment.width, isFirstSegment: i === 0, isLastSegment: i === segments.length - 1, isCutoff: isCutoff, combinedWidth: combinedWidth, isNextSegment: i === onePercentSegmentIndex + 1, isOnePercentSegment: segment.width <= 1 }, i));
21
+ return (_jsx(GraphSegment, { color: segment.color, width: segment.width, isFirstSegment: i === 0, isLastSegment: i === segments.length - 1, isCutoff: isCutoff, combinedWidth: combinedWidth, isNextSegment: onePercentSegmentIndex > 0 && i === onePercentSegmentIndex + 1, isOnePercentSegment: segment.width <= 1 }, i));
22
22
  }) }));
23
23
  };
24
24
  const AnalysisBar = ({ componentType = 'analysisBar', isCutoff = false, expressionValue, caption, expressionLevels = [], expressionLabels = [], segments, isDimmed = false, }) => {
@@ -45,7 +45,7 @@ const GraphScoreIndicatorPip = styled('span')(() => {
45
45
  export const GraphScoreIndicator = ({ value, isCutoff, isJet, }) => {
46
46
  let leftPos = `${parseStringValToNumber(value)}%`;
47
47
  if (isCutoff) {
48
- if (+value <= 1) {
48
+ if (+value > 0 && +value <= 1) {
49
49
  leftPos = '12px';
50
50
  }
51
51
  if (+value > 1 && +value <= 7) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunit/oui",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "validate-branch-name": {
5
5
  "pattern": "^(main|develop)|(feature|fix|release|hotfix|qe)/.+$",
6
6
  "errorMsg": "The branch name is not correct. Please check the pattern. (ex. feature/add-something)"