@edu-tosel/design 1.0.218 → 1.0.220

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;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { paperSize } from "../../../../style/size";
4
4
  import { cn } from "../../../../util";
5
- import IdCard from "./organism/IdCard";
5
+ import { IdCard } from "./organism/IdCard.organism";
6
6
  import { BarCardRow } from "./organism/BarCardRow";
7
7
  import ScoreCard from "./organism/ScoreCard";
8
8
  import HonorCard from "./organism/HonorCard";
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { forwardRef } from "react";
3
3
  import { paperSize } from "../../../../style/size";
4
4
  import { cn } from "../../../../util";
5
- import IdCard from "./organism/IdCard";
5
+ import { IdCard } from "./organism/IdCard.organism";
6
6
  import { BarCardCol } from "./organism/BarCardCol";
7
7
  import { RadarCard } from "./organism/RadarCard";
8
8
  import { OCICard } from "./organism/OCICard";
@@ -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",
@@ -0,0 +1,4 @@
1
+ import { Information } from "../Transcript";
2
+ export declare function IdCard({ info }: {
3
+ info: Information;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { useResponsive } from "../../../../../hook";
4
4
  import { cn, copyToClipboard } from "../../../../../util";
5
5
  import QRCode from "react-qr-code";
6
6
  import { GetStyleFromLevel } from "../atom/GetStyleFromLevel";
7
- export default function IdCard({ info }) {
7
+ export function IdCard({ info }) {
8
8
  const [isExpanded, setIsExpanded] = useState(false);
9
9
  const togglecard = () => setIsExpanded(!isExpanded);
10
10
  //반응형 info 카드 height 문제로 눌러서 자세히 보기 차후 구현 예정
@@ -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.218",
3
+ "version": "1.0.220",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.218
1
+ 1.0.220
@@ -1,4 +0,0 @@
1
- import { TranscriptProps } from "../Transcript";
2
- export default function IdCard({ info }: {
3
- info: TranscriptProps["info"];
4
- }): import("react/jsx-runtime").JSX.Element;