@daeryun/dr_components 0.1.2 → 0.1.5

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 (42) hide show
  1. package/custom.d.ts +1 -0
  2. package/dist/asset/images/footer/logo_b.webp +0 -0
  3. package/dist/asset/images/footer/top.svg +13 -0
  4. package/dist/components/Cat/index.jsx +1 -1
  5. package/dist/components/Cat/index.tsx +1 -2
  6. package/dist/components/Fix/Fix.stories.jsx +2 -1
  7. package/dist/components/Fix/Fix.stories.tsx +2 -1
  8. package/dist/components/Footer/Footer.stories.d.ts +5 -15
  9. package/dist/components/Footer/Footer.stories.jsx +15 -7
  10. package/dist/components/Footer/Footer.stories.tsx +20 -10
  11. package/dist/components/Footer/TopBtn.d.ts +5 -0
  12. package/dist/components/Footer/TopBtn.jsx +18 -0
  13. package/dist/components/Footer/TopBtn.tsx +29 -0
  14. package/dist/components/Footer/index.d.ts +5 -7
  15. package/dist/components/Footer/index.jsx +204 -106
  16. package/dist/components/Footer/index.tsx +381 -256
  17. package/dist/components/Layout/Wrapper.d.ts +2 -4
  18. package/dist/components/Layout/Wrapper.jsx +27 -39
  19. package/dist/components/Layout/Wrapper.tsx +29 -49
  20. package/dist/components/index.js +2 -2
  21. package/dist/components/index.ts +2 -2
  22. package/dist/styles/globals.css +127 -945
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +9 -1
  25. package/dist/asset/images/logo.webp +0 -0
  26. package/dist/components/FooterKeywd/index.d.ts +0 -3
  27. package/dist/components/FooterKeywd/index.jsx +0 -88
  28. package/dist/components/FooterKeywd/index.module.css +0 -123
  29. package/dist/components/FooterKeywd/index.tsx +0 -92
  30. package/dist/components/Top/Fix.d.ts +0 -0
  31. package/dist/components/Top/Fix.jsx +0 -306
  32. package/dist/components/Top/Fix.module.css +0 -54
  33. package/dist/components/Top/Fix.tsx +0 -305
  34. package/dist/components/Top/Gnb.d.ts +0 -0
  35. package/dist/components/Top/Gnb.jsx +0 -212
  36. package/dist/components/Top/Gnb.tsx +0 -211
  37. package/dist/components/Top/Hamburger.d.ts +0 -0
  38. package/dist/components/Top/Hamburger.jsx +0 -743
  39. package/dist/components/Top/Hamburger.tsx +0 -742
  40. package/dist/components/Top/index.d.ts +0 -0
  41. package/dist/components/Top/index.jsx +0 -62
  42. 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
- paddingX?: number;
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 = ({ children, className = '', paddingX = 40, paddingY = 70, id }) => {
3
- const paddingClass = `wrapper-${id}`;
4
- return (<>
5
- <style>
6
- {`
7
- .${paddingClass} {
8
- padding-left: ${paddingX}px;
9
- padding-right: ${paddingX}px;
10
- }
11
-
12
- @media (max-width: 2120px) {
13
- .${paddingClass} {
14
- padding-left: ${paddingX + 100}px;
15
- padding-right: ${paddingX + 100}px;
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
- paddingX?: number; // 패딩x 값
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 = '', paddingX = 40, paddingY = 70, id }) => {
12
- const paddingClass = `wrapper-${id}`;
9
+ const Wrapper: React.FC<WrapperProps> = ({ children, className = '', ref = null, ...others }) => {
13
10
  return (
14
- <>
15
- <style>
16
- {`
17
- .${paddingClass} {
18
- padding-left: ${paddingX}px;
19
- padding-right: ${paddingX}px;
20
- }
21
-
22
- @media (max-width: 2120px) {
23
- .${paddingClass} {
24
- padding-left: ${paddingX + 100}px;
25
- padding-right: ${paddingX + 100}px;
26
- }
27
- }
28
-
29
- @media (max-width: 1500px) {
30
- .${paddingClass} {
31
- padding-left: ${paddingX + 40}px;
32
- padding-right: ${paddingX + 40}px;
33
- }
34
- }
35
- @media (max-width: 1024px) {
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
@@ -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
- export { default as Footer } from './Footer';
5
+ // export { default as Footer } from './Footer'
6
6
  // export { default as CategoryView } from './CategoryView'
@@ -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
- export { default as Footer } from './Footer'
5
+ // export { default as Footer } from './Footer'
6
6
  // export { default as CategoryView } from './CategoryView'