@sonhoseong/mfa-lib 1.1.2 → 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/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';
|