@edu-tosel/design 1.0.202 → 1.0.203

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,3 +1,4 @@
1
1
  export { default as Loading } from "./template/Loading";
2
2
  export { default as NoData } from "./template/NoData";
3
3
  export { default as Lock } from "./template/Lock";
4
+ export { default as ErrorPage } from "./template/ErrorPage";
@@ -1,3 +1,4 @@
1
1
  export { default as Loading } from "./template/Loading";
2
2
  export { default as NoData } from "./template/NoData";
3
3
  export { default as Lock } from "./template/Lock";
4
+ export { default as ErrorPage } from "./template/ErrorPage";
@@ -0,0 +1,6 @@
1
+ interface ErrorPageProps {
2
+ message: string | string[];
3
+ statusCode: number;
4
+ }
5
+ export default function ErrorPage({ message, statusCode }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { LineBreaks } from "../../text";
3
+ export default function ErrorPage({ message, statusCode }) {
4
+ return (_jsx("div", { className: "flex justify-center items-center w-full h-screen", children: _jsxs("div", { className: "flex flex-col justify-center items-center", children: [_jsx("div", { className: "w-full h-fit flex justify-center items-center mb-5 text-green-dark", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "md:size-10 size-6", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" }) }) }), _jsx(LineBreaks, { texts: message }), _jsxs("div", { className: "relative flex justify-center items-center md:size-80 size-40", children: [_jsx("div", { className: "absolute flex justify-center items-center left-0 top-0 w-full h-full overflow-visible", children: _jsx("div", { className: "font-medium md:text-[200px] text-[100px] text-green-dark", children: statusCode }) }), _jsx("div", { className: "absolute flex justify-center items-center left-0 top-0 w-full h-full overflow-visible", children: _jsx("img", { src: "https://resource.tosel.co.kr/images/img-character-cocoon-main-new.png", alt: "", className: "size-40 md:size-80 z-10 hover:scale-105 duration-300" }) })] }), _jsx("div", { className: "w-full text-center text-base font-medium text-gray-dark", children: _jsx("button", { onClick: () => window.history.back(), className: "font-medium text-green-dark w-fit h-fit bg-green-light px-4 py-3 rounded-lg hover:shadow-green duration-300 text-sm hover:bg-white", children: "\uC774\uC804 \uD398\uC774\uC9C0\uB85C \uB3CC\uC544\uAC00\uAE30" }) })] }) }));
5
+ }
package/layout/index.d.ts CHANGED
@@ -23,4 +23,3 @@ export { default as LegacyLayout } from "./template/Legacy/Legacy.layout";
23
23
  export { default as MonthlyProgressReport } from "./template/MonthlyProgressReport";
24
24
  export { default as Transcript } from "./template/Transcript";
25
25
  export { default as Ticket } from "./template/Ticket";
26
- export { default as Error } from "./template/Error";
package/layout/index.js CHANGED
@@ -23,4 +23,3 @@ export { default as LegacyLayout } from "./template/Legacy/Legacy.layout";
23
23
  export { default as MonthlyProgressReport } from "./template/MonthlyProgressReport";
24
24
  export { default as Transcript } from "./template/Transcript";
25
25
  export { default as Ticket } from "./template/Ticket";
26
- export { default as Error } from "./template/Error";
@@ -1,4 +1,4 @@
1
- import { OnClick } from "@edu-tosel/design/interface";
1
+ import { OnClick } from "../../../../interface";
2
2
  export default function TableButtonsMolecule({ printAll, printOne, downloadExcel, }: {
3
3
  printAll: OnClick;
4
4
  printOne: OnClick;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LineBreaks } from "@edu-tosel/design";
3
2
  import { cn } from "../../../../../util";
4
3
  import { printBoxStyles } from "../atom/PrintBoxStyles";
5
4
  import LevelIndex from "../molecule/LevelIndex";
5
+ import { LineBreaks } from "../../../../../text";
6
6
  export default function PerformanceCard({ data, info, }) {
7
7
  const cardWrapper = {
8
8
  displays: "flex flex-col relative",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.202",
3
+ "version": "1.0.203",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
@@ -14,7 +14,6 @@
14
14
  "type": "module",
15
15
  "scripts": {},
16
16
  "dependencies": {
17
- "@edu-tosel/design": "^1.0.153",
18
17
  "@gsap/react": "^2.1.1",
19
18
  "date-fns": "^2.30.0",
20
19
  "date-fns-tz": "^2.0.1",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.202
1
+ 1.0.203
@@ -1 +0,0 @@
1
- export default function Error404(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export default function Error404() {
3
- return (_jsx("div", { className: "flex justify-center items-center w-full h-screen", children: _jsxs("div", { className: "flex flex-col justify-center items-center", children: [_jsx("div", { className: "w-full h-fit flex justify-center items-center mb-5 text-green-dark", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "md:size-10 size-6", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" }) }) }), _jsxs("div", { className: "w-full text-center text-sm md:text-base font-medium text-gray-dark", children: ["\uC694\uCCAD\uD558\uC2E0 \uD398\uC774\uC9C0\uB97C \uCC3E\uC744 \uC218\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. ", _jsx("br", {}), "\uC8FC\uC18C\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694."] }), _jsxs("div", { className: "relative flex justify-center items-center md:size-80 size-40", children: [_jsx("div", { className: "absolute flex justify-center items-center left-0 top-0 w-full h-full overflow-visible", children: _jsx("div", { className: "font-medium md:text-[200px] text-[100px] text-green-dark", children: "404" }) }), _jsx("div", { className: "absolute flex justify-center items-center left-0 top-0 w-full h-full overflow-visible", children: _jsx("img", { src: "https://resource.tosel.co.kr/images/img-character-cocoon-main-new.png", alt: "", className: "size-40 md:size-80 z-10 hover:scale-105 duration-300" }) })] }), _jsx("div", { className: "w-full text-center text-base font-medium text-gray-dark", children: _jsx("button", { className: "font-medium text-green-dark w-fit h-fit bg-green-light px-4 py-3 rounded-lg hover:shadow-green duration-300 text-sm hover:bg-white", children: "\uC774\uC804 \uD398\uC774\uC9C0\uB85C \uB3CC\uC544\uAC00\uAE30" }) })] }) }));
4
- }
@@ -1,5 +0,0 @@
1
- import Error404 from "./Error404";
2
- declare const Error: {
3
- Error404: typeof Error404;
4
- };
5
- export default Error;
@@ -1,5 +0,0 @@
1
- import Error404 from "./Error404";
2
- const Error = {
3
- Error404,
4
- };
5
- export default Error;