@daeryun/dr_components 1.1.57 → 1.1.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 (90) hide show
  1. package/dist/asset/images/myCase/fileViewer/download.webp +0 -0
  2. package/dist/asset/images/myCase/fileViewer/rotate_ccw.webp +0 -0
  3. package/dist/asset/images/myCase/fileViewer/zoom_in.webp +0 -0
  4. package/dist/asset/images/myCase/fileViewer/zoom_out.webp +0 -0
  5. package/dist/asset/images/myCase/icon/arrow.webp +0 -0
  6. package/dist/asset/images/myCase/icon/chat.webp +0 -0
  7. package/dist/asset/images/myCase/icon/check_ok.webp +0 -0
  8. package/dist/asset/images/myCase/icon/search.webp +0 -0
  9. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  10. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
  11. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
  12. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -1
  13. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +9 -3
  14. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +35 -14
  15. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +19 -7
  16. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +1 -1
  17. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +1 -1
  18. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.d.ts +4 -0
  19. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +13 -0
  20. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +18 -0
  21. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
  22. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +1 -1
  23. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +2 -1
  24. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +63 -21
  25. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +97 -17
  26. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +2 -1
  27. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +58 -13
  28. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +124 -25
  29. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +12 -7
  30. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +12 -7
  31. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +5 -0
  32. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +27 -0
  33. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +46 -0
  34. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +6 -0
  35. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +34 -0
  36. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +65 -0
  37. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +5 -0
  38. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +27 -0
  39. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +47 -0
  40. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +7 -0
  41. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +95 -0
  42. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +141 -0
  43. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +10 -0
  44. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +149 -0
  45. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +212 -0
  46. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +3 -4
  47. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +51 -34
  48. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +88 -59
  49. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.jsx +2 -2
  50. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +2 -2
  51. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.d.ts +6 -0
  52. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +154 -0
  53. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +177 -0
  54. package/dist/components/page/MyCase/_actions/action.d.ts +34 -0
  55. package/dist/components/page/MyCase/_actions/action.js +59 -0
  56. package/dist/components/page/MyCase/_actions/action.ts +79 -0
  57. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +2 -4
  58. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +2 -5
  59. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +2 -1
  60. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +14 -6
  61. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +34 -6
  62. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +14 -0
  63. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +278 -0
  64. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +411 -0
  65. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +8 -0
  66. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +56 -0
  67. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +111 -0
  68. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +3 -0
  69. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +10 -0
  70. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +10 -0
  71. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +8 -3
  72. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +3 -4
  73. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +7 -0
  74. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +34 -0
  75. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +36 -0
  76. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +5 -0
  77. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +33 -0
  78. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +25 -0
  79. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +5 -0
  80. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +33 -0
  81. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +25 -0
  82. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +4 -0
  83. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +33 -0
  84. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +25 -0
  85. package/dist/components/page/MyCase/_type/type.d.ts +3 -1
  86. package/dist/components/page/MyCase/_type/type.ts +3 -1
  87. package/dist/styles/globals.css +501 -94
  88. package/dist/styles/homepage_login.css +3 -3
  89. package/dist/tsconfig.tsbuildinfo +1 -1
  90. package/package.json +6 -2
@@ -11,6 +11,12 @@ import word from '../../../../../../asset/images/myCase/icon/word.webp';
11
11
  import xls from '../../../../../../asset/images/myCase/icon/xls.webp';
12
12
  import unkown from '../../../../../../asset/images/myCase/icon/defaultIcon.webp';
13
13
  import download from '../../../../../../asset/images/myCase/icon/download.webp';
14
+ import search from '../../../../../../asset/images/myCase/icon/search.webp';
15
+ import arrow_2 from '../../../../../../asset/images/myCase/icon/arrow.webp';
16
+ import DocumentBadge from '../_badge/DocumentBadge';
17
+ import FilePreViewer from '../../../_component/_fileView/FilePreViewer';
18
+ import CaseExamineModal from '../_modal/CaseExamineModal';
19
+ import CaseExamineDocumentModal from '../_modal/CaseExamineDocumentModal';
14
20
 
15
21
  const icon = {
16
22
  hwp: hwp,
@@ -37,9 +43,14 @@ const getIcon = (extension: string) => {
37
43
  }
38
44
  };
39
45
 
