@sonhoseong/mfa-lib 1.1.1 → 1.2.0
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/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/logo/Logo.d.ts +18 -0
- package/dist/components/logo/Logo.d.ts.map +1 -0
- package/dist/components/logo/Logo.js +23 -0
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/index.d.ts.map +1 -0
- package/dist/components/logo/index.js +1 -0
- package/dist/components/navigation/StickyNav.d.ts.map +1 -1
- package/dist/components/navigation/StickyNav.js +1 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC;AAG7B,cAAc,QAAQ,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LogoProps {
|
|
3
|
+
/** 크기 프리셋 */
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
/** 커스텀 크기 (중앙 아이콘 기준 px) */
|
|
6
|
+
customSize?: number;
|
|
7
|
+
/** 메인 색상 */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** 눈 색상 */
|
|
10
|
+
eyeColor?: string;
|
|
11
|
+
/** 클릭 핸들러 */
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
/** 커스텀 클래스 */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Logo: React.FC<LogoProps>;
|
|
17
|
+
export default Logo;
|
|
18
|
+
//# sourceMappingURL=Logo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/components/logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAS;IACxB,aAAa;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiFpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const sizeMap = {
|
|
3
|
+
sm: { main: 24, side: 14 },
|
|
4
|
+
md: { main: 40, side: 22 },
|
|
5
|
+
lg: { main: 56, side: 32 },
|
|
6
|
+
xl: { main: 72, side: 42 },
|
|
7
|
+
};
|
|
8
|
+
export const Logo = ({ size = 'md', customSize, color = '#1E3A5F', eyeColor = '#FFFFFF', onClick, className = '', }) => {
|
|
9
|
+
const dimensions = customSize
|
|
10
|
+
? { main: customSize, side: Math.round(customSize * 0.58) }
|
|
11
|
+
: sizeMap[size];
|
|
12
|
+
const styles = {
|
|
13
|
+
container: {
|
|
14
|
+
display: 'inline-flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
gap: Math.round(dimensions.main * 0.2),
|
|
18
|
+
cursor: onClick ? 'pointer' : 'default',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
return (_jsxs("div", { style: styles.container, className: `logo ${className}`, onClick: onClick, role: onClick ? 'button' : undefined, children: [_jsx("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: dimensions.side, height: dimensions.side, children: _jsx("path", { d: "M 8 40 L 24 8 L 40 40", stroke: color, strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }) }), _jsxs("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: dimensions.main, height: dimensions.main, children: [_jsx("rect", { x: "20", y: "2", width: "8", height: "16", rx: "4", fill: color }), _jsx("rect", { x: "6", y: "16", width: "36", height: "6", rx: "3", fill: color }), _jsx("ellipse", { cx: "24", cy: "36", rx: "18", ry: "12", fill: color }), _jsx("ellipse", { cx: "17", cy: "36", rx: "4", ry: "6", fill: eyeColor }), _jsx("ellipse", { cx: "31", cy: "36", rx: "4", ry: "6", fill: eyeColor })] }), _jsx("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: dimensions.side, height: dimensions.side, children: _jsx("path", { d: "M 8 40 L 24 8 L 40 40", stroke: color, strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }) })] }));
|
|
22
|
+
};
|
|
23
|
+
export default Logo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/logo/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Logo';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyNav.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/StickyNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"StickyNav.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/StickyNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmK9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -99,8 +99,7 @@ export const StickyNav = ({ sections, triggerPoint = 0.2, scrollOffset = 80, top
|
|
|
99
99
|
transition: 'all 0.2s ease',
|
|
100
100
|
},
|
|
101
101
|
pillHover: {
|
|
102
|
-
color: '#
|
|
103
|
-
background: 'rgba(30, 58, 95, 0.08)',
|
|
102
|
+
color: '#0EA5E9',
|
|
104
103
|
},
|
|
105
104
|
pillActive: {
|
|
106
105
|
color: '#ffffff',
|