@edu-tosel/design 1.0.251 → 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.
|
@@ -17,5 +17,5 @@ export default function Grade({ titles, image, data }) {
|
|
|
17
17
|
titleBorder: "border-blue-navy",
|
|
18
18
|
width: "sm",
|
|
19
19
|
height: "xs",
|
|
20
|
-
}, children: _jsx(_Fragment, { children: _jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-5", children: [_jsx("div", { className: cn(levelBox), children: data.levelString }), _jsxs("span", { className: "text-sm", children: [data.position, ", ", data.age, "\uC138"] })] }), _jsxs("div", { className: "absolute bottom-0 left-0 flex items-end gap-8 text-blue-navy", children: [_jsxs("div", { className: "w-
|
|
20
|
+
}, children: _jsx(_Fragment, { children: _jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-5", children: [_jsx("div", { className: cn(levelBox), children: data.levelString }), _jsxs("span", { className: "text-sm", children: [data.position, ", ", data.age, "\uC138"] })] }), _jsxs("div", { className: "absolute bottom-0 left-0 flex items-end gap-8 text-blue-navy", children: [_jsxs("div", { className: "w-24 h-12 flex justify-center items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.score }), _jsx("div", { children: "\uC810" })] }), _jsxs("div", { className: "w-14 h-12 flex justify-end items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.grade }), _jsx("div", { children: "\uB4F1\uAE09" })] })] })] }) }) }));
|
|
21
21
|
}
|
|
@@ -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(
|
|
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-
|
|
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
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.253
|