40
- const DocumentLine = ({ item, index }: { item: FileList; index: number }) => {
46
+ const DocumentLine = ({ item, index, id }: { item: FileList; index: number; id: string }) => {
41
47
  const [downloadUrl, setDownloadUrl] = useState<string | null>(null);
42
48
 
49
+ const [isPreviewOpen, setIsPreviewOpen] = useState(false);
50
+
51
+ const [isCaseExamineModalOpen, setIsCaseExamineModalOpen] = useState<null | 'approve' | 'ask'>(null);
52
+ const [isDocumentBadgeOpen, setIsDocumentBadgeOpen] = useState(false);
53
+
43
54
  useEffect(() => {
44
55
  const fetchBlob = async () => {
45
56
  try {
@@ -59,34 +70,122 @@ const DocumentLine = ({ item, index }: { item: FileList; index: number }) => {
59
70
  return (
60
71
  <div
61
72
  key={index}
62
- className="flex flex-row items-center border-b-[2px] border-solid border-grayScale6 py-[16px] pb-[20px]"
73
+ className="flex flex-col rounded-[12px] border border-solid border-grayScale6 px-[20px] py-[20px] sm-top:px-[28px] sm-top:py-[32px] lg:px-[40px] lg:py-[40px]"
63
74
  >
64
- <Image
65
- src={getIcon(item.name.split('.').pop() as string)}
66
- alt="image"
67
- width={39}
68
- height={48}
69
- unoptimized
70
- className="ml-[5.08px] mr-[12.22px] h-[32.86px] w-[26.7px] flex-shrink-0 sm-top:ml-0 sm-top:mr-[29.6px] sm-top:h-[43.81px] sm-top:w-[35.5px] lg:mr-[32px] lg:h-[48px] lg:w-[39px] "
71
- />
72
- <div className="mr-[10px] flex flex-grow flex-col overflow-hidden">
73
- <p className="body_medium1_mo sm-top:body_medium2_tb lg:body_medium2 line-clamp-1 w-full text-black">
74
- {item.name}
75
- </p>
76
- <p className="body_small1_mo sm-top:body_small2_tb lg:body_small2 mt-[4px] text-grayScale2 sm-top:mt-[8px]">
77
- {dayjs(item.created_at).format('YYYY.MM.DD HH:mm')} - {Math.round(Number(item.size) / 1024)}MB
78
- </p>
75
+ {item.review_status !== null && item.review_status !== undefined && (
76
+ <div className="mb-[12px] sm-top:mb-[16px] lg:mb-[20px]">
77
+ <DocumentBadge review_status={item.review_status} />
78
+ </div>
79
+ )}
80
+ <div className=" flex flex-row items-center">
81
+ <Image
82
+ src={getIcon(item.name.split('.').pop() as string)}
83
+ alt="image"
84
+ width={39}
85
+ height={48}
86
+ unoptimized
87
+ className=" ml-[4.57px] mr-[4px] h-[37px] w-[32px] flex-shrink-0 sm-top:ml-[6.4px] sm-top:mr-[24.96px] sm-top:h-[41.41px] sm-top:w-[33.64px] lg:ml-[7.38px] lg:mr-[32px] lg:h-[47.69px] lg:w-[38.74px] "
88
+ />
89
+ <div className="mr-[8px] flex flex-grow flex-col overflow-hidden">
90
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_medium2 line-clamp-1 w-full break-all text-black">
91
+ {item.name}
92
+ </p>
93
+ <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 mt-[6px] text-grayScale3 sm-top:mt-[8px]">
94
+ {dayjs(item.created_at).format('YYYY.MM.DD')} | 용량 {Math.round(Number(item.size))}KB
95
+ </p>
96
+ </div>
97
+
98
+ <div className="flex flex-shrink-0 flex-row items-center gap-[16px] sm-top:gap-[24px] lg:gap-[28px]">
99
+ {isPreviewOpen && downloadUrl && (
100
+ <FilePreViewer
101
+ fileUrl={item.path}
102
+ fileName={item.name}
103
+ fileIdx={item.idx}
104
+ // convertedPath={doc.converted_path}
105
+ onClose={() => setIsPreviewOpen(false)}
106
+ // fn={() => handleFileDownload(doc)}
107
+ />
108
+ )}
109
+ {downloadUrl && (
110
+ <button onClick={() => setIsPreviewOpen(true)}>
111
+ <Image
112
+ src={search}
113
+ alt="image"
114
+ width={28}
115
+ height={28}
116
+ className="h-[20px] w-[20px] flex-shrink-0 sm-top:h-[24px] sm-top:w-[24px] lg:h-[28px] lg:w-[28px] "
117
+ />
118
+ </button>
119
+ )}
120
+
121
+ {downloadUrl && (
122
+ <a href={downloadUrl} download={item.name} className="flex-shrink-0">
123
+ <Image
124
+ src={download}
125
+ alt="image"
126
+ width={28}
127
+ height={28}
128
+ className="h-[20px] w-[20px] flex-shrink-0 sm-top:h-[24px] sm-top:w-[24px] lg:h-[28px] lg:w-[28px] "
129
+ />
130
+ </a>
131
+ )}
132
+ </div>
79
133
  </div>
80
- {downloadUrl && (
81
- <a href={downloadUrl} download={item.name} className="flex-shrink-0">
134
+
135
+ {item.review_status !== null && item.review_status !== undefined && (
136
+ <button
137
+ className={`mt-[8px] flex w-fit flex-row items-center gap-[6px] sm-top:gap-[10px] lg:mt-[10px] lg:gap-[12px]`}
138
+ onClick={() => setIsDocumentBadgeOpen(true)}
139
+ >
140
+ <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 leading-[18px] text-grayScale2 sm-top:leading-[23px] lg:leading-[25px]">
141
+ 문서 검토 내역
142
+ </p>
82
143
  <Image
83
- src={download}
84
- alt="image"
85
- width={28}
86
- height={28}
87
- className="h-[20px] w-[20px] flex-shrink-0 sm-top:h-[24px] sm-top:w-[24px] lg:h-[28px] lg:w-[28px] "
144
+ src={arrow_2}
145
+ alt="arrow_2"
146
+ width={24}
147
+ height={24}
148
+ className="h-[10px] w-[6px] flex-shrink-0 sm-top:h-[13.33px] sm-top:w-[8px] lg:h-[16.67px] lg:w-[10px]"
88
149
  />
89
- </a>
150
+ </button>
151
+ )}
152
+ {item.review_status === 0 && (
153
+ <div
154
+ className={`mt-[20px] flex w-full flex-row items-center gap-[4px] sm-top:mt-[24px] sm-top:gap-[8px] lg:mt-[32px] lg:gap-[22px] `}
155
+ >
156
+ <button
157
+ onClick={() => setIsCaseExamineModalOpen('ask')}
158
+ className="flex h-[40px] flex-1 flex-row items-center justify-center rounded-[4px] bg-grayScale2 sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px]"
159
+ >
160
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-center text-grayScale8">
161
+ 보완요청
162
+ </p>
163
+ </button>
164
+ <button
165
+ onClick={() => setIsCaseExamineModalOpen('approve')}
166
+ className="flex h-[40px] flex-1 flex-row items-center justify-center rounded-[4px] bg-mycaseMainColor sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px]"
167
+ >
168
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-center text-grayScale8">
169
+ 승인
170
+ </p>
171
+ </button>
172
+ </div>
173
+ )}
174
+ {isCaseExamineModalOpen && (
175
+ <CaseExamineModal
176
+ openState={isCaseExamineModalOpen}
177
+ onClose={() => setIsCaseExamineModalOpen(null)}
178
+ item={item}
179
+ id={id}
180
+ />
181
+ )}
182
+ {isDocumentBadgeOpen && (
183
+ <CaseExamineDocumentModal
184
+ isOpen={isDocumentBadgeOpen}
185
+ item={item}
186
+ onClose={() => setIsDocumentBadgeOpen(false)}
187
+ caseIdx={id}
188
+ />
90
189
  )}
91
190
  </div>
92
191
  );
@@ -8,17 +8,22 @@ const FileDropZone = ({ id, refetch }) => {
8
8
  const [isOpen, setIsOpen] = useState(false);
9
9
  const saved = localStorage.getItem('isFileUploadModalCheck');
10
10
  const { getRootProps, getInputProps, isSuccess, setIsSuccess } = FileUpload({ id, refetch });
11
- return (<div className="mb-[80px] mt-[60px] flex w-full items-end justify-end">
11
+ return (<div className=" mt-[20px] flex w-full items-end justify-end sm-top:mt-[22px] lg:mt-[22px]">
12
12
  {/* saved가 true일 때만 Dropzone 적용 */}
13
13
  {saved ? (<div {...getRootProps()}>
14
14
  <input {...getInputProps()}/>
15
- <button className="flex h-[48px] items-center justify-center gap-[16px] rounded-[24px] bg-mycaseMainColor px-[16px] sm-top:h-[60px] sm-top:gap-[28px] sm-top:rounded-[36px] sm-top:px-[26px] lg:gap-[24px] lg:px-[36px]">
16
- <Image src={upload} alt="file_upload" width={48} height={48} className="h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "/>
17
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
15
+ <button className="flex h-[31px] items-center justify-center gap-[8px] rounded-[6px] bg-mycaseMainColor px-[12px] sm-top:h-[42px] sm-top:gap-[10px] sm-top:rounded-[8px] sm-top:px-[16px] lg:h-[51px] lg:gap-[12px] lg:px-[20px]">
16
+ <Image src={upload} alt="file_upload" width={48} height={48} className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "/>
17
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 leading-[23px] text-white sm-top:leading-[30px] lg:leading-[35px]">
18
+ 파일 제출
19
+ </p>
18
20
  </button>
19
- </div>) : (<button className="flex h-[48px] items-center justify-center gap-[16px] rounded-[24px] bg-mycaseMainColor px-[16px] sm-top:h-[60px] sm-top:gap-[28px] sm-top:rounded-[36px] sm-top:px-[26px] lg:gap-[24px] lg:px-[36px]" onClick={() => setIsOpen(true)}>
20
- <Image src={upload} alt="file_upload" width={48} height={48} className="h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "/>
21
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
21
+ </div>) : (<button className="flex h-[31px] items-center justify-center gap-[8px] rounded-[6px] bg-mycaseMainColor px-[12px] sm-top:h-[42px] sm-top:gap-[10px] sm-top:rounded-[8px] sm-top:px-[16px] lg:h-[51px] lg:gap-[12px] lg:px-[20px]" onClick={() => setIsOpen(true)}>
22
+ <Image src={upload} alt="file_upload" width={48} height={48} className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "/>
23
+
24
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 leading-[23px] text-white sm-top:leading-[30px] lg:leading-[35px]">
25
+ 파일 제출
26
+ </p>
22
27
  </button>)}
23
28
 
24
29
  {/* 모달 */}
@@ -12,25 +12,27 @@ const FileDropZone = ({ id, refetch }: { id: string; refetch: () => void }) => {
12
12
  const { getRootProps, getInputProps, isSuccess, setIsSuccess } = FileUpload({ id, refetch });
13
13
 
14
14
  return (
15
- <div className="mb-[80px] mt-[60px] flex w-full items-end justify-end">
15
+ <div className=" mt-[20px] flex w-full items-end justify-end sm-top:mt-[22px] lg:mt-[22px]">
16
16
  {/* saved가 true일 때만 Dropzone 적용 */}
17
17
  {saved ? (
18
18
  <div {...getRootProps()}>
19
19
  <input {...getInputProps()} />
20
- <button className="flex h-[48px] items-center justify-center gap-[16px] rounded-[24px] bg-mycaseMainColor px-[16px] sm-top:h-[60px] sm-top:gap-[28px] sm-top:rounded-[36px] sm-top:px-[26px] lg:gap-[24px] lg:px-[36px]">
20
+ <button className="flex h-[31px] items-center justify-center gap-[8px] rounded-[6px] bg-mycaseMainColor px-[12px] sm-top:h-[42px] sm-top:gap-[10px] sm-top:rounded-[8px] sm-top:px-[16px] lg:h-[51px] lg:gap-[12px] lg:px-[20px]">
21
21
  <Image
22
22
  src={upload}
23
23
  alt="file_upload"
24
24
  width={48}
25
25
  height={48}
26
- className="h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
26
+ className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
27
27
  />
28
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
28
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 leading-[23px] text-white sm-top:leading-[30px] lg:leading-[35px]">
29
+ 파일 제출
30
+ </p>
29
31
  </button>
30
32
  </div>
31
33
  ) : (
32
34
  <button
33
- className="flex h-[48px] items-center justify-center gap-[16px] rounded-[24px] bg-mycaseMainColor px-[16px] sm-top:h-[60px] sm-top:gap-[28px] sm-top:rounded-[36px] sm-top:px-[26px] lg:gap-[24px] lg:px-[36px]"
35
+ className="flex h-[31px] items-center justify-center gap-[8px] rounded-[6px] bg-mycaseMainColor px-[12px] sm-top:h-[42px] sm-top:gap-[10px] sm-top:rounded-[8px] sm-top:px-[16px] lg:h-[51px] lg:gap-[12px] lg:px-[20px]"
34
36
  onClick={() => setIsOpen(true)}
35
37
  >
36
38
  <Image
@@ -38,9 +40,12 @@ const FileDropZone = ({ id, refetch }: { id: string; refetch: () => void }) => {
38
40
  alt="file_upload"
39
41
  width={48}
40
42
  height={48}
41
- className="h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
43
+ className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
42
44
  />
43
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
45
+
46
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 leading-[23px] text-white sm-top:leading-[30px] lg:leading-[35px]">
47
+ 파일 제출
48
+ </p>
44
49
  </button>
45
50
  )}
46
51
 
@@ -0,0 +1,5 @@
1
+ declare const CaeeExamineAskSuccessModal: ({ isOpen, onClose }: {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ }) => import("react").JSX.Element;
5
+ export default CaeeExamineAskSuccessModal;
@@ -0,0 +1,27 @@
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;
@@ -0,0 +1,46 @@
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;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,34 @@
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;
@@ -0,0 +1,65 @@
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;
@@ -0,0 +1,5 @@
1
+ declare const CaeeExamineSuccessModal: ({ isOpen, onClose }: {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ }) => import("react").JSX.Element;
5
+ export default CaeeExamineSuccessModal;
@@ -0,0 +1,27 @@
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;
@@ -0,0 +1,47 @@
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;
@@ -0,0 +1,7 @@
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;