@edu-tosel/design 1.0.217 → 1.0.219

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.
@@ -1,28 +1,42 @@
1
1
  type Level = "CO" | "PS" | "ST" | "BA" | "JR" | "HJ" | "AD";
2
2
  type ExamType = "REG" | "IST" | "CMP";
3
- export interface TranscriptProps {
4
- info: {
5
- name: string;
6
- nickname?: string;
7
- imgSrc?: string;
8
- qrSrc?: string;
9
- sharedSrc?: string;
10
- code: string;
11
- birthday: string;
12
- examName: string;
13
- examDate: string;
14
- examType: ExamType;
15
- examValidAt: string;
16
- level: Level;
17
- };
18
- result: {
19
- score: number;
20
- grade: number;
21
- isHonor: boolean;
22
- percentRank: number;
23
- };
24
- data: {
25
- graph: {
3
+ export interface Information {
4
+ name: string;
5
+ nickname?: string;
6
+ imgSrc?: string;
7
+ qrSrc?: string;
8
+ sharedSrc?: string;
9
+ code: string;
10
+ birthday: string;
11
+ examName: string;
12
+ examDate: string;
13
+ examType: ExamType;
14
+ examValidAt: string;
15
+ level: Level;
16
+ }
17
+ export interface Result {
18
+ score: number;
19
+ grade: number;
20
+ isHonor: boolean;
21
+ percentRank: number;
22
+ }
23
+ export interface Data {
24
+ graph: {
25
+ user: {
26
+ section1: {
27
+ partA: number;
28
+ partB: number;
29
+ partC: number;
30
+ partD: number;
31
+ };
32
+ section2: {
33
+ partA: number;
34
+ partB: number;
35
+ partC: number;
36
+ partD: number;
37
+ };
38
+ };
39
+ average: {
26
40
  user: {
27
41
  section1: {
28
42
  partA: number;
@@ -37,54 +51,43 @@ export interface TranscriptProps {
37
51
  partD: number;
38
52
  };
39
53
  };
40
- average: {
41
- user: {
42
- section1: {
43
- partA: number;
44
- partB: number;
45
- partC: number;
46
- partD: number;
47
- };
48
- section2: {
49
- partA: number;
50
- partB: number;
51
- partC: number;
52
- partD: number;
53
- };
54
- };
55
- };
56
54
  };
57
- analysis: {
58
- total: {
59
- section1: number;
60
- section2: number;
61
- };
62
- user: {
63
- section1: number;
64
- section2: number;
65
- };
66
- nationalAverage: {
67
- section1: number;
68
- section2: number;
69
- };
70
- localAverage: {
71
- section1: number;
72
- section2: number;
73
- };
74
- ageAverage: {
75
- section1: number;
76
- section2: number;
77
- };
78
- "10percentageAverage": number;
79
- "30percentageAverage": number;
55
+ };
56
+ analysis: {
57
+ total: {
58
+ section1: number;
59
+ section2: number;
60
+ };
61
+ user: {
62
+ section1: number;
63
+ section2: number;
64
+ };
65
+ nationalAverage: {
66
+ section1: number;
67
+ section2: number;
80
68
  };
81
- script: {
82
- performanceEvaluation: string | string[];
83
- section1: string | string[];
84
- section2: string | string[];
69
+ localAverage: {
70
+ section1: number;
71
+ section2: number;
85
72
  };
86
- multipleIntelligence: MultipleIntelligenceRate;
73
+ ageAverage: {
74
+ section1: number;
75
+ section2: number;
76
+ };
77
+ "10percentageAverage": number;
78
+ "30percentageAverage": number;
79
+ };
80
+ script: {
81
+ performanceEvaluation: string | string[];
82
+ section1: string | string[];
83
+ section2: string | string[];
87
84
  };
85
+ multipleIntelligence: MultipleIntelligenceRate;
86
+ }
87
+ export interface TranscriptProps {
88
+ info: Information;
89
+ result: Result;
90
+ data: Data;
88
91
  }
89
92
  interface Score {
90
93
  part1: number;
@@ -1,4 +1,4 @@
1
- import { TranscriptProps } from "../Transcript";
2
- export default function HonorCard({ result, }: {
3
- result: TranscriptProps["result"];
1
+ import { Result } from "../Transcript";
2
+ export default function HonorCard({ result }: {
3
+ result: Result;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import SVG from "../../../../../asset/SVG";
3
3
  import { cn } from "../../../../../util";
4
4
  import { printBoxStyles } from "../atom/PrintBoxStyles";
5
- export default function HonorCard({ result, }) {
5
+ export default function HonorCard({ result }) {
6
6
  const cardWrapper = {
7
7
  displays: "flex flex-1 flex-col self-stretch relative",
8
8
  sizes: "w-full rounded-lg overflow-hidden",
@@ -15,7 +15,7 @@ export default function HonorCard({ result, }) {
15
15
  bg: "bg-green-light",
16
16
  textStyles: "text-green-dark font-medium text-sm",
17
17
  };
18
- return (_jsxs("div", { className: cn(cardWrapper, printBoxStyles), onClick: () => (window.location.href = `https://www.tosel.org/HallofFame/main`), children: [_jsx("div", { className: cn(cardTitle), children: _jsx("div", { className: "w-full text-center h-fit", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }) }), _jsxs("div", { className: "w-full h-full flex flex-row px-5 gap-x-5", children: [_jsxs("div", { className: "flex flex-1 flex-col w-full justify-center items-center xs:hidden md:flex", children: [_jsx("div", { className: "text-gray-dark font-bold text-xl", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }), _jsx("div", { className: "text-gray-medium font-medium text-sm", children: "Hall of Fame" })] }), _jsx("div", { className: "flex w-full flex-1 py-4 xs:py-0", children: _jsx(SVG.HallofFame, { isHonor: result.isHonor }) })] }), _jsx("div", { className: "pb-3 px-5 text-center text-xs", children: result.isHonor
18
+ return (_jsxs("div", { className: cn(cardWrapper, printBoxStyles), onClick: () => (window.location.href = `https://www.tosel.org/HallofFame/main`), children: [_jsx("div", { className: cn(cardTitle), children: _jsx("div", { className: "w-full text-center h-fit", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }) }), _jsxs("div", { className: "w-full h-full flex flex-row px-5 gap-x-5", children: [_jsxs("div", { className: "flex flex-col w-full justify-center items-center xs:hidden md:flex", children: [_jsx("div", { className: "text-gray-dark font-bold text-xl", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }), _jsx("div", { className: "text-gray-medium font-medium text-sm", children: "Hall of Fame" })] }), _jsx("div", { className: "flex w-full py-4 xs:py-0", children: _jsx(SVG.HallofFame, { isHonor: result.isHonor }) })] }), _jsx("div", { className: "pb-3 px-5 text-center text-xs", children: result.isHonor
19
19
  ? "축하합니다! 명예의 전당에 등재되었습니다"
20
20
  : "아쉽게도 명예의 전당에 오르지 못했습니다." })] }));
21
21
  }
@@ -1,4 +1,4 @@
1
- import { TranscriptProps } from "../Transcript";
1
+ import { Information } from "../Transcript";
2
2
  export default function IdCard({ info }: {
3
- info: TranscriptProps["info"];
3
+ info: Information;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { TranscriptProps } from "../Transcript";
2
- export declare function NationalPositionCard({ result, }: {
3
- result: TranscriptProps["result"];
1
+ import { Result } from "../Transcript";
2
+ export declare function NationalPositionCard({ result }: {
3
+ result: Result;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../../../util";
3
3
  import { printBoxStyles } from "../atom/PrintBoxStyles";
4
- export function NationalPositionCard({ result, }) {
4
+ export function NationalPositionCard({ result }) {
5
5
  const percentRank = result.percentRank.toFixed(1);
6
6
  const cardWrapper = {
7
7
  displays: "flex flex-col relative",
@@ -1,5 +1,5 @@
1
- import { TranscriptProps } from "../Transcript";
1
+ import { Data, Information } from "../Transcript";
2
2
  export default function PerformanceCard({ data, info, }: {
3
- data: TranscriptProps["data"];
4
- info: TranscriptProps["info"];
3
+ data: Data;
4
+ info: Information;
5
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Theme } from "../../interface";
2
- import { TranscriptProps } from "../Transcript";
2
+ import { Result } from "../Transcript";
3
3
  export default function ResultGaugeCard({ result, theme, }: {
4
- result: TranscriptProps["result"];
4
+ result: Result;
5
5
  theme: Theme;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { TranscriptProps } from "../Transcript";
1
+ import { Data } from "../Transcript";
2
2
  export default function ScoreCard({ data }: {
3
- data: TranscriptProps["data"];
3
+ data: Data;
4
4
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.217",
3
+ "version": "1.0.219",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.217
1
+ 1.0.219