@daeryun/dr_components 0.3.16 → 0.3.17

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 (46) hide show
  1. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  2. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +3 -3
  3. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +3 -3
  4. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +7 -3
  5. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +7 -3
  6. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +1 -1
  7. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +5 -1
  8. package/dist/components/page/index.d.ts +0 -1
  9. package/dist/components/page/index.js +0 -1
  10. package/dist/components/page/index.ts +0 -1
  11. package/dist/lib/utils.d.ts +0 -6
  12. package/dist/lib/utils.js +0 -19
  13. package/dist/lib/utils.ts +0 -21
  14. package/dist/styles/globals.css +85 -956
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +1 -1
  17. package/dist/components/Layout/PageWrapper.d.ts +0 -8
  18. package/dist/components/Layout/PageWrapper.jsx +0 -31
  19. package/dist/components/Layout/PageWrapper.tsx +0 -35
  20. package/dist/components/page/Login/Login.d.ts +0 -6
  21. package/dist/components/page/Login/Login.jsx +0 -112
  22. package/dist/components/page/Login/Login.stories.d.ts +0 -6
  23. package/dist/components/page/Login/Login.stories.jsx +0 -13
  24. package/dist/components/page/Login/Login.stories.tsx +0 -21
  25. package/dist/components/page/Login/Login.tsx +0 -167
  26. package/dist/components/page/Login/LoginComp/ConfirmModal.d.ts +0 -10
  27. package/dist/components/page/Login/LoginComp/ConfirmModal.jsx +0 -37
  28. package/dist/components/page/Login/LoginComp/ConfirmModal.tsx +0 -83
  29. package/dist/components/page/Login/LoginComp/LButton.d.ts +0 -9
  30. package/dist/components/page/Login/LoginComp/LButton.jsx +0 -14
  31. package/dist/components/page/Login/LoginComp/LButton.tsx +0 -36
  32. package/dist/components/page/Login/LoginComp/Linput.d.ts +0 -11
  33. package/dist/components/page/Login/LoginComp/Linput.jsx +0 -10
  34. package/dist/components/page/Login/LoginComp/Linput.tsx +0 -40
  35. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.d.ts +0 -6
  36. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.jsx +0 -18
  37. package/dist/components/page/Login/LoginComp/LoginBreadCrumb.tsx +0 -40
  38. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +0 -18
  39. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.jsx +0 -61
  40. package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +0 -163
  41. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.d.ts +0 -12
  42. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.jsx +0 -32
  43. package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.tsx +0 -94
  44. package/dist/components/page/Login/LoginComp/TermModal.d.ts +0 -9
  45. package/dist/components/page/Login/LoginComp/TermModal.jsx +0 -39
  46. package/dist/components/page/Login/LoginComp/TermModal.tsx +0 -70
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeryun/dr_components",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
3
- children: ReactNode;
4
- className?: string;
5
- ref?: React.Ref<HTMLDivElement>;
6
- }
7
- declare const PageWrapper: React.FC<WrapperProps>;
8
- export default PageWrapper;
@@ -1,31 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from 'react';
13
- // 페이지 상세
14
- const PageWrapper = (_a) => {
15
- var { children, className = '', ref = null } = _a, others = __rest(_a, ["children", "className", "ref"]);
16
- return (<div className={'relative mx-auto w-full max-w-[1920px] ' +
17
- //PC ( ~ 1500px )
18
- 'px-[190px] ' +
19
- //1500px
20
- 'max-3xl:px-[80px] ' +
21
- //1024px - dev Tablets
22
- 'max-lg:px-[60px] ' +
23
- //900px - design Tablets
24
- 'max-md2:px-[40px] ' +
25
- //520px - dev Mobile ( 320px - design Mobile )
26
- 'max-2sm:px-[20px] ' +
27
- className} ref={ref} {...others}>
28
- {children}
29
- </div>);
30
- };
31
- export default PageWrapper;
@@ -1,35 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
-
3
- interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
4
- children: ReactNode;
5
- className?: string; // 스타일 추가
6
- ref?: React.Ref<HTMLDivElement>;
7
- }
8
-
9
- // 페이지 상세
10
- const PageWrapper: React.FC<WrapperProps> = ({ children, className = '', ref = null, ...others }) => {
11
- return (
12
- <div
13
- className={
14
- 'relative mx-auto w-full max-w-[1920px] ' +
15
- //PC ( ~ 1500px )
16
- 'px-[190px] ' +
17
- //1500px
18
- 'max-3xl:px-[80px] ' +
19
- //1024px - dev Tablets
20
- 'max-lg:px-[60px] ' +
21
- //900px - design Tablets
22
- 'max-md2:px-[40px] ' +
23
- //520px - dev Mobile ( 320px - design Mobile )
24
- 'max-2sm:px-[20px] ' +
25
- className
26
- }
27
- ref={ref}
28
- {...others}
29
- >
30
- {children}
31
- </div>
32
- );
33
- };
34
-
35
- export default PageWrapper;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface props {
3
- layoutClassName?: string;
4
- }
5
- declare const Login: ({ layoutClassName }: props) => React.JSX.Element;
6
- export default Login;
@@ -1,112 +0,0 @@
1
- 'use client';
2
- import React, { useEffect } from 'react';
3
- import { usePathname, useRouter, useSearchParams } from 'next/navigation';
4
- import Image from 'next/image';
5
- import PageWrapper from '../../Layout/PageWrapper';
6
- import { setCookie } from '../../../lib';
7
- import LoginBreadCrumb from './LoginComp/LoginBreadCrumb';
8
- const Login = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
9
- ' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
10
- ' max-lg:min-h-[930px] ' +
11
- ' max-md:max-h-[800px] max-md:min-h-[1100px] ' +
12
- ' mb-[192px] mt-[128px] ' +
13
- ' max-lg:mt-[112px] ' +
14
- ' max-sm:mt-[100px] ' }) => {
15
- const searchParam = useSearchParams();
16
- const pathName = usePathname();
17
- const router = useRouter();
18
- const clientKey = process.env.NEXT_PUBLIC_OAUTH_CLIENT_KEY || '';
19
- const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
20
- const redirectWithNoReferrer = (url) => {
21
- const a = document.createElement('a');
22
- a.href = url;
23
- a.rel = 'noreferrer'; // Referrer 정보 제거
24
- a.click();
25
- };
26
- useEffect(() => {
27
- // const redirect = router.query.redirect;
28
- const redirect = searchParam.get('redirect') || '';
29
- if (redirect && typeof redirect === 'string') {
30
- setCookie({ key: 'redirect', value: redirect });
31
- }
32
- }, [pathName]);
33
- const handleLoginClick = (type) => {
34
- const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${process.env.NODE_ENV === 'production' ? 'state=sapa' : ''}`;
35
- router.push(loginUrl);
36
- };
37
- const loginProvider = [
38
- {
39
- identityProvider: 'kakao',
40
- name: '카카오',
41
- positionClass: ' top-[22px] left-[26px] max-lg:top-[20px] max-lg:left-[24px] max-sm:top-[14px] max-sm:left-[20px] ',
42
- textColor: '#000000',
43
- bgColor: '#FEE502',
44
- iconClassName: `w-[28px] h-[28px] max-lg:w-[24px] max-lg:h-[24px] max-sm:w-[20px] max-sm:h-[20px] `
45
- },
46
- {
47
- identityProvider: 'naver',
48
- name: '네이버',
49
- positionClass: ' top-[25px] left-[28px] max-lg:top-[22px] max-lg:left-[26px] max-sm:top-[15px] max-sm:left-[21.5px] ',
50
- textColor: '#FFFFFF',
51
- bgColor: '#02C75A',
52
- iconClassName: `w-[28px] h-[28px] max-lg:w-[20px] max-lg:h-[20px] max-sm:w-[17px] max-sm:h-[18px] `
53
- },
54
- {
55
- identityProvider: 'google',
56
- name: '구글',
57
- positionClass: ' top-[22.73px] left-[27px] max-lg:top-[20.78px] max-lg:left-[26.19px] max-sm:top-[14px] max-sm:left-[21.46px] ',
58
- textColor: '#000000',
59
- bgColor: '#FFFFFF',
60
- className: 'border-[1px] border-solid border-[#707070] ',
61
- iconClassName: `w-[24px] h-[24px] max-lg:w-[22px] max-lg:h-[22.45px] max-sm:w-[19.16px] max-sm:h-[19.55px] `
62
- },
63
- {
64
- identityProvider: 'apple',
65
- name: 'Apple',
66
- positionClass: ' top-[19px] left-[27px] max-lg:top-[17px] max-lg:left-[25px] max-sm:top-[11px] max-sm:left-[20.42px] ',
67
- textColor: '#FFFFFF',
68
- bgColor: '#050708',
69
- 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] `
70
- }
71
- ];
72
- return (<section className={layoutClassName}>
73
- <PageWrapper>
74
- <div>
75
- <div className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}>
76
- <LoginBreadCrumb breadList={['로그인', '간편 로그인']}/>
77
- </div>
78
- </div>
79
- <div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
80
- <div className={'flex flex-col'}>
81
- <div className={' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '}>
82
- 간편 로그인
83
- </div>
84
- </div>
85
- <div className={' body_large2 mt-[12px] text-[#000000] ' +
86
- ' max-lg:title_small_tb max-lg:mt-[12px] ' +
87
- ' max-sm:label_medium2_tb max-sm:mt-[8px] '}>
88
- SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
89
- <br />
90
- 로그인하고 나의 사건 진행 상황을 확인하세요!
91
- </div>
92
- </div>
93
- <div className={' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
94
- ' max-lg:mt-[168px] ' +
95
- ' max-sm:mt-[80px] '}>
96
- {loginProvider.map((item, index) => {
97
- return (<button key={index} type="button" onClick={() => handleLoginClick(item.identityProvider)} className={' relative flex h-[72px] w-[540px] items-center ' +
98
- ' body_large2 justify-center rounded-[36px] ' +
99
- ' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
100
- ' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
101
- ` ${item.className} `} style={{ color: item.textColor, backgroundColor: item.bgColor }}>
102
- <span className={`${item.positionClass} absolute ${item.iconClassName}`}>
103
- <Image src={`${imagePath}/common-login/${item.identityProvider}.svg`} alt={item.identityProvider} height={100} width={100} className={`h-full w-full`}/>
104
- </span>
105
- <span>{`${item.name} 계정으로 로그인`}</span>
106
- </button>);
107
- })}
108
- </div>
109
- </PageWrapper>
110
- </section>);
111
- };
112
- export default Login;
@@ -1,6 +0,0 @@
1
- import Login from './Login';
2
- import type { Meta, StoryObj } from '@storybook/react';
3
- declare const meta: Meta<typeof Login>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
@@ -1,13 +0,0 @@
1
- import Login from './Login';
2
- const meta = {
3
- component: Login,
4
- title: 'Login'
5
- };
6
- export default meta;
7
- export const Default = {
8
- render: () => {
9
- return (<div className={'font-[SUIT]'}>
10
- <Login />
11
- </div>);
12
- }
13
- };
@@ -1,21 +0,0 @@
1
- import Login from './Login';
2
- import type { Meta, StoryObj } from '@storybook/react';
3
-
4
- const meta: Meta<typeof Login> = {
5
- component: Login,
6
- title: 'Login'
7
- };
8
-
9
- export default meta;
10
-
11
- type Story = StoryObj<typeof meta>;
12
-
13
- export const Default: Story = {
14
- render: () => {
15
- return (
16
- <div className={'font-[SUIT]'}>
17
- <Login />
18
- </div>
19
- );
20
- }
21
- };
@@ -1,167 +0,0 @@
1
- 'use client';
2
-
3
- import React, { useEffect } from 'react';
4
- import { usePathname, useRouter, 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
- router.push(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;
@@ -1,10 +0,0 @@
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;
@@ -1,37 +0,0 @@
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;
@@ -1,83 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,36 +0,0 @@
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;
@@ -1,11 +0,0 @@
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;
@@ -1,10 +0,0 @@
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;