@daeryun/dr_components 0.3.2 → 0.3.4

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 (133) hide show
  1. package/dist/asset/images/myCase/icon/check_box.webp +0 -0
  2. package/dist/asset/images/myCase/icon/check_box_gray.webp +0 -0
  3. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  4. package/dist/components/banner/TopBanner.stories.jsx +8 -4
  5. package/dist/components/banner/TopBanner.stories.tsx +8 -4
  6. package/dist/components/page/MyCase/MyCasePage.d.ts +5 -0
  7. package/dist/components/page/MyCase/MyCasePage.jsx +21 -0
  8. package/dist/components/page/MyCase/MyCasePage.tsx +33 -0
  9. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +5 -0
  10. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +78 -0
  11. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +150 -0
  12. package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +2 -0
  13. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +89 -0
  14. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +115 -0
  15. package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +6 -0
  16. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
  17. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +93 -0
  18. package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +6 -0
  19. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
  20. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +73 -0
  21. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +11 -0
  22. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
  23. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +187 -0
  24. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +6 -0
  25. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +31 -0
  26. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +53 -0
  27. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +6 -0
  28. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +44 -0
  29. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +61 -0
  30. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +7 -0
  31. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
  32. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
  33. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +7 -0
  34. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +24 -0
  35. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +57 -0
  36. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +5 -0
  37. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +37 -0
  38. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +59 -0
  39. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +7 -0
  40. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
  41. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
  42. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +7 -0
  43. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
  44. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
  45. package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
  46. package/dist/components/page/MyCase/_actions/action.js +143 -0
  47. package/dist/components/page/MyCase/_actions/action.ts +165 -0
  48. package/dist/components/page/MyCase/_component/CaseContainer.d.ts +4 -0
  49. package/dist/components/page/MyCase/_component/CaseContainer.jsx +195 -0
  50. package/dist/components/page/MyCase/_component/CaseContainer.tsx +245 -0
  51. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenu.d.ts +8 -0
  52. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenu.jsx +43 -0
  53. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenu.tsx +73 -0
  54. package/dist/components/page/MyCase/_component/_button/Badge.d.ts +14 -0
  55. package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
  56. package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
  57. package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +7 -0
  58. package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
  59. package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
  60. package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +7 -0
  61. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
  62. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
  63. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +6 -0
  64. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
  65. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +86 -0
  66. package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +7 -0
  67. package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
  68. package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
  69. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
  70. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
  71. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
  72. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +4 -0
  73. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
  74. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
  75. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.d.ts +9 -0
  76. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +30 -0
  77. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +71 -0
  78. package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +2 -0
  79. package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
  80. package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
  81. package/dist/components/page/MyCase/_component/_pagination/PaginationComponent.d.ts +10 -0
  82. package/dist/components/page/MyCase/_component/_pagination/PaginationComponent.jsx +80 -0
  83. package/dist/components/page/MyCase/_component/_pagination/PaginationComponent.tsx +133 -0
  84. package/dist/components/page/MyCase/_component/_table/CaseLine.d.ts +5 -0
  85. package/dist/components/page/MyCase/_component/_table/CaseLine.jsx +66 -0
  86. package/dist/components/page/MyCase/_component/_table/CaseLine.tsx +139 -0
  87. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
  88. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
  89. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
  90. package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +9 -0
  91. package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +62 -0
  92. package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +93 -0
  93. package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +9 -0
  94. package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
  95. package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
  96. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +5 -0
  97. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +39 -0
  98. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +55 -0
  99. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
  100. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
  101. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
  102. package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
  103. package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
  104. package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
  105. package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +6 -0
  106. package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
  107. package/dist/components/page/MyCase/_fetchers/getCaseList.ts +21 -0
  108. package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
  109. package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
  110. package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
  111. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
  112. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
  113. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
  114. package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
  115. package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
  116. package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
  117. package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
  118. package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
  119. package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
  120. package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
  121. package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
  122. package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -0
  123. package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
  124. package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
  125. package/dist/components/page/MyCase/_type/type.d.ts +73 -0
  126. package/dist/components/page/MyCase/_type/type.js +1 -0
  127. package/dist/components/page/MyCase/_type/type.ts +81 -0
  128. package/dist/components/page/index.d.ts +1 -0
  129. package/dist/components/page/index.js +1 -1
  130. package/dist/components/page/index.ts +1 -1
  131. package/dist/styles/globals.css +2332 -235
  132. package/dist/tsconfig.tsbuildinfo +1 -1
  133. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { catagoryMenuName } from '../../_lib/catagoryMenuName';
