@daeryun/dr_components 1.1.61 → 1.1.63

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 (83) hide show
  1. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  2. package/dist/components/index.js +31 -1
  3. package/dist/components/index.ts +31 -1
  4. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
  5. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
  6. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -1
  7. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +3 -9
  8. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +14 -35
  9. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -19
  10. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +1 -1
  11. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +1 -1
  12. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
  13. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +1 -1
  14. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +1 -2
  15. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +21 -63
  16. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +17 -97
  17. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +1 -2
  18. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +13 -58
  19. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +25 -124
  20. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +7 -12
  21. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +7 -12
  22. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +4 -3
  23. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +34 -51
  24. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +59 -88
  25. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.jsx +2 -2
  26. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +2 -2
  27. package/dist/components/page/MyCase/_actions/action.d.ts +0 -34
  28. package/dist/components/page/MyCase/_actions/action.js +0 -59
  29. package/dist/components/page/MyCase/_actions/action.ts +0 -79
  30. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +4 -2
  31. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +5 -2
  32. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +1 -2
  33. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +6 -14
  34. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +6 -34
  35. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +3 -8
  36. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +4 -3
  37. package/dist/components/page/MyCase/_type/type.d.ts +1 -3
  38. package/dist/components/page/MyCase/_type/type.ts +1 -3
  39. package/dist/styles/globals.css +93 -520
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +1 -1
  42. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.d.ts +0 -4
  43. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +0 -13
  44. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +0 -18
  45. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +0 -5
  46. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +0 -27
  47. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +0 -46
  48. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +0 -6
  49. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +0 -34
  50. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +0 -65
  51. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +0 -5
  52. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +0 -27
  53. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +0 -47
  54. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +0 -7
  55. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +0 -93
  56. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +0 -139
  57. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +0 -10
  58. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +0 -149
  59. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +0 -212
  60. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.d.ts +0 -6
  61. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +0 -154
  62. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +0 -177
  63. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +0 -14
  64. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +0 -278
  65. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +0 -411
  66. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +0 -8
  67. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +0 -56
  68. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +0 -111
  69. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +0 -3
  70. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +0 -10
  71. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +0 -10
  72. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +0 -7
  73. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +0 -34
  74. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +0 -36
  75. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +0 -5
  76. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +0 -33
  77. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +0 -25
  78. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +0 -5
  79. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +0 -33
  80. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +0 -25
  81. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +0 -4
  82. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +0 -33
  83. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +0 -25
@@ -11,12 +11,6 @@ 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';
20
14
 
21
15
  const icon = {
22
16
  hwp: hwp,
@@ -43,14 +37,9 @@ const getIcon = (extension: string) => {
43
37
  }
44
38
  };
45
39
 
