@edu-tosel/design 1.0.144 → 1.0.145

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.
@@ -0,0 +1,2 @@
1
+ import { Exam } from "../../layout/template/Legacy/Exam";
2
+ export declare const exams: Exam[];
@@ -9,4 +9,3 @@ export interface Exam {
9
9
  }[];
10
10
  groupReport?: string;
11
11
  }
12
- export declare const exams: Exam[];
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,4 @@
1
- export default function LegacyLayout(): import("react/jsx-runtime").JSX.Element;
1
+ import { Exam } from "./Exam";
2
+ export default function LegacyLayout({ exams }: {
3
+ exams: Exam[];
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useRef } from "react";
3
3
  import Legacy from ".";
4
4
  import { cn } from "../../../util";
5
- export default function LegacyLayout() {
5
+ export default function LegacyLayout({ exams }) {
6
6
  const ref = useRef(null);
7
7
  const pageWrapper = {
8
8
  backgrounds: "bg-[#f6f6f6]/50",
9
9
  displays: "flex justify-center items-center",
10
10
  sizes: "h-full",
11
11
  };
12
- return (_jsx("div", { className: cn(pageWrapper), children: _jsx(Legacy.Table, {}) }));
12
+ return (_jsx("div", { className: cn(pageWrapper), children: _jsx(Legacy.Table, { exams: exams }) }));
13
13
  }
@@ -1 +1,4 @@
1
- export default function Table(): import("react/jsx-runtime").JSX.Element;
1
+ import { Exam } from "./Exam";
2
+ export default function Table({ exams }: {
3
+ exams: Exam[];
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../util";
3
3
  import Action from "../Action";
4
- import { exams } from "./sample";
5
4
  import { useState } from "react";
6
- export default function Table() {
5
+ export default function Table({ exams }) {
7
6
  const container = {
8
7
  textstyling: "font-pretendard-var antialiased relative",
9
8
  backgrounds: "text-gray-medium",
@@ -1,5 +1,7 @@
1
+ import LegacyLayout from "./Legacy.layout";
1
2
  import Table from "./Table";
2
3
  declare const Legacy: {
3
4
  Table: typeof Table;
5
+ Layout: typeof LegacyLayout;
4
6
  };
5
7
  export default Legacy;
@@ -1,5 +1,7 @@
1
+ import LegacyLayout from "./Legacy.layout";
1
2
  import Table from "./Table";
2
3
  const Legacy = {
3
4
  Table,
5
+ Layout: LegacyLayout,
4
6
  };
5
7
  export default Legacy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.144
1
+ 1.0.145