@daeryun/dr_components 0.4.38 → 0.4.40
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.
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/integrate/index.d.ts +12 -0
- package/dist/components/common/integrate/index.jsx +71 -0
- package/dist/components/common/integrate/index.tsx +79 -0
- package/dist/components/page/Integrate/Broadcast.d.ts +20 -0
- package/dist/components/page/Integrate/Broadcast.jsx +107 -0
- package/dist/components/page/Integrate/Broadcast.tsx +246 -0
- package/dist/components/page/Integrate/Field.d.ts +21 -0
- package/dist/components/page/Integrate/Field.jsx +53 -0
- package/dist/components/page/Integrate/Field.tsx +119 -0
- package/dist/components/page/Integrate/LawInfo.d.ts +21 -0
- package/dist/components/page/Integrate/LawInfo.jsx +40 -0
- package/dist/components/page/Integrate/LawInfo.tsx +116 -0
- package/dist/components/page/Integrate/Lawyer.d.ts +36 -0
- package/dist/components/page/Integrate/Lawyer.jsx +175 -0
- package/dist/components/page/Integrate/Lawyer.tsx +394 -0
- package/dist/components/page/Integrate/Map.d.ts +20 -0
- package/dist/components/page/Integrate/Map.jsx +131 -0
- package/dist/components/page/Integrate/Map.tsx +266 -0
- package/dist/components/page/Integrate/MenuTab.d.ts +18 -0
- package/dist/components/page/Integrate/MenuTab.jsx +90 -0
- package/dist/components/page/Integrate/MenuTab.tsx +160 -0
- package/dist/components/page/Integrate/NoResult.d.ts +2 -0
- package/dist/components/page/Integrate/NoResult.jsx +14 -0
- package/dist/components/page/Integrate/NoResult.tsx +23 -0
- package/dist/components/page/Integrate/Reply.d.ts +21 -0
- package/dist/components/page/Integrate/Reply.jsx +68 -0
- package/dist/components/page/Integrate/Reply.tsx +162 -0
- package/dist/components/page/Integrate/SearchData.d.ts +19 -0
- package/dist/components/page/Integrate/SearchData.jsx +166 -0
- package/dist/components/page/Integrate/SearchData.tsx +273 -0
- package/dist/components/page/Integrate/Success.d.ts +21 -0
- package/dist/components/page/Integrate/Success.jsx +74 -0
- package/dist/components/page/Integrate/Success.tsx +167 -0
- package/dist/components/page/Integrate/Title.d.ts +10 -0
- package/dist/components/page/Integrate/Title.jsx +27 -0
- package/dist/components/page/Integrate/Title.tsx +62 -0
- package/dist/components/page/Integrate/ViewMore.d.ts +9 -0
- package/dist/components/page/Integrate/ViewMore.jsx +28 -0
- package/dist/components/page/Integrate/ViewMore.tsx +66 -0
- package/dist/components/page/Integrate/index.module.css +915 -0
- package/dist/components/page/Integrate/integrateType.d.ts +159 -0
- package/dist/components/page/Integrate/integrateType.js +30 -0
- package/dist/components/page/Integrate/integrateType.ts +171 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/index.js +2 -0
- package/dist/components/page/index.ts +2 -0
- package/dist/styles/globals.css +1072 -161
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Loader from '../../Loader/Loader';
|
|
4
|
+
export const ViewMore = (props) => {
|
|
5
|
+
const { func, loading, flag, totalPage, nowPage, label = '' } = props;
|
|
6
|
+
const isNotLastPage = nowPage && totalPage ? nowPage - 1 !== totalPage : false;
|
|
7
|
+
const labelTxt = `${label} 글 더보기${nowPage && totalPage ? ` ${totalPage}페이지 중 ${nowPage - 1}페이지` : ''}`;
|
|
8
|
+
return (<>
|
|
9
|
+
{loading ? (<b className={'mb-20 text-center'}>
|
|
10
|
+
<Loader />
|
|
11
|
+
</b>) : (<button aria-label={labelTxt} className={'relative m-auto mb-20 mt-20 flex w-[10em] cursor-pointer items-center border-[1px] border-solid border-[#707070] px-5 py-4 text-[#666666] ' +
|
|
12
|
+
(isNotLastPage ? 'justify-between ' : 'pointer-events-none justify-center')} onKeyDown={(e) => {
|
|
13
|
+
if (e.key === 'Enter') {
|
|
14
|
+
func();
|
|
15
|
+
}
|
|
16
|
+
}} onClick={() => {
|
|
17
|
+
func();
|
|
18
|
+
}}>
|
|
19
|
+
<span className={'pt-[2px] leading-[15px] text-[#666666] '}>
|
|
20
|
+
더보기{' '}
|
|
21
|
+
{nowPage && totalPage ? (<>
|
|
22
|
+
{nowPage - 1}/{totalPage}{' '}
|
|
23
|
+
</>) : (<></>)}
|
|
24
|
+
</span>
|
|
25
|
+
{isNotLastPage ? (<Image src={'/images/plus_g.webp'} alt={''} width={30} height={30} className={'aspect-square w-[18px] max-lg:w-[16px] max-sm:w-[15px] max-2xs:w-[13px]'}/>) : (<></>)}
|
|
26
|
+
</button>)}
|
|
27
|
+
</>);
|
|
28
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Loader from '../../Loader/Loader';
|
|
4
|
+
|
|
5
|
+
export const ViewMore = (props: {
|
|
6
|
+
func: () => void;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
flag: boolean;
|
|
9
|
+
totalPage?: number;
|
|
10
|
+
nowPage?: number;
|
|
11
|
+
label?: string;
|
|
12
|
+
}) => {
|
|
13
|
+
const { func, loading, flag, totalPage, nowPage, label = '' } = props;
|
|
14
|
+
|
|
15
|
+
const isNotLastPage = nowPage && totalPage ? nowPage - 1 !== totalPage : false;
|
|
16
|
+
|
|
17
|
+
const labelTxt = `${label} 글 더보기${nowPage && totalPage ? ` ${totalPage}페이지 중 ${nowPage - 1}페이지` : ''}`;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
{loading ? (
|
|
22
|
+
<b className={'mb-20 text-center'}>
|
|
23
|
+
<Loader />
|
|
24
|
+
</b>
|
|
25
|
+
) : (
|
|
26
|
+
<button
|
|
27
|
+
aria-label={labelTxt}
|
|
28
|
+
className={
|
|
29
|
+
'relative m-auto mb-20 mt-20 flex w-[10em] cursor-pointer items-center border-[1px] border-solid border-[#707070] px-5 py-4 text-[#666666] ' +
|
|
30
|
+
(isNotLastPage ? 'justify-between ' : 'pointer-events-none justify-center')
|
|
31
|
+
}
|
|
32
|
+
onKeyDown={(e: any) => {
|
|
33
|
+
if (e.key === 'Enter') {
|
|
34
|
+
func();
|
|
35
|
+
}
|
|
36
|
+
}}
|
|
37
|
+
onClick={() => {
|
|
38
|
+
func();
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<span className={'pt-[2px] leading-[15px] text-[#666666] '}>
|
|
42
|
+
더보기{' '}
|
|
43
|
+
{nowPage && totalPage ? (
|
|
44
|
+
<>
|
|
45
|
+
{nowPage - 1}/{totalPage}{' '}
|
|
46
|
+
</>
|
|
47
|
+
) : (
|
|
48
|
+
<></>
|
|
49
|
+
)}
|
|
50
|
+
</span>
|
|
51
|
+
{isNotLastPage ? (
|
|
52
|
+
<Image
|
|
53
|
+
src={'/images/plus_g.webp'}
|
|
54
|
+
alt={''}
|
|
55
|
+
width={30}
|
|
56
|
+
height={30}
|
|
57
|
+
className={'aspect-square w-[18px] max-lg:w-[16px] max-sm:w-[15px] max-2xs:w-[13px]'}
|
|
58
|
+
/>
|
|
59
|
+
) : (
|
|
60
|
+
<></>
|
|
61
|
+
)}
|
|
62
|
+
</button>
|
|
63
|
+
)}
|
|
64
|
+
</>
|
|
65
|
+
);
|
|
66
|
+
};
|