3
+ import { usePathname, useRouter } from 'next/navigation';
4
+ import Image from 'next/image';
5
+ import Link from 'next/link';
6
+
7
+ type CategoryMenuType = {
8
+ t: (key: string) => string;
9
+ isMargin?: boolean;
10
+ isWhite?: boolean;
11
+ };
12
+
13
+ const CategoryMenu = (props: CategoryMenuType) => {
14
+ const { t, isMargin = true, isWhite = false } = props;
15
+ const router = useRouter();
16
+ const pathname = usePathname();
17
+
18
+ const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
19
+
20
+ //페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
21
+ const reloadUrl = (url: string) => {
22
+ if (pathname === url) {
23
+ router.push(url);
24
+ router.refresh();
25
+ }
26
+ };
27
+ useEffect(() => {
28
+ setMenu(catagoryMenuName({ url: pathname, t }));
29
+ }, [pathname, t]);
30
+
31
+ const imagePath = isWhite ? '/images/mycase/home.svg' : '/images/mycase/home.webp';
32
+
33
+ const arrowImage = isWhite ? '/images/mycase/nav_arr.webp' : '/images/mycase/arrow_2.webp';
34
+
35
+ const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
36
+
37
+ return (
38
+ <div
39
+ className={
40
+ (isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
41
+ 'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
42
+ 'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
43
+ 'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'
44
+ }
45
+ >
46
+ <Link href="/">
47
+ <Image
48
+ src={imagePath}
49
+ alt={'집'}
50
+ width={15}
51
+ height={15}
52
+ className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
53
+ />
54
+ </Link>
55
+ <Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'} />
56
+ {menu.title === menu.subTitle ? (
57
+ <Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
58
+ <div className={textColor}>{menu?.title}</div>
59
+ </Link>
60
+ ) : (
61
+ <>
62
+ <div className={textColor}>{menu?.title}</div>
63
+ <Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'} />
64
+ <Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
65
+ <div className={textColor}>{menu?.subTitle}</div>
66
+ </Link>
67
+ </>
68
+ )}
69
+ </div>
70
+ );
71
+ };
72
+
73
+ export default CategoryMenu;
@@ -0,0 +1,14 @@
1
+ export declare const buttonStyle: {
2
+ 사건접수: string;
3
+ 사건검토: string;
4
+ 변호사상담: string;
5
+ 소송준비: string;
6
+ 소송진행: string;
7
+ 보류: string;
8
+ 사건종결: string;
9
+ 환불: string;
10
+ };
11
+ declare const Badge: ({ title }: {
12
+ title: keyof typeof buttonStyle;
13
+ }) => import("react").JSX.Element;
14
+ export default Badge;
@@ -0,0 +1,16 @@
1
+ export const buttonStyle = {
2
+ 사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
3
+ 사건검토: 'bg-[#F1DCFF] text-[#511396]',
4
+ 변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
5
+ 소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
6
+ 소송진행: 'bg-[#C6F5CA] text-[#315B32]',
7
+ 보류: 'bg-[#FFF3DB] text-[#644F16]',
8
+ 사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
9
+ 환불: 'bg-[#DBDBDB] text-[#000000]'
10
+ };
11
+ const Badge = ({ title }) => {
12
+ return (<div className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}>
13
+ <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
14
+ </div>);
15
+ };
16
+ export default Badge;
@@ -0,0 +1,22 @@
1
+ export const buttonStyle = {
2
+ 사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
3
+ 사건검토: 'bg-[#F1DCFF] text-[#511396]',
4
+ 변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
5
+ 소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
6
+ 소송진행: 'bg-[#C6F5CA] text-[#315B32]',
7
+ 보류: 'bg-[#FFF3DB] text-[#644F16]',
8
+ 사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
9
+ 환불: 'bg-[#DBDBDB] text-[#000000]'
10
+ };
11
+
12
+ const Badge = ({ title }: { title: keyof typeof buttonStyle }) => {
13
+ return (
14
+ <div
15
+ className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}
16
+ >
17
+ <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
18
+ </div>
19
+ );
20
+ };
21
+
22
+ export default Badge;
@@ -0,0 +1,7 @@
1
+ declare const SubColor1Button: ({ title, onClick, isSelected, outerClassName }: {
2
+ title: string;
3
+ onClick: () => void;
4
+ isSelected: boolean;
5
+ outerClassName?: string;
6
+ }) => import("react").JSX.Element;
7
+ export default SubColor1Button;
@@ -0,0 +1,9 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+ const SubColor1Button = ({ title, onClick, isSelected, outerClassName }) => {
3
+ return (<button className={twMerge(`swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`, outerClassName)} onClick={onClick}>
4
+ <p className={'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '}>
5
+ {title}
6
+ </p>
7
+ </button>);
8
+ };
9
+ export default SubColor1Button;
@@ -0,0 +1,33 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+
3
+ const SubColor1Button = ({
4
+ title,
5
+ onClick,
6
+ isSelected,
7
+ outerClassName
8
+ }: {
9
+ title: string;
10
+ onClick: () => void;
11
+ isSelected: boolean;
12
+ outerClassName?: string;
13
+ }) => {
14
+ return (
15
+ <button
16
+ className={twMerge(
17
+ `swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`,
18
+ outerClassName
19
+ )}
20
+ onClick={onClick}
21
+ >
22
+ <p
23
+ className={
24
+ 'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '
25
+ }
26
+ >
27
+ {title}
28
+ </p>
29
+ </button>
30
+ );
31
+ };
32
+
33
+ export default SubColor1Button;
@@ -0,0 +1,7 @@
1
+ declare const SubMenuButton: ({ onClick, title, isSelected, outerClassName }: {
2
+ onClick: () => void;
3
+ title: string;
4
+ isSelected: boolean;
5
+ outerClassName?: string;
6
+ }) => import("react").JSX.Element;
7
+ export default SubMenuButton;
@@ -0,0 +1,9 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+ const SubMenuButton = ({ onClick, title, isSelected, outerClassName }) => {
3
+ return (<button className={twMerge(`swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
4
+ <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}>
5
+ {title}
6
+ </p>
7
+ </button>);
8
+ };
9
+ export default SubMenuButton;
@@ -0,0 +1,31 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+
3
+ const SubMenuButton = ({
4
+ onClick,
5
+ title,
6
+ isSelected,
7
+ outerClassName
8
+ }: {
9
+ onClick: () => void;
10
+ title: string;
11
+ isSelected: boolean;
12
+ outerClassName?: string;
13
+ }) => {
14
+ return (
15
+ <button
16
+ className={twMerge(
17
+ `swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`,
18
+ outerClassName
19
+ )}
20
+ onClick={onClick}
21
+ >
22
+ <p
23
+ className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}
24
+ >
25
+ {title}
26
+ </p>
27
+ </button>
28
+ );
29
+ };
30
+
31
+ export default SubMenuButton;
@@ -0,0 +1,6 @@
1
+ declare const EmptyTable: ({ tap, subTap, isMinHeight }: {
2
+ tap: string;
3
+ subTap: number;
4
+ isMinHeight?: boolean;
5
+ }) => import("react").JSX.Element;
6
+ export default EmptyTable;
@@ -0,0 +1,75 @@
1
+ import Image from 'next/image';
2
+ import caseIcon1 from '../../../../../asset/images/mycase/icon/case_icon1.webp';
3
+ import caseIcon2 from '../../../../../asset/images/mycase/icon/case_icon2.webp';
4
+ import caseIcon3 from '../../../../../asset/images/mycase/icon/case_icon3.webp';
5
+ import caseIcon4 from '../../../../../asset/images/mycase/icon/case_icon4.webp';
6
+ import caseIcon5 from '../../../../../asset/images/mycase/icon/case_icon5.webp';
7
+ const titleList = {
8
+ ongoing: {
9
+ 0: {
10
+ title: '아직 의뢰한 사건이 없어요.',
11
+ subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
12
+ img: caseIcon1,
13
+ width: 'w-[36px] sm-top:w-[43.2px] lg:w-[60px] ',
14
+ height: 'h-[40px] sm-top:h-[48px] lg:h-[66px] ',
15
+ marginTop: 'mt-[60px] sm-top:mt-[80px] lg:mt-[85px] '
16
+ },
17
+ 1: {
18
+ title: '해당 사건이 없어요.',
19
+ subTitle: '',
20
+ img: caseIcon2,
21
+ width: 'w-[35.64px] sm-top:w-[44.13px] lg:w-[66px] ',
22
+ height: 'h-[39.6px] sm-top:h-[49.03px] lg:h-[66px] ',
23
+ marginTop: 'mt-[71.24px] sm-top:mt-[96.53px] lg:mt-[105px]'
24
+ }
25
+ },
26
+ closed: {
27
+ 0: {
28
+ title: '종결된 사건이 없어요.',
29
+ subTitle: '',
30
+ img: caseIcon3,
31
+ width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
32
+ height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
33
+ marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
34
+ },
35
+ 1: {
36
+ title: '종결된 사건이 없어요.',
37
+ subTitle: '',
38
+ img: caseIcon3,
39
+ width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
40
+ height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
41
+ marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
42
+ }
43
+ },
44
+ file: {
45
+ 0: {
46
+ title: '현재 제출한 문서가 없어요.',
47
+ subTitle: '',
48
+ img: caseIcon4,
49
+ width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
50
+ height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
51
+ marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
52
+ }
53
+ },
54
+ caseInquiry: {
55
+ 0: {
56
+ title: '문의한 내역이 없어요.',
57
+ subTitle: '',
58
+ img: caseIcon5,
59
+ width: 'w-[42px] sm-top:w-[52px] lg:w-[66px] ',
60
+ height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
61
+ marginTop: 'mt-[84px] sm-top:mt-[106px] lg:mt-[76px]'
62
+ }
63
+ }
64
+ };
65
+ const EmptyTable = ({ tap, subTap, isMinHeight = true }) => {
66
+ const { title, subTitle, img, width, height, marginTop } = titleList[tap][subTap];
67
+ return (<div className={`sm-top:gap-[20px] flex gap-[14px] ${isMinHeight ? 'min-h-[350px]' : ''} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
68
+ <Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`}/>
69
+ <div className="flex flex-col items-center justify-center ">
70
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
71
+ {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
72
+ </div>
73
+ </div>);
74
+ };
75
+ export default EmptyTable;
@@ -0,0 +1,86 @@
1
+ import Image from 'next/image';
2
+
3
+ import caseIcon1 from '../../../../../asset/images/mycase/icon/case_icon1.webp';
4
+ import caseIcon2 from '../../../../../asset/images/mycase/icon/case_icon2.webp';
5
+ import caseIcon3 from '../../../../../asset/images/mycase/icon/case_icon3.webp';
6
+ import caseIcon4 from '../../../../../asset/images/mycase/icon/case_icon4.webp';
7
+ import caseIcon5 from '../../../../../asset/images/mycase/icon/case_icon5.webp';
8
+
9
+ const titleList = {
10
+ ongoing: {
11
+ 0: {
12
+ title: '아직 의뢰한 사건이 없어요.',
13
+ subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
14
+ img: caseIcon1,
15
+ width: 'w-[36px] sm-top:w-[43.2px] lg:w-[60px] ',
16
+ height: 'h-[40px] sm-top:h-[48px] lg:h-[66px] ',
17
+ marginTop: 'mt-[60px] sm-top:mt-[80px] lg:mt-[85px] '
18
+ },
19
+ 1: {
20
+ title: '해당 사건이 없어요.',
21
+ subTitle: '',
22
+ img: caseIcon2,
23
+ width: 'w-[35.64px] sm-top:w-[44.13px] lg:w-[66px] ',
24
+ height: 'h-[39.6px] sm-top:h-[49.03px] lg:h-[66px] ',
25
+ marginTop: 'mt-[71.24px] sm-top:mt-[96.53px] lg:mt-[105px]'
26
+ }
27
+ },
28
+ closed: {
29
+ 0: {
30
+ title: '종결된 사건이 없어요.',
31
+ subTitle: '',
32
+ img: caseIcon3,
33
+ width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
34
+ height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
35
+ marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
36
+ },
37
+ 1: {
38
+ title: '종결된 사건이 없어요.',
39
+ subTitle: '',
40
+ img: caseIcon3,
41
+ width: 'w-[37.8px] sm-top:w-[44px] lg:w-[59.4px] ',
42
+ height: 'h-[42px] sm-top:h-[48.88px] lg:h-[66px] ',
43
+ marginTop: 'mt-[70px] sm-top:mt-[95px] lg:mt-[103px]'
44
+ }
45
+ },
46
+ file: {
47
+ 0: {
48
+ title: '현재 제출한 문서가 없어요.',
49
+ subTitle: '',
50
+ img: caseIcon4,
51
+ width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
52
+ height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
53
+ marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
54
+ }
55
+ },
56
+ caseInquiry: {
57
+ 0: {
58
+ title: '문의한 내역이 없어요.',
59
+ subTitle: '',
60
+ img: caseIcon5,
61
+ width: 'w-[42px] sm-top:w-[52px] lg:w-[66px] ',
62
+ height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
63
+ marginTop: 'mt-[84px] sm-top:mt-[106px] lg:mt-[76px]'
64
+ }
65
+ }
66
+ };
67
+
68
+ const EmptyTable = ({ tap, subTap, isMinHeight = true }: { tap: string; subTap: number; isMinHeight?: boolean }) => {
69
+ const { title, subTitle, img, width, height, marginTop } =
70
+ titleList[tap as keyof typeof titleList][subTap as keyof (typeof titleList)[keyof typeof titleList]];
71
+ return (
72
+ <div
73
+ className={`sm-top:gap-[20px] flex gap-[14px] ${
74
+ isMinHeight ? 'min-h-[350px]' : ''
75
+ } w-full flex-col items-center lg:gap-[40px] ${marginTop}`}
76
+ >
77
+ <Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`} />
78
+ <div className="flex flex-col items-center justify-center ">
79
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
80
+ {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
81
+ </div>
82
+ </div>
83
+ );
84
+ };
85
+
86
+ export default EmptyTable;
@@ -0,0 +1,7 @@
1
+ declare const CaseLayout: ({ outerClassName, innerClassName, children, isMobilePadding }: {
2
+ outerClassName?: string;
3
+ innerClassName?: string;
4
+ children: React.ReactNode;
5
+ isMobilePadding?: boolean;
6
+ }) => import("react").JSX.Element;
7
+ export default CaseLayout;
@@ -0,0 +1,11 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+ import CaseWrapper from './CaseWrapper';
3
+ const CaseLayout = ({ outerClassName, innerClassName, children, isMobilePadding = true }) => {
4
+ return (<CaseWrapper className={outerClassName} isMobilePadding={isMobilePadding}>
5
+ <div className={twMerge('sm-top:rounded-[24px] z-[1] w-full rounded-[12px] bg-grayScale8 lg:rounded-[36px] ' +
6
+ innerClassName)}>
7
+ {children}
8
+ </div>
9
+ </CaseWrapper>);
10
+ };
11
+ export default CaseLayout;
@@ -0,0 +1,29 @@
1
+ import { twMerge } from 'tailwind-merge';
2
+ import CaseWrapper from './CaseWrapper';
3
+ import HeaderLayout from './HeaderLayout';
4
+ const CaseLayout = ({
5
+ outerClassName,
6
+ innerClassName,
7
+ children,
8
+ isMobilePadding = true
9
+ }: {
10
+ outerClassName?: string;
11
+ innerClassName?: string;
12
+ children: React.ReactNode;
13
+ isMobilePadding?: boolean;
14
+ }) => {
15
+ return (
16
+ <CaseWrapper className={outerClassName} isMobilePadding={isMobilePadding}>
17
+ <div
18
+ className={twMerge(
19
+ 'sm-top:rounded-[24px] z-[1] w-full rounded-[12px] bg-grayScale8 lg:rounded-[36px] ' +
20
+ innerClassName
21
+ )}
22
+ >
23
+ {children}
24
+ </div>
25
+ </CaseWrapper>
26
+ );
27
+ };
28
+
29
+ export default CaseLayout;
@@ -0,0 +1,12 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children: ReactNode;
4
+ className?: string;
5
+ innerClassName?: string;
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ isLine?: boolean;
8
+ isLinePadding?: boolean;
9
+ isMobilePadding?: boolean;
10
+ }
11
+ declare const CaseWrapper: React.FC<WrapperProps>;
12
+ export default CaseWrapper;
@@ -0,0 +1,25 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { useRef } from 'react';
13
+ const CaseWrapper = (_a) => {
14
+ var { children, className = '', ref = null,
15
+ // isLine,
16
+ // isLinePadding = true,
17
+ innerClassName, isMobilePadding = true } = _a, others = __rest(_a, ["children", "className", "ref", "innerClassName", "isMobilePadding"]);
18
+ const lineRef = useRef(null);
19
+ // const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
20
+ return (<div className={` ${isMobilePadding ? 'px-[20px] 2sm:px-[40px]' : ''} sm-top:px-[60px] mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ` +
21
+ className} ref={ref} {...others}>
22
+ {children}
23
+ </div>);
24
+ };
25
+ export default CaseWrapper;
@@ -0,0 +1,41 @@
1
+ import React, { ReactNode, useRef } from 'react';
2
+ // import useElementObserve from '../../../hook/useElementObserve';
3
+
4
+ interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ children: ReactNode;
6
+ className?: string; // 스타일 추가
7
+ innerClassName?: string; // 스타일 추가
8
+ ref?: React.Ref<HTMLDivElement>;
9
+ isLine?: boolean;
10
+ isLinePadding?: boolean;
11
+ isMobilePadding?: boolean;
12
+ }
13
+
14
+ const CaseWrapper: React.FC<WrapperProps> = ({
15
+ children,
16
+ className = '',
17
+ ref = null,
18
+ // isLine,
19
+ // isLinePadding = true,
20
+ innerClassName,
21
+ isMobilePadding = true,
22
+ ...others
23
+ }) => {
24
+ const lineRef = useRef(null);
25
+ // const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
26
+
27
+ return (
28
+ <div
29
+ className={
30
+ ` ${isMobilePadding ? 'px-[20px] 2sm:px-[40px]' : ''} sm-top:px-[60px] mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ` +
31
+ className
32
+ }
33
+ ref={ref}
34
+ {...others}
35
+ >
36
+ {children}
37
+ </div>
38
+ );
39
+ };
40
+
41
+ export default CaseWrapper;
@@ -0,0 +1,4 @@
1
+ declare const HeaderLayout: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react").JSX.Element;
4
+ export default HeaderLayout;
@@ -0,0 +1,4 @@
1
+ const HeaderLayout = ({ children }) => {
2
+ return <div className="mt-[70px] overflow-hidden md:mt-[78px] md2:mt-[88px]">{children}</div>;
3
+ };
4
+ export default HeaderLayout;
@@ -0,0 +1,5 @@
1
+ const HeaderLayout = ({ children }: { children: React.ReactNode }) => {
2
+ return <div className="mt-[70px] overflow-hidden md:mt-[78px] md2:mt-[88px]">{children}</div>;
3
+ };
4
+
5
+ export default HeaderLayout;
@@ -0,0 +1,9 @@
1
+ declare const IntroWrapper: ({ backgroundImage, backgroundTbImage, backgroundMoImage, outerClassName, title, subTitle }: {
2
+ backgroundImage: string;
3
+ outerClassName?: string;
4
+ backgroundTbImage: string;
5
+ backgroundMoImage: string;
6
+ title?: string;
7
+ subTitle?: string;
8
+ }) => import("react").JSX.Element;
9
+ export default IntroWrapper;
@@ -0,0 +1,30 @@
1
+ import Image from 'next/image';
2
+ import CategoryMenu from '../_breadCrumble/CategoryMenu';
3
+ import { useTranslation } from 'next-i18next';
4
+ import CaseWrapper from './CaseWrapper';
5
+ import Wrapper from '../../../../Layout/Wrapper';
6
+ const IntroWrapper = ({ backgroundImage, backgroundTbImage, backgroundMoImage, outerClassName, title, subTitle }) => {
7
+ const { t } = useTranslation('common');
8
+ return (<div className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}>
9
+ {backgroundImage ? (<>
10
+ <Image unoptimized src={backgroundImage} alt="background" fill className="hidden object-cover lg:block"/>
11
+ <Image unoptimized src={backgroundTbImage} alt="background" fill className="sm-top:block hidden object-cover lg:hidden"/>
12
+ <Image unoptimized src={backgroundMoImage} alt="background" fill className="max-sm-top:block hidden object-cover"/>
13
+ </>) : (<></>)}
14
+
15
+ <Wrapper>
16
+ <div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
17
+ <CategoryMenu t={t}/>
18
+ </div>
19
+ </Wrapper>
20
+ <CaseWrapper>
21
+ <div className={'relative w-full '}>
22
+ <p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
23
+ <p className={'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] '}>
24
+ {subTitle}
25
+ </p>
26
+ </div>
27
+ </CaseWrapper>
28
+ </div>);
29
+ };
30
+ export default IntroWrapper;