@edu-tosel/design 1.0.257 → 1.0.259

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.
@@ -14,6 +14,8 @@ export interface Result {
14
14
  section2Part3: Score;
15
15
  section2Part4: Score;
16
16
  };
17
+ rank: number;
18
+ percentRank: number;
17
19
  id: number;
18
20
  setId: number;
19
21
  level: string;
@@ -20,7 +20,6 @@ function ProgressReport({ props, }, ref) {
20
20
  const rightBody = {
21
21
  displays: "flex flex-col",
22
22
  };
23
- // 계산 함수 (50점 만점 기준)
24
23
  const calculate = (result, type) => {
25
24
  const section1 = Object.values(result.report)
26
25
  .slice(0, 4)
@@ -80,7 +79,7 @@ function ProgressReport({ props, }, ref) {
80
79
  } }), _jsx("div", { className: "h-96", children: _jsxs(CardDesign, { option: {
81
80
  height: "full",
82
81
  boundary: "border-2 border-slate-300 pt-5 px-6 pb-6",
83
- }, children: [_jsxs("div", { className: "flex flex-col justify-center border-b-2 border-blue-navy pb-2.5", children: [_jsx("div", { className: " text-lg font-bold text-blue-navy", children: "\uCD5C\uADFC \uC2DC\uD5D8" }), _jsx("div", { children: recentResult.examName })] }), _jsxs("div", { className: "flex flex-col gap-y-7.5 absolute bottom-0 w-full px-3.5", children: [_jsxs("div", { className: "flex gap-x-12 justify-between w-full", children: [_jsxs("div", { className: "flex-1", children: [_jsx("div", { className: "text-center mb-3.5 text-lg font-bold text-blue-navy", children: "Section I" }), _jsxs("div", { className: cn(sectionWrapper), children: [_jsx("div", { className: cn(pieTray), children: _jsx(ResponsiveContainer, { children: _jsxs(PieChart, { children: [gradientDefinition, _jsxs(Pie, { data: preparePieChartData(recentResult, "section1"), ...pieStyles, children: [_jsx(Cell, { fill: `url(#${gradientId})`, ...cellStyles }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] })] }) }) }), calculate(recentResult, "section1")] })] }), _jsxs("div", { className: "flex-1", children: [_jsx("div", { className: "text-center mb-3.5 text-lg font-bold text-blue-navy", children: "Section II" }), _jsxs("div", { className: cn(sectionWrapper), children: [_jsx("div", { className: cn(pieTray), children: _jsx(ResponsiveContainer, { children: _jsxs(PieChart, { children: [gradientDefinition, _jsxs(Pie, { data: preparePieChartData(recentResult, "section2"), ...pieStyles, children: [_jsx(Cell, { fill: `url(#${gradientId})`, ...cellStyles }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] })] }) }) }), calculate(recentResult, "section2")] })] })] }), _jsxs("div", { className: "flex gap-x-2 justify-end items-end font-bold text-blue-navy", children: [_jsx("div", { className: "text-xl", children: "total" }), _jsx("div", { className: "text-5xl leading-none ", children: calculate(recentResult) })] })] })] }) })] })] }), _jsxs("div", { className: cn(rightBody), children: [_jsx("div", { className: "h-12 flex justify-end text-blue-navy font-bold", children: _jsx("div", { children: moment(new Date()).format("YYYY-MM-DD HH:mm:ss") }) }), _jsxs("div", { className: "flex flex-col justify-between h-full", children: [_jsx("div", { className: "h-88", children: _jsx(CardDesign, { option: {
82
+ }, children: [_jsxs("div", { className: "flex flex-col justify-center border-b-2 border-blue-navy pb-2.5", children: [_jsx("div", { className: " text-lg font-bold text-blue-navy", children: "\uCD5C\uADFC \uC2DC\uD5D8" }), _jsx("div", { children: recentResult.examName })] }), _jsxs("div", { className: "flex flex-col gap-y-7.5 absolute bottom-0 w-full px-3.5", children: [_jsxs("div", { className: "flex gap-x-12 justify-between w-full", children: [_jsxs("div", { className: "flex-1", children: [_jsx("div", { className: "text-center mb-3.5 text-lg font-bold text-blue-navy", children: "Section I" }), _jsxs("div", { className: cn(sectionWrapper), children: [_jsx("div", { className: cn(pieTray), children: _jsx(ResponsiveContainer, { children: _jsxs(PieChart, { children: [gradientDefinition, _jsxs(Pie, { data: preparePieChartData(recentResult, "section1"), ...pieStyles, children: [_jsx(Cell, { fill: `url(#${gradientId})`, ...cellStyles }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] })] }) }) }), calculate(recentResult, "section1")] })] }), _jsxs("div", { className: "flex-1", children: [_jsx("div", { className: "text-center mb-3.5 text-lg font-bold text-blue-navy", children: "Section II" }), _jsxs("div", { className: cn(sectionWrapper), children: [_jsx("div", { className: cn(pieTray), children: _jsx(ResponsiveContainer, { children: _jsxs(PieChart, { children: [gradientDefinition, _jsxs(Pie, { data: preparePieChartData(recentResult, "section2"), ...pieStyles, children: [_jsx(Cell, { fill: `url(#${gradientId})`, ...cellStyles }), _jsx(Cell, { fill: "rgba(255, 255, 255, 0)", ...cellStyles })] })] }) }) }), calculate(recentResult, "section2")] })] })] }), _jsxs("div", { className: "flex justify-between items-end", children: [_jsx("div", { className: "flex ", children: props.recentResult.rank < 21 ? (_jsxs("div", { className: "flex items-end font-bold leading-tight text-blue-navy", children: [_jsx("div", { className: "text-xl", children: "\uC804\uAD6D" }), _jsx("div", { className: "ml-2 text-2xl", children: props.recentResult.rank }), _jsx("div", { className: "text-lg", children: "\uC704" })] })) : (_jsxs("div", { className: "flex items-end font-bold leading-none text-blue-navy", children: [_jsx("div", { children: "\uC804\uAD6D \uC0C1\uC704" }), _jsx("div", { className: "ml-2 text-2xl", children: props.recentResult.percentRank.toFixed(2) }), _jsx("div", { children: "%" })] })) }), _jsxs("div", { className: "flex gap-x-2 justify-end items-end font-bold text-blue-navy", children: [_jsx("div", { className: "text-xl", children: "total" }), _jsx("div", { className: "text-5xl leading-none ", children: calculate(recentResult) })] })] })] })] }) })] })] }), _jsxs("div", { className: cn(rightBody), children: [_jsx("div", { className: "h-12 flex justify-end text-blue-navy font-bold", children: _jsx("div", { children: moment(new Date()).format("YYYY-MM-DD HH:mm:ss") }) }), _jsxs("div", { className: "flex flex-col justify-between h-full", children: [_jsx("div", { className: "h-88", children: _jsx(CardDesign, { option: {
84
83
  width: "xl",
85
84
  height: "full",
86
85
  boundary: "border-2 border-slate-300 pt-8 pr-8",
@@ -172,28 +172,28 @@ export function AnnualTableComponent() {
172
172
  examNumber: "87",
173
173
  dDay: "25.02.15",
174
174
  regStartDay: "24.11.18",
175
- regEndDay: "25.01.21",
175
+ regEndDay: "25.01.28",
176
176
  resultDay: "25.03.06",
177
177
  },
178
178
  {
179
179
  examNumber: "88",
180
180
  dDay: "25.05.17",
181
181
  regStartDay: "25.02.17",
182
- regEndDay: "25.04.22",
182
+ regEndDay: "25.04.29",
183
183
  resultDay: "25.06.05",
184
184
  },
185
185
  {
186
186
  examNumber: "89",
187
187
  dDay: "25.08.23",
188
188
  regStartDay: "25.05.19",
189
- regEndDay: "25.07.22",
189
+ regEndDay: "25.07.29",
190
190
  resultDay: "25.09.11",
191
191
  },
192
192
  {
193
193
  examNumber: "90",
194
194
  dDay: "25.11.15",
195
195
  regStartDay: "25.08.25",
196
- regEndDay: "25.10.21",
196
+ regEndDay: "25.10.28",
197
197
  resultDay: "25.12.04",
198
198
  },
199
199
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.257
1
+ 1.0.259