@daeryun/dr_components 0.2.57 → 0.2.59
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/asset/images/myCaseManage/arrow_2.webp +0 -0
- package/dist/asset/images/myCaseManage/arrow_right.svg +3 -0
- package/dist/asset/images/myCaseManage/background.svg +8 -0
- package/dist/asset/images/myCaseManage/header_arrow.svg +3 -0
- package/dist/asset/images/myCaseManage/home.svg +16 -0
- package/dist/asset/images/myCaseManage/home.webp +0 -0
- package/dist/asset/images/myCaseManage/icon/case_icon1.svg +4 -0
- package/dist/asset/images/myCaseManage/icon/case_icon2.svg +6 -0
- package/dist/asset/images/myCaseManage/icon/case_icon3.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/case_lookup_linkout.svg +5 -0
- package/dist/asset/images/myCaseManage/icon/check_circle.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/check_circle2.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/client.svg +14 -0
- package/dist/asset/images/myCaseManage/icon/daeryun.svg +7 -0
- package/dist/asset/images/myCaseManage/icon/download.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/jpg.svg +15 -0
- package/dist/asset/images/myCaseManage/icon/pdf.svg +9 -0
- package/dist/asset/images/myCaseManage/icon/png.svg +25 -0
- package/dist/asset/images/myCaseManage/icon/word.svg +11 -0
- package/dist/asset/images/myCaseManage/icon/xls.svg +18 -0
- package/dist/asset/images/myCaseManage/nav_arr.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
- package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
- package/dist/components/Fix/Fix.stories.d.ts +3 -2
- package/dist/components/Footer/TopBtn.d.ts +1 -0
- package/dist/components/MapSection/Map.d.ts +1 -0
- package/dist/components/MapSection/MapSection.d.ts +1 -1
- package/dist/components/Mark/Mark.d.ts +1 -0
- package/dist/components/SelectBox/SelectBox.d.ts +8 -8
- package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
- package/dist/components/banner/TopBanner.d.ts +1 -0
- package/dist/components/banner/TopBanner.stories.d.ts +1 -0
- package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
- package/dist/components/common/strength/index.js +2 -2
- package/dist/components/common/strength/index.ts +2 -2
- package/dist/components/hook/useElementObserve.d.ts +2 -2
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.jsx +65 -0
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.tsx +76 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.jsx +33 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.tsx +50 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.jsx +41 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.tsx +55 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.jsx +90 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.tsx +143 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.d.ts +6 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.jsx +41 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.jsx +55 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.tsx +72 -0
- package/dist/components/myCaseManage/[id]/index.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/index.jsx +44 -0
- package/dist/components/myCaseManage/[id]/index.tsx +85 -0
- package/dist/components/myCaseManage/_actions/action.d.ts +13 -0
- package/dist/components/myCaseManage/_actions/action.js +56 -0
- package/dist/components/myCaseManage/_actions/action.ts +65 -0
- package/dist/components/myCaseManage/_component/CaseContainer.d.ts +3 -0
- package/dist/components/myCaseManage/_component/CaseContainer.jsx +99 -0
- package/dist/components/myCaseManage/_component/CaseContainer.tsx +177 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.d.ts +8 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +47 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +76 -0
- package/dist/components/myCaseManage/_component/_button/Badge.d.ts +15 -0
- package/dist/components/myCaseManage/_component/_button/Badge.jsx +16 -0
- package/dist/components/myCaseManage/_component/_button/Badge.tsx +22 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.jsx +6 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.tsx +20 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.jsx +6 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.tsx +12 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.d.ts +6 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.jsx +53 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.tsx +59 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.jsx +8 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.tsx +20 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.d.ts +11 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.jsx +24 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.tsx +36 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.d.ts +5 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.d.ts +8 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.jsx +24 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.tsx +43 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.d.ts +3 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.jsx +90 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.tsx +94 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.d.ts +10 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.jsx +75 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.tsx +163 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.d.ts +10 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.jsx +37 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.tsx +62 -0
- package/dist/components/myCaseManage/_fetchers/getCase.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getCase.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCase.ts +21 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.ts +24 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.js +8 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.ts +11 -0
- package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/myCaseManage/_type/type.d.ts +64 -0
- package/dist/components/myCaseManage/_type/type.js +1 -0
- package/dist/components/myCaseManage/_type/type.ts +73 -0
- package/dist/components/myCaseManage/index.d.ts +3 -0
- package/dist/components/myCaseManage/index.jsx +20 -0
- package/dist/components/myCaseManage/index.tsx +30 -0
- package/dist/components/page/Choice/Choice.d.ts +1 -1
- package/dist/components/page/Strength/Strength.d.ts +1 -0
- package/dist/components/page/Strength/StrengthIntro.jsx +1 -1
- package/dist/components/page/Strength/StrengthIntro.tsx +1 -1
- package/dist/lib/utils.js +4 -4
- package/dist/styles/globals.css +548 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +93 -91
|
@@ -8,12 +8,12 @@ export declare const SelectBox: (props: {
|
|
|
8
8
|
}[];
|
|
9
9
|
onSelect: (codename: string, code: string) => void;
|
|
10
10
|
icon?: React.ReactNode;
|
|
11
|
-
type?: "link";
|
|
12
|
-
placeholderOptions?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
parentStyle?: string;
|
|
15
|
-
style?: string;
|
|
16
|
-
isRound?: boolean;
|
|
17
|
-
borderColor?: string;
|
|
18
|
-
textColor?: string;
|
|
11
|
+
type?: "link" | undefined;
|
|
12
|
+
placeholderOptions?: string | undefined;
|
|
13
|
+
tabIndex?: number | undefined;
|
|
14
|
+
parentStyle?: string | undefined;
|
|
15
|
+
style?: string | undefined;
|
|
16
|
+
isRound?: boolean | undefined;
|
|
17
|
+
borderColor?: string | undefined;
|
|
18
|
+
textColor?: string | undefined;
|
|
19
19
|
}) => React.JSX.Element;
|
|
@@ -7,6 +7,6 @@ declare const CategoryComponent: (props: {
|
|
|
7
7
|
maxPageNum: number;
|
|
8
8
|
selectedCenter: ICenter;
|
|
9
9
|
currentCenterTitle: string;
|
|
10
|
-
allMainCenterTargetBlank?: boolean;
|
|
10
|
+
allMainCenterTargetBlank?: boolean | undefined;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export default CategoryComponent;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const strengthList = [
|
|
2
2
|
{
|
|
3
|
-
subTitle: '
|
|
3
|
+
subTitle: '10년 이상 경력ㆍ20인의 법무법인 TF',
|
|
4
4
|
title: '상담과 수사, 재판 과정에서 베테랑 변호사가\n밀착 변호하고 있습니다',
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
7
|
liTitle: '충분한 상담을 통한 최적의 변호사팀 매칭',
|
|
8
8
|
li: [
|
|
9
|
-
'법원, 검찰, 경찰 재직한
|
|
9
|
+
'법원, 검찰, 경찰 재직한 풍부한 경력을 갖춘 변호사가 사건 총괄',
|
|
10
10
|
'고객의 상황 및 사건 규모에 따라 3~20인의 전문가 TF 구성',
|
|
11
11
|
'사건 처리 주수행 변호사와 서포트 변호사&전문가 팀 구성으로 단독 수행보다 3배 이상의 능률 구현'
|
|
12
12
|
]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const strengthList: { subTitle: string; title: string; list: { liTitle: string; li: string[] }[] }[] = [
|
|
2
2
|
{
|
|
3
|
-
subTitle: '
|
|
3
|
+
subTitle: '10년 이상 경력ㆍ20인의 법무법인 TF',
|
|
4
4
|
title: '상담과 수사, 재판 과정에서 베테랑 변호사가\n밀착 변호하고 있습니다',
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
7
|
liTitle: '충분한 상담을 통한 최적의 변호사팀 매칭',
|
|
8
8
|
li: [
|
|
9
|
-
'법원, 검찰, 경찰 재직한
|
|
9
|
+
'법원, 검찰, 경찰 재직한 풍부한 경력을 갖춘 변호사가 사건 총괄',
|
|
10
10
|
'고객의 상황 및 사건 규모에 따라 3~20인의 전문가 TF 구성',
|
|
11
11
|
'사건 처리 주수행 변호사와 서포트 변호사&전문가 팀 구성으로 단독 수행보다 3배 이상의 능률 구현'
|
|
12
12
|
]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
const Label = ({ title, status }) => {
|
|
4
|
+
return (<div className="flex flex-row items-center gap-[8px]">
|
|
5
|
+
<div className={`h-[12px] w-[12px] rounded-full ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`}/>
|
|
6
|
+
<p className={`body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}>{title}</p>
|
|
7
|
+
</div>);
|
|
8
|
+
};
|
|
9
|
+
const LineBox = ({ children }) => {
|
|
10
|
+
return (<div className="border-grayScale6 flex flex-row items-center justify-between border-b-[1px] border-solid py-[24px]">
|
|
11
|
+
{children}
|
|
12
|
+
</div>);
|
|
13
|
+
};
|
|
14
|
+
const ContactInfo = () => {
|
|
15
|
+
const list = {
|
|
16
|
+
payment_status: 'partial', //일부납/완납
|
|
17
|
+
deposit_amount: 10000000, // 착수금
|
|
18
|
+
remaining_amount: 4500000, // 잔여금액
|
|
19
|
+
payments: [
|
|
20
|
+
{
|
|
21
|
+
title: '상담비',
|
|
22
|
+
created_at: '2025-02-18 14:53:14',
|
|
23
|
+
amount: 110000,
|
|
24
|
+
method: '신용카드 - 현대카드 (일시불)'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: '수임료',
|
|
28
|
+
created_at: '2025-02-19 14:53:14',
|
|
29
|
+
amount: 3290000,
|
|
30
|
+
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
31
|
+
},
|
|
32
|
+
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
33
|
+
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
return (<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
37
|
+
<div className="flex flex-row gap-[32px]">
|
|
38
|
+
<Label title="일부납" status={list.payment_status === 'partial'}/>
|
|
39
|
+
<Label title="완납" status={list.payment_status !== 'partial'}/>
|
|
40
|
+
</div>
|
|
41
|
+
<div className={'mt-[26px]'}>
|
|
42
|
+
<LineBox>
|
|
43
|
+
<p className="body_medium1 text-black">착수금</p>
|
|
44
|
+
<p className="body_medium1 text-black">{list.deposit_amount.toLocaleString()}원</p>
|
|
45
|
+
</LineBox>
|
|
46
|
+
{list.payments.map((item, index) => (<LineBox key={index}>
|
|
47
|
+
<div className="flex flex-col gap-[8px]">
|
|
48
|
+
<p className="body_small2 text-grayScale2">{item.title}</p>
|
|
49
|
+
<p className="body_small2 text-grayScale2">
|
|
50
|
+
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
51
|
+
</p>
|
|
52
|
+
</div>
|
|
53
|
+
<div className="flex flex-col items-end gap-[8px]">
|
|
54
|
+
<p className="body_medium1 text-black">{item.amount.toLocaleString()}원</p>
|
|
55
|
+
<p className="body_small2 text-grayScale2">{item.method}</p>
|
|
56
|
+
</div>
|
|
57
|
+
</LineBox>))}
|
|
58
|
+
<LineBox>
|
|
59
|
+
<p className="body_medium1 text-black">잔여금액</p>
|
|
60
|
+
<p className="body_medium1 text-black">{list.remaining_amount.toLocaleString()}원</p>
|
|
61
|
+
</LineBox>
|
|
62
|
+
</div>
|
|
63
|
+
</CaseLayout>);
|
|
64
|
+
};
|
|
65
|
+
export default ContactInfo;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import { PaymentList, Payment } from '../../_type/type';
|
|
4
|
+
|
|
5
|
+
const Label = ({ title, status }: { title: string; status: boolean }) => {
|
|
6
|
+
return (
|
|
7
|
+
<div className="flex flex-row items-center gap-[8px]">
|
|
8
|
+
<div className={`h-[12px] w-[12px] rounded-full ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`} />
|
|
9
|
+
<p className={`body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}>{title}</p>
|
|
10
|
+
</div>
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
const LineBox = ({ children }: { children: React.ReactNode }) => {
|
|
14
|
+
return (
|
|
15
|
+
<div className="border-grayScale6 flex flex-row items-center justify-between border-b-[1px] border-solid py-[24px]">
|
|
16
|
+
{children}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
const ContactInfo = () => {
|
|
21
|
+
const list: PaymentList = {
|
|
22
|
+
payment_status: 'partial', //일부납/완납
|
|
23
|
+
deposit_amount: 10000000, // 착수금
|
|
24
|
+
remaining_amount: 4500000, // 잔여금액
|
|
25
|
+
payments: [
|
|
26
|
+
{
|
|
27
|
+
title: '상담비',
|
|
28
|
+
created_at: '2025-02-18 14:53:14',
|
|
29
|
+
amount: 110000,
|
|
30
|
+
method: '신용카드 - 현대카드 (일시불)'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: '수임료',
|
|
34
|
+
created_at: '2025-02-19 14:53:14',
|
|
35
|
+
amount: 3290000,
|
|
36
|
+
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
37
|
+
},
|
|
38
|
+
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
39
|
+
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
return (
|
|
43
|
+
<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
44
|
+
<div className="flex flex-row gap-[32px]">
|
|
45
|
+
<Label title="일부납" status={list.payment_status === 'partial'} />
|
|
46
|
+
<Label title="완납" status={list.payment_status !== 'partial'} />
|
|
47
|
+
</div>
|
|
48
|
+
<div className={'mt-[26px]'}>
|
|
49
|
+
<LineBox>
|
|
50
|
+
<p className="body_medium1 text-black">착수금</p>
|
|
51
|
+
<p className="body_medium1 text-black">{list.deposit_amount.toLocaleString()}원</p>
|
|
52
|
+
</LineBox>
|
|
53
|
+
{list.payments.map((item, index) => (
|
|
54
|
+
<LineBox key={index}>
|
|
55
|
+
<div className="flex flex-col gap-[8px]">
|
|
56
|
+
<p className="body_small2 text-grayScale2">{item.title}</p>
|
|
57
|
+
<p className="body_small2 text-grayScale2">
|
|
58
|
+
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
59
|
+
</p>
|
|
60
|
+
</div>
|
|
61
|
+
<div className="flex flex-col items-end gap-[8px]">
|
|
62
|
+
<p className="body_medium1 text-black">{item.amount.toLocaleString()}원</p>
|
|
63
|
+
<p className="body_small2 text-grayScale2">{item.method}</p>
|
|
64
|
+
</div>
|
|
65
|
+
</LineBox>
|
|
66
|
+
))}
|
|
67
|
+
<LineBox>
|
|
68
|
+
<p className="body_medium1 text-black">잔여금액</p>
|
|
69
|
+
<p className="body_medium1 text-black">{list.remaining_amount.toLocaleString()}원</p>
|
|
70
|
+
</LineBox>
|
|
71
|
+
</div>
|
|
72
|
+
</CaseLayout>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export default ContactInfo;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
4
|
+
import Loading from '../../_component/_loading/Loading';
|
|
5
|
+
import caseLookupLinkout from '../../../../asset/images/mycaseManage/icon/case_lookup_linkout.svg';
|
|
6
|
+
const Line = ({ title, content, isFirst = false }) => {
|
|
7
|
+
return (<div className={`border-grayScale5 flex h-[86px] flex-row border-solid py-[28px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
|
|
8
|
+
<div className="lg:body_medium2 w-[30%]">{title}</div>
|
|
9
|
+
<div className="lg:body_medium1 w-[70%]">{content}</div>
|
|
10
|
+
</div>);
|
|
11
|
+
};
|
|
12
|
+
const DetailInfo = ({ detailList, isLoading }) => {
|
|
13
|
+
return (<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
14
|
+
{isLoading ? (<Loading />) : (<>
|
|
15
|
+
<Line title="사건번호" content={detailList === null || detailList === void 0 ? void 0 : detailList.case_number} isFirst/>
|
|
16
|
+
<Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
|
|
17
|
+
<Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
|
|
18
|
+
<Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
|
|
19
|
+
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.start_date}/>
|
|
20
|
+
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
21
|
+
<Line title="담당 변호사" content={detailList === null || detailList === void 0 ? void 0 : detailList.lawyer}/>
|
|
22
|
+
<Line title="나의 정보" content={detailList === null || detailList === void 0 ? void 0 : detailList.my_info}/>
|
|
23
|
+
<Line title="상대방 정보" content={detailList === null || detailList === void 0 ? void 0 : detailList.my_info}/>
|
|
24
|
+
<Link href="#" className={'itesm-center mt-[20px] flex w-full justify-end'}>
|
|
25
|
+
<div className="flex flex-row gap-[12px]">
|
|
26
|
+
<Image src={caseLookupLinkout} alt="edit" width={28} height={28}/>
|
|
27
|
+
<p className="body_medium2">대법원 사건조회</p>
|
|
28
|
+
</div>
|
|
29
|
+
</Link>
|
|
30
|
+
</>)}
|
|
31
|
+
</CaseLayout>);
|
|
32
|
+
};
|
|
33
|
+
export default DetailInfo;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useQuery } from 'react-query';
|
|
2
|
+
import getCase from '../../_fetchers/getCase';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { DetailList } from '../../_type/type';
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
import Link from 'next/link';
|
|
7
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
8
|
+
import Loading from '../../_component/_loading/Loading';
|
|
9
|
+
import caseLookupLinkout from '../../../../asset/images/mycaseManage/icon/case_lookup_linkout.svg';
|
|
10
|
+
const Line = ({ title, content, isFirst = false }: { title: string; content: string; isFirst?: boolean }) => {
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
className={`border-grayScale5 flex h-[86px] flex-row border-solid py-[28px] ${
|
|
14
|
+
isFirst ? 'border-y-[1px]' : 'border-b-[1px]'
|
|
15
|
+
}`}
|
|
16
|
+
>
|
|
17
|
+
<div className="lg:body_medium2 w-[30%]">{title}</div>
|
|
18
|
+
<div className="lg:body_medium1 w-[70%]">{content}</div>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoading: boolean }) => {
|
|
23
|
+
return (
|
|
24
|
+
<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
25
|
+
{isLoading ? (
|
|
26
|
+
<Loading />
|
|
27
|
+
) : (
|
|
28
|
+
<>
|
|
29
|
+
<Line title="사건번호" content={detailList?.case_number} isFirst />
|
|
30
|
+
<Line title="법원명" content={detailList?.agency_name} />
|
|
31
|
+
<Line title="사건명" content={detailList?.title} />
|
|
32
|
+
<Line title="진행단계" content={detailList?.state} />
|
|
33
|
+
<Line title="사건 시작일" content={detailList?.start_date} />
|
|
34
|
+
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
35
|
+
<Line title="담당 변호사" content={detailList?.lawyer} />
|
|
36
|
+
<Line title="나의 정보" content={detailList?.my_info} />
|
|
37
|
+
<Line title="상대방 정보" content={detailList?.my_info} />
|
|
38
|
+
<Link href="#" className={'itesm-center mt-[20px] flex w-full justify-end'}>
|
|
39
|
+
<div className="flex flex-row gap-[12px]">
|
|
40
|
+
<Image src={caseLookupLinkout} alt="edit" width={28} height={28} />
|
|
41
|
+
<p className="body_medium2">대법원 사건조회</p>
|
|
42
|
+
</div>
|
|
43
|
+
</Link>
|
|
44
|
+
</>
|
|
45
|
+
)}
|
|
46
|
+
</CaseLayout>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default DetailInfo;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import checkCircle from '../../../../asset/images/mycaseManage/icon/check_circle.svg';
|
|
5
|
+
import checkCircle2 from '../../../../asset/images/mycaseManage/icon/check_circle2.svg';
|
|
6
|
+
const TimeBox = ({ item }) => {
|
|
7
|
+
return (<div className="bg-grayScale7 rounded-[12px] px-[28px] py-[20px]">
|
|
8
|
+
<div className="text-grayScale2 body_small2">{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}</div>
|
|
9
|
+
<div className="body_medium2 mt-[8px]">{item.title}</div>
|
|
10
|
+
</div>);
|
|
11
|
+
};
|
|
12
|
+
const TimeContainer = ({ list, isFirst }) => {
|
|
13
|
+
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
14
|
+
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
15
|
+
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
16
|
+
return (<>
|
|
17
|
+
<div className="flex flex-col gap-[13px]">
|
|
18
|
+
<div className="flex flex-row gap-[12px]">
|
|
19
|
+
<Image unoptimized src={imgUrl} alt="arrow" width={24} height={24}/>
|
|
20
|
+
<p className={`body_medium1 ${color}`}>{list[0].title}</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div className={`ml-[12px] pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
23
|
+
`${isFirst ? '' : 'border-l-[2px] border-solid '}`}>
|
|
24
|
+
{list.map((item) => {
|
|
25
|
+
return <TimeBox key={item.idx} item={item}/>;
|
|
26
|
+
})}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</>);
|
|
30
|
+
};
|
|
31
|
+
const TimeLine = ({ timeLine, isLoading }) => {
|
|
32
|
+
console.log('TimeLine', timeLine);
|
|
33
|
+
return (<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
34
|
+
<div className="flex flex-col gap-[16px]">
|
|
35
|
+
{timeLine.map((list, index) => {
|
|
36
|
+
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1}/>;
|
|
37
|
+
})}
|
|
38
|
+
</div>
|
|
39
|
+
</CaseLayout>);
|
|
40
|
+
};
|
|
41
|
+
export default TimeLine;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { TimeLineType } from '../../_type/type';
|
|
5
|
+
import checkCircle from '../../../../asset/images/mycaseManage/icon/check_circle.svg';
|
|
6
|
+
import checkCircle2 from '../../../../asset/images/mycaseManage/icon/check_circle2.svg';
|
|
7
|
+
|
|
8
|
+
const TimeBox = ({ item }: { item: any }) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className="bg-grayScale7 rounded-[12px] px-[28px] py-[20px]">
|
|
11
|
+
<div className="text-grayScale2 body_small2">{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}</div>
|
|
12
|
+
<div className="body_medium2 mt-[8px]">{item.title}</div>
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
const TimeContainer = ({ list, isFirst }: { list: TimeLineType[]; isFirst: boolean }) => {
|
|
17
|
+
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
18
|
+
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
19
|
+
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<div className="flex flex-col gap-[13px]">
|
|
23
|
+
<div className="flex flex-row gap-[12px]">
|
|
24
|
+
<Image unoptimized src={imgUrl} alt="arrow" width={24} height={24} />
|
|
25
|
+
<p className={`body_medium1 ${color}`}>{list[0].title}</p>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
className={
|
|
29
|
+
`ml-[12px] pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
30
|
+
`${isFirst ? '' : 'border-l-[2px] border-solid '}`
|
|
31
|
+
}
|
|
32
|
+
>
|
|
33
|
+
{list.map((item: any) => {
|
|
34
|
+
return <TimeBox key={item.idx} item={item} />;
|
|
35
|
+
})}
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const TimeLine = ({ timeLine, isLoading }: { timeLine: TimeLineType[][]; isLoading: boolean }) => {
|
|
43
|
+
console.log('TimeLine', timeLine);
|
|
44
|
+
return (
|
|
45
|
+
<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[60px] pb-[80px] px-[60px]'}>
|
|
46
|
+
<div className="flex flex-col gap-[16px]">
|
|
47
|
+
{timeLine.map((list, index) => {
|
|
48
|
+
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1} />;
|
|
49
|
+
})}
|
|
50
|
+
</div>
|
|
51
|
+
</CaseLayout>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default TimeLine;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import header_arrow from '../../../../../asset/images/myCaseManage/header_arrow.svg';
|
|
5
|
+
import client from '../../../../../asset/images/myCaseManage/icon/client.svg';
|
|
6
|
+
import daeryun from '../../../../../asset/images/myCaseManage/icon/daeryun.svg';
|
|
7
|
+
const AnswerBox = ({ item, isOpen, openId, setOpenId }) => {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f;
|
|
9
|
+
const ref = useRef(null);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (isOpen) {
|
|
12
|
+
if (ref.current) {
|
|
13
|
+
ref.current.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, [isOpen]);
|
|
17
|
+
return (<div ref={ref} className={`transition-height duration-300 ${((_a = item === null || item === void 0 ? void 0 : item.answer) === null || _a === void 0 ? void 0 : _a.content) ? 'cursor-pointer' : ''} overflow-hidden`} onClick={() => {
|
|
18
|
+
var _a;
|
|
19
|
+
if ((_a = item === null || item === void 0 ? void 0 : item.answer) === null || _a === void 0 ? void 0 : _a.content) {
|
|
20
|
+
if ((item === null || item === void 0 ? void 0 : item.idx) === openId) {
|
|
21
|
+
setOpenId('');
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
setOpenId(item === null || item === void 0 ? void 0 : item.idx);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}}>
|
|
28
|
+
<div className={`bg-grayScale7 flex flex-row px-[48px] py-[36px] ${isOpen ? 'rounded-x-[20px] rounded-t-[20px] ' : 'rounded-[20px]'}`}>
|
|
29
|
+
<Image src={client} alt="client" width={60} height={60} className="mr-[32px] flex-shrink-0"/>
|
|
30
|
+
<div className="w-full">
|
|
31
|
+
<p className="body_small2 text-grayScale2">{item.timestamp}</p>
|
|
32
|
+
<p className="body_medium1 mt-[5px] text-black">{item.content}</p>
|
|
33
|
+
<div className={` mt-[20px] flex flex-row items-center justify-between `}>
|
|
34
|
+
<p className={`body_small2 ${((_b = item === null || item === void 0 ? void 0 : item.answer) === null || _b === void 0 ? void 0 : _b.content) ? 'text-subColor04' : 'text-mycaseMainColor'}`}>
|
|
35
|
+
{((_c = item === null || item === void 0 ? void 0 : item.answer) === null || _c === void 0 ? void 0 : _c.content) ? '답변' : '미답변'}
|
|
36
|
+
</p>
|
|
37
|
+
{((_d = item === null || item === void 0 ? void 0 : item.answer) === null || _d === void 0 ? void 0 : _d.content) ? (<Image src={header_arrow} alt="arrow" width={16.6} height={10} className={`transition-transform duration-300 ${isOpen ? 'rotate-180' : ''}`}/>) : (<div className="bg-mycaseMainColor h-[2px] w-[20px]"></div>)}
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div className={`border-grayScale7 flex flex-row overflow-hidden rounded-b-[20px] border-x-[2px] border-b-[2px] border-solid transition-all duration-200 ${isOpen ? 'h-full px-[48px] py-[36px] opacity-100' : 'h-0 px-[48px] opacity-0'}`}>
|
|
43
|
+
<div className="mr-[32px] flex flex-shrink-0 flex-col items-center justify-center gap-[12px]">
|
|
44
|
+
<Image src={daeryun} alt="client" width={60} height={60} className=" flex-shrink-0"/>
|
|
45
|
+
<p className="body_small2 text-mycaseMainColor">담당자</p>
|
|
46
|
+
</div>
|
|
47
|
+
<div>
|
|
48
|
+
<p className="body_small2 text-grayScale2">{(_e = item === null || item === void 0 ? void 0 : item.answer) === null || _e === void 0 ? void 0 : _e.timestamp}</p>
|
|
49
|
+
<p className="body_medium1 mt-[5px] text-black">{(_f = item === null || item === void 0 ? void 0 : item.answer) === null || _f === void 0 ? void 0 : _f.content}</p>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>);
|
|
53
|
+
};
|
|
54
|
+
const CaseInquiry = () => {
|
|
55
|
+
const [openId, setOpenId] = useState('0');
|
|
56
|
+
const data = [
|
|
57
|
+
{
|
|
58
|
+
idx: '1',
|
|
59
|
+
timestamp: '2024-12-11 12:30',
|
|
60
|
+
content: '제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!제출한 자료 외에 증거가 더 있었어요. 이메일로 보내드렸는데 확인해 주세요!!!'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
idx: '2',
|
|
64
|
+
timestamp: '2024-12-12 09:15',
|
|
65
|
+
content: '이전 사건과 유사한 판례가 있는지 궁금합니다.',
|
|
66
|
+
answer: {
|
|
67
|
+
timestamp: '2024-12-12 10:00',
|
|
68
|
+
content: '관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.관련 판례를 찾아보고 다시 답변드리겠습니다.'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
idx: '3',
|
|
73
|
+
timestamp: '2024-12-13 15:45',
|
|
74
|
+
content: '계약서 검토 요청드립니다. 첨부파일 확인 부탁드립니다.',
|
|
75
|
+
answer: {
|
|
76
|
+
timestamp: '2024-12-13 16:20',
|
|
77
|
+
content: '계약서 검토 후 수정 의견을 전달드리겠습니다.'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
return (<CaseLayout outerClassName="lg:mt-[40px] " innerClassName={'lg:pt-[70px] pb-[80px] px-[60px]'}>
|
|
82
|
+
<div className="flex flex-col gap-[24px]">
|
|
83
|
+
{data === null || data === void 0 ? void 0 : data.map((item, index) => (<AnswerBox key={index} item={item} isOpen={openId === item.idx} openId={openId} setOpenId={setOpenId}/>))}
|
|
84
|
+
</div>
|
|
85
|
+
<div className="mt-[60px]">
|
|
86
|
+
<button></button>
|
|
87
|
+
</div>
|
|
88
|
+
</CaseLayout>);
|
|
89
|
+
};
|
|
90
|
+
export default CaseInquiry;
|