@daeryun/dr_components 0.3.42 → 0.3.44

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.
@@ -12,14 +12,14 @@ const ContractModal = ({ isOpen, onClose }) => {
12
12
  <ModalContainer isOpen={isOpen} onClose={() => {
13
13
  onClose();
14
14
  }}>
15
- <div className="border-grayScale4 bg-grayScale8 sm-top:max-h-[786px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:h-full lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
15
+ <div className="absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
16
16
  <div className="flex flex-row items-center justify-between">
17
17
  <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">내 약정서</p>
18
18
  <Image src={close} alt="close" width={24} height={24} onClick={() => {
19
19
  onClose();
20
- }} className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] cursor-pointer lg:h-[24px] lg:w-[24px]"/>
20
+ }} className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"/>
21
21
  </div>
22
- <div className="border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid lg:h-[836px]">
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-[836px]">
23
23
  이미지
24
24
  </div>
25
25
 
@@ -23,7 +23,7 @@ const ContractModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => vo
23
23
  }}
24
24
  >
25
25
  <div
26
- className="border-grayScale4 bg-grayScale8 sm-top:max-h-[786px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:h-full lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] "
26
+ className="absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] lg:w-full lg:max-w-[1000px] "
27
27
  onClick={e => e.stopPropagation()}
28
28
  >
29
29
  <div className="flex flex-row items-center justify-between">
@@ -36,10 +36,10 @@ const ContractModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => vo
36
36
  onClick={() => {
37
37
  onClose();
38
38
  }}
39
- className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] cursor-pointer lg:h-[24px] lg:w-[24px]"
39
+ className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
40
40
  />
41
41
  </div>
42
- <div className="border-grayScale1 sm-top:mt-[20px] sm-top:h-[605px] mt-[12px] h-[453px] w-full overflow-y-auto rounded-[8px] border border-solid lg:h-[836px]">
42
+ <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-[836px]">
43
43
  이미지
44
44
  </div>
45
45
 
