@edu-tosel/design 1.0.108 → 1.0.110
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/card/design/NavCard.design.js +1 -0
- package/card/template/NavCard.js +4 -0
- package/card/template/ProgressCard/Large.js +2 -2
- package/interface/Card.d.ts +1 -0
- package/layout/design/Shelf.design.js +1 -1
- package/layout/template/Shelf.js +2 -2
- package/layout/template/dashboard/Header.js +10 -14
- package/layout/template/dashboard/Navigation.js +1 -1
- package/layout/template/home/layout/Carousel.js +2 -2
- package/layout/template/home/layout/Footer.js +1 -1
- package/layout/template/home/layout/Header.js +5 -5
- package/layout/template/home/layout/index.js +1 -1
- package/layout/template/sign/Box.js +2 -2
- package/layout/template/sign/Button.js +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +1 -0
- package/version.txt +1 -1
- package/widget/template/Input/Form.js +1 -1
|
@@ -27,6 +27,7 @@ export default function NavCardDesign({ titles, option }) {
|
|
|
27
27
|
default: "absolute",
|
|
28
28
|
positions: image?.position ?? "bottom-0 right-0",
|
|
29
29
|
sizes: image?.size,
|
|
30
|
+
className: image?.className,
|
|
30
31
|
};
|
|
31
32
|
return (_jsxs(Card, { option: option, children: [_jsxs("div", { className: cn(textBox.container), children: [_jsx("div", { className: cn(textBox.title), children: title }), _jsx(LineBreaks, { className: cn(textBox.subtitle), texts: subtitle ?? "" })] }), buttonInLay && (_jsx(Label.Button, { title: buttonInLay.title, onClick: buttonInLay.onClick, option: {
|
|
32
33
|
className: "absolute bottom-7.5 left-7.5",
|
package/card/template/NavCard.js
CHANGED
|
@@ -5,6 +5,10 @@ function Banner({ titles, option }) {
|
|
|
5
5
|
...option,
|
|
6
6
|
width: option?.width ?? "xl",
|
|
7
7
|
height: option?.height ?? "sm",
|
|
8
|
+
image: option?.image && {
|
|
9
|
+
...option?.image,
|
|
10
|
+
className: "hidden md:block",
|
|
11
|
+
},
|
|
8
12
|
} }));
|
|
9
13
|
}
|
|
10
14
|
function _Button({ titles, onClick, option }) {
|
|
@@ -18,7 +18,7 @@ const text = {
|
|
|
18
18
|
export default function ProgressCardLG({ titles, checks, displays, theme, option, }) {
|
|
19
19
|
const progressBox = {
|
|
20
20
|
positions: "absolute top-7.5 left-7.5",
|
|
21
|
-
displays: "flex",
|
|
21
|
+
displays: "hidden lg:flex",
|
|
22
22
|
sizes: "w-150 h-19",
|
|
23
23
|
};
|
|
24
24
|
const stepBox = (flag) => ({
|
|
@@ -29,7 +29,7 @@ export default function ProgressCardLG({ titles, checks, displays, theme, option
|
|
|
29
29
|
texts: flag ? "text-gray-dark" : "text-gray-medium",
|
|
30
30
|
});
|
|
31
31
|
const titleBox = {
|
|
32
|
-
positions: "absolute top-12 right-12",
|
|
32
|
+
positions: "absolute top-7.5 md:top-12 right-4 md:right-12",
|
|
33
33
|
displays: "flex flex-col items-end gap-y-3",
|
|
34
34
|
};
|
|
35
35
|
const occupied = Math.round((checks.filter((value) => !!value).length / displays.length) * 100);
|
package/interface/Card.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export default function Shelf({ children, className, option, titles, debug, }) {
|
|
|
7
7
|
const container = {
|
|
8
8
|
displays: "flex flex-col gap-6",
|
|
9
9
|
sizes: isSize && "w-full h-full lg:h-auto",
|
|
10
|
-
debug: debug && isDebug(`border-2
|
|
10
|
+
debug: debug && isDebug(`border-2 ${debug}`),
|
|
11
11
|
};
|
|
12
12
|
const titleBox = {
|
|
13
13
|
container: "flex flex-col h-6 leading-none",
|
package/layout/template/Shelf.js
CHANGED
|
@@ -17,7 +17,7 @@ function Shelf({ titles, debug, children }) {
|
|
|
17
17
|
}
|
|
18
18
|
function Wrap({ className, titles, children, debug, option, }) {
|
|
19
19
|
const container = {
|
|
20
|
-
displays: "flex flex-row flex-wrap",
|
|
20
|
+
displays: "flex flex-col lg:flex-row flex-wrap",
|
|
21
21
|
gaps: gap[option?.gap ?? "xy"],
|
|
22
22
|
className,
|
|
23
23
|
};
|
|
@@ -39,7 +39,7 @@ function Row({ titles, children, className, debug, }) {
|
|
|
39
39
|
}
|
|
40
40
|
function Col({ titles, children, debug, className, }) {
|
|
41
41
|
const container = {
|
|
42
|
-
displays: "flex flex-col flex-wrap",
|
|
42
|
+
displays: "flex flex-col lg:flex-wrap",
|
|
43
43
|
className: className ?? "gap-y-7.5",
|
|
44
44
|
};
|
|
45
45
|
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
|
|
@@ -19,20 +19,16 @@ export function Header({ title, logo, notification, menu, option, }) {
|
|
|
19
19
|
styles: "px-5 xl:px-8 2xl:px-16 box-shadow",
|
|
20
20
|
className,
|
|
21
21
|
};
|
|
22
|
-
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex h-12 items-center gap-8 xl:gap-24 2xl:gap-26", children: [logo ? _jsx(_Fragment, { children: logo }) : _jsx("div", { className: "text-2xl", children: "TOSEL" }), _jsx("div", { className: "hidden lg:flex text-3xl font-pretendard-bold", children: title })] }), _jsx("div", { className: "relative flex gap-5.25", children:
|
|
22
|
+
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex h-12 items-center gap-8 xl:gap-24 2xl:gap-26", children: [logo ? _jsx(_Fragment, { children: logo }) : _jsx("div", { className: "text-2xl", children: "TOSEL" }), _jsx("div", { className: "hidden lg:flex text-3xl font-pretendard-bold", children: title })] }), _jsx("div", { className: "relative flex gap-5.25", children: _jsx(Action.Show, { actions: [
|
|
23
23
|
["notification", _jsx(Notification, { notifications: notifications })],
|
|
24
24
|
[menu ? "menu" : false, menu && _jsx(Menu, { ...menu })],
|
|
25
|
-
], children:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
height: "xs",
|
|
35
|
-
background: gradient.bg.greenToRed,
|
|
36
|
-
text: "text-white",
|
|
37
|
-
} }))] }) })] }));
|
|
25
|
+
], children: menu?.profile ? (_jsx(SVG.Profile, { onClick: () => {
|
|
26
|
+
setIsOwn(true);
|
|
27
|
+
return setView("menu");
|
|
28
|
+
}, color: iconColor })) : (_jsx(Label.Button, { title: "\uB300\uC2DC\uBCF4\uB4DC", onClick: () => option?.onClick && option.onClick(), option: {
|
|
29
|
+
width: "sm",
|
|
30
|
+
height: "xs",
|
|
31
|
+
background: gradient.bg.greenToRed,
|
|
32
|
+
text: "text-white",
|
|
33
|
+
} })) }) })] }));
|
|
38
34
|
}
|
|
@@ -3,7 +3,7 @@ import { cn } from "../../../util";
|
|
|
3
3
|
function Container({ children }) {
|
|
4
4
|
const container = {
|
|
5
5
|
positions: "fixed xl:static bottom-0 left-0 z-40",
|
|
6
|
-
displays: "
|
|
6
|
+
displays: "flex flex-row xl:flex-col",
|
|
7
7
|
sizes: "w-full xl:w-auto",
|
|
8
8
|
};
|
|
9
9
|
return (_jsxs("div", { className: cn(container), children: [children, _jsx(Copyright, {})] }));
|
|
@@ -37,7 +37,7 @@ export default function Carousel({ contents, }) {
|
|
|
37
37
|
positions: "absolute bottom-0 left-0",
|
|
38
38
|
displays: "flex justify-between items-center",
|
|
39
39
|
sizes: "w-23.25 h-6.25 bg-gray-dark rounded-full",
|
|
40
|
-
paddings: "px-1.5",
|
|
40
|
+
paddings: "px-1.5 ml-7.5",
|
|
41
41
|
};
|
|
42
|
-
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "relative w-64 h-50 flex flex-col", children: [_jsx("div", { className: cn(tagBox), children: TagStyles[tag].title }), _jsx("div", { className: "font-pretendard-bold text-2xl mt-2", children: titles.title }), _jsx(LineBreaks, { className: "mt-7.5", texts: titles.subtitle }), _jsxs("div", { className: cn(buttonBox), children: [_jsx("button", { onClick: () => setIndex((index - 1 + contents.length) % contents.length), className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.LessThan, {}) }), _jsxs("div", { className: "text-white", children: [index + 1, "/", contents.length] }), _jsx("button", { onClick: () => setIndex((index + 1) % contents.length), className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.GreaterThan, {}) })] })] }), image && (_jsx("img", { src: image, alt: "carousel-image", className: "absolute bottom-0 right-0" }))] }) }));
|
|
42
|
+
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "relative w-64 h-50 flex flex-col pl-7.5", children: [_jsx("div", { className: cn(tagBox), children: TagStyles[tag].title }), _jsx("div", { className: "font-pretendard-bold text-2xl mt-2", children: titles.title }), _jsx(LineBreaks, { className: "mt-7.5", texts: titles.subtitle }), _jsxs("div", { className: cn(buttonBox), children: [_jsx("button", { onClick: () => setIndex((index - 1 + contents.length) % contents.length), className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.LessThan, {}) }), _jsxs("div", { className: "text-white", children: [index + 1, "/", contents.length] }), _jsx("button", { onClick: () => setIndex((index + 1) % contents.length), className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.GreaterThan, {}) })] })] }), image && (_jsx("img", { src: image, alt: "carousel-image", className: "absolute bottom-0 right-0 w-3/5 " }))] }) }));
|
|
43
43
|
}
|
|
@@ -11,7 +11,7 @@ export default function Footer() {
|
|
|
11
11
|
sizes: "w-full max-w-290",
|
|
12
12
|
paddings: "py-8.5 px-7.5",
|
|
13
13
|
};
|
|
14
|
-
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "flex items-center gap-9.5", children: [_jsx("img", { src: "/images/logos/tosel.png", width: 147, height: 31.93 }), _jsx("img", { src: "/images/logos/itc-script.png", width: 122, height: 51 })] }), _jsxs("div", { className: "flex justify-between items-center border-b-1 border-gray-dark pb-4 mt-11.5", children: [_jsx("div", { children: "Copyright TOSEL. \u24D2 All Rights Reserved." }), _jsx("div", { className: "flex gap-5", children: buttons.map((button, index) => (_jsx("div", { children: button.title }, index))) })] }), _jsxs("div", { className: "flex flex-col mt-4", children: [_jsx("div", { children: "\uC11C\uC6B8\uC2DC \uC131\uBD81\uAD6C \uC548\uC554\uB85C 145 \uACE0\uB824\uB300\uD559\uAD50 \uB77C\uC774\uC2DC\uC6C0 4\uCE35" }), _jsx("div", { children: "Lyceum Korea University, 145 Anam Ro, Seongbuk-Gu, Seoul, Korea 02841" })] })] }) }));
|
|
14
|
+
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "flex items-center gap-9.5", children: [_jsx("img", { src: "/images/logos/tosel.png", width: 147, height: 31.93 }), _jsx("img", { src: "/images/logos/itc-script.png", width: 122, height: 51 })] }), _jsxs("div", { className: "flex justify-between items-center border-b-1 border-gray-dark pb-4 mt-11.5", children: [_jsx("div", { children: "Copyright TOSEL. \u24D2 All Rights Reserved." }), _jsx("div", { className: "flex gap-5", children: buttons.map((button, index) => (_jsx("div", { children: button.title }, index))) })] }), _jsxs("div", { className: "flex flex-col mt-4", children: [_jsx("div", { children: "\uB300\uD45C\uBC88\uD638 02-923-0505" }), _jsx("div", { children: "\uAC1C\uC778 \uBB38\uC758: tosel_cs@tosel.co.kr" }), _jsx("div", { children: "\uB2E8\uCCB4 \uBB38\uC758: tosel_academy@tosel.co.kr" }), _jsx("div", { children: "\uC11C\uC6B8\uC2DC \uC131\uBD81\uAD6C \uC548\uC554\uB85C 145 \uACE0\uB824\uB300\uD559\uAD50 \uB77C\uC774\uC2DC\uC6C0 4\uCE35" }), _jsx("div", { children: "Lyceum Korea University, 145 Anam Ro, Seongbuk-Gu, Seoul, Korea 02841" })] })] }) }));
|
|
15
15
|
}
|
|
16
16
|
const buttons = [
|
|
17
17
|
{
|
|
@@ -5,19 +5,19 @@ export default function Header({ logo, rightButton, contents, }) {
|
|
|
5
5
|
const container = {
|
|
6
6
|
displays: "flex justify-center items-center",
|
|
7
7
|
sizes: "w-full",
|
|
8
|
-
styles: "bg-white box-shadow",
|
|
8
|
+
styles: "bg-white box-shadow border-2 border-red-500",
|
|
9
9
|
};
|
|
10
10
|
const body = {
|
|
11
|
-
displays: "flex items-center justify-between",
|
|
11
|
+
displays: "flex items-center justify-center md:justify-between",
|
|
12
12
|
className: "w-full max-w-[1200px] h-15",
|
|
13
|
-
boundaries: "px-12",
|
|
13
|
+
boundaries: "md:px-12",
|
|
14
14
|
};
|
|
15
15
|
const buttonBox = {
|
|
16
|
-
fonts: "text-[16px] leading-tight",
|
|
16
|
+
fonts: "text-[11px] md:text-[16px] leading-tight",
|
|
17
17
|
texts: "text-gray-dark",
|
|
18
18
|
boundaries: "px-2.5",
|
|
19
19
|
};
|
|
20
|
-
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsx("div", { onClick: logo.onClick, children: logo.node }), _jsxs("div", { className: "flex items-center gap-x-12", children: [_jsx("div", { className: "flex items-center gap-2.5", children: contents.map((button, index) => (_jsx("button", { onClick: button.onClick, className: cn(buttonBox), children: button.title }, index))) }), rightButton && (_jsx(Label.Button, { title: rightButton.title, onClick: rightButton?.onClick, option: {
|
|
20
|
+
return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsx("div", { className: "hidden md:block", onClick: logo.onClick, children: logo.node }), _jsxs("div", { className: "flex items-center gap-x-12", children: [_jsx("div", { className: "flex items-center gap-2.5", children: contents.map((button, index) => (_jsx("button", { onClick: button.onClick, className: cn(buttonBox), children: button.title }, index))) }), rightButton && (_jsx(Label.Button, { title: rightButton.title, onClick: rightButton?.onClick, option: {
|
|
21
21
|
width: "2xs",
|
|
22
22
|
height: "4xs",
|
|
23
23
|
background: gradient.bg.greenToRed,
|
|
@@ -6,7 +6,7 @@ export default function Layout({ contents, children, logo, rightButton, }) {
|
|
|
6
6
|
const container = {
|
|
7
7
|
displays: "flex flex-col",
|
|
8
8
|
sizes: "w-full min-h-screen",
|
|
9
|
-
overflows: "overflow-x-hidden",
|
|
9
|
+
overflows: "overflow-x-hidden ",
|
|
10
10
|
};
|
|
11
11
|
return (_jsxs("div", { className: cn(container), children: [_jsx(Header, { logo: logo, rightButton: rightButton, contents: contents }), children, _jsx(Footer, {})] }));
|
|
12
12
|
}
|
|
@@ -2,14 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../util";
|
|
3
3
|
function Box({ sizes, children, className }) {
|
|
4
4
|
const container = {
|
|
5
|
-
sizes: sizes ?? "w-112.5 p-5",
|
|
5
|
+
sizes: sizes ?? "w-112.5 p-5 ",
|
|
6
6
|
style: "box-shadow bg-white rounded-xl",
|
|
7
7
|
className,
|
|
8
8
|
};
|
|
9
9
|
return _jsx("div", { className: cn(container), children: children });
|
|
10
10
|
}
|
|
11
11
|
function Fix({ children, className }) {
|
|
12
|
-
return (_jsx(Box, { className: className, sizes: "w-112.5 h-67.5 pt-10.25 px-5 pb-5", children: children }));
|
|
12
|
+
return (_jsx(Box, { className: className, sizes: "w-full max-w-112.5 h-65 xs:h-67.5 pt-8 xs:pt-10.25 px-2.5 xs:px-5 pb-2.5 xs:pb-5", children: children }));
|
|
13
13
|
}
|
|
14
14
|
Box.Fix = Fix;
|
|
15
15
|
export default Box;
|
|
@@ -15,7 +15,7 @@ function Button({ title, onClick, disabled, size }) {
|
|
|
15
15
|
}, className: cn(container), children: title }));
|
|
16
16
|
}
|
|
17
17
|
function Inner({ title, onClick }) {
|
|
18
|
-
return _jsx(Button, { title: title, onClick: onClick, size: "w-102.5 h-13.5" });
|
|
18
|
+
return (_jsx(Button, { title: title, onClick: onClick, size: "w-full sm:w-102.5 h-13.5" }));
|
|
19
19
|
}
|
|
20
20
|
function Selection({ buttons, state }) {
|
|
21
21
|
const [value, setValue] = state;
|
package/package.json
CHANGED
package/tailwind.config.ts
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.110
|
|
@@ -30,7 +30,7 @@ export default function InputForm({ title, state, placeholder, isValid, type, bu
|
|
|
30
30
|
};
|
|
31
31
|
const inputBox = {
|
|
32
32
|
styles: styleByFlag(),
|
|
33
|
-
sizes: "w-102.5 h-13.5",
|
|
33
|
+
sizes: "w-full sm:w-102.5 h-13.5",
|
|
34
34
|
paddings: `${placeholder && "pt-3"} pl-5`,
|
|
35
35
|
fonts: "text-sm",
|
|
36
36
|
boundaries: "rounded-md outline-none",
|