@daeryun/dr_components 0.3.12 → 0.3.13

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.
Files changed (39) hide show
  1. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  2. package/dist/components/Layout/PageWrapper.d.ts +8 -0
  3. package/dist/components/Layout/PageWrapper.jsx +31 -0
  4. package/dist/components/Layout/PageWrapper.tsx +35 -0
  5. package/dist/components/page/Login/Login.d.ts +6 -0
  6. package/dist/components/page/Login/Login.jsx +112 -0
  7. package/dist/components/page/Login/Login.stories.d.ts +6 -0
  8. package/dist/components/page/Login/Login.stories.jsx +13 -0
  9. package/dist/components/page/Login/Login.stories.tsx +21 -0
  10. package/dist/components/page/Login/Login.tsx +167 -0
  11. package/dist/components/page/Login/LoginComp/ConfirmModal.d.ts +10 -0
  12. package/dist/components/page/Login/LoginComp/ConfirmModal.jsx +37 -0
  13. package/dist/components/page/Login/LoginComp/ConfirmModal.tsx +83 -0
  14. package/dist/components/page/Login/LoginComp/LButton.d.ts +9 -0
  15. package/dist/components/page/Login/LoginComp/LButton.jsx +14 -0
  16. package/dist/components/page/Login/LoginComp/LButton.tsx +36 -0
  17. package/dist/components/page/Login/LoginComp/Linput.d.ts +11 -0
  18. package/dist/components/page/Login/LoginComp/Linput.jsx +10 -0
  19. package/dist/components/page/Login/LoginComp/Linput.tsx +40 -0
  20. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.d.ts +6 -0
  21. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.jsx +18 -0
  22. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.tsx +40 -0
  23. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +18 -0
  24. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.jsx +61 -0
  25. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +163 -0
  26. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.d.ts +12 -0
  27. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.jsx +32 -0
  28. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.tsx +94 -0
  29. package/dist/components/page/Login/LoginComp/TermModal.d.ts +9 -0
  30. package/dist/components/page/Login/LoginComp/TermModal.jsx +39 -0
  31. package/dist/components/page/Login/LoginComp/TermModal.tsx +70 -0
  32. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.d.ts +3 -4
  33. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +4 -4
  34. package/dist/lib/utils.d.ts +6 -0
  35. package/dist/lib/utils.js +19 -0
  36. package/dist/lib/utils.ts +21 -0
  37. package/dist/styles/globals.css +948 -54
  38. package/dist/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,167 @@
