@daeryun/dr_components 0.1.3 → 0.1.6
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/custom.d.ts +1 -0
- package/dist/asset/images/footer/logo_b.webp +0 -0
- package/dist/asset/images/footer/top.svg +13 -0
- package/dist/components/Cat/index.jsx +1 -1
- package/dist/components/Cat/index.tsx +1 -2
- package/dist/components/Fix/Fix.stories.jsx +2 -1
- package/dist/components/Fix/Fix.stories.tsx +2 -1
- package/dist/components/Footer/Footer.stories.d.ts +5 -15
- package/dist/components/Footer/Footer.stories.jsx +15 -7
- package/dist/components/Footer/Footer.stories.tsx +20 -10
- package/dist/components/Footer/TopBtn.d.ts +5 -0
- package/dist/components/Footer/TopBtn.jsx +18 -0
- package/dist/components/Footer/TopBtn.tsx +29 -0
- package/dist/components/Footer/index.d.ts +5 -7
- package/dist/components/Footer/index.jsx +204 -106
- package/dist/components/Footer/index.tsx +381 -256
- package/dist/components/Layout/Wrapper.d.ts +2 -4
- package/dist/components/Layout/Wrapper.jsx +27 -39
- package/dist/components/Layout/Wrapper.tsx +29 -49
- package/dist/components/index.js +2 -2
- package/dist/components/index.ts +2 -2
- package/dist/styles/globals.css +127 -945
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -1
- package/dist/asset/images/logo.webp +0 -0
- package/dist/components/FooterKeywd/index.d.ts +0 -3
- package/dist/components/FooterKeywd/index.jsx +0 -88
- package/dist/components/FooterKeywd/index.module.css +0 -123
- package/dist/components/FooterKeywd/index.tsx +0 -92
- package/dist/components/Top/Fix.d.ts +0 -0
- package/dist/components/Top/Fix.jsx +0 -306
- package/dist/components/Top/Fix.module.css +0 -54
- package/dist/components/Top/Fix.tsx +0 -305
- package/dist/components/Top/Gnb.d.ts +0 -0
- package/dist/components/Top/Gnb.jsx +0 -212
- package/dist/components/Top/Gnb.tsx +0 -211
- package/dist/components/Top/Hamburger.d.ts +0 -0
- package/dist/components/Top/Hamburger.jsx +0 -743
- package/dist/components/Top/Hamburger.tsx +0 -742
- package/dist/components/Top/index.d.ts +0 -0
- package/dist/components/Top/index.jsx +0 -62
- package/dist/components/Top/index.tsx +0 -61
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
interface WrapperProps {
|
|
2
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
-
|
|
6
|
-
paddingY?: number;
|
|
7
|
-
id: string;
|
|
5
|
+
ref?: React.Ref<HTMLDivElement> | null;
|
|
8
6
|
}
|
|
9
7
|
declare const Wrapper: React.FC<WrapperProps>;
|
|
10
8
|
export default Wrapper;
|
|
@@ -1,42 +1,30 @@
|
|
|
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
|
+
};
|
|
1
12
|
import React from 'react';
|
|
2
|
-
const Wrapper = (
|
|
3
|
-
|
|
4
|
-
return (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@media (max-width: 1500px) {
|
|
20
|
-
.${paddingClass} {
|
|
21
|
-
padding-left: ${paddingX + 40}px;
|
|
22
|
-
padding-right: ${paddingX + 40}px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
@media (max-width: 1024px) {
|
|
26
|
-
.${paddingClass} {
|
|
27
|
-
padding-left: ${paddingX + 20}px;
|
|
28
|
-
padding-right: ${paddingX + 20}px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media (max-width: 640px) {
|
|
32
|
-
.${paddingClass} {
|
|
33
|
-
padding-left: 20px;
|
|
34
|
-
padding-right: 20px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`}
|
|
38
|
-
</style>
|
|
39
|
-
<div className={`${paddingClass} w-full max-w-[1920px] mx-auto relative ${className} `}>{children}</div>
|
|
40
|
-
</>);
|
|
13
|
+
const Wrapper = (_a) => {
|
|
14
|
+
var { children, className = '', ref = null } = _a, others = __rest(_a, ["children", "className", "ref"]);
|
|
15
|
+
return (<div className={'relative mx-auto w-full max-w-[1920px] ' +
|
|
16
|
+
//PC ( ~ 1500px )
|
|
17
|
+
'px-[140px] ' +
|
|
18
|
+
//1500px
|
|
19
|
+
'max-3xl:px-[80px] ' +
|
|
20
|
+
//1024px - dev Tablets
|
|
21
|
+
'max-lg:px-[60px] ' +
|
|
22
|
+
//900px - design Tablets
|
|
23
|
+
'max-md2:px-[40px] ' +
|
|
24
|
+
//520px - dev Mobile ( 320px - design Mobile )
|
|
25
|
+
'max-2sm:px-[20px] ' +
|
|
26
|
+
className} ref={ref} {...others}>
|
|
27
|
+
{children}
|
|
28
|
+
</div>);
|
|
41
29
|
};
|
|
42
30
|
export default Wrapper;
|
|
@@ -1,54 +1,34 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react'
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
2
|
|
|
3
|
-
interface WrapperProps {
|
|
4
|
-
children: ReactNode
|
|
5
|
-
className?: string
|
|
6
|
-
|
|
7
|
-
paddingY?: number;
|
|
8
|
-
id: string;
|
|
3
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children: ReactNode
|
|
5
|
+
className?: string // 스타일 추가
|
|
6
|
+
ref?: React.Ref<HTMLDivElement> | null
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
const Wrapper: React.FC<WrapperProps> = ({ children, className = '',
|
|
12
|
-
const paddingClass = `wrapper-${id}`;
|
|
9
|
+
const Wrapper: React.FC<WrapperProps> = ({ children, className = '', ref = null, ...others }) => {
|
|
13
10
|
return (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.${paddingClass} {
|
|
37
|
-
padding-left: ${paddingX + 20}px;
|
|
38
|
-
padding-right: ${paddingX + 20}px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media (max-width: 640px) {
|
|
42
|
-
.${paddingClass} {
|
|
43
|
-
padding-left: 20px;
|
|
44
|
-
padding-right: 20px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`}
|
|
48
|
-
</style>
|
|
49
|
-
<div className={`${paddingClass} w-full max-w-[1920px] mx-auto relative ${className} `}>{children}</div>
|
|
50
|
-
</>
|
|
51
|
-
);
|
|
52
|
-
};
|
|
11
|
+
<div
|
|
12
|
+
className={
|
|
13
|
+
'relative mx-auto w-full max-w-[1920px] ' +
|
|
14
|
+
//PC ( ~ 1500px )
|
|
15
|
+
'px-[140px] ' +
|
|
16
|
+
//1500px
|
|
17
|
+
'max-3xl:px-[80px] ' +
|
|
18
|
+
//1024px - dev Tablets
|
|
19
|
+
'max-lg:px-[60px] ' +
|
|
20
|
+
//900px - design Tablets
|
|
21
|
+
'max-md2:px-[40px] ' +
|
|
22
|
+
//520px - dev Mobile ( 320px - design Mobile )
|
|
23
|
+
'max-2sm:px-[20px] ' +
|
|
24
|
+
className
|
|
25
|
+
}
|
|
26
|
+
ref={ref}
|
|
27
|
+
{...others}
|
|
28
|
+
>
|
|
29
|
+
{children}
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
53
33
|
|
|
54
|
-
export default Wrapper
|
|
34
|
+
export default Wrapper
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import '../styles/globals.css'
|
|
2
2
|
// export { default as Top } from './Top'
|
|
3
|
-
export { default as Cat } from './Cat'
|
|
3
|
+
// export { default as Cat } from './Cat'
|
|
4
4
|
// export { default as FooterKeywd } from './FooterKeywd'
|
|
5
|
-
|
|
5
|
+
export { default as Footer } from './Footer';
|
|
6
6
|
// export { default as CategoryView } from './CategoryView'
|
package/dist/components/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import '../styles/globals.css'
|
|
2
2
|
// export { default as Top } from './Top'
|
|
3
|
-
export { default as Cat } from './Cat'
|
|
3
|
+
// export { default as Cat } from './Cat'
|
|
4
4
|
// export { default as FooterKeywd } from './FooterKeywd'
|
|
5
|
-
|
|
5
|
+
export { default as Footer } from './Footer';
|
|
6
6
|
// export { default as CategoryView } from './CategoryView'
|