@daeryun/dr_components 0.3.69 → 0.3.70
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/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.jsx +8 -8
- package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.tsx +81 -81
- package/dist/components/page/Login/LoginComp/SignContainer.d.ts +0 -14
- package/dist/components/page/Login/LoginComp/SignContainer.jsx +53 -93
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +61 -142
- package/dist/components/page/Login/Personal.d.ts +0 -6
- package/dist/components/page/Login/Personal.jsx +2 -122
- package/dist/components/page/Login/Personal.tsx +2 -179
- package/dist/components/page/Login/_types/termType.d.ts +16 -0
- package/dist/components/page/Login/_types/termType.js +1 -0
- package/dist/components/page/Login/_types/termType.ts +16 -0
- package/dist/styles/globals.css +0 -187
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +0 -14
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.jsx +0 -61
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +0 -160
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.d.ts +0 -14
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.jsx +0 -88
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.tsx +0 -223
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IOptionalCheckAlarm } from '../SignContainer';
|
|
3
|
-
declare const OptionalCheckBox: ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }: {
|
|
4
|
-
title: string;
|
|
5
|
-
cautionTitle: string;
|
|
6
|
-
isContent: boolean;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
setModal: () => void;
|
|
9
|
-
name: string;
|
|
10
|
-
parentIndex: number;
|
|
11
|
-
optionalItemList: IOptionalCheckAlarm[];
|
|
12
|
-
handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export default OptionalCheckBox;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
const OptionalCheckBox = ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }) => {
|
|
4
|
-
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
-
return (<div className={'flex flex-col gap-[24px] ' + ' max-md2:gap-[0px] ' + ' max-md:gap-[0px] '}>
|
|
6
|
-
<div className={'flex w-full flex-row justify-between '}>
|
|
7
|
-
<button onClick={handleButton} type={'button'} name={name} data-idx={parentIndex} className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-md2:gap-[12px] '}>
|
|
8
|
-
{checked ? (<span className={' flex items-center justify-center ' +
|
|
9
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
10
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
11
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
12
|
-
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
13
|
-
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
14
|
-
' max-md2:h-[20px] max-md2:w-[20px] ' +
|
|
15
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
16
|
-
<span className={` body_medium2 ` + ' max-md2:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
17
|
-
{title}
|
|
18
|
-
</span>
|
|
19
|
-
<span className={' body_small2 text-[#AE0E36] ' + ' max-md2:body_small2_tb ' + ' max-md:hidden '}>
|
|
20
|
-
{cautionTitle}
|
|
21
|
-
</span>
|
|
22
|
-
</button>
|
|
23
|
-
{isContent && (<button type={'button'} onClick={setModal} className={' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
24
|
-
' body_small2 ' +
|
|
25
|
-
' max-md2:body_small2_tb ' +
|
|
26
|
-
' max-sm:body_small2_mo '}>
|
|
27
|
-
보기
|
|
28
|
-
</button>)}
|
|
29
|
-
</div>
|
|
30
|
-
<div className={' md:hidden ' +
|
|
31
|
-
' ml-[44px] mt-[12px] flex items-center ' +
|
|
32
|
-
' max-md:ml-[32px] ' +
|
|
33
|
-
' max-sm:ml-[26px] '}>
|
|
34
|
-
<span className={' body_small2_mo text-[#AE0E36] '}>{cautionTitle}</span>
|
|
35
|
-
</div>
|
|
36
|
-
<div className={' ml-[44px] flex flex-row gap-[36px] ' +
|
|
37
|
-
' max-md2:-[32px] max-md2:mt-[23px] max-md2:gap-[23px] ' +
|
|
38
|
-
' max-md:grid max-md:grid-cols-2 max-md:grid-rows-2 max-md:gap-x-[8px] max-md:gap-y-[30px] max-sm:ml-[26px] max-sm:mt-[30px] '}>
|
|
39
|
-
{optionalItemList.map((item, index) => {
|
|
40
|
-
return (<button key={index} onClick={handleButton} name={item.name} data-parentidx={parentIndex} data-idx={index} type={'button'} value={item.value} className={' flex flex-row items-center gap-[20px] ' +
|
|
41
|
-
' max-md2:gap-[12px] ' +
|
|
42
|
-
' max-md:gap-[10px] '}>
|
|
43
|
-
{item.checked ? (<span className={' flex items-center justify-center ' +
|
|
44
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
45
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
46
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
47
|
-
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
48
|
-
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
49
|
-
' max-md2:h-[20px] max-md2:w-[20px] ' +
|
|
50
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
51
|
-
<span className={' body_medium2 text-black ' +
|
|
52
|
-
' max-md2:body_medium2_tb ' +
|
|
53
|
-
' max-sm:body_medium2_mo '}>
|
|
54
|
-
{item.title}
|
|
55
|
-
</span>
|
|
56
|
-
</button>);
|
|
57
|
-
})}
|
|
58
|
-
</div>
|
|
59
|
-
</div>);
|
|
60
|
-
};
|
|
61
|
-
export default OptionalCheckBox;
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
import { IOptionalCheckAlarm } from '../SignContainer';
|
|
4
|
-
|
|
5
|
-
const OptionalCheckBox = ({
|
|
6
|
-
title,
|
|
7
|
-
cautionTitle,
|
|
8
|
-
isContent,
|
|
9
|
-
checked,
|
|
10
|
-
name,
|
|
11
|
-
setModal,
|
|
12
|
-
parentIndex,
|
|
13
|
-
optionalItemList,
|
|
14
|
-
handleButton
|
|
15
|
-
}: {
|
|
16
|
-
title: string;
|
|
17
|
-
cautionTitle: string;
|
|
18
|
-
isContent: boolean;
|
|
19
|
-
checked: boolean;
|
|
20
|
-
setModal: () => void;
|
|
21
|
-
name: string;
|
|
22
|
-
parentIndex: number;
|
|
23
|
-
optionalItemList: IOptionalCheckAlarm[];
|
|
24
|
-
handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
25
|
-
}) => {
|
|
26
|
-
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
27
|
-
return (
|
|
28
|
-
<div className={'flex flex-col gap-[24px] ' + ' max-md2:gap-[0px] ' + ' max-md:gap-[0px] '}>
|
|
29
|
-
<div className={'flex w-full flex-row justify-between '}>
|
|
30
|
-
<button
|
|
31
|
-
onClick={handleButton}
|
|
32
|
-
type={'button'}
|
|
33
|
-
name={name}
|
|
34
|
-
data-idx={parentIndex}
|
|
35
|
-
className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-md2:gap-[12px] '}
|
|
36
|
-
>
|
|
37
|
-
{checked ? (
|
|
38
|
-
<span
|
|
39
|
-
className={
|
|
40
|
-
' flex items-center justify-center ' +
|
|
41
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
42
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
43
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
44
|
-
}
|
|
45
|
-
>
|
|
46
|
-
<Image
|
|
47
|
-
src={`${imagePath}/common-login/check box.svg`}
|
|
48
|
-
alt={'check box'}
|
|
49
|
-
height={100}
|
|
50
|
-
width={100}
|
|
51
|
-
className={`h-full w-full`}
|
|
52
|
-
/>
|
|
53
|
-
</span>
|
|
54
|
-
) : (
|
|
55
|
-
<span
|
|
56
|
-
className={
|
|
57
|
-
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
58
|
-
' max-md2:h-[20px] max-md2:w-[20px] ' +
|
|
59
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
60
|
-
}
|
|
61
|
-
></span>
|
|
62
|
-
)}
|
|
63
|
-
<span className={` body_medium2 ` + ' max-md2:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
64
|
-
{title}
|
|
65
|
-
</span>
|
|
66
|
-
<span className={' body_small2 text-[#AE0E36] ' + ' max-md2:body_small2_tb ' + ' max-md:hidden '}>
|
|
67
|
-
{cautionTitle}
|
|
68
|
-
</span>
|
|
69
|
-
</button>
|
|
70
|
-
{isContent && (
|
|
71
|
-
<button
|
|
72
|
-
type={'button'}
|
|
73
|
-
onClick={setModal}
|
|
74
|
-
className={
|
|
75
|
-
' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
76
|
-
' body_small2 ' +
|
|
77
|
-
' max-md2:body_small2_tb ' +
|
|
78
|
-
' max-sm:body_small2_mo '
|
|
79
|
-
}
|
|
80
|
-
>
|
|
81
|
-
보기
|
|
82
|
-
</button>
|
|
83
|
-
)}
|
|
84
|
-
</div>
|
|
85
|
-
<div
|
|
86
|
-
className={
|
|
87
|
-
' md:hidden ' +
|
|
88
|
-
' ml-[44px] mt-[12px] flex items-center ' +
|
|
89
|
-
' max-md:ml-[32px] ' +
|
|
90
|
-
' max-sm:ml-[26px] '
|
|
91
|
-
}
|
|
92
|
-
>
|
|
93
|
-
<span className={' body_small2_mo text-[#AE0E36] '}>{cautionTitle}</span>
|
|
94
|
-
</div>
|
|
95
|
-
<div
|
|
96
|
-
className={
|
|
97
|
-
' ml-[44px] flex flex-row gap-[36px] ' +
|
|
98
|
-
' max-md2:-[32px] max-md2:mt-[23px] max-md2:gap-[23px] ' +
|
|
99
|
-
' max-md:grid max-md:grid-cols-2 max-md:grid-rows-2 max-md:gap-x-[8px] max-md:gap-y-[30px] max-sm:ml-[26px] max-sm:mt-[30px] '
|
|
100
|
-
}
|
|
101
|
-
>
|
|
102
|
-
{optionalItemList.map((item, index: number) => {
|
|
103
|
-
return (
|
|
104
|
-
<button
|
|
105
|
-
key={index}
|
|
106
|
-
onClick={handleButton}
|
|
107
|
-
name={item.name}
|
|
108
|
-
data-parentidx={parentIndex}
|
|
109
|
-
data-idx={index}
|
|
110
|
-
type={'button'}
|
|
111
|
-
value={item.value}
|
|
112
|
-
className={
|
|
113
|
-
' flex flex-row items-center gap-[20px] ' +
|
|
114
|
-
' max-md2:gap-[12px] ' +
|
|
115
|
-
' max-md:gap-[10px] '
|
|
116
|
-
}
|
|
117
|
-
>
|
|
118
|
-
{item.checked ? (
|
|
119
|
-
<span
|
|
120
|
-
className={
|
|
121
|
-
' flex items-center justify-center ' +
|
|
122
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
123
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
124
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
125
|
-
}
|
|
126
|
-
>
|
|
127
|
-
<Image
|
|
128
|
-
src={`${imagePath}/common-login/check box.svg`}
|
|
129
|
-
alt={'check box'}
|
|
130
|
-
height={100}
|
|
131
|
-
width={100}
|
|
132
|
-
className={`h-full w-full`}
|
|
133
|
-
/>
|
|
134
|
-
</span>
|
|
135
|
-
) : (
|
|
136
|
-
<span
|
|
137
|
-
className={
|
|
138
|
-
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
139
|
-
' max-md2:h-[20px] max-md2:w-[20px] ' +
|
|
140
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
141
|
-
}
|
|
142
|
-
></span>
|
|
143
|
-
)}
|
|
144
|
-
<span
|
|
145
|
-
className={
|
|
146
|
-
' body_medium2 text-black ' +
|
|
147
|
-
' max-md2:body_medium2_tb ' +
|
|
148
|
-
' max-sm:body_medium2_mo '
|
|
149
|
-
}
|
|
150
|
-
>
|
|
151
|
-
{item.title}
|
|
152
|
-
</span>
|
|
153
|
-
</button>
|
|
154
|
-
);
|
|
155
|
-
})}
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
);
|
|
159
|
-
};
|
|
160
|
-
export default OptionalCheckBox;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IOptionalCheckAlarm } from '../../Personal';
|
|
3
|
-
declare const MyPageOptionalCheckBox: ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }: {
|
|
4
|
-
title: string;
|
|
5
|
-
cautionTitle: string;
|
|
6
|
-
isContent: boolean;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
setModal: () => void;
|
|
9
|
-
name: string;
|
|
10
|
-
parentIndex: number;
|
|
11
|
-
optionalItemList: IOptionalCheckAlarm[];
|
|
12
|
-
handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export default MyPageOptionalCheckBox;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
const MyPageOptionalCheckBox = ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }) => {
|
|
4
|
-
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
-
return (<div className={' ' + ` body_medium2 ` + ' max-lg2:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
6
|
-
<div className={' flex flex-row ' + ' max-lg2:gap-[20px] ' + ' max-sm:flex-col max-sm:gap-[12px] '}>
|
|
7
|
-
<div className={'flex w-[364px] flex-row items-center gap-[8px] ' +
|
|
8
|
-
' max-xl:w-[360px] ' +
|
|
9
|
-
' max-lg2:w-[360px] ' +
|
|
10
|
-
' max-lg:w-[320px] '}>
|
|
11
|
-
<div className={' ' +
|
|
12
|
-
' body_medium2 text-[#000000] ' +
|
|
13
|
-
' max-lg:body_medium2_tb ' +
|
|
14
|
-
' max-sm:body_medium2_mo '}>
|
|
15
|
-
{title}
|
|
16
|
-
</div>
|
|
17
|
-
<button type={'button'} onClick={setModal} className={' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
18
|
-
' body_small2 ' +
|
|
19
|
-
' max-lg:body_small2_tb ' +
|
|
20
|
-
' max-sm:body_small2_mo '}>
|
|
21
|
-
보기
|
|
22
|
-
</button>
|
|
23
|
-
</div>
|
|
24
|
-
<div className={' flex w-[calc(100%-364px)] flex-row items-center gap-[36px] ' +
|
|
25
|
-
' max-lg2:w-[calc(100%-271px)] max-lg2:gap-[44px] ' +
|
|
26
|
-
' max-sm:grid max-sm:w-full max-sm:grid-cols-2 max-sm:grid-rows-1 max-sm:gap-x-[8px] max-sm:gap-y-[30px] '}>
|
|
27
|
-
<button name={'all'} onClick={handleButton} data-idx={parentIndex} type={'button'} className={'flex items-center gap-[20px]' + ' max-lg2:gap-[12px] '}>
|
|
28
|
-
{checked ? (<span className={' flex items-center justify-center ' +
|
|
29
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
30
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
31
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
32
|
-
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
33
|
-
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
34
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
35
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
36
|
-
<span className={' body_medium2 text-black ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
37
|
-
동의
|
|
38
|
-
</span>
|
|
39
|
-
</button>
|
|
40
|
-
<button name={'notall'} onClick={handleButton} data-idx={parentIndex} type={'button'} className={'flex items-center gap-[20px] ' + ' max-lg2:gap-[12px] '}>
|
|
41
|
-
{!checked ? (<span className={' flex items-center justify-center ' +
|
|
42
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
43
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
44
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
45
|
-
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
46
|
-
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
47
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
48
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
49
|
-
<span className={' body_medium2 text-black ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
50
|
-
미동의
|
|
51
|
-
</span>
|
|
52
|
-
</button>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<div className={' flex flex-row ' + ' mt-[24px] ' + ' max-lg2:mt-[20px] ' + ' max-sm:mt-[28px] '}>
|
|
56
|
-
<div className={'flex w-[364px]' + ' max-lg2:hidden '}></div>
|
|
57
|
-
<div className={' body_small2 text-[#AE0E36] ' + ' max-lg:body_small2_tb ' + ' max-sm:body_small2_mo '}>
|
|
58
|
-
{cautionTitle}
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div className={' flex flex-row ' + 'mt-[12px] '}>
|
|
63
|
-
<div className={'flex w-[364px] ' + ' max-lg2:hidden '}></div>
|
|
64
|
-
<div className={' flex w-[calc(100%-364px)] flex-row items-center gap-[36px] ' +
|
|
65
|
-
' max-lg2:w-full max-lg2:gap-[44px] ' +
|
|
66
|
-
' max-sm:grid max-sm:w-full max-sm:grid-cols-2 max-sm:grid-rows-2 max-sm:gap-x-[8px] max-sm:gap-y-[30px] '}>
|
|
67
|
-
{optionalItemList.map((item, index) => {
|
|
68
|
-
return (<button key={index} onClick={handleButton} name={item.name} data-parentidx={parentIndex} data-idx={index} type={'button'} value={item.value} className={' flex flex-row items-center gap-[20px] ' + ' max-lg2:gap-[12px] '}>
|
|
69
|
-
{item.checked ? (<span className={' flex items-center justify-center ' +
|
|
70
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
71
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
72
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
73
|
-
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
74
|
-
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
75
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
76
|
-
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
77
|
-
<span className={' body_medium2 text-black ' +
|
|
78
|
-
' max-lg:body_medium2_tb ' +
|
|
79
|
-
' max-sm:body_medium2_mo '}>
|
|
80
|
-
{item.title}
|
|
81
|
-
</span>
|
|
82
|
-
</button>);
|
|
83
|
-
})}
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>);
|
|
87
|
-
};
|
|
88
|
-
export default MyPageOptionalCheckBox;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
import { IOptionalCheckAlarm } from '../../Personal';
|
|
4
|
-
const MyPageOptionalCheckBox = ({
|
|
5
|
-
title,
|
|
6
|
-
cautionTitle,
|
|
7
|
-
isContent,
|
|
8
|
-
checked,
|
|
9
|
-
name,
|
|
10
|
-
setModal,
|
|
11
|
-
parentIndex,
|
|
12
|
-
optionalItemList,
|
|
13
|
-
handleButton
|
|
14
|
-
}: {
|
|
15
|
-
title: string;
|
|
16
|
-
cautionTitle: string;
|
|
17
|
-
isContent: boolean;
|
|
18
|
-
checked: boolean;
|
|
19
|
-
setModal: () => void;
|
|
20
|
-
name: string;
|
|
21
|
-
parentIndex: number;
|
|
22
|
-
optionalItemList: IOptionalCheckAlarm[];
|
|
23
|
-
handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
24
|
-
}) => {
|
|
25
|
-
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
26
|
-
return (
|
|
27
|
-
<div className={' ' + ` body_medium2 ` + ' max-lg2:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
28
|
-
<div className={' flex flex-row ' + ' max-lg2:gap-[20px] ' + ' max-sm:flex-col max-sm:gap-[12px] '}>
|
|
29
|
-
<div
|
|
30
|
-
className={
|
|
31
|
-
'flex w-[364px] flex-row items-center gap-[8px] ' +
|
|
32
|
-
' max-xl:w-[360px] ' +
|
|
33
|
-
' max-lg2:w-[360px] ' +
|
|
34
|
-
' max-lg:w-[320px] '
|
|
35
|
-
}
|
|
36
|
-
>
|
|
37
|
-
<div
|
|
38
|
-
className={
|
|
39
|
-
' ' +
|
|
40
|
-
' body_medium2 text-[#000000] ' +
|
|
41
|
-
' max-lg:body_medium2_tb ' +
|
|
42
|
-
' max-sm:body_medium2_mo '
|
|
43
|
-
}
|
|
44
|
-
>
|
|
45
|
-
{title}
|
|
46
|
-
</div>
|
|
47
|
-
<button
|
|
48
|
-
type={'button'}
|
|
49
|
-
onClick={setModal}
|
|
50
|
-
className={
|
|
51
|
-
' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
52
|
-
' body_small2 ' +
|
|
53
|
-
' max-lg:body_small2_tb ' +
|
|
54
|
-
' max-sm:body_small2_mo '
|
|
55
|
-
}
|
|
56
|
-
>
|
|
57
|
-
보기
|
|
58
|
-
</button>
|
|
59
|
-
</div>
|
|
60
|
-
<div
|
|
61
|
-
className={
|
|
62
|
-
' flex w-[calc(100%-364px)] flex-row items-center gap-[36px] ' +
|
|
63
|
-
' max-lg2:w-[calc(100%-271px)] max-lg2:gap-[44px] ' +
|
|
64
|
-
' max-sm:grid max-sm:w-full max-sm:grid-cols-2 max-sm:grid-rows-1 max-sm:gap-x-[8px] max-sm:gap-y-[30px] '
|
|
65
|
-
}
|
|
66
|
-
>
|
|
67
|
-
<button
|
|
68
|
-
name={'all'}
|
|
69
|
-
onClick={handleButton}
|
|
70
|
-
data-idx={parentIndex}
|
|
71
|
-
type={'button'}
|
|
72
|
-
className={'flex items-center gap-[20px]' + ' max-lg2:gap-[12px] '}
|
|
73
|
-
>
|
|
74
|
-
{checked ? (
|
|
75
|
-
<span
|
|
76
|
-
className={
|
|
77
|
-
' flex items-center justify-center ' +
|
|
78
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
79
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
80
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
81
|
-
}
|
|
82
|
-
>
|
|
83
|
-
<Image
|
|
84
|
-
src={`${imagePath}/common-login/check box.svg`}
|
|
85
|
-
alt={'check box'}
|
|
86
|
-
height={100}
|
|
87
|
-
width={100}
|
|
88
|
-
className={`h-full w-full`}
|
|
89
|
-
/>
|
|
90
|
-
</span>
|
|
91
|
-
) : (
|
|
92
|
-
<span
|
|
93
|
-
className={
|
|
94
|
-
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
95
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
96
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
97
|
-
}
|
|
98
|
-
></span>
|
|
99
|
-
)}
|
|
100
|
-
<span
|
|
101
|
-
className={
|
|
102
|
-
' body_medium2 text-black ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '
|
|
103
|
-
}
|
|
104
|
-
>
|
|
105
|
-
동의
|
|
106
|
-
</span>
|
|
107
|
-
</button>
|
|
108
|
-
<button
|
|
109
|
-
name={'notall'}
|
|
110
|
-
onClick={handleButton}
|
|
111
|
-
data-idx={parentIndex}
|
|
112
|
-
type={'button'}
|
|
113
|
-
className={'flex items-center gap-[20px] ' + ' max-lg2:gap-[12px] '}
|
|
114
|
-
>
|
|
115
|
-
{!checked ? (
|
|
116
|
-
<span
|
|
117
|
-
className={
|
|
118
|
-
' flex items-center justify-center ' +
|
|
119
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
120
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
121
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
122
|
-
}
|
|
123
|
-
>
|
|
124
|
-
<Image
|
|
125
|
-
src={`${imagePath}/common-login/check box.svg`}
|
|
126
|
-
alt={'check box'}
|
|
127
|
-
height={100}
|
|
128
|
-
width={100}
|
|
129
|
-
className={`h-full w-full`}
|
|
130
|
-
/>
|
|
131
|
-
</span>
|
|
132
|
-
) : (
|
|
133
|
-
<span
|
|
134
|
-
className={
|
|
135
|
-
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
136
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
137
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
138
|
-
}
|
|
139
|
-
></span>
|
|
140
|
-
)}
|
|
141
|
-
<span
|
|
142
|
-
className={
|
|
143
|
-
' body_medium2 text-black ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '
|
|
144
|
-
}
|
|
145
|
-
>
|
|
146
|
-
미동의
|
|
147
|
-
</span>
|
|
148
|
-
</button>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
<div className={' flex flex-row ' + ' mt-[24px] ' + ' max-lg2:mt-[20px] ' + ' max-sm:mt-[28px] '}>
|
|
152
|
-
<div className={'flex w-[364px]' + ' max-lg2:hidden '}></div>
|
|
153
|
-
<div className={' body_small2 text-[#AE0E36] ' + ' max-lg:body_small2_tb ' + ' max-sm:body_small2_mo '}>
|
|
154
|
-
{cautionTitle}
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
|
|
158
|
-
<div className={' flex flex-row ' + 'mt-[12px] '}>
|
|
159
|
-
<div className={'flex w-[364px] ' + ' max-lg2:hidden '}></div>
|
|
160
|
-
<div
|
|
161
|
-
className={
|
|
162
|
-
' flex w-[calc(100%-364px)] flex-row items-center gap-[36px] ' +
|
|
163
|
-
' max-lg2:w-full max-lg2:gap-[44px] ' +
|
|
164
|
-
' max-sm:grid max-sm:w-full max-sm:grid-cols-2 max-sm:grid-rows-2 max-sm:gap-x-[8px] max-sm:gap-y-[30px] '
|
|
165
|
-
}
|
|
166
|
-
>
|
|
167
|
-
{optionalItemList.map((item, index: number) => {
|
|
168
|
-
return (
|
|
169
|
-
<button
|
|
170
|
-
key={index}
|
|
171
|
-
onClick={handleButton}
|
|
172
|
-
name={item.name}
|
|
173
|
-
data-parentidx={parentIndex}
|
|
174
|
-
data-idx={index}
|
|
175
|
-
type={'button'}
|
|
176
|
-
value={item.value}
|
|
177
|
-
className={' flex flex-row items-center gap-[20px] ' + ' max-lg2:gap-[12px] '}
|
|
178
|
-
>
|
|
179
|
-
{item.checked ? (
|
|
180
|
-
<span
|
|
181
|
-
className={
|
|
182
|
-
' flex items-center justify-center ' +
|
|
183
|
-
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
184
|
-
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
185
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
186
|
-
}
|
|
187
|
-
>
|
|
188
|
-
<Image
|
|
189
|
-
src={`${imagePath}/common-login/check box.svg`}
|
|
190
|
-
alt={'check box'}
|
|
191
|
-
height={100}
|
|
192
|
-
width={100}
|
|
193
|
-
className={`h-full w-full`}
|
|
194
|
-
/>
|
|
195
|
-
</span>
|
|
196
|
-
) : (
|
|
197
|
-
<span
|
|
198
|
-
className={
|
|
199
|
-
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
200
|
-
' max-lg2:h-[20px] max-lg2:w-[20px] ' +
|
|
201
|
-
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
202
|
-
}
|
|
203
|
-
></span>
|
|
204
|
-
)}
|
|
205
|
-
<span
|
|
206
|
-
className={
|
|
207
|
-
' body_medium2 text-black ' +
|
|
208
|
-
' max-lg:body_medium2_tb ' +
|
|
209
|
-
' max-sm:body_medium2_mo '
|
|
210
|
-
}
|
|
211
|
-
>
|
|
212
|
-
{item.title}
|
|
213
|
-
</span>
|
|
214
|
-
</button>
|
|
215
|
-
);
|
|
216
|
-
})}
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
);
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export default MyPageOptionalCheckBox;
|