@daeryun/dr_components 1.1.61 → 1.1.62

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 (80) hide show
  1. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
  2. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
  3. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -1
  4. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +3 -9
  5. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +14 -35
  6. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -19
  7. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +1 -1
  8. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +1 -1
  9. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
  10. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +1 -1
  11. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +1 -2
  12. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +21 -63
  13. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +17 -97
  14. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +1 -2
  15. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +13 -58
  16. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +25 -124
  17. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +7 -12
  18. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +7 -12
  19. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +4 -3
  20. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +34 -51
  21. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +59 -88
  22. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.jsx +2 -2
  23. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +2 -2
  24. package/dist/components/page/MyCase/_actions/action.d.ts +0 -34
  25. package/dist/components/page/MyCase/_actions/action.js +0 -59
  26. package/dist/components/page/MyCase/_actions/action.ts +0 -79
  27. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +4 -2
  28. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +5 -2
  29. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +1 -2
  30. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +6 -14
  31. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +6 -34
  32. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +3 -8
  33. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +4 -3
  34. package/dist/components/page/MyCase/_type/type.d.ts +1 -3
  35. package/dist/components/page/MyCase/_type/type.ts +1 -3
  36. package/dist/styles/globals.css +92 -515
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +1 -1
  39. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.d.ts +0 -4
  40. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +0 -13
  41. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +0 -18
  42. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +0 -5
  43. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +0 -27
  44. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +0 -46
  45. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +0 -6
  46. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +0 -34
  47. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +0 -65
  48. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +0 -5
  49. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +0 -27
  50. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +0 -47
  51. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +0 -7
  52. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +0 -93
  53. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +0 -139
  54. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +0 -10
  55. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +0 -149
  56. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +0 -212
  57. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.d.ts +0 -6
  58. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +0 -154
  59. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +0 -177
  60. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +0 -14
  61. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +0 -278
  62. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +0 -411
  63. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +0 -8
  64. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +0 -56
  65. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +0 -111
  66. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +0 -3
  67. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +0 -10
  68. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +0 -10
  69. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +0 -7
  70. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +0 -34
  71. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +0 -36
  72. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +0 -5
  73. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +0 -33
  74. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +0 -25
  75. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +0 -5
  76. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +0 -33
  77. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +0 -25
  78. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +0 -4
  79. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +0 -33
  80. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeryun/dr_components",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +0,0 @@