@@ -10,7 +10,7 @@ const CaseTap = ({ title, type, tap, setTap }) => {
10
10
  if (setTap) {
11
11
  setTap(type);
12
12
  }
13
- }} className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}>
13
+ }} className={`items-top flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 sm-top:h-[40px] lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}>
14
14
  <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
15
15
  </button>);
16
16
  };
@@ -23,11 +23,12 @@ const CaseContainer = ({ jwt }) => {
23
23
  const [pageSize, setPageSize] = useState(4);
24
24
  // const [isLoading, setIsLoading] = useState(true);
25
25
  const pageNumber = page ? Number(page) : 1;
26
- const handleOnChange = (pageNum) => {
27
- router.push(`/mycase?page=${pageNum}&tap=${tapState}&subTap=${tapState === 'ongoing' ? 'ongoing' : 'closed'}`);
28
- };
26
+ // const handleOnChange = (pageNum: number) => {
27
+ // router.push(`/mycase?page=${pageNum}&tap=${tapState}&subTap=${tapState === 'ongoing' ? 'ongoing' : 'closed'}`);
28
+ // };
29
29
  const handleOnTap = (tap) => {
30
- router.push(`/mycase?page=1&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
30
+ // router.push(`/mycase?page=1&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
31
+ router.push(`/mycase?&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
31
32
  };
32
33
  // const handleOnSubTap = (subTap: string) => {
33
34
  // router.push(`/mycase?page=1&tap=${tapState}&subTap=${subTap}`);
@@ -46,11 +47,10 @@ const CaseContainer = ({ jwt }) => {
46
47
  // window.addEventListener('resize', handleResize);
47
48
  // return () => window.removeEventListener('resize', handleResize);
48
49
  // }, []);
49
- console.log('data!!@:', data);
50
50
  return (<Suspense>
51
51
  <CaseLayout outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] " innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'} isMobilePadding={false}>
52
52
  <div className={''}>
53
- <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
53
+ <div className="flex flex-row items-center px-[20px] 2sm:px-[40px] sm-top:px-[50px] lg:px-[60px]">
54
54
  <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={() => handleOnTap('ongoing')}/>
55
55
  <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={() => handleOnTap('closed')}/>
56
56
  </div>
@@ -188,7 +188,7 @@ const CaseContainer = ({ jwt }) => {
188
188
  pageNumber={pageNumber}
189
189
  onChange={handleOnChange}
190
190
  /> */}
191
- <CaseTableMo list={data === null || data === void 0 ? void 0 : data.list} totalLength={data === null || data === void 0 ? void 0 : data.totalLength} pageSize={pageSize} pageNumber={pageNumber} onChange={handleOnChange}/>
191
+ <CaseTableMo list={data === null || data === void 0 ? void 0 : data.list}/>
192
192
  </>) : (<EmptyTable tap={tapState} subTap={0}/>)}
193
193
  </div>
194
194
  </CaseLayout>
@@ -30,7 +30,7 @@ const CaseTap = ({
30
30
  setTap(type);
31
31
  }
32
32
  }}
33
- className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${
33
+ className={`items-top flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 sm-top:h-[40px] lg:h-[45px] ${
34
34
  tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'
35
35
  }`}
36
36
  >
@@ -50,11 +50,12 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
50
50
  // const [isLoading, setIsLoading] = useState(true);
51
51
  const pageNumber = page ? Number(page) : 1;
52
52
 
53
- const handleOnChange = (pageNum: number) => {
54
- router.push(`/mycase?page=${pageNum}&tap=${tapState}&subTap=${tapState === 'ongoing' ? 'ongoing' : 'closed'}`);
55
- };
53
+ // const handleOnChange = (pageNum: number) => {
54
+ // router.push(`/mycase?page=${pageNum}&tap=${tapState}&subTap=${tapState === 'ongoing' ? 'ongoing' : 'closed'}`);
55
+ // };
56
56
  const handleOnTap = (tap: string) => {
57
- router.push(`/mycase?page=1&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
57
+ // router.push(`/mycase?page=1&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
58
+ router.push(`/mycase?&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
58
59
  };
59
60
  // const handleOnSubTap = (subTap: string) => {
60
61
  // router.push(`/mycase?page=1&tap=${tapState}&subTap=${subTap}`);
@@ -76,7 +77,6 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
76
77
  // return () => window.removeEventListener('resize', handleResize);
77
78
  // }, []);
78
79
 
79
- console.log('data!!@:', data);
80
80
  return (
81
81
  <Suspense>
82
82
  <CaseLayout
@@ -85,7 +85,7 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
85
85
  isMobilePadding={false}
86
86
  >
87
87
  <div className={''}>
88
- <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
88
+ <div className="flex flex-row items-center px-[20px] 2sm:px-[40px] sm-top:px-[50px] lg:px-[60px]">
89
89
  <CaseTap
90
90
  title="진행중인 사건"
91
91
  type="ongoing"
@@ -238,10 +238,10 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
238
238
  /> */}
239
239
  <CaseTableMo
240
240
  list={data?.list}
241
- totalLength={data?.totalLength}
242
- pageSize={pageSize}
243
- pageNumber={pageNumber}
244
- onChange={handleOnChange}
241
+ // totalLength={data?.totalLength}
242
+ // pageSize={pageSize}
243
+ // pageNumber={pageNumber}
244
+ // onChange={handleOnChange}
245
245
  />
246
246
  </>
247
247
  ) : (
@@ -63,8 +63,6 @@ const titleList = {
63
63
  }
64
64
  };
65
65
  const EmptyTable = ({ tap, subTap, isMinHeight = true }) => {
66
- console.log('tap:', tap);
67
- console.log('subTap:', subTap);
68
66
  const selectedTitleList = titleList[tap];
69
67
  const selectedSubTap = selectedTitleList ? selectedTitleList[subTap] : null;
70
68
  const { title, subTitle, img, width, height, marginTop } = selectedSubTap || {
@@ -75,7 +73,7 @@ const EmptyTable = ({ tap, subTap, isMinHeight = true }) => {
75
73
  height: '',
76
74
  marginTop: ''
77
75
  };
78
- return (<div className={`sm-top:gap-[20px] flex gap-[14px] ${isMinHeight ? 'min-h-[350px]' : ''} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
76
+ return (<div className={`flex gap-[14px] sm-top:gap-[20px] ${isMinHeight ? 'min-h-[350px]' : ''} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
79
77
  <Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`}/>
80
78
  <div className="flex flex-col items-center justify-center ">
81
79
  <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
@@ -66,8 +66,6 @@ const titleList = {
66
66
  };
67
67
 
68
68
  const EmptyTable = ({ tap, subTap, isMinHeight = true }: { tap: string; subTap: number; isMinHeight?: boolean }) => {
69
- console.log('tap:', tap);
70
- console.log('subTap:', subTap);
71
69
  const selectedTitleList = titleList[tap as keyof typeof titleList];
72
70
  const selectedSubTap = selectedTitleList ? selectedTitleList[subTap as keyof typeof selectedTitleList] : null;
73
71
  const { title, subTitle, img, width, height, marginTop } = selectedSubTap || {
@@ -80,7 +78,7 @@ const EmptyTable = ({ tap, subTap, isMinHeight = true }: { tap: string; subTap:
80
78
  };
81
79
  return (
82
80
  <div
83
- className={`sm-top:gap-[20px] flex gap-[14px] ${
81
+ className={`flex gap-[14px] sm-top:gap-[20px] ${
84
82
  isMinHeight ? 'min-h-[350px]' : ''
85
83
  } w-full flex-col items-center lg:gap-[40px] ${marginTop}`}
86
84
  >
@@ -1,9 +1,5 @@
1
1
  import { Case } from '../../_type/type';
2
- declare const CaseTableMo: ({ list, totalLength, pageSize, pageNumber, onChange }: {
2
+ declare const CaseTableMo: ({ list }: {
3
3
  list: Case[];
4
- totalLength: number;
5
- pageSize: number;
6
- pageNumber: number;
7
- onChange: (pageNum: number) => void;
8
4
  }) => import("react").JSX.Element;
9
5
  export default CaseTableMo;
@@ -1,14 +1,17 @@
1
- import { Suspense } from 'react';
2
- import PaginationComponent from '../_pagination/PaginationComponent';
3
1
  import CaseTableMoBox from './CaseTableMoBox';
4
- const CaseTableMo = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
5
- return (<div className=" sm-top:mt-[40px] sm-top:px-[50px] mt-[28px] flex flex-col gap-[12px] px-[20px] 2sm:px-[40px] lg:mt-[60px] lg:px-[60px]">
2
+ const CaseTableMo = ({ list
3
+ // totalLength,
4
+ // pageSize,
5
+ // pageNumber,
6
+ // onChange
7
+ }) => {
8
+ return (<div className=" mt-[28px] flex flex-col gap-[12px] px-[20px] 2sm:px-[40px] sm-top:mt-[40px] sm-top:px-[50px] lg:mt-[60px] lg:px-[60px]">
6
9
  {list === null || list === void 0 ? void 0 : list.map((item, key) => {
7
10
  return <CaseTableMoBox key={key} item={item}/>;
8
11
  })}
9
- <Suspense>
10
- <PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
11
- </Suspense>
12
+ {/* <Suspense>
13
+ <PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
14
+ </Suspense> */}
12
15
  </div>);
13
16
  };
14
17
  export default CaseTableMo;
@@ -4,26 +4,26 @@ import PaginationComponent from '../_pagination/PaginationComponent';
4
4
  import CaseTableMoBox from './CaseTableMoBox';
5
5
 
6
6
  const CaseTableMo = ({
7
- list,
8
- totalLength,
9
- pageSize,
10
- pageNumber,
11
- onChange
7
+ list
8
+ // totalLength,
9
+ // pageSize,
10
+ // pageNumber,
11
+ // onChange
12
12
  }: {
13
13
  list: Case[];
14
- totalLength: number;
15
- pageSize: number;
16
- pageNumber: number;
17
- onChange: (pageNum: number) => void;
14
+ // totalLength: number;
15
+ // pageSize: number;
16
+ // pageNumber: number;
17
+ // onChange: (pageNum: number) => void;
18
18
  }) => {
19
19
  return (
20
- <div className=" sm-top:mt-[40px] sm-top:px-[50px] mt-[28px] flex flex-col gap-[12px] px-[20px] 2sm:px-[40px] lg:mt-[60px] lg:px-[60px]">
20
+ <div className=" mt-[28px] flex flex-col gap-[12px] px-[20px] 2sm:px-[40px] sm-top:mt-[40px] sm-top:px-[50px] lg:mt-[60px] lg:px-[60px]">
21
21
  {list?.map((item, key) => {
22
22
  return <CaseTableMoBox key={key} item={item} />;
23
23
  })}
24
- <Suspense>
24
+ {/* <Suspense>
25
25
  <PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
26
- </Suspense>
26
+ </Suspense> */}
27
27
  </div>
28
28
  );
29
29
  };
@@ -1,6 +1,6 @@
1
1
  export function catagoryMenuName({ url, t }) {
2
2
  if (url === null || url === void 0 ? void 0 : url.includes('/mycase')) {
3
- return { title: '나의사건현황', subTitle: '나의사건현황', address: 'mycase' };
3
+ return { title: '나의 사건 현황', subTitle: '나의 사건 현황', address: 'mycase' };
4
4
  }
5
5
  else {
6
6
  return { title: '', subTitle: '', address: '/' };
@@ -4,7 +4,7 @@ export function catagoryMenuName({ url, t }: { url: string; t?: any }): {
4
4
  address: string;
5
5
  } {
6
6
  if (url?.includes('/mycase')) {
7
- return { title: '나의사건현황', subTitle: '나의사건현황', address: 'mycase' };
7
+ return { title: '나의 사건 현황', subTitle: '나의 사건 현황', address: 'mycase' };
8
8
  } else {
9
9
  return { title: '', subTitle: '', address: '/' };
10
10
  }
@@ -9240,10 +9240,6 @@ body {
9240
9240
  height: 8px;
9241
9241
  }
9242
9242
 
9243
- .sm-top\:max-h-\[786px\] {
9244
- max-height: 786px;
9245
- }
9246
-
9247
9243
  .sm-top\:w-\[12px\] {
9248
9244
  width: 12px;
9249
9245
  }
@@ -9858,14 +9854,6 @@ body {
9858
9854
  height: 88px;
9859
9855
  }
9860
9856
 
9861
- .lg\:h-full {
9862
- height: 100%;
9863
- }
9864
-
9865
- .lg\:max-h-\[1000px\] {
9866
- max-height: 1000px;
9867
- }
9868
-
9869
9857
  .lg\:w-3\/5 {
9870
9858
  width: 60%;
9871
9859
  }