@daeryun/dr_components 0.2.94 → 0.2.96

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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@daeryun/dr_components",
3
- "version": "0.2.94",
3
+ "version": "0.2.96",
4
+ "sideEffects" : false,
4
5
  "private": false,
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare const MyCase: (props: {
3
- onClick: () => void;
4
- }) => React.JSX.Element;
5
- export default MyCase;
@@ -1,27 +0,0 @@
1
- 'use client';
2
- import React, { useEffect } from 'react';
3
- const MyCase = (props) => {
4
- //전체 body 스크롤 잠금
5
- useEffect(() => {
6
- document.body.style.overflow = 'hidden';
7
- return () => {
8
- document.body.style.overflow = 'visible';
9
- };
10
- }, []);
11
- return (<>
12
- <div className={'fixed left-0 top-0 z-[900] h-[100vh] w-full'}>
13
- <div className={'absolute left-0 top-0 z-[1] h-full w-full bg-black bg-opacity-80'}></div>
14
- <div className={'absolute bottom-[50%] left-[50%] z-[2] h-[80%] max-h-[1200px] w-[80%] max-w-[1000px] translate-x-[-50%] translate-y-[50%] bg-white px-[20px] ' +
15
- //1024px
16
- 'max-lg:bottom-0 max-lg:h-[calc(100%-60px)] max-lg:w-full max-lg:translate-y-0 max-lg:px-[10px] max-lg:pb-[100px] max-lg:pt-[10px]'}>
17
- <button type={'button'} className={'absolute right-[-40px] top-[-50px] text-[35px] text-white ' +
18
- //1024px
19
- ' max-lg:right-[10px] max-lg:top-[-45px] max-lg:text-[25px]'} onClick={props.onClick}>
20
- ✕
21
- </button>
22
- <iframe width="100%" height="100%" title="나의 사건검색" src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&amp;sch_bub_nm=&amp;sa_year=&amp;sa_gubun=&amp;sa_serial=&amp;x=&amp;y=&amp;saveCookie="></iframe>
23
- </div>
24
- </div>
25
- </>);
26
- };
27
- export default MyCase;
@@ -1,48 +0,0 @@
1
- 'use client';
2
- import React, { useEffect } from 'react';
3
-
4
- const MyCase = (props: { onClick: () => void }) => {
5
- //전체 body 스크롤 잠금
6
- useEffect(() => {
7
- document.body.style.overflow = 'hidden';
8
-
9
- return () => {
10
- document.body.style.overflow = 'visible';
11
- };
12
- }, []);
13
-
14
- return (
15
- <>
16
- <div className={'fixed left-0 top-0 z-[900] h-[100vh] w-full'}>
17
- <div className={'absolute left-0 top-0 z-[1] h-full w-full bg-black bg-opacity-80'}></div>
18
- <div
19
- className={
20
- 'absolute bottom-[50%] left-[50%] z-[2] h-[80%] max-h-[1200px] w-[80%] max-w-[1000px] translate-x-[-50%] translate-y-[50%] bg-white px-[20px] ' +
21
- //1024px
22
- 'max-lg:bottom-0 max-lg:h-[calc(100%-60px)] max-lg:w-full max-lg:translate-y-0 max-lg:px-[10px] max-lg:pb-[100px] max-lg:pt-[10px]'
23
- }
24
- >
25
- <button
26
- type={'button'}
27
- className={
28
- 'absolute right-[-40px] top-[-50px] text-[35px] text-white ' +
29
- //1024px
30
- ' max-lg:right-[10px] max-lg:top-[-45px] max-lg:text-[25px]'
31
- }
32
- onClick={props.onClick}
33
- >
34
- ✕
35
- </button>
36
- <iframe
37
- width="100%"
38
- height="100%"
39
- title="나의 사건검색"
40
- src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&amp;sch_bub_nm=&amp;sa_year=&amp;sa_gubun=&amp;sa_serial=&amp;x=&amp;y=&amp;saveCookie="
41
- ></iframe>
42
- </div>
43
- </div>
44
- </>
45
- );
46
- };
47
-
48
- export default MyCase;