1
- declare const DocumentBadge: ({ review_status }: {
2
- review_status: number;
3
- }) => import("react").JSX.Element;
4
- export default DocumentBadge;
@@ -1,13 +0,0 @@
1
- const reviewStatus = {
2
- [-1]: '보완요청',
3
- [0]: '승인대기',
4
- [1]: '승인완료'
5
- };
6
- const DocumentBadge = ({ review_status }) => {
7
- return (<div className={`flex h-[24px] w-fit flex-row items-center rounded-[8px] px-[8px] sm-top:h-[32px] sm-top:px-[12px] lg:h-[35px] lg:px-[12px] ${review_status === -1 ? 'bg-mycaseMainColor' : review_status === 0 ? 'bg-subColor05' : 'bg-subColor04'} `}>
8
- <p className="label_medium1_mo sm-top:label_medium1_tb lg:label_medium1 leading-none text-grayScale8">
9
- {reviewStatus === null || reviewStatus === void 0 ? void 0 : reviewStatus[review_status]}
10
- </p>
11
- </div>);
12
- };
13
- export default DocumentBadge;
@@ -1,18 +0,0 @@
1
- const reviewStatus: { [key: number]: string } = {
2
- [-1]: '보완요청',
3
- [0]: '승인대기',
4
- [1]: '승인완료'
5
- };
6
- const DocumentBadge = ({ review_status }: { review_status: number }) => {
7
- return (
8
- <div
9
- className={`flex h-[24px] w-fit flex-row items-center rounded-[8px] px-[8px] sm-top:h-[32px] sm-top:px-[12px] lg:h-[35px] lg:px-[12px] ${review_status === -1 ? 'bg-mycaseMainColor' : review_status === 0 ? 'bg-subColor05' : 'bg-subColor04'} `}
10
- >
11
- <p className="label_medium1_mo sm-top:label_medium1_tb lg:label_medium1 leading-none text-grayScale8">
12
- {reviewStatus?.[review_status as number]}
13
- </p>
14
- </div>
15
- );
16
- };
17
-
18
- export default DocumentBadge;
@@ -1,5 +0,0 @@
1
- declare const CaeeExamineAskSuccessModal: ({ isOpen, onClose }: {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- }) => import("react").JSX.Element;
5
- export default CaeeExamineAskSuccessModal;
@@ -1,27 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
- const CaeeExamineAskSuccessModal = ({ isOpen, onClose }) => {
6
- return (<ModalContainer isOpen={isOpen} onClose={() => {
7
- onClose();
8
- }}>
9
- <div className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
10
- <Image src={modalCheck} alt="check" width={40} height={48.9} className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"/>
11
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16.11px] text-center sm-top:mt-[20px] lg:mt-[36px]">
12
- 승인필요문서가 <br className="sm-top:hidden"/>
13
- 보완요청 처리되었습니다.
14
- </p>
15
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
16
- 담당 변호사에게 의견과 함께 전달됩니다.
17
- </p>
18
-
19
- <button className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
20
- onClose();
21
- }}>
22
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
23
- </button>
24
- </div>
25
- </ModalContainer>);
26
- };
27
- export default CaeeExamineAskSuccessModal;
@@ -1,46 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
-
6
- const CaeeExamineAskSuccessModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
7
- return (
8
- <ModalContainer
9
- isOpen={isOpen}
10
- onClose={() => {
11
- onClose();
12
- }}
13
- >
14
- <div
15
- className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] "
16
- onClick={e => e.stopPropagation()}
17
- >
18
- <Image
19
- src={modalCheck}
20
- alt="check"
21
- width={40}
22
- height={48.9}
23
- className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
24
- />
25
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16.11px] text-center sm-top:mt-[20px] lg:mt-[36px]">
26
- 승인필요문서가 <br className="sm-top:hidden" />
27
- 보완요청 처리되었습니다.
28
- </p>
29
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
30
- 담당 변호사에게 의견과 함께 전달됩니다.
31
- </p>
32
-
33
- <button
34
- className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `}
35
- onClick={() => {
36
- onClose();
37
- }}
38
- >
39
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
40
- </button>
41
- </div>
42
- </ModalContainer>
43
- );
44
- };
45
-
46
- export default CaeeExamineAskSuccessModal;
@@ -1,6 +0,0 @@
1
- declare const CaeeExamineStopModal: ({ isOpen, onClose, onAllClose }: {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- onAllClose: () => void;
5
- }) => import("react").JSX.Element;
6
- export default CaeeExamineStopModal;
@@ -1,34 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
- const CaeeExamineStopModal = ({ isOpen, onClose, onAllClose }) => {
6
- // console.log(isLoading);
7
- return (<ModalContainer isOpen={isOpen} onClose={() => {
8
- onClose();
9
- }}>
10
- <div className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
11
- <Image src={modalCheck} alt="check" width={40} height={48.9} className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"/>
12
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16px] sm-top:mt-[20px] lg:mt-[36px]">
13
- 작성을 그만하시겠어요?
14
- </p>
15
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
16
- 작성하신 내용은 저장되지 않아요
17
- </p>
18
-
19
- <div className="mt-[20px] flex w-full flex-row items-center justify-between gap-[4px] sm-top:mt-[40px] sm-top:gap-[12px] lg:mt-[47px] lg:gap-[12px]">
20
- <button className={` h-[48px] w-full rounded-[4px] bg-grayScale7 sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
21
- onAllClose();
22
- }}>
23
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black">중단하기</p>
24
- </button>
25
- <button className={` h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
26
- onClose();
27
- }}>
28
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">계속 작성하기</p>
29
- </button>
30
- </div>
31
- </div>
32
- </ModalContainer>);
33
- };
34
- export default CaeeExamineStopModal;
@@ -1,65 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
-
6
- const CaeeExamineStopModal = ({
7
- isOpen,
8
- onClose,
9
- onAllClose
10
- }: {
11
- isOpen: boolean;
12
- onClose: () => void;
13
- onAllClose: () => void;
14
- }) => {
15
- // console.log(isLoading);
16
-
17
- return (
18
- <ModalContainer
19
- isOpen={isOpen}
20
- onClose={() => {
21
- onClose();
22
- }}
23
- >
24
- <div
25
- className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] "
26
- onClick={e => e.stopPropagation()}
27
- >
28
- <Image
29
- src={modalCheck}
30
- alt="check"
31
- width={40}
32
- height={48.9}
33
- className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
34
- />
35
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16px] sm-top:mt-[20px] lg:mt-[36px]">
36
- 작성을 그만하시겠어요?
37
- </p>
38
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
39
- 작성하신 내용은 저장되지 않아요
40
- </p>
41
-
42
- <div className="mt-[20px] flex w-full flex-row items-center justify-between gap-[4px] sm-top:mt-[40px] sm-top:gap-[12px] lg:mt-[47px] lg:gap-[12px]">
43
- <button
44
- className={` h-[48px] w-full rounded-[4px] bg-grayScale7 sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px] `}
45
- onClick={() => {
46
- onAllClose();
47
- }}
48
- >
49
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black">중단하기</p>
50
- </button>
51
- <button
52
- className={` h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px] `}
53
- onClick={() => {
54
- onClose();
55
- }}
56
- >
57
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">계속 작성하기</p>
58
- </button>
59
- </div>
60
- </div>
61
- </ModalContainer>
62
- );
63
- };
64
-
65
- export default CaeeExamineStopModal;
@@ -1,5 +0,0 @@
1
- declare const CaeeExamineSuccessModal: ({ isOpen, onClose }: {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- }) => import("react").JSX.Element;
5
- export default CaeeExamineSuccessModal;
@@ -1,27 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
- const CaeeExamineSuccessModal = ({ isOpen, onClose }) => {
6
- // console.log(isLoading);
7
- return (<ModalContainer isOpen={isOpen} onClose={() => {
8
- onClose();
9
- }}>
10
- <div className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
11
- <Image src={modalCheck} alt="check" width={72} height={88} className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"/>
12
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16.11px] sm-top:mt-[20px] lg:mt-[36px]">
13
- 승인필요문서가 승인 처리되었습니다.
14
- </p>
15
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
16
- 담당 변호사에게 의견과 함께 전달됩니다.
17
- </p>
18
-
19
- <button className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
20
- onClose();
21
- }}>
22
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
23
- </button>
24
- </div>
25
- </ModalContainer>);
26
- };
27
- export default CaeeExamineSuccessModal;
@@ -1,47 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
5
-
6
- const CaeeExamineSuccessModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
7
- // console.log(isLoading);
8
-
9
- return (
10
- <ModalContainer
11
- isOpen={isOpen}
12
- onClose={() => {
13
- onClose();
14
- }}
15
- >
16
- <div
17
- className="absolute flex w-[calc(100%-40px)] max-w-[320px] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] "
18
- onClick={e => e.stopPropagation()}
19
- >
20
- <Image
21
- src={modalCheck}
22
- alt="check"
23
- width={72}
24
- height={88}
25
- className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
26
- />
27
- <p className="body_large1_mo sm-top:body_large1_tb lg:body_large1 mt-[16.11px] sm-top:mt-[20px] lg:mt-[36px]">
28
- 승인필요문서가 승인 처리되었습니다.
29
- </p>
30
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center leading-[20px] text-grayScale3 sm-top:mt-[16px] sm-top:leading-[25px] lg:mt-[20px] lg:leading-[30px]">
31
- 담당 변호사에게 의견과 함께 전달됩니다.
32
- </p>
33
-
34
- <button
35
- className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `}
36
- onClick={() => {
37
- onClose();
38
- }}
39
- >
40
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
41
- </button>
42
- </div>
43
- </ModalContainer>
44
- );
45
- };
46
-
47
- export default CaeeExamineSuccessModal;
@@ -1,7 +0,0 @@
1
- declare const CaseExamineDocumentModal: ({ isOpen, item, onClose, caseIdx }: {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- item: any;
5
- caseIdx: string;
6
- }) => import("react").JSX.Element;
7
- export default CaseExamineDocumentModal;
@@ -1,93 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import { useMemo } from 'react';
5
- import close from '../../../../../../asset/images/myCase/icon/close.webp';
6
- import { useActionGetDocumentExamineHistory } from '../../../_actions/action';
7
- import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
8
- import dayjs from 'dayjs';
9
- import DocumentBadge from '../_badge/DocumentBadge';
10
- const DoumnetBox = ({ item }) => {
11
- return (<>
12
- {(item === null || item === void 0 ? void 0 : item.lawyer_comment) && (<div className="w-full border-b-[1px] border-solid border-grayScale5 py-[16px] sm-top:py-[20px] lg:py-[28px] ">
13
- <div className="flex w-full flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
14
- <Image src={chatIcon} alt="chatIcon" width={24} height={24} className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"/>
15
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
16
- 변호사가 전하는 말씀
17
- </p>
18
- </div>
19
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
20
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
21
- {item.lawyer_comment}
22
- </p>
23
- </div>
24
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
25
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
26
- {item.rejected_at
27
- ? dayjs(item.rejected_at).format('YYYY-MM-DD HH:mm')
28
- : item.approved_at
29
- ? dayjs(item.approved_at).format('YYYY-MM-DD HH:mm')
30
- : null}
31
- </p>
32
- </div>
33
- </div>)}
34
- {(item === null || item === void 0 ? void 0 : item.client_comment) && (<div className="w-full border-b-[1px] border-solid border-grayScale5 pb-[16px] pt-[28px] sm-top:pb-[20px] sm-top:pt-[32px] lg:pt-[40px]">
35
- <div className="flex flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
36
- <Image src={chatIcon} alt="chatIcon" width={24} height={24} className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"/>
37
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">나의 의견</p>
38
- </div>
39
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
40
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
41
- {item.client_comment}
42
- </p>
43
- </div>
44
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
45
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
46
- {dayjs(item.created_at).format('YYYY-MM-DD HH:mm')}
47
- </p>
48
- </div>
49
- </div>)}
50
- </>);
51
- };
52
- const CaseExamineDocumentModal = ({ isOpen, item, onClose, caseIdx }) => {
53
- var _a;
54
- const comment = useMemo(() => {
55
- // review_status 값에 따라 title을 결정
56
- switch (item === null || item === void 0 ? void 0 : item.review_status) {
57
- case 1:
58
- return { title: '승인을 완료했어요' };
59
- case 0:
60
- return { title: '승인이 필요해요' };
61
- case -1:
62
- return { title: '보완을 요청했어요' };
63
- default:
64
- return { title: '문서 상태 미확인' };
65
- }
66
- }, [item === null || item === void 0 ? void 0 : item.review_status]);
67
- const { data, isLoading, isFetched, isFetching, error } = useActionGetDocumentExamineHistory({
68
- caseIdx: caseIdx,
69
- idx: item.idx
70
- });
71
- return (<ModalContainer isOpen={isOpen} onClose={() => {
72
- onClose();
73
- }}>
74
- <div className="absolute flex max-h-[489px] w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:h-[549px] sm-top:max-h-[579px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:px-[52px] sm-top:py-[52px] lg:h-[649px] lg:max-h-[649px] lg:w-[calc(100%-24px)] lg:max-w-[1000px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
75
- <div className="flex w-full flex-row items-baseline justify-between gap-[19px] border-b-[1px] border-solid border-grayScale5 pb-[28px] sm-top:pb-[32px] lg:pb-[40px] ">
76
- <div className="flex w-full flex-col gap-[12px] sm-top:gap-[16px] lg:gap-[20px]">
77
- <DocumentBadge review_status={item.review_status}/>
78
- <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
79
- {comment === null || comment === void 0 ? void 0 : comment.title}
80
- {/* 길이 테스트용 더미 텍스트 */}
81
- </p>
82
- </div>
83
- <Image src={close} alt="close" width={24} height={24} className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]" onClick={() => {
84
- onClose();
85
- }}/>
86
- </div>
87
- <div className="flex max-h-[336px] w-full flex-col overflow-y-auto overscroll-contain sm-top:max-h-[330px] lg:max-h-[410px] ">
88
- {(_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.map((item, key) => <DoumnetBox key={key} item={item}/>)}
89
- </div>
90
- </div>
91
- </ModalContainer>);
92
- };
93
- export default CaseExamineDocumentModal;
@@ -1,139 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import ModalContainer from './ModalCotainer';
4
- import { useMemo } from 'react';
5
- import close from '../../../../../../asset/images/myCase/icon/close.webp';
6
-
7
- import { useActionGetDocumentExamineHistory } from '../../../_actions/action';
8
- import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
9
- import dayjs from 'dayjs';
10
- import DocumentBadge from '../_badge/DocumentBadge';
11
- const DoumnetBox = ({ item }: { item: any }) => {
12
- return (
13
- <>
14
- {item?.lawyer_comment && (
15
- <div className="w-full border-b-[1px] border-solid border-grayScale5 py-[16px] sm-top:py-[20px] lg:py-[28px] ">
16
- <div className="flex w-full flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
17
- <Image
18
- src={chatIcon}
19
- alt="chatIcon"
20
- width={24}
21
- height={24}
22
- className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"
23
- />
24
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
25
- 변호사가 전하는 말씀
26
- </p>
27
- </div>
28
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
29
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
30
- {item.lawyer_comment}
31
- </p>
32
- </div>
33
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
34
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
35
- {item.rejected_at
36
- ? dayjs(item.rejected_at).format('YYYY-MM-DD HH:mm')
37
- : item.approved_at
38
- ? dayjs(item.approved_at).format('YYYY-MM-DD HH:mm')
39
- : null}
40
- </p>
41
- </div>
42
- </div>
43
- )}
44
- {item?.client_comment && (
45
- <div className="w-full border-b-[1px] border-solid border-grayScale5 pb-[16px] pt-[28px] sm-top:pb-[20px] sm-top:pt-[32px] lg:pt-[40px]">
46
- <div className="flex flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
47
- <Image
48
- src={chatIcon}
49
- alt="chatIcon"
50
- width={24}
51
- height={24}
52
- className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"
53
- />
54
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">나의 의견</p>
55
- </div>
56
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
57
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
58
- {item.client_comment}
59
- </p>
60
- </div>
61
- <div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
62
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
63
- {dayjs(item.created_at).format('YYYY-MM-DD HH:mm')}
64
- </p>
65
- </div>
66
- </div>
67
- )}
68
- </>
69
- );
70
- };
71
-
72
- const CaseExamineDocumentModal = ({
73
- isOpen,
74
- item,
75
- onClose,
76
- caseIdx
77
- }: {
78
- isOpen: boolean;
79
- onClose: () => void;
80
- item: any;
81
- caseIdx: string;
82
- }) => {
83
- const comment = useMemo(() => {
84
- // review_status 값에 따라 title을 결정
85
- switch (item?.review_status) {
86
- case 1:
87
- return { title: '승인을 완료했어요' };
88
- case 0:
89
- return { title: '승인이 필요해요' };
90
- case -1:
91
- return { title: '보완을 요청했어요' };
92
- default:
93
- return { title: '문서 상태 미확인' };
94
- }
95
- }, [item?.review_status]);
96
- const { data, isLoading, isFetched, isFetching, error } = useActionGetDocumentExamineHistory({
97
- caseIdx: caseIdx as string,
98
- idx: item.idx as number
99
- });
100
-
101
- return (
102
- <ModalContainer
103
- isOpen={isOpen}
104
- onClose={() => {
105
- onClose();
106
- }}
107
- >
108
- <div
109
- className="absolute flex max-h-[489px] w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:h-[549px] sm-top:max-h-[579px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:px-[52px] sm-top:py-[52px] lg:h-[649px] lg:max-h-[649px] lg:w-[calc(100%-24px)] lg:max-w-[1000px] lg:p-[52px] "
110
- onClick={e => e.stopPropagation()}
111
- >
112
- <div className="flex w-full flex-row items-baseline justify-between gap-[19px] border-b-[1px] border-solid border-grayScale5 pb-[28px] sm-top:pb-[32px] lg:pb-[40px] ">
113
- <div className="flex w-full flex-col gap-[12px] sm-top:gap-[16px] lg:gap-[20px]">
114
- <DocumentBadge review_status={item.review_status} />
115
- <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
116
- {comment?.title}
117
- {/* 길이 테스트용 더미 텍스트 */}
118
- </p>
119
- </div>
120
- <Image
121
- src={close}
122
- alt="close"
123
- width={24}
124
- height={24}
125
- className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
126
- onClick={() => {
127
- onClose();
128
- }}
129
- />
130
- </div>
131
- <div className="flex max-h-[336px] w-full flex-col overflow-y-auto overscroll-contain sm-top:max-h-[330px] lg:max-h-[410px] ">
132
- {data?.data?.map((item: any, key: number) => <DoumnetBox key={key} item={item} />)}
133
- </div>
134
- </div>
135
- </ModalContainer>
136
- );
137
- };
138
-
139
- export default CaseExamineDocumentModal;
@@ -1,10 +0,0 @@
1
- type CaseExamineModalProps = {
2
- openState: null | 'approve' | 'ask';
3
- onClose: () => void;
4
- item: {
5
- name?: string;
6
- } | any;
7
- id: string;
8
- };
9
- declare const CaseExamineModal: ({ openState, onClose, item, id }: CaseExamineModalProps) => import("react").JSX.Element;
10
- export default CaseExamineModal;