@daeryun/dr_components 0.3.16 → 0.3.18
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/Login.jsx +3 -3
- package/dist/components/page/Login/Login.tsx +3 -3
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.d.ts +10 -0
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.jsx +41 -0
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.tsx +91 -0
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +2 -6
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +3 -6
- 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/Sign.d.ts +27 -0
- package/dist/components/page/Login/Sign.jsx +614 -0
- package/dist/components/page/Login/Sign.tsx +941 -0
- package/dist/components/page/Login/_api/completeUser.d.ts +7 -0
- package/dist/components/page/Login/_api/completeUser.js +23 -0
- package/dist/components/page/Login/_api/completeUser.ts +18 -0
- package/dist/components/page/Login/_api/confirmNumber.d.ts +5 -0
- package/dist/components/page/Login/_api/confirmNumber.js +23 -0
- package/dist/components/page/Login/_api/confirmNumber.ts +14 -0
- package/dist/components/page/Login/_api/getLoginStatus.d.ts +12 -0
- package/dist/components/page/Login/_api/getLoginStatus.js +48 -0
- package/dist/components/page/Login/_api/getLoginStatus.ts +42 -0
- package/dist/components/page/Login/_api/logout.d.ts +1 -0
- package/dist/components/page/Login/_api/logout.js +29 -0
- package/dist/components/page/Login/_api/logout.ts +18 -0
- package/dist/components/page/Login/_api/optionalTermAgree.d.ts +6 -0
- package/dist/components/page/Login/_api/optionalTermAgree.js +27 -0
- package/dist/components/page/Login/_api/optionalTermAgree.ts +23 -0
- package/dist/components/page/Login/_api/sendNumber.d.ts +5 -0
- package/dist/components/page/Login/_api/sendNumber.js +24 -0
- package/dist/components/page/Login/_api/sendNumber.ts +15 -0
- package/dist/components/page/Login/_api/token.d.ts +2 -0
- package/dist/components/page/Login/_api/token.js +33 -0
- package/dist/components/page/Login/_api/token.ts +25 -0
- package/dist/components/page/Login/_api/updateUserInfo.d.ts +6 -0
- package/dist/components/page/Login/_api/updateUserInfo.js +26 -0
- package/dist/components/page/Login/_api/updateUserInfo.ts +17 -0
- package/dist/components/page/Login/_api/withdraw.d.ts +5 -0
- package/dist/components/page/Login/_api/withdraw.js +23 -0
- package/dist/components/page/Login/_api/withdraw.ts +14 -0
- package/dist/components/page/Login/_fetch/fetch.d.ts +2 -0
- package/dist/components/page/Login/_fetch/fetch.js +54 -0
- package/dist/components/page/Login/_fetch/fetch.ts +58 -0
- package/dist/components/page/Login/_fetch/serverFetch.d.ts +2 -0
- package/dist/components/page/Login/_fetch/serverFetch.js +37 -0
- package/dist/components/page/Login/_fetch/serverFetch.ts +43 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +3 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +3 -3
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +7 -3
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +7 -3
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +1 -1
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +5 -1
- package/dist/components/page/index.d.ts +1 -0
- package/dist/components/page/index.js +1 -0
- package/dist/components/page/index.ts +1 -0
- package/dist/lib/utils.d.ts +10 -0
- package/dist/lib/utils.js +31 -0
- package/dist/lib/utils.ts +42 -0
- package/dist/styles/globals.css +304 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- /package/dist/components/page/Login/LoginComp/{ConfirmModal.d.ts → Modal/ConfirmModal.d.ts} +0 -0
- /package/dist/components/page/Login/LoginComp/{ConfirmModal.jsx → Modal/ConfirmModal.jsx} +0 -0
- /package/dist/components/page/Login/LoginComp/{ConfirmModal.tsx → Modal/ConfirmModal.tsx} +0 -0
- /package/dist/components/page/Login/LoginComp/{TermModal.d.ts → Modal/TermModal.d.ts} +0 -0
- /package/dist/components/page/Login/LoginComp/{TermModal.jsx → Modal/TermModal.jsx} +0 -0
- /package/dist/components/page/Login/LoginComp/{TermModal.tsx → Modal/TermModal.tsx} +0 -0
|
@@ -3,10 +3,10 @@ import Image from 'next/image';
|
|
|
3
3
|
const RequiredCheckBox = ({ title, isContent, name, setModal, checked, index, isAll = false, handleButton }) => {
|
|
4
4
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
5
|
return (<div className={'flex w-full flex-row justify-between '}>
|
|
6
|
-
|
|
6
|
+
<button onClick={handleButton} type={'button'} name={name} data-idx={index} className={' flex w-[calc(100%-34px)] flex-row items-center gap-[20px] ' +
|
|
7
7
|
' max-lg:w-[calc(100%-31px)] max-lg:gap-[12px] ' +
|
|
8
8
|
' max-sm:w-[calc(100%-24px)] max-sm:gap-[10px] '}>
|
|
9
|
-
|
|
9
|
+
{checked ? (<span className={' flex items-center justify-center ' +
|
|
10
10
|
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
11
11
|
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
12
12
|
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
@@ -14,19 +14,19 @@ const RequiredCheckBox = ({ title, isContent, name, setModal, checked, index, is
|
|
|
14
14
|
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
15
15
|
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
16
16
|
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
17
|
-
|
|
17
|
+
<span className={' text-black ' +
|
|
18
18
|
` ${isAll ? ' body_medium1 ' : ' body_medium2 '} ` +
|
|
19
19
|
` ${isAll ? ' max-lg:body_medium1_tb ' : ' max-lg:body_medium2_tb '} ` +
|
|
20
20
|
` ${isAll ? ' max-sm:body_medium1_mo ' : ' max-sm:body_medium2_mo '} `}>
|
|
21
21
|
{title}
|
|
22
22
|
</span>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
</button>
|
|
24
|
+
{isContent ? (<button type={'button'} onClick={setModal} className={' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
25
25
|
' body_small2 ' +
|
|
26
26
|
' max-lg:body_small2_tb ' +
|
|
27
27
|
' max-sm:body_small2_mo '}>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
보기
|
|
29
|
+
</button>) : (<></>)}
|
|
30
|
+
</div>);
|
|
31
31
|
};
|
|
32
32
|
export default RequiredCheckBox;
|
|
@@ -2,93 +2,93 @@ import React from 'react';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
|
|
4
4
|
const RequiredCheckBox = ({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
title,
|
|
6
|
+
isContent,
|
|
7
|
+
name,
|
|
8
|
+
setModal,
|
|
9
|
+
checked,
|
|
10
|
+
index,
|
|
11
|
+
isAll = false,
|
|
12
|
+
handleButton
|
|
13
|
+
}: {
|
|
14
|
+
title: string;
|
|
15
|
+
isContent: boolean;
|
|
16
|
+
name: string;
|
|
17
|
+
setModal: () => void;
|
|
18
|
+
index: number;
|
|
19
|
+
checked: boolean;
|
|
20
|
+
isAll?: boolean;
|
|
21
|
+
handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
23
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
24
|
+
return (
|
|
25
|
+
<div className={'flex w-full flex-row justify-between '}>
|
|
26
|
+
<button
|
|
27
|
+
onClick={handleButton}
|
|
28
|
+
type={'button'}
|
|
29
|
+
name={name}
|
|
30
|
+
data-idx={index}
|
|
31
|
+
className={
|
|
32
|
+
' flex w-[calc(100%-34px)] flex-row items-center gap-[20px] ' +
|
|
33
|
+
' max-lg:w-[calc(100%-31px)] max-lg:gap-[12px] ' +
|
|
34
|
+
' max-sm:w-[calc(100%-24px)] max-sm:gap-[10px] '
|
|
35
|
+
}
|
|
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
46
|
<Image
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
52
|
/>
|
|
53
53
|
</span>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
) : (
|
|
55
|
+
<span
|
|
56
|
+
className={
|
|
57
|
+
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
58
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
59
|
+
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
60
|
+
}
|
|
61
|
+
></span>
|
|
62
|
+
)}
|
|
63
|
+
<span
|
|
64
|
+
className={
|
|
65
|
+
' text-black ' +
|
|
66
|
+
` ${isAll ? ' body_medium1 ' : ' body_medium2 '} ` +
|
|
67
|
+
` ${isAll ? ' max-lg:body_medium1_tb ' : ' max-lg:body_medium2_tb '} ` +
|
|
68
|
+
` ${isAll ? ' max-sm:body_medium1_mo ' : ' max-sm:body_medium2_mo '} `
|
|
69
|
+
}
|
|
70
|
+
>
|
|
71
71
|
{title}
|
|
72
72
|
</span>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
73
|
+
</button>
|
|
74
|
+
{isContent ? (
|
|
75
|
+
<button
|
|
76
|
+
type={'button'}
|
|
77
|
+
onClick={setModal}
|
|
78
|
+
className={
|
|
79
|
+
' underline-[#606060] text-[#606060] underline underline-offset-2 ' +
|
|
80
|
+
' body_small2 ' +
|
|
81
|
+
' max-lg:body_small2_tb ' +
|
|
82
|
+
' max-sm:body_small2_mo '
|
|
83
|
+
}
|
|
84
|
+
>
|
|
85
|
+
보기
|
|
86
|
+
</button>
|
|
87
|
+
) : (
|
|
88
|
+
<></>
|
|
89
|
+
)}
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
export default RequiredCheckBox;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecoilState } from 'recoil';
|
|
3
|
+
export interface IOptionalCheckItem {
|
|
4
|
+
title: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
isContent: boolean;
|
|
8
|
+
cautionTitle: string;
|
|
9
|
+
alarmTypeList: IOptionalCheckAlarm[];
|
|
10
|
+
}
|
|
11
|
+
export interface IOptionalCheckAlarm {
|
|
12
|
+
title: string;
|
|
13
|
+
checked: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
17
|
+
type props = {
|
|
18
|
+
layoutClassName?: string;
|
|
19
|
+
session_key?: string;
|
|
20
|
+
loginInfoAtom: RecoilState<{
|
|
21
|
+
email: string;
|
|
22
|
+
name: string;
|
|
23
|
+
isLogin: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
declare const Sign: ({ layoutClassName, session_key, loginInfoAtom }: props) => React.JSX.Element;
|
|
27
|
+
export default Sign;
|