@daeryun/dr_components 0.2.58 → 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.
Files changed (129) hide show
  1. package/dist/asset/images/myCaseManage/arrow_2.webp +0 -0
  2. package/dist/asset/images/myCaseManage/arrow_right.svg +3 -0
  3. package/dist/asset/images/myCaseManage/background.svg +8 -0
  4. package/dist/asset/images/myCaseManage/header_arrow.svg +3 -0
  5. package/dist/asset/images/myCaseManage/home.svg +16 -0
  6. package/dist/asset/images/myCaseManage/home.webp +0 -0
  7. package/dist/asset/images/myCaseManage/icon/case_icon1.svg +4 -0
  8. package/dist/asset/images/myCaseManage/icon/case_icon2.svg +6 -0
  9. package/dist/asset/images/myCaseManage/icon/case_icon3.svg +3 -0
  10. package/dist/asset/images/myCaseManage/icon/case_lookup_linkout.svg +5 -0
  11. package/dist/asset/images/myCaseManage/icon/check_circle.svg +3 -0
  12. package/dist/asset/images/myCaseManage/icon/check_circle2.svg +3 -0
  13. package/dist/asset/images/myCaseManage/icon/client.svg +14 -0
  14. package/dist/asset/images/myCaseManage/icon/daeryun.svg +7 -0
  15. package/dist/asset/images/myCaseManage/icon/download.svg +3 -0
  16. package/dist/asset/images/myCaseManage/icon/jpg.svg +15 -0
  17. package/dist/asset/images/myCaseManage/icon/pdf.svg +9 -0
  18. package/dist/asset/images/myCaseManage/icon/png.svg +25 -0
  19. package/dist/asset/images/myCaseManage/icon/word.svg +11 -0
  20. package/dist/asset/images/myCaseManage/icon/xls.svg +18 -0
  21. package/dist/asset/images/myCaseManage/nav_arr.webp +0 -0
  22. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  23. package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
  24. package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
  25. package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
  26. package/dist/components/Fix/Fix.stories.d.ts +3 -2
  27. package/dist/components/Footer/TopBtn.d.ts +1 -0
  28. package/dist/components/MapSection/Map.d.ts +1 -0
  29. package/dist/components/MapSection/MapSection.d.ts +1 -1
  30. package/dist/components/Mark/Mark.d.ts +1 -0
  31. package/dist/components/SelectBox/SelectBox.d.ts +8 -8
  32. package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
  33. package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
  34. package/dist/components/banner/TopBanner.d.ts +1 -0
  35. package/dist/components/banner/TopBanner.stories.d.ts +1 -0
  36. package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
  37. package/dist/components/hook/useElementObserve.d.ts +2 -2
  38. package/dist/components/myCaseManage/[id]/_component/ContactInfo.d.ts +3 -0
  39. package/dist/components/myCaseManage/[id]/_component/ContactInfo.jsx +65 -0
  40. package/dist/components/myCaseManage/[id]/_component/ContactInfo.tsx +76 -0
  41. package/dist/components/myCaseManage/[id]/_component/DetailInfo.d.ts +7 -0
  42. package/dist/components/myCaseManage/[id]/_component/DetailInfo.jsx +33 -0
  43. package/dist/components/myCaseManage/[id]/_component/DetailInfo.tsx +50 -0
  44. package/dist/components/myCaseManage/[id]/_component/TimeLine.d.ts +7 -0
  45. package/dist/components/myCaseManage/[id]/_component/TimeLine.jsx +41 -0
  46. package/dist/components/myCaseManage/[id]/_component/TimeLine.tsx +55 -0
  47. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.d.ts +3 -0
  48. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.jsx +90 -0
  49. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.tsx +143 -0
  50. package/dist/components/myCaseManage/[id]/_component/_document/Document.d.ts +6 -0
  51. package/dist/components/myCaseManage/[id]/_component/_document/Document.jsx +41 -0
  52. package/dist/components/myCaseManage/[id]/_component/_document/Document.tsx +59 -0
  53. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.d.ts +7 -0
  54. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.jsx +55 -0
  55. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.tsx +72 -0
  56. package/dist/components/myCaseManage/[id]/index.d.ts +3 -0
  57. package/dist/components/myCaseManage/[id]/index.jsx +44 -0
  58. package/dist/components/myCaseManage/[id]/index.tsx +85 -0
  59. package/dist/components/myCaseManage/_actions/action.d.ts +13 -0
  60. package/dist/components/myCaseManage/_actions/action.js +56 -0
  61. package/dist/components/myCaseManage/_actions/action.ts +65 -0
  62. package/dist/components/myCaseManage/_component/CaseContainer.d.ts +3 -0
  63. package/dist/components/myCaseManage/_component/CaseContainer.jsx +99 -0
  64. package/dist/components/myCaseManage/_component/CaseContainer.tsx +177 -0
  65. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.d.ts +8 -0
  66. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +47 -0
  67. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +76 -0
  68. package/dist/components/myCaseManage/_component/_button/Badge.d.ts +15 -0
  69. package/dist/components/myCaseManage/_component/_button/Badge.jsx +16 -0
  70. package/dist/components/myCaseManage/_component/_button/Badge.tsx +22 -0
  71. package/dist/components/myCaseManage/_component/_button/SubColor1Button.d.ts +7 -0
  72. package/dist/components/myCaseManage/_component/_button/SubColor1Button.jsx +6 -0
  73. package/dist/components/myCaseManage/_component/_button/SubColor1Button.tsx +20 -0
  74. package/dist/components/myCaseManage/_component/_button/SubMenuButton.d.ts +7 -0
  75. package/dist/components/myCaseManage/_component/_button/SubMenuButton.jsx +6 -0
  76. package/dist/components/myCaseManage/_component/_button/SubMenuButton.tsx +12 -0
  77. package/dist/components/myCaseManage/_component/_empty/EmptyTable.d.ts +6 -0
  78. package/dist/components/myCaseManage/_component/_empty/EmptyTable.jsx +53 -0
  79. package/dist/components/myCaseManage/_component/_empty/EmptyTable.tsx +59 -0
  80. package/dist/components/myCaseManage/_component/_layout/CaseLayout.d.ts +7 -0
  81. package/dist/components/myCaseManage/_component/_layout/CaseLayout.jsx +8 -0
  82. package/dist/components/myCaseManage/_component/_layout/CaseLayout.tsx +20 -0
  83. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.d.ts +11 -0
  84. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.jsx +24 -0
  85. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.tsx +36 -0
  86. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.d.ts +5 -0
  87. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.jsx +4 -0
  88. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.tsx +5 -0
  89. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.d.ts +8 -0
  90. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.jsx +24 -0
  91. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.tsx +43 -0
  92. package/dist/components/myCaseManage/_component/_loading/Loading.d.ts +3 -0
  93. package/dist/components/myCaseManage/_component/_loading/Loading.jsx +90 -0
  94. package/dist/components/myCaseManage/_component/_loading/Loading.tsx +94 -0
  95. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.d.ts +10 -0
  96. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.jsx +75 -0
  97. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.tsx +163 -0
  98. package/dist/components/myCaseManage/_component/_table/CaseTable.d.ts +10 -0
  99. package/dist/components/myCaseManage/_component/_table/CaseTable.jsx +37 -0
  100. package/dist/components/myCaseManage/_component/_table/CaseTable.tsx +62 -0
  101. package/dist/components/myCaseManage/_fetchers/getCase.d.ts +5 -0
  102. package/dist/components/myCaseManage/_fetchers/getCase.js +30 -0
  103. package/dist/components/myCaseManage/_fetchers/getCase.ts +21 -0
  104. package/dist/components/myCaseManage/_fetchers/getCaseList.d.ts +7 -0
  105. package/dist/components/myCaseManage/_fetchers/getCaseList.js +30 -0
  106. package/dist/components/myCaseManage/_fetchers/getCaseList.ts +24 -0
  107. package/dist/components/myCaseManage/_fetchers/getCourtFileList.d.ts +5 -0
  108. package/dist/components/myCaseManage/_fetchers/getCourtFileList.js +30 -0
  109. package/dist/components/myCaseManage/_fetchers/getCourtFileList.ts +21 -0
  110. package/dist/components/myCaseManage/_fetchers/getTimeLine.d.ts +5 -0
  111. package/dist/components/myCaseManage/_fetchers/getTimeLine.js +30 -0
  112. package/dist/components/myCaseManage/_fetchers/getTimeLine.ts +21 -0
  113. package/dist/components/myCaseManage/_lib/catagoryMenuName.d.ts +8 -0
  114. package/dist/components/myCaseManage/_lib/catagoryMenuName.js +8 -0
  115. package/dist/components/myCaseManage/_lib/catagoryMenuName.ts +11 -0
  116. package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.d.ts +15 -0
  117. package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.js +21 -0
  118. package/dist/components/myCaseManage/_type/type.d.ts +64 -0
  119. package/dist/components/myCaseManage/_type/type.js +1 -0
  120. package/dist/components/myCaseManage/_type/type.ts +73 -0
  121. package/dist/components/myCaseManage/index.d.ts +3 -0
  122. package/dist/components/myCaseManage/index.jsx +20 -0
  123. package/dist/components/myCaseManage/index.tsx +30 -0
  124. package/dist/components/page/Choice/Choice.d.ts +1 -1
  125. package/dist/components/page/Strength/Strength.d.ts +1 -0
  126. package/dist/lib/utils.js +4 -4
  127. package/dist/styles/globals.css +548 -2
  128. package/dist/tsconfig.tsbuildinfo +1 -1
  129. package/package.json +93 -91
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Mark: (props: {
2
3
  type: string;
3
4
  color: string;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import SeoStrength from './SeoStrength';
2
3
  import type { StoryObj } from '@storybook/react';
3
4
  import '../../styles/globals.css';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SearchIcon: (props: {
2
3
  className?: string;
3
4
  index: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'swiper/css';
2
3
  declare const TopBanner: () => import("react").JSX.Element;
3
4
  export default TopBanner;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import TopBanner from './TopBanner';
2
3
  import type { StoryObj } from '@storybook/react';
3
4
  import '../../styles/globals.css';
@@ -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,7 +1,7 @@
1
1
  declare const useElementObserve: (targetRef: any, flagStandard?: number) => {
2
2
  flag: boolean;
3
3
  flagStandardBoolean: boolean;
4
- flagClass: any;
5
- strengthClass: any;
4
+ flagClass: string;
5
+ strengthClass: string;
6
6
  };
7
7
  export default useElementObserve;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ContactInfo: () => import("react").JSX.Element;
3
+ export default ContactInfo;
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ import { DetailList } from '../../_type/type';
3
+ declare const DetailInfo: ({ detailList, isLoading }: {
4
+ detailList: DetailList;
5
+ isLoading: boolean;
6
+ }) => import("react").JSX.Element;
7
+ export default DetailInfo;
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ import { TimeLineType } from '../../_type/type';
3
+ declare const TimeLine: ({ timeLine, isLoading }: {
4
+ timeLine: TimeLineType[][];
5
+ isLoading: boolean;
6
+ }) => import("react").JSX.Element;
7
+ export default TimeLine;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const CaseInquiry: () => import("react").JSX.Element;
3
+ export default CaseInquiry;
@@ -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;