@edu-tosel/design 1.0.342 → 1.0.345
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.
- package/layout/index.d.ts +1 -0
- package/layout/index.js +1 -0
- package/layout/template/Resources/Layout.d.ts +5 -0
- package/layout/template/Resources/Layout.js +5 -0
- package/layout/template/Resources/Many.d.ts +15 -0
- package/layout/template/Resources/Many.js +32 -0
- package/layout/template/Resources/index.d.ts +7 -0
- package/layout/template/Resources/index.js +7 -0
- package/package.json +1 -1
- package/version.txt +1 -1
package/layout/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Action } from "./template/Action";
|
|
2
2
|
export { default as Announcement } from "./template/Announcement";
|
|
3
|
+
export { default as Resources } from "./template/Resources";
|
|
3
4
|
export { default as Archive } from "./template/Archive";
|
|
4
5
|
export { default as Home } from "./template/home";
|
|
5
6
|
export * from "./template/dashboard";
|
package/layout/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Action } from "./template/Action";
|
|
2
2
|
export { default as Announcement } from "./template/Announcement";
|
|
3
|
+
export { default as Resources } from "./template/Resources";
|
|
3
4
|
export { default as Archive } from "./template/Archive";
|
|
4
5
|
export { default as Home } from "./template/home";
|
|
5
6
|
export * from "./template/dashboard";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import BbsLayout from "../BbsLayout";
|
|
3
|
+
export default function Layout({ children, links }) {
|
|
4
|
+
return (_jsx(BbsLayout, { title: "\uD65C\uC6A9\uC790\uB8CC", links: links, icon: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", className: "w-[24px] h-[24px] md:w-[48px] md:h-[48px]", children: _jsx("path", { d: "M21.332 7.776C21.0653 6.8326 20.4979 6.0021 19.716 5.41077C18.934 4.81944 17.9804 4.49964 17 4.5H11C8.94 4.5 7.2 5.886 6.668 7.776M21.332 7.776C21.442 8.164 21.5 8.576 21.5 9C21.5 9.39783 21.342 9.77936 21.0607 10.0607C20.7794 10.342 20.3978 10.5 20 10.5H8C7.6022 10.5 7.2206 10.342 6.9393 10.0607C6.658 9.77936 6.5 9.39783 6.5 9C6.5 8.576 6.56 8.164 6.668 7.776M21.332 7.776C22.624 7.874 23.908 7.996 25.186 8.144C27.386 8.4 29 10.298 29 12.514V39C29 40.1935 28.5259 41.3381 27.682 42.182C26.8381 43.0259 25.6935 43.5 24.5 43.5H13.5C12.3065 43.5 11.1619 43.0259 10.318 42.182C9.47411 41.3381 9 40.1935 9 39V12.514C9 10.298 10.612 8.4 12.814 8.144C14.0961 7.99555 15.381 7.87286 16.668 7.776", stroke: "#105652", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) }), children: children }));
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnClick } from "../../../interface";
|
|
2
|
+
type Content = {
|
|
3
|
+
title: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
onClick?: OnClick;
|
|
6
|
+
downloadButton?: {
|
|
7
|
+
title: string;
|
|
8
|
+
onClick: OnClick;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
interface ManyLayoutProps {
|
|
12
|
+
contents: Content[];
|
|
13
|
+
}
|
|
14
|
+
export default function Many({ contents }: ManyLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../util";
|
|
3
|
+
import { Label } from "../../../widget";
|
|
4
|
+
export default function Many({ contents }) {
|
|
5
|
+
const container = {
|
|
6
|
+
displays: "flex flex-row items-center justify-between",
|
|
7
|
+
sizes: "w-full",
|
|
8
|
+
boundaries: "pt-7.5 pb-7.5 border-b-1 border-gray-medium/50",
|
|
9
|
+
};
|
|
10
|
+
const leftContent = {
|
|
11
|
+
displays: "flex flex-col items-start gap-y-1",
|
|
12
|
+
};
|
|
13
|
+
const titleStyle = {
|
|
14
|
+
fonts: "text-[16px] text-gray-dark font-pretendard-bold",
|
|
15
|
+
};
|
|
16
|
+
const dateStyle = {
|
|
17
|
+
fonts: "text-[12px] text-gray-medium",
|
|
18
|
+
};
|
|
19
|
+
return (_jsx("div", { children: contents.map((content, index) => (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(leftContent), children: [_jsx("div", { className: cn(titleStyle), children: content.title }), content.date && _jsx("div", { className: cn(dateStyle), children: content.date })] }), content.downloadButton ? (_jsx(Label.Button, { title: content.downloadButton.title, onClick: content.downloadButton.onClick, option: {
|
|
20
|
+
background: "bg-gray-dark",
|
|
21
|
+
text: "text-white",
|
|
22
|
+
width: "auto",
|
|
23
|
+
height: "xs",
|
|
24
|
+
styles: "px-4 py-2 rounded-md text-sm font-medium",
|
|
25
|
+
} })) : content.onClick ? (_jsx(Label.Button, { title: "\uB2E4\uC6B4\uB85C\uB4DC", onClick: content.onClick, option: {
|
|
26
|
+
background: "bg-gray-dark",
|
|
27
|
+
text: "text-white",
|
|
28
|
+
width: "auto",
|
|
29
|
+
height: "xs",
|
|
30
|
+
styles: "px-4 py-2 rounded-md text-sm font-medium",
|
|
31
|
+
} })) : null] }, index))) }));
|
|
32
|
+
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.345
|