@edu-tosel/design 1.0.326 → 1.0.328
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.
|
@@ -55,5 +55,5 @@ export default function AgreementsSet({ onRequiredAgreementsChange, }) {
|
|
|
55
55
|
backgrounds: "bg-green-dark hover:shadow-green",
|
|
56
56
|
activeStyles: allAgreed ? "opacity-0 pointer-events-none" : "opacity-100",
|
|
57
57
|
};
|
|
58
|
-
return (_jsxs("div", { className: "flex flex-col gap-4 h-full w-full", children: [!allAgreed && (_jsxs("div", { className: cn(buttonWrapper), children: [_jsxs("div", { className: "flex flex-col text-gray-500 ", children: [_jsx("div", { className: "text-green-dark font-bold", children: "\uBC84\uD2BC\uC744 \uB20C\uB7EC \uD55C\uBC88\uC5D0 \uB3D9\uC758\uD560 \uC218 \uC788\uC5B4\uC694" }), _jsx("div", { className: "text-xs text-green-dark font-medium", children: "\uAC1C\uC778\uC815\uBCF4 \uC218\uC9D1 \uBC0F \uC774\uC6A9, \uB300\uD654 \uAD00\uB9AC \uADDC\uC815, \uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC\uADDC\uC815, \uD654\uBA74 \uB179\uD654\uC5D0 \uB300\uD55C \uC0AC\uC2E4\uC744 \uD655\uC778 \uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4." })] }), _jsx("button", { onClick: agreeAll, className: cn(buttonStyles), children: "\uD55C \uBC88\uC5D0 \uB3D9\uC758\uD558\uAE30" })] })), _jsx(ConsentBox, { title: "\uB300\uD68C \uAD00\uB9AC \uADDC\uC815 \uD655\uC778 \uBC0F \uB3D9\uC758", description: "\uB300\uD68C \uAD00\uB9AC \uADDC\uC815\uC744 \uC774\uD574\uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.terms, onChange: () => handleAgreementChange("terms") }), _jsx(ConsentBox, { title: "\uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC \uADDC\uC815 \uD655\uC778 \uBC0F \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC \uADDC\uC815\uC744 \uC774\uD574\uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.privacy, onChange: () => handleAgreementChange("privacy") }), _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") })] }));
|
|
58
|
+
return (_jsxs("div", { className: "flex flex-col gap-4 h-full w-full py-5", children: [!allAgreed && (_jsxs("div", { className: cn(buttonWrapper), children: [_jsxs("div", { className: "flex flex-col text-gray-500 ", children: [_jsx("div", { className: "text-green-dark font-bold", children: "\uBC84\uD2BC\uC744 \uB20C\uB7EC \uD55C\uBC88\uC5D0 \uB3D9\uC758\uD560 \uC218 \uC788\uC5B4\uC694" }), _jsx("div", { className: "text-xs text-green-dark font-medium", children: "\uAC1C\uC778\uC815\uBCF4 \uC218\uC9D1 \uBC0F \uC774\uC6A9, \uB300\uD654 \uAD00\uB9AC \uADDC\uC815, \uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC\uADDC\uC815, \uD654\uBA74 \uB179\uD654\uC5D0 \uB300\uD55C \uC0AC\uC2E4\uC744 \uD655\uC778 \uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4." })] }), _jsx("button", { onClick: agreeAll, className: cn(buttonStyles), children: "\uD55C \uBC88\uC5D0 \uB3D9\uC758\uD558\uAE30" })] })), _jsx(ConsentBox, { title: "\uB300\uD68C \uAD00\uB9AC \uADDC\uC815 \uD655\uC778 \uBC0F \uB3D9\uC758", description: "\uB300\uD68C \uAD00\uB9AC \uADDC\uC815\uC744 \uC774\uD574\uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.terms, onChange: () => handleAgreementChange("terms") }), _jsx(ConsentBox, { title: "\uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC \uADDC\uC815 \uD655\uC778 \uBC0F \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704\uC790 \uCC98\uB9AC \uADDC\uC815\uC744 \uC774\uD574\uD588\uC73C\uBA70, \uC774\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.privacy, onChange: () => handleAgreementChange("privacy") }), _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), " ", _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), " ", _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), " ", _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), " ", _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), " ", _jsx(ConsentBox, { title: "\uD654\uBA74 \uB179\uD654 \uB3D9\uC758", description: "\uBD80\uC815\uD589\uC704 \uBC29\uC9C0\uB97C \uC704\uD574 \uD654\uBA74\uC744 \uB179\uD654\uD558\uB294 \uAC83\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4.", isChecked: agreements.marketing, onChange: () => handleAgreementChange("marketing") }), _jsx("div", { className: "h-5 shrink-0 w-full" })] }));
|
|
59
59
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { OnClick, State } from "../../../interface";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
2
|
interface ButtonProps {
|
|
4
3
|
title: string;
|
|
5
4
|
onClick: OnClick;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
size?: string;
|
|
8
|
-
icon?: ReactNode;
|
|
7
|
+
icon?: React.ReactNode;
|
|
9
8
|
bg?: string;
|
|
10
9
|
}
|
|
11
10
|
interface SelectButtonProps {
|
|
12
11
|
state: State<string>;
|
|
13
12
|
buttons: {
|
|
14
13
|
type: string;
|
|
15
|
-
icon: string;
|
|
14
|
+
icon: string | React.ReactNode;
|
|
16
15
|
title: string;
|
|
17
16
|
}[];
|
|
18
17
|
}
|
|
@@ -19,7 +19,7 @@ function Button({ title, onClick, disabled, size, icon, bg }) {
|
|
|
19
19
|
}, className: cn(container), children: [title, icon && icon] }));
|
|
20
20
|
}
|
|
21
21
|
function Inner({ title, onClick, bg }) {
|
|
22
|
-
return (_jsx(Button, { title: title, onClick: onClick, size: "w-full
|
|
22
|
+
return (_jsx(Button, { title: title, onClick: onClick, size: "w-full h-13.5", bg: bg }));
|
|
23
23
|
}
|
|
24
24
|
function Selection({ buttons, state }) {
|
|
25
25
|
const [value, setValue] = state;
|
|
@@ -27,12 +27,14 @@ function Selection({ buttons, state }) {
|
|
|
27
27
|
return {
|
|
28
28
|
displays: "flex flex-1 justify-center items-center gap-3",
|
|
29
29
|
sizes: "h-15",
|
|
30
|
-
backgrounds: value === type
|
|
30
|
+
backgrounds: value === type
|
|
31
|
+
? "bg-green-dark/10 text-green-dark "
|
|
32
|
+
: "bg-gray-light text-gray-medium",
|
|
31
33
|
styles: "rounded-lgx",
|
|
32
34
|
animations: "duration-300",
|
|
33
35
|
};
|
|
34
36
|
};
|
|
35
|
-
return (_jsx("div", { className: "flex gap-2.5", children: buttons.map(({ icon, title, type }) => (_jsxs("button", { className: cn(container(type)), onClick: () => setValue(type), children: [_jsx("img", { src: icon }), _jsx("div", { children: title })] }, type))) }));
|
|
37
|
+
return (_jsx("div", { className: "flex gap-2.5", children: buttons.map(({ icon, title, type }) => (_jsxs("button", { className: cn(container(type)), onClick: () => setValue(type), children: [typeof icon === "string" ? _jsx("img", { src: icon }) : icon, _jsx("div", { children: title })] }, type))) }));
|
|
36
38
|
}
|
|
37
39
|
function WithTitle({ buttons, title, state }) {
|
|
38
40
|
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("div", { className: "leading-none", children: title }), _jsx(Selection, { buttons: buttons, state: state })] }));
|
|
@@ -17,7 +17,7 @@ export default function Layout({ children, steps, script, title, }) {
|
|
|
17
17
|
const titleText = {
|
|
18
18
|
textStyles: "font-bold text-base text-white",
|
|
19
19
|
};
|
|
20
|
-
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(headerBox), children: [_jsx("img", { src: "/images/logos/tosel-white-highdefinition.png", width: 93, height: 20, alt: "\uD1A0\uC140\uC758 \uBA54\uC778 \uB85C\uACE0" }), _jsx("div", { className: cn(titleText), children: title })] }), script && _jsx("div", { className: "font-medium text-sm", children: script }), steps && (_jsx("div", { className: "flex gap-5 my-5", children: steps?.map((step, index) => (_jsx(Light, { flag: step }, index))) })), _jsx("div", { className: "flex flex-col h-
|
|
20
|
+
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(headerBox), children: [_jsx("img", { src: "/images/logos/tosel-white-highdefinition.png", width: 93, height: 20, alt: "\uD1A0\uC140\uC758 \uBA54\uC778 \uB85C\uACE0" }), _jsx("div", { className: cn(titleText), children: title })] }), script && _jsx("div", { className: "font-medium text-sm", children: script }), steps && (_jsx("div", { className: "flex gap-5 my-5", children: steps?.map((step, index) => (_jsx(Light, { flag: step }, index))) })), _jsx("div", { className: "flex flex-col h-[calc(100%-185px)] sm:h-fit w-full justify-start items-center max-w-140", children: children })] }));
|
|
21
21
|
}
|
|
22
22
|
function Light({ flag }) {
|
|
23
23
|
const container = {
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.328
|