1
+ 'use client';
2
+
3
+ import React, { useEffect } from 'react';
4
+ import { usePathname, useSearchParams } from 'next/navigation';
5
+ import Image from 'next/image';
6
+ import PageWrapper from '../../Layout/PageWrapper';
7
+ import { setCookie } from '../../../lib';
8
+ import LoginBreadCrumb from './LoginComp/LoginBreadCrumb';
9
+
10
+ interface props {
11
+ layoutClassName?: string; // 높이 및 마진값 조절
12
+ }
13
+ const Login = ({
14
+ layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
15
+ ' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
16
+ ' max-lg:min-h-[930px] ' +
17
+ ' max-md:max-h-[800px] max-md:min-h-[1100px] ' +
18
+ ' mb-[192px] mt-[128px] ' +
19
+ ' max-lg:mt-[112px] ' +
20
+ ' max-sm:mt-[100px] '
21
+ }: props) => {
22
+ const searchParam = useSearchParams();
23
+ const pathName = usePathname();
24
+ // const router = useRouter();
25
+ const clientKey = process.env.NEXT_PUBLIC_OAUTH_CLIENT_KEY || '';
26
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
27
+ const redirectWithNoReferrer = (url: string) => {
28
+ const a = document.createElement('a');
29
+ a.href = url;
30
+ a.rel = 'noreferrer'; // Referrer 정보 제거
31
+ a.click();
32
+ };
33
+
34
+ useEffect(() => {
35
+ // const redirect = router.query.redirect;
36
+ const redirect = searchParam.get('redirect') || '';
37
+
38
+ if (redirect && typeof redirect === 'string') {
39
+ setCookie({ key: 'redirect', value: redirect });
40
+ }
41
+ }, [pathName]);
42
+
43
+ const handleLoginClick = (type: string) => {
44
+ const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${process.env.NODE_ENV === 'production' ? 'state=sapa' : ''}`;
45
+ redirectWithNoReferrer(loginUrl);
46
+ };
47
+
48
+ const loginProvider: {
49
+ identityProvider: 'kakao' | 'google' | 'naver' | 'apple';
50
+ name: string;
51
+ positionClass: string;
52
+ textColor: string;
53
+ bgColor: string;
54
+ className?: string;
55
+ iconClassName?: string;
56
+ }[] = [
57
+ {
58
+ identityProvider: 'kakao',
59
+ name: '카카오',
60
+ positionClass:
61
+ ' top-[22px] left-[26px] max-lg:top-[20px] max-lg:left-[24px] max-sm:top-[14px] max-sm:left-[20px] ',
62
+ textColor: '#000000',
63
+ bgColor: '#FEE502',
64
+ iconClassName: `w-[28px] h-[28px] max-lg:w-[24px] max-lg:h-[24px] max-sm:w-[20px] max-sm:h-[20px] `
65
+ },
66
+ {
67
+ identityProvider: 'naver',
68
+ name: '네이버',
69
+ positionClass:
70
+ ' top-[25px] left-[28px] max-lg:top-[22px] max-lg:left-[26px] max-sm:top-[15px] max-sm:left-[21.5px] ',
71
+ textColor: '#FFFFFF',
72
+ bgColor: '#02C75A',
73
+ iconClassName: `w-[28px] h-[28px] max-lg:w-[20px] max-lg:h-[20px] max-sm:w-[17px] max-sm:h-[18px] `
74
+ },
75
+ {
76
+ identityProvider: 'google',
77
+ name: '구글',
78
+ positionClass:
79
+ ' top-[22.73px] left-[27px] max-lg:top-[20.78px] max-lg:left-[26.19px] max-sm:top-[14px] max-sm:left-[21.46px] ',
80
+ textColor: '#000000',
81
+ bgColor: '#FFFFFF',
82
+ className: 'border-[1px] border-solid border-[#707070] ',
83
+ iconClassName: `w-[24px] h-[24px] max-lg:w-[22px] max-lg:h-[22.45px] max-sm:w-[19.16px] max-sm:h-[19.55px] `
84
+ },
85
+ {
86
+ identityProvider: 'apple',
87
+ name: 'Apple',
88
+ positionClass:
89
+ ' top-[19px] left-[27px] max-lg:top-[17px] max-lg:left-[25px] max-sm:top-[11px] max-sm:left-[20.42px] ',
90
+ textColor: '#FFFFFF',
91
+ bgColor: '#050708',
92
+ iconClassName: `w-[26px] h-[30.87px] max-lg:w-[22px] max-lg:h-[26.12px] max-sm:w-[19.16px] max-sm:h-[22.75px] `
93
+ }
94
+ ];
95
+
96
+ return (
97
+ <section className={layoutClassName}>
98
+ <PageWrapper>
99
+ <div>
100
+ <div className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}>
101
+ <LoginBreadCrumb breadList={['로그인', '간편 로그인']} />
102
+ </div>
103
+ </div>
104
+ <div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
105
+ <div className={'flex flex-col'}>
106
+ <div
107
+ className={
108
+ ' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '
109
+ }
110
+ >
111
+ 간편 로그인
112
+ </div>
113
+ </div>
114
+ <div
115
+ className={
116
+ ' body_large2 mt-[12px] text-[#000000] ' +
117
+ ' max-lg:title_small_tb max-lg:mt-[12px] ' +
118
+ ' max-sm:label_medium2_tb max-sm:mt-[8px] '
119
+ }
120
+ >
121
+ SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
122
+ <br />
123
+ 로그인하고 나의 사건 진행 상황을 확인하세요!
124
+ </div>
125
+ </div>
126
+ <div
127
+ className={
128
+ ' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
129
+ ' max-lg:mt-[168px] ' +
130
+ ' max-sm:mt-[80px] '
131
+ }
132
+ >
133
+ {loginProvider.map((item, index: number) => {
134
+ return (
135
+ <button
136
+ key={index}
137
+ type="button"
138
+ onClick={() => handleLoginClick(item.identityProvider)}
139
+ className={
140
+ ' relative flex h-[72px] w-[540px] items-center ' +
141
+ ' body_large2 justify-center rounded-[36px] ' +
142
+ ' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
143
+ ' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
144
+ ` ${item.className} `
145
+ }
146
+ style={{ color: item.textColor, backgroundColor: item.bgColor }}
147
+ >
148
+ <span className={`${item.positionClass} absolute ${item.iconClassName}`}>
149
+ <Image
150
+ src={`${imagePath}/common-login/${item.identityProvider}.svg`}
151
+ alt={item.identityProvider}
152
+ height={100}
153
+ width={100}
154
+ className={`h-full w-full`}
155
+ />
156
+ </span>
157
+ <span>{`${item.name} 계정으로 로그인`}</span>
158
+ </button>
159
+ );
160
+ })}
161
+ </div>
162
+ </PageWrapper>
163
+ </section>
164
+ );
165
+ };
166
+
167
+ export default Login;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface props {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ handleClick: () => void;
6
+ title: string;
7
+ subTitle: string;
8
+ }
9
+ declare const ConfirmModal: ({ isOpen, onClose, handleClick, title, subTitle }: props) => React.JSX.Element | null;
10
+ export default ConfirmModal;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ const ConfirmModal = ({ isOpen, onClose, handleClick, title, subTitle }) => {
4
+ if (!isOpen)
5
+ return null;
6
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
7
+ return (<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm " onClick={onClose} // 백그라운드 클릭 시 모달 닫기
8
+ >
9
+ <div className={' relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[90%] '} onClick={e => e.stopPropagation()}>
10
+ <div className={' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
11
+ ' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
12
+ ' max-sm:min-h-[244px] max-sm:p-[30px] '}>
13
+ <div className={' h-[88px] w-[72px]' +
14
+ ' max-lg:h-[68.44px] max-lg:w-[56px]' +
15
+ ' max-sm:h-[48.89px] max-sm:w-[40px] '}>
16
+ <Image src={`${imagePath}/common-login/alert_shield.svg`} alt={'alert_shield'} height={100} width={100} className={`h-full w-full`}/>
17
+ </div>
18
+ <div className={' body_large1 mt-[36px] text-black ' +
19
+ ' max-lg:body_large1_tb max-lg:mt-[20px] ' +
20
+ ' max-sm:body_large1_mo max-sm:mt-[16px] '}>
21
+ {title}
22
+ </div>
23
+ <div className={' body_medium2 mt-[20px] text-center text-[#909090] ' +
24
+ ' max-lg:body_medium2_tb max-lg:mt-[16px] ' +
25
+ ' max-sm:body_medium2_mo max-sm:mt-[8px] '}>
26
+ {subTitle}
27
+ </div>
28
+ <button onClick={handleClick} type={'button'} className={' title_small mt-[47px] h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
29
+ ' max-lg:title_small_tb max-lg:mt-[40px] max-lg:h-[60px] max-lg:rounded-[8px] ' +
30
+ ' max-sm:title_small_mo max-lg:mt-[20px] max-lg:rounded-[4px] max-sm:h-[48px] '}>
31
+ 확인
32
+ </button>
33
+ </div>
34
+ </div>
35
+ </div>);
36
+ };
37
+ export default ConfirmModal;
@@ -0,0 +1,83 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+
4
+ interface props {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ handleClick: () => void;
8
+ title: string;
9
+ subTitle: string;
10
+ }
11
+
12
+ const ConfirmModal = ({ isOpen, onClose, handleClick, title, subTitle }: props) => {
13
+ if (!isOpen) return null;
14
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
15
+ return (
16
+ <div
17
+ className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm "
18
+ onClick={onClose} // 백그라운드 클릭 시 모달 닫기
19
+ >
20
+ <div
21
+ className={
22
+ ' relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[90%] '
23
+ }
24
+ onClick={e => e.stopPropagation()}
25
+ >
26
+ <div
27
+ className={
28
+ ' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
29
+ ' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
30
+ ' max-sm:min-h-[244px] max-sm:p-[30px] '
31
+ }
32
+ >
33
+ <div
34
+ className={
35
+ ' h-[88px] w-[72px]' +
36
+ ' max-lg:h-[68.44px] max-lg:w-[56px]' +
37
+ ' max-sm:h-[48.89px] max-sm:w-[40px] '
38
+ }
39
+ >
40
+ <Image
41
+ src={`${imagePath}/common-login/alert_shield.svg`}
42
+ alt={'alert_shield'}
43
+ height={100}
44
+ width={100}
45
+ className={`h-full w-full`}
46
+ />
47
+ </div>
48
+ <div
49
+ className={
50
+ ' body_large1 mt-[36px] text-black ' +
51
+ ' max-lg:body_large1_tb max-lg:mt-[20px] ' +
52
+ ' max-sm:body_large1_mo max-sm:mt-[16px] '
53
+ }
54
+ >
55
+ {title}
56
+ </div>
57
+ <div
58
+ className={
59
+ ' body_medium2 mt-[20px] text-center text-[#909090] ' +
60
+ ' max-lg:body_medium2_tb max-lg:mt-[16px] ' +
61
+ ' max-sm:body_medium2_mo max-sm:mt-[8px] '
62
+ }
63
+ >
64
+ {subTitle}
65
+ </div>
66
+ <button
67
+ onClick={handleClick}
68
+ type={'button'}
69
+ className={
70
+ ' title_small mt-[47px] h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
71
+ ' max-lg:title_small_tb max-lg:mt-[40px] max-lg:h-[60px] max-lg:rounded-[8px] ' +
72
+ ' max-sm:title_small_mo max-lg:mt-[20px] max-lg:rounded-[4px] max-sm:h-[48px] '
73
+ }
74
+ >
75
+ 확인
76
+ </button>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ );
81
+ };
82
+
83
+ export default ConfirmModal;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const LButton: ({ handleButton, name, isDisabled, title, className }: {
3
+ handleButton: (e?: any) => void;
4
+ name?: string;
5
+ isDisabled?: boolean;
6
+ title: string;
7
+ className?: string;
8
+ }) => React.JSX.Element;
9
+ export default LButton;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ const LButton = ({ handleButton, name, isDisabled, title, className = ' w-[196px] max-lg:w-[172px] max-sm:w-full ' }) => {
3
+ return (
4
+ //
5
+ <button onClick={handleButton} name={name} className={' flex flex-shrink-0 items-center justify-center rounded-[12px] border-[1px] border-solid text-white ' +
6
+ ' border-[#B9B9B9] bg-[#3D3D3D] disabled:border-[#B9B9B9] disabled:bg-[#FFFFFF] disabled:text-[#B9B9B9] ' +
7
+ ' title_small h-[68px] px-[24px] py-[17px] ' +
8
+ ' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
9
+ ' max-sm:body_large2_mo max-sm:h-[47px] max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[12px] ' +
10
+ ` ${className} `} disabled={isDisabled}>
11
+ {title}
12
+ </button>);
13
+ };
14
+ export default LButton;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+
3
+ const LButton = ({
4
+ handleButton,
5
+ name,
6
+ isDisabled,
7
+ title,
8
+ className = ' w-[196px] max-lg:w-[172px] max-sm:w-full '
9
+ }: {
10
+ handleButton: (e?: any) => void;
11
+ name?: string;
12
+ isDisabled?: boolean;
13
+ title: string;
14
+ className?: string;
15
+ }) => {
16
+ return (
17
+ //
18
+ <button
19
+ onClick={handleButton}
20
+ name={name}
21
+ className={
22
+ ' flex flex-shrink-0 items-center justify-center rounded-[12px] border-[1px] border-solid text-white ' +
23
+ ' border-[#B9B9B9] bg-[#3D3D3D] disabled:border-[#B9B9B9] disabled:bg-[#FFFFFF] disabled:text-[#B9B9B9] ' +
24
+ ' title_small h-[68px] px-[24px] py-[17px] ' +
25
+ ' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
26
+ ' max-sm:body_large2_mo max-sm:h-[47px] max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[12px] ' +
27
+ ` ${className} `
28
+ }
29
+ disabled={isDisabled}
30
+ >
31
+ {title}
32
+ </button>
33
+ );
34
+ };
35
+
36
+ export default LButton;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ declare const LInput: ({ value, name, placeholder, isDisabled, className, handleInput, maxLength }: {
3
+ value?: string;
4
+ name?: string;
5
+ placeholder?: string;
6
+ isDisabled?: boolean;
7
+ className?: string;
8
+ handleInput?: (e: any) => void;
9
+ maxLength?: number;
10
+ }) => React.JSX.Element;
11
+ export default LInput;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ const LInput = ({ value = '', name = '', placeholder = '', isDisabled = false, className = 'w-[712px] max-lg2:w-full max-lg:w-[580px] ', handleInput, maxLength = 9999 }) => {
3
+ return (<input maxLength={maxLength} className={' rounded-[12px] border-[1px] border-solid border-[#B9B9B9] bg-[#FFFFFF] text-[#000000] placeholder:text-[#B9B9B9] disabled:bg-[#F5F5F5] disabled:text-[#606060] ' +
4
+ ' focus:border-[#3D3D3D] ' +
5
+ ' title_small h-[68px] px-[24px] py-[16px] ' +
6
+ ' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
7
+ ' max-sm:body_large2_mo max-sm:h-[47px] max-sm:w-full max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[16px] ' +
8
+ ` ${className} `} name={name} value={value} disabled={isDisabled} placeholder={placeholder} onChange={handleInput}/>);
9
+ };
10
+ export default LInput;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+
3
+ const LInput = ({
4
+ value = '',
5
+ name = '',
6
+ placeholder = '',
7
+ isDisabled = false,
8
+ className = 'w-[712px] max-lg2:w-full max-lg:w-[580px] ',
9
+ handleInput,
10
+ maxLength = 9999
11
+ }: {
12
+ value?: string;
13
+ name?: string;
14
+ placeholder?: string;
15
+ isDisabled?: boolean;
16
+ className?: string;
17
+ handleInput?: (e: any) => void;
18
+ maxLength?: number;
19
+ }) => {
20
+ return (
21
+ <input
22
+ maxLength={maxLength}
23
+ className={
24
+ ' rounded-[12px] border-[1px] border-solid border-[#B9B9B9] bg-[#FFFFFF] text-[#000000] placeholder:text-[#B9B9B9] disabled:bg-[#F5F5F5] disabled:text-[#606060] ' +
25
+ ' focus:border-[#3D3D3D] ' +
26
+ ' title_small h-[68px] px-[24px] py-[16px] ' +
27
+ ' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
28
+ ' max-sm:body_large2_mo max-sm:h-[47px] max-sm:w-full max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[16px] ' +
29
+ ` ${className} `
30
+ }
31
+ name={name}
32
+ value={value}
33
+ disabled={isDisabled}
34
+ placeholder={placeholder}
35
+ onChange={handleInput}
36
+ />
37
+ );
38
+ };
39
+
40
+ export default LInput;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface LoginBreadCrumbProps {
3
+ breadList: string[];
4
+ }
5
+ declare const LoginBreadCrumb: ({ breadList }: LoginBreadCrumbProps) => React.JSX.Element;
6
+ export default LoginBreadCrumb;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+ const LoginBreadCrumb = ({ breadList }) => {
4
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
5
+ return (<div className="label_medium2 flex h-full flex-row items-center gap-[12px] text-[#B9B9B9]">
6
+ {/* 시작 아이콘 */}
7
+ <span className={' flex justify-center'}>
8
+ <Image src={`${imagePath}/common-login/home.svg`} alt={'home'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
9
+ </span>
10
+
11
+ {/* Breadcrumb List */}
12
+ {breadList.map((item, index) => (<React.Fragment key={index}>
13
+ <Image src={`${imagePath}/common-login/arrow_2.webp`} alt={'right_arrow'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
14
+ <span className={index === breadList.length - 1 ? 'text-[#333333]' : ''}>{item}</span>
15
+ </React.Fragment>))}
16
+ </div>);
17
+ };
18
+ export default LoginBreadCrumb;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import Image from 'next/image';
3
+
4
+ interface LoginBreadCrumbProps {
5
+ breadList: string[];
6
+ }
7
+
8
+ const LoginBreadCrumb = ({ breadList }: LoginBreadCrumbProps) => {
9
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
10
+ return (
11
+ <div className="label_medium2 flex h-full flex-row items-center gap-[12px] text-[#B9B9B9]">
12
+ {/* 시작 아이콘 */}
13
+ <span className={' flex justify-center'}>
14
+ <Image
15
+ src={`${imagePath}/common-login/home.svg`}
16
+ alt={'home'}
17
+ width={15}
18
+ height={15}
19
+ className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
20
+ />
21
+ </span>
22
+
23
+ {/* Breadcrumb List */}
24
+ {breadList.map((item, index) => (
25
+ <React.Fragment key={index}>
26
+ <Image
27
+ src={`${imagePath}/common-login/arrow_2.webp`}
28
+ alt={'right_arrow'}
29
+ width={8}
30
+ height={13}
31
+ className={'h-[13px] w-[8px]'}
32
+ />
33
+ <span className={index === breadList.length - 1 ? 'text-[#333333]' : ''}>{item}</span>
34
+ </React.Fragment>
35
+ ))}
36
+ </div>
37
+ );
38
+ };
39
+
40
+ export default LoginBreadCrumb;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ declare const OptionalCheckBox: ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }: {
3
+ title: string;
4
+ cautionTitle: string;
5
+ isContent: boolean;
6
+ checked: boolean;
7
+ setModal: () => void;
8
+ name: string;
9
+ parentIndex: number;
10
+ optionalItemList: {
11
+ title: string;
12
+ checked: boolean;
13
+ name: string;
14
+ value: number;
15
+ }[];
16
+ handleButton: (e: React.FormEvent<HTMLButtonElement>) => void;
17
+ }) => React.JSX.Element;
18
+ export default OptionalCheckBox;
@@ -0,0 +1,61 @@
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;