46
- const DocumentLine = ({ item, index, id }: { item: FileList; index: number; id: string }) => {
40
+ const DocumentLine = ({ item, index }: { item: FileList; index: number }) => {
47
41
  const [downloadUrl, setDownloadUrl] = useState<string | null>(null);
48
42
 
49
- const [isPreviewOpen, setIsPreviewOpen] = useState(false);
50
-
51
- const [isCaseExamineModalOpen, setIsCaseExamineModalOpen] = useState<null | 'approve' | 'ask'>(null);
52
- const [isDocumentBadgeOpen, setIsDocumentBadgeOpen] = useState(false);
53
-
54
43
  useEffect(() => {
55
44
  const fetchBlob = async () => {
56
45
  try {
@@ -70,122 +59,34 @@ const DocumentLine = ({ item, index, id }: { item: FileList; index: number; id:
70
59
  return (
71
60
  <div
72
61
  key={index}
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]"
62
+ className="flex flex-row items-center border-b-[2px] border-solid border-grayScale6 py-[16px] pb-[20px]"
74
63
  >
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>
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>
133
79
  </div>
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>
80
+ {downloadUrl && (
81
+ <a href={downloadUrl} download={item.name} className="flex-shrink-0">
143
82
  <Image
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]"
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] "
149
88
  />
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
- />
89
+ </a>
189
90
  )}
190
91
  </div>
191
92
  );
@@ -8,22 +8,17 @@ 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=" mt-[20px] flex w-full items-end justify-end sm-top:mt-[22px] lg:mt-[22px]">
11
+ return (<div className="mb-[80px] mt-[60px] flex w-full items-end justify-end">
12
12
  {/* saved가 true일 때만 Dropzone 적용 */}
13
13
  {saved ? (<div {...getRootProps()}>
14
14
  <input {...getInputProps()}/>
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>
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>
20
18
  </button>
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>
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>
27
22
  </button>)}
28
23
 
29
24
  {/* 모달 */}
@@ -12,27 +12,25 @@ 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=" mt-[20px] flex w-full items-end justify-end sm-top:mt-[22px] lg:mt-[22px]">
15
+ <div className="mb-[80px] mt-[60px] flex w-full items-end justify-end">
16
16
  {/* saved가 true일 때만 Dropzone 적용 */}
17
17
  {saved ? (
18
18
  <div {...getRootProps()}>
19
19
  <input {...getInputProps()} />
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]">
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]">
21
21
  <Image
22
22
  src={upload}
23
23
  alt="file_upload"
24
24
  width={48}
25
25
  height={48}
26
- className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
26
+ className="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 leading-[23px] text-white sm-top:leading-[30px] lg:leading-[35px]">
29
- 파일 제출
30
- </p>
28
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
31
29
  </button>
32
30
  </div>
33
31
  ) : (
34
32
  <button
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]"
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]"
36
34
  onClick={() => setIsOpen(true)}
37
35
  >
38
36
  <Image
@@ -40,12 +38,9 @@ const FileDropZone = ({ id, refetch }: { id: string; refetch: () => void }) => {
40
38
  alt="file_upload"
41
39
  width={48}
42
40
  height={48}
43
- className="block h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
41
+ className="h-[16px] w-[16px] sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px] "
44
42
  />
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>
43
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">파일 제출</p>
49
44
  </button>
50
45
  )}
51
46
 
@@ -1,6 +1,7 @@
1
- import type { ContractImage } from '../../../_type/type';
2
- export default function ContractModal({ isOpen, onClose, data }: {
1
+ import { ContractImage } from '../../../_type/type';
2
+ declare const ContractModal: ({ isOpen, onClose, data }: {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
5
  data: ContractImage[];
6
- }): import("react").JSX.Element;
6
+ }) => import("react").JSX.Element;
7
+ export default ContractModal;
@@ -1,56 +1,39 @@
1
- 'use client';
2
1
  import Image from 'next/image';
3
2
  import ModalContainer from './ModalCotainer';
3
+ import { useState } from 'react';
4
4
  import close from '../../../../../../asset/images/myCase/icon/close.webp';
5
- import PdfInlineViewer from '../_pdf/PdfInlineViewer';
6
- // pdfjs로 전체 펼쳐 렌더
7
- const getExt = (name) => ((name === null || name === void 0 ? void 0 : name.split('.').pop()) || '').toLowerCase();
8
- const isPdf = (name) => getExt(name) === 'pdf';
9
- const isHwp = (name) => {
10
- const ext = getExt(name);
11
- return ext === 'hwp' || ext === 'hwpx';
12
- };
13
- export default function ContractModal({ isOpen, onClose, data }) {
14
- return (<ModalContainer isOpen={isOpen} onClose={onClose}>
15
- {/* 모달 전체가 스크롤(콘텐츠 섹션엔 고정 height/overflow 넣지 않음) */}
16
- <div className="absolute flex h-full w-full flex-col overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 pb-[32px]
17
- sm-top:rounded-[32px] sm-top:pb-[52px]
18
- lg:h-full lg:max-h-[800px] lg:w-full lg:max-w-[1000px]" onClick={e => e.stopPropagation()}>
19
- <div className="sticky top-0 z-10 flex flex-row items-center justify-between bg-grayScale8/95 px-[32px] pb-[8px] pt-[40px] backdrop-blur sm-top:px-[52px] sm-top:pt-[40px]">
20
- <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">내 약정서</p>
21
- <Image src={close} alt="close" width={24} height={24} onClick={onClose} className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"/>
22
- </div>
23
-
24
- <div className="mx-auto mt-[12px] w-full max-w-[calc(100%-64px)] rounded-[8px] border border-solid border-grayScale1 p-0 sm-top:mt-[20px] sm-top:max-w-[calc(100%-104px)]">
25
- <div className="space-y-6 p-3">
26
- {data === null || data === void 0 ? void 0 : data.map((item, index) => {
27
- var _a;
28
- const key = `${item.path}-${index}`;
29
- if (isPdf(item.name)) {
30
- // ✅ PDF: 페이지가 캔버스로 “쭉 펼쳐짐”
31
- return <PdfInlineViewer key={key} url={item.path} name={item.name}/>;
32
- }
33
- if (isHwp(item.name)) {
34
- return (<div key={key} className="w-full overflow-hidden rounded-lg border border-dashed border-gray-300">
35
- <div className="flex items-center justify-between px-3 py-2 text-sm">
36
- <span className="truncate">{item.name}</span>
37
- <a href={item.path} download className="underline">
38
- 다운로드
39
- </a>
40
- </div>
41
- <div className="px-3 pb-4 text-sm text-gray-600">
42
- 이 형식(HWP/HWXP)은 웹 미리보기를 지원하지 않습니다. PDF/이미지 변환 또는
43
- 한컴 웹 뷰어가 필요합니다.
44
- </div>
45
- </div>);
46
- }
47
- // 이미지 그대로
48
- return (<div key={key} className="w-full overflow-hidden rounded-lg">
49
- <Image src={item.path} alt={(_a = item.name) !== null && _a !== void 0 ? _a : 'image'} width={3000} height={3000} unoptimized className="block h-auto w-full"/>
50
- </div>);
51
- })}
5
+ const ContractModal = ({ isOpen, onClose, data }) => {
6
+ // const [value, setValue] = useState('');
7
+ // const [isCheck, setIsCheck] = useState(false);
8
+ const [isOpenConfirm, setIsOpenConfirm] = useState(false);
9
+ // const { mutateAsync, isLoading } = actionPostMyCaseQuestion(id, value);
10
+ // console.log(isLoading);
11
+ return (<>
12
+ <ModalContainer isOpen={isOpen} onClose={() => {
13
+ onClose();
14
+ }}>
15
+ <div className="absolute flex h-full w-full flex-col overflow-y-hidden rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:rounded-[32px] sm-top:p-[52px] lg:h-full lg:max-h-[800px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
16
+ <div className="flex flex-row items-center justify-between">
17
+ <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">내 약정서</p>
18
+ <Image src={close} alt="close" width={24} height={24} onClick={() => {
19
+ onClose();
20
+ }} className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"/>
52
21
  </div>
53
- </div>
22
+ <div className="mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] lg:h-[calc(100%-62px)]">
23
+ {data === null || data === void 0 ? void 0 : data.map((item, index) => (<div key={index}>
24
+ <Image src={item.path} alt={item.name} width={3000} height={3000} unoptimized className="h-auto w-full"/>
25
+ </div>))}
26
+ </div>
27
+
28
+ {/* {isLoading ? (
29
+ <div className="absolute top-[0] flex h-full w-full items-center justify-center">
30
+ <Loading />
54
31
  </div>
55
- </ModalContainer>);
56
- }
32
+ ) : (
33
+ <></>
34
+ )} */}
35
+ </div>
36
+ </ModalContainer>
37
+ </>);
38
+ };
39
+ export default ContractModal;
@@ -1,98 +1,69 @@
1
- 'use client';
2
-
3
1
  import Image from 'next/image';
4
-
5
2
  import ModalContainer from './ModalCotainer';
6
- import close from '../../../../../../asset/images/myCase/icon/close.webp';
7
- import type { ContractImage } from '../../../_type/type';
8
- import PdfInlineViewer from '../_pdf/PdfInlineViewer';
9
3
 
10
- // pdfjs로 전체 펼쳐 렌더
4
+ import { useState } from 'react';
11
5
 
12
- const getExt = (name?: string) => (name?.split('.').pop() || '').toLowerCase();
13
- const isPdf = (name?: string) => getExt(name) === 'pdf';
14
- const isHwp = (name?: string) => {
15
- const ext = getExt(name);
16
- return ext === 'hwp' || ext === 'hwpx';
17
- };
6
+ import close from '../../../../../../asset/images/myCase/icon/close.webp';
7
+ import { ContractImage } from '../../../_type/type';
8
+
9
+ const ContractModal = ({ isOpen, onClose, data }: { isOpen: boolean; onClose: () => void; data: ContractImage[] }) => {
10
+ // const [value, setValue] = useState('');
11
+ // const [isCheck, setIsCheck] = useState(false);
12
+ const [isOpenConfirm, setIsOpenConfirm] = useState(false);
18
13
 
19
- export default function ContractModal({
20
- isOpen,
21
- onClose,
22
- data
23
- }: {
24
- isOpen: boolean;
25
- onClose: () => void;
26
- data: ContractImage[];
27
- }) {
14
+ // const { mutateAsync, isLoading } = actionPostMyCaseQuestion(id, value);
15
+ // console.log(isLoading);
28
16
  return (
29
- <ModalContainer isOpen={isOpen} onClose={onClose}>
30
- {/* 모달 전체가 스크롤(콘텐츠 섹션엔 고정 height/overflow 넣지 않음) */}
31
- <div
32
- className="absolute flex h-full w-full flex-col overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 pb-[32px]
33
- sm-top:rounded-[32px] sm-top:pb-[52px]
34
- lg:h-full lg:max-h-[800px] lg:w-full lg:max-w-[1000px]"
35
- onClick={e => e.stopPropagation()}
17
+ <>
18
+ <ModalContainer
19
+ isOpen={isOpen}
20
+ onClose={() => {
21
+ onClose();
22
+ }}
36
23
  >
37
- <div className="sticky top-0 z-10 flex flex-row items-center justify-between bg-grayScale8/95 px-[32px] pb-[8px] pt-[40px] backdrop-blur sm-top:px-[52px] sm-top:pt-[40px]">
38
- <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">내 약정서</p>
39
- <Image
40
- src={close}
41
- alt="close"
42
- width={24}
43
- height={24}
44
- onClick={onClose}
45
- className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
46
- />
47
- </div>
48
-
49
- <div className="mx-auto mt-[12px] w-full max-w-[calc(100%-64px)] rounded-[8px] border border-solid border-grayScale1 p-0 sm-top:mt-[20px] sm-top:max-w-[calc(100%-104px)]">
50
- <div className="space-y-6 p-3">
51
- {data?.map((item, index) => {
52
- const key = `${item.path}-${index}`;
53
-
54
- if (isPdf(item.name)) {
55
- // ✅ PDF: 페이지가 캔버스로 “쭉 펼쳐짐”
56
- return <PdfInlineViewer key={key} url={item.path} name={item.name} />;
57
- }
58
-
59
- if (isHwp(item.name)) {
60
- return (
61
- <div
62
- key={key}
63
- className="w-full overflow-hidden rounded-lg border border-dashed border-gray-300"
64
- >
65
- <div className="flex items-center justify-between px-3 py-2 text-sm">
66
- <span className="truncate">{item.name}</span>
67
- <a href={item.path} download className="underline">
68
- 다운로드
69
- </a>
70
- </div>
71
- <div className="px-3 pb-4 text-sm text-gray-600">
72
- 이 형식(HWP/HWXP)은 웹 미리보기를 지원하지 않습니다. PDF/이미지 변환 또는
73
- 한컴 웹 뷰어가 필요합니다.
74
- </div>
75
- </div>
76
- );
77
- }
78
-
79
- // 이미지 그대로
80
- return (
81
- <div key={key} className="w-full overflow-hidden rounded-lg">
82
- <Image
83
- src={item.path}
84
- alt={item.name ?? 'image'}
85
- width={3000}
86
- height={3000}
87
- unoptimized
88
- className="block h-auto w-full"
89
- />
90
- </div>
91
- );
92
- })}
24
+ <div
25
+ className="absolute flex h-full w-full flex-col overflow-y-hidden rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:rounded-[32px] sm-top:p-[52px] lg:h-full lg:max-h-[800px] lg:w-full lg:max-w-[1000px] "
26
+ onClick={e => e.stopPropagation()}
27
+ >
28
+ <div className="flex flex-row items-center justify-between">
29
+ <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">내 약정서</p>
30
+ <Image
31
+ src={close}
32
+ alt="close"
33
+ width={24}
34
+ height={24}
35
+ onClick={() => {
36
+ onClose();
37
+ }}
38
+ className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
39
+ />
40
+ </div>
41
+ <div className="mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] lg:h-[calc(100%-62px)]">
42
+ {data?.map((item, index) => (
43
+ <div key={index}>
44
+ <Image
45
+ src={item.path}
46
+ alt={item.name}
47
+ width={3000}
48
+ height={3000}
49
+ unoptimized
50
+ className="h-auto w-full"
51
+ />
52
+ </div>
53
+ ))}
93
54
  </div>
55
+
56
+ {/* {isLoading ? (
57
+ <div className="absolute top-[0] flex h-full w-full items-center justify-center">
58
+ <Loading />
59
+ </div>
60
+ ) : (
61
+ <></>
62
+ )} */}
94
63
  </div>
95
- </div>
96
- </ModalContainer>
64
+ </ModalContainer>
65
+ </>
97
66
  );
98
- }
67
+ };
68
+
69
+ export default ContractModal;
@@ -1,6 +1,6 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
3
+ import modalCheck from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
4
4
  const CaseInquiryConfirmModal = ({ isOpen, onClose }) => {
5
5
  // console.log(isLoading);
6
6
  return (<ModalContainer isOpen={isOpen} onClose={() => {
@@ -9,7 +9,7 @@ const CaseInquiryConfirmModal = ({ isOpen, onClose }) => {
9
9
  <div className="absolute flex w-[calc(100%-40px)] 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
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
11
  <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[20.11px] sm-top:mt-[48px] lg:mt-[60px]">
12
- 문서 제출이 완료되었습니다.
12
+ 파일 제출이 완료되었습니다.
13
13
  </p>
14
14
 
15
15
  <button className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[53px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[73px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
@@ -1,6 +1,6 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
3
+ import modalCheck from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
4
4
 
5
5
  const CaseInquiryConfirmModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
6
6
  // console.log(isLoading);
@@ -23,7 +23,7 @@ const CaseInquiryConfirmModal = ({ isOpen, onClose }: { isOpen: boolean; onClose
23
23
  className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
24
24
  />
25
25
  <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[20.11px] sm-top:mt-[48px] lg:mt-[60px]">
26
- 문서 제출이 완료되었습니다.
26
+ 파일 제출이 완료되었습니다.
27
27
  </p>
28
28
 
29
29
  <button
@@ -30,23 +30,6 @@ export declare const useActionGetMyCaseQuestion: (id: string, page: number, page
30
30
  isLoading: boolean;
31
31
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<Question[]>, Error>>;
32
32
  };
33
- export declare const useActionGetDaeryunFileList: (id: string, jwt?: string, enabled?: boolean) => {
34
- data: FetchType<FileList[]> | undefined;
35
- isLoading: boolean;
36
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<FileList[]>, Error>>;
37
- };
38
- export declare const useActionPostCaseExamine: () => {
39
- mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
40
- result: boolean;
41
- data: any;
42
- }, unknown, {
43
- caseIdx: string;
44
- comment: string;
45
- idx: string;
46
- isApproved: boolean;
47
- }, unknown>;
48
- isLoading: boolean;
49
- };
50
33
  export declare const useActionPostMyCaseQuestion: (id: string, content: string, jwt?: string) => {
51
34
  mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FetchType<Question[]>, Error, void, unknown>;
52
35
  isLoading: boolean;
@@ -70,20 +53,3 @@ export type UploadResponse = {
70
53
  export declare const useActionPostMyFileUpload: (id: string) => {
71
54
  mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<UploadResponse, unknown, File[], unknown>;
72
55
  };
73
- export declare const useActionGetDocumentExamineHistory: ({ caseIdx, idx }: {
74
- caseIdx: string;
75
- idx: number;
76
- }) => {
77
- data: any;
78
- isLoading: boolean;
79
- isFetched: boolean;
80
- isFetching: boolean;
81
- error: Error | null;
82
- };
83
- export declare const useActionViewHwpToPdf: (key: number) => {
84
- data: any;
85
- isLoading: boolean;
86
- isFetched: boolean;
87
- isFetching: boolean;
88
- error: Error | null;
89
- };