@lunit/oui 2.2.29 → 2.2.31
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.
|
@@ -10,6 +10,6 @@ const Score = ({ componentType = 'score', title, size = 'medium', metrics }) =>
|
|
|
10
10
|
throw new Error("The 'title' prop is required.");
|
|
11
11
|
if (!metrics)
|
|
12
12
|
throw new Error("The 'metrics' prop is required.");
|
|
13
|
-
return (_jsxs(PresentationTypography, { size: size, style: { color: metrics.isFullColored ? metrics.color : 'inherit' }, children: [title,
|
|
13
|
+
return (_jsxs(PresentationTypography, { size: size, style: { color: metrics.isFullColored ? metrics.color : 'inherit' }, children: [title, ": ", metrics.value, metrics.scoreType && (_jsx("span", { style: { color: metrics.color, marginLeft: 4 }, children: capitalize(metrics.scoreType) }))] }));
|
|
14
14
|
};
|
|
15
15
|
export default Score;
|
|
@@ -25,7 +25,9 @@ const Threshold = ({ componentType = 'threshold', title, totalScore, totalCells,
|
|
|
25
25
|
const marks = getSliderMarks(presetValue);
|
|
26
26
|
const handleDropdownChange = (event) => {
|
|
27
27
|
onChangeDropdown(event);
|
|
28
|
-
|
|
28
|
+
const newOption = options.find((option) => option.title === event.target.value)?.value;
|
|
29
|
+
setSelectedOptionValue(newOption);
|
|
30
|
+
setIsThresholdChanged(false);
|
|
29
31
|
};
|
|
30
32
|
const handleSliderChange = (event, value) => {
|
|
31
33
|
onChangeSlider(event, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunit/oui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.31",
|
|
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)"
|