@daeryun/dr_components 0.3.39 → 0.3.40
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +1 -1
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +1 -1
- package/dist/components/page/Login/LoginComp/SignContainer.d.ts +2 -5
- package/dist/components/page/Login/LoginComp/SignContainer.jsx +5 -5
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +7 -10
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.d.ts +14 -0
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.jsx +88 -0
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.tsx +223 -0
- package/dist/components/page/Login/LoginComp/Withdraw/WithdrawCheckBox.d.ts +8 -0
- package/dist/components/page/Login/LoginComp/Withdraw/WithdrawCheckBox.jsx +19 -0
- package/dist/components/page/Login/LoginComp/Withdraw/WithdrawCheckBox.tsx +59 -0
- package/dist/components/page/Login/Personal.d.ts +15 -0
- package/dist/components/page/Login/Personal.jsx +603 -0
- package/dist/components/page/Login/Personal.tsx +935 -0
- package/dist/components/page/Login/Sign.d.ts +2 -19
- package/dist/components/page/Login/Sign.tsx +4 -62
- package/dist/components/page/Login/Withdraw.d.ts +6 -0
- package/dist/components/page/Login/Withdraw.jsx +161 -0
- package/dist/components/page/Login/Withdraw.tsx +227 -0
- package/dist/components/page/Login/_hooks/useLogout.d.ts +8 -0
- package/dist/components/page/Login/_hooks/useLogout.js +24 -0
- package/dist/components/page/Login/_hooks/useLogout.ts +26 -0
- package/dist/components/page/Login/_types/login.d.ts +5 -0
- package/dist/components/page/Login/_types/login.js +1 -0
- package/dist/components/page/Login/_types/login.ts +6 -0
- package/dist/styles/globals.css +184 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,223 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const WithdrawCheckBox: ({ checked, title, index, handleCheckBox }: {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
index: number;
|
|
6
|
+
handleCheckBox: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default WithdrawCheckBox;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
const WithdrawCheckBox = ({ checked, title, index, handleCheckBox }) => {
|
|
4
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
+
return (<button type={'button'} onClick={handleCheckBox} value={checked ? 'true' : 'false'} data-idx={index} className={' flex flex-row items-center gap-[20px] ' + ' max-lg:gap-[12px] ' + ' max-sm:gap-[10px] '}>
|
|
6
|
+
{checked ? (<span className={' flex items-center justify-center ' +
|
|
7
|
+
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
8
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
9
|
+
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
10
|
+
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
11
|
+
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
12
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
13
|
+
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
14
|
+
<span className={' body_medium2 text-[#000000] ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
15
|
+
{title}
|
|
16
|
+
</span>
|
|
17
|
+
</button>);
|
|
18
|
+
};
|
|
19
|
+
export default WithdrawCheckBox;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
|
|
4
|
+
const WithdrawCheckBox = ({
|
|
5
|
+
checked,
|
|
6
|
+
title,
|
|
7
|
+
index,
|
|
8
|
+
handleCheckBox
|
|
9
|
+
}: {
|
|
10
|
+
checked: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
index: number;
|
|
13
|
+
handleCheckBox: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
14
|
+
}) => {
|
|
15
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
16
|
+
return (
|
|
17
|
+
<button
|
|
18
|
+
type={'button'}
|
|
19
|
+
onClick={handleCheckBox}
|
|
20
|
+
value={checked ? 'true' : 'false'}
|
|
21
|
+
data-idx={index}
|
|
22
|
+
className={' flex flex-row items-center gap-[20px] ' + ' max-lg:gap-[12px] ' + ' max-sm:gap-[10px] '}
|
|
23
|
+
>
|
|
24
|
+
{checked ? (
|
|
25
|
+
<span
|
|
26
|
+
className={
|
|
27
|
+
' flex items-center justify-center ' +
|
|
28
|
+
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
29
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
30
|
+
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
31
|
+
}
|
|
32
|
+
>
|
|
33
|
+
<Image
|
|
34
|
+
src={`${imagePath}/common-login/check box.svg`}
|
|
35
|
+
alt={'check box'}
|
|
36
|
+
height={100}
|
|
37
|
+
width={100}
|
|
38
|
+
className={`h-full w-full`}
|
|
39
|
+
/>
|
|
40
|
+
</span>
|
|
41
|
+
) : (
|
|
42
|
+
<span
|
|
43
|
+
className={
|
|
44
|
+
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
45
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
46
|
+
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
47
|
+
}
|
|
48
|
+
></span>
|
|
49
|
+
)}
|
|
50
|
+
<span
|
|
51
|
+
className={' body_medium2 text-[#000000] ' + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}
|
|
52
|
+
>
|
|
53
|
+
{title}
|
|
54
|
+
</span>
|
|
55
|
+
</button>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default WithdrawCheckBox;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecoilState } from 'recoil';
|
|
3
|
+
import { ILoginInfo } from './_types/login';
|
|
4
|
+
export interface IOptionalCheckAlarm {
|
|
5
|
+
title: string;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
type props = {
|
|
11
|
+
layoutClassName?: string;
|
|
12
|
+
loginInfoAtom: RecoilState<ILoginInfo>;
|
|
13
|
+
};
|
|
14
|
+
declare const Personal: ({ layoutClassName, loginInfoAtom }: props) => React.JSX.Element;
|
|
15
|
+
export default Personal;
|