@edu-tosel/design 1.0.182 → 1.0.184
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { OnClick } from "../../../interface";
|
|
1
2
|
type OAuthType = "naver" | "kakaotalk";
|
|
2
3
|
interface OAuthProps {
|
|
4
|
+
onClick?: OnClick;
|
|
3
5
|
type: OAuthType;
|
|
4
6
|
}
|
|
5
|
-
export default function OAuth({ type }: OAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function OAuth({ onClick, type }: OAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../util";
|
|
3
3
|
import SVG from "../../../asset/SVG";
|
|
4
|
-
export default function OAuth({ type }) {
|
|
4
|
+
export default function OAuth({ onClick, type }) {
|
|
5
5
|
const socialBox = {
|
|
6
6
|
display: "flex flex-row",
|
|
7
7
|
sizes: "xs:max-w-[210px] w-full h-15 rounded-lg",
|
|
@@ -14,7 +14,7 @@ export default function OAuth({ type }) {
|
|
|
14
14
|
displays: "flex justify-center items-center",
|
|
15
15
|
styles: type === "naver" ? " group-hover:text-white" : "",
|
|
16
16
|
};
|
|
17
|
-
return (_jsxs("div", { className: cn(socialBox), onClick:
|
|
17
|
+
return (_jsxs("div", { className: cn(socialBox), onClick: onClick, children: [_jsx("div", { className: "h-full aspect-square flex justify-center items-center", children: _jsx(SVGProvider, { type: type }) }), _jsx("div", { className: "h-full" }), _jsx("div", { className: cn(textStyle), children: textParser(type) })] }));
|
|
18
18
|
}
|
|
19
19
|
const textParser = (type) => {
|
|
20
20
|
if (type === "naver")
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.184
|