@edu-tosel/design 1.0.252 → 1.0.253

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.
@@ -11,7 +11,7 @@ export const CircularGauge = ({ score, maxScore, isGrade, theme, noAnimation, })
11
11
  }
12
12
  };
13
13
  const widthPercentage = prepareNoAnimationPercentage();
14
- const limitedScore = score.toFixed(0);
14
+ const limitedScore = score.toFixed(1);
15
15
  const pieStyles = {
16
16
  cx: "50%",
17
17
  cy: "50%",
@@ -28,7 +28,7 @@ export const CircularGauge = ({ score, maxScore, isGrade, theme, noAnimation, })
28
28
  displays: "absolute flex justify-center items-center",
29
29
  positions: "top-0 left-0",
30
30
  sizes: "w-full h-full",
31
- textStyles: "font-bold text-gray-medium text-2xl",
31
+ textStyles: "font-bold text-gray-medium text-xl",
32
32
  printOptions: "print:text-gray-dark",
33
33
  };
34
34
  const preparePieChartData = () => {
@@ -63,6 +63,6 @@ export const CircularGauge = ({ score, maxScore, isGrade, theme, noAnimation, })
63
63
  filter: theme == "green"
64
64
  ? "drop-shadow(0px 3px 5px rgba(16, 86, 82, 0.38))"
65
65
  : "drop-shadow(0px 3px 5px rgba(145, 0, 35, 0.38))",
66
- } }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] }) }) }), _jsx("div", { className: cn(scoreText), children: limitedScore })] }));
66
+ } }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] }) }) }), _jsx("div", { className: cn(scoreText), children: isGrade ? score : limitedScore })] }));
67
67
  }
68
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.252",
3
+ "version": "1.0.253",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.252
1
+ 1.0.253