@oxyhq/services 0.0.9 → 0.0.11
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInButton.d.ts","sourceRoot":"","sources":["../../../src/components/auth/SignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,oBAGtB;IACD,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,sBAeA,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInButton.d.ts","sourceRoot":"","sources":["../../../src/components/auth/SignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,oBAGtB;IACD,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,sBAeA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import styles from "../styles/auth/sign-in-button.module.scss";
|
|
2
3
|
import { OxyLogo } from "../assets/oxy-logo";
|
|
3
4
|
export const SignInButton = ({ icon = React.createElement(OxyLogo, null), text = "Sign in with Oxy", }) => {
|
|
4
5
|
const onClick = () => {
|
|
@@ -6,40 +7,8 @@ export const SignInButton = ({ icon = React.createElement(OxyLogo, null), text =
|
|
|
6
7
|
const redirectUrl = `https://auth.oxy.so/?callback=${encodeURIComponent(currentUrl)}`;
|
|
7
8
|
window.location.href = redirectUrl;
|
|
8
9
|
};
|
|
9
|
-
return (React.createElement("button", { onClick: onClick,
|
|
10
|
+
return (React.createElement("button", { onClick: onClick, className: styles.container },
|
|
10
11
|
icon && icon,
|
|
11
12
|
text));
|
|
12
13
|
};
|
|
13
|
-
const styles = {
|
|
14
|
-
container: {
|
|
15
|
-
padding: "0.7em",
|
|
16
|
-
borderRadius: "100vmax",
|
|
17
|
-
fontSize: "var(--fs-milli)",
|
|
18
|
-
fontWeight: "var(--fw-700)",
|
|
19
|
-
color: "var(--clr-dark)",
|
|
20
|
-
backgroundColor: "var(--clr-light)",
|
|
21
|
-
border: "1px solid var(--clr-auth-border)",
|
|
22
|
-
display: "flex",
|
|
23
|
-
justifyContent: "center",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
cursor: "pointer",
|
|
26
|
-
transition: "background 0.2s ease-in-out",
|
|
27
|
-
"&:hover": {
|
|
28
|
-
backgroundColor: "var(--clr-auth-button-hover)",
|
|
29
|
-
},
|
|
30
|
-
"&:active": {
|
|
31
|
-
backgroundColor: "var(--clr-auth-button-active)",
|
|
32
|
-
},
|
|
33
|
-
"&:focus-visible": {
|
|
34
|
-
outline: "2px solid var(--clr-light)",
|
|
35
|
-
backgroundColor: "var(--clr-auth-button-hover)",
|
|
36
|
-
},
|
|
37
|
-
svg: {
|
|
38
|
-
width: "var(--fs-h2)",
|
|
39
|
-
height: "var(--fs-h2)",
|
|
40
|
-
fill: "var(--clr-dark)",
|
|
41
|
-
marginRight: "0.5em",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
14
|
export default SignInButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/services",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://oxy.so/",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,13 +24,16 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/next-auth": "^3.15.0",
|
|
26
26
|
"@types/node": "^20.11.17",
|
|
27
|
+
"@types/node-sass": "^4.11.7",
|
|
27
28
|
"@types/react": "^18.3.3",
|
|
28
29
|
"@types/react-dom": "^18.3.0",
|
|
29
30
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
30
31
|
"@typescript-eslint/parser": "^7.0.1",
|
|
31
32
|
"autoprefixer": "^10.4.17",
|
|
32
33
|
"eslint": "^8.56.0",
|
|
33
|
-
"
|
|
34
|
+
"node-sass": "^9.0.0",
|
|
35
|
+
"postcss": "^8.4.38",
|
|
36
|
+
"sass": "^1.77.2",
|
|
34
37
|
"tailwindcss": "^3.4.1",
|
|
35
38
|
"typescript": "^5.4.5"
|
|
36
39
|
},
|