@oxyhq/services 0.0.40 → 0.0.42
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/auth/AccountSwitcherModal.d.ts.map +1 -1
- package/dist/components/auth/AccountSwitcherModal.js +23 -25
- package/dist/components/auth/styles/session-owner-modal.module.css +1 -0
- package/dist/components/auth/styles/session-owner-modal.module.css.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B,eAAO,MAAM,oBAAoB;aAEpB,MAAM,IAAI;
|
|
1
|
+
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B,eAAO,MAAM,oBAAoB;aAEpB,MAAM,IAAI;2CAoErB,CAAC"}
|
|
@@ -9,7 +9,6 @@ import { HiOutlinePlus } from "react-icons/hi";
|
|
|
9
9
|
import { PiSignOutBold } from "react-icons/pi";
|
|
10
10
|
import { AiOutlineClose } from "react-icons/ai";
|
|
11
11
|
import getUserById from "../../hooks/getUserById";
|
|
12
|
-
import styles from "./styles/session-owner-modal.module.css";
|
|
13
12
|
export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
14
13
|
const { session } = useOxySession();
|
|
15
14
|
const [user, setUser] = useState(null);
|
|
@@ -27,29 +26,28 @@ export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
|
27
26
|
return (React.createElement(motion.div, { initial: { opacity: 0, y: "100%" }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: "100%" }, transition: {
|
|
28
27
|
ease: "easeInOut",
|
|
29
28
|
duration: 0.2,
|
|
30
|
-
}, className:
|
|
31
|
-
React.createElement("
|
|
32
|
-
React.createElement(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
React.createElement(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement("
|
|
43
|
-
React.createElement(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
React.createElement(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
React.createElement("
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
React.createElement("span", null, "Terms of service")))));
|
|
29
|
+
}, className: "relative z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-indigo-50 px-5 py-3 text-sm font-medium text-zinc-700\n shadow-md shadow-[#b4bebb]", role: "group" },
|
|
30
|
+
React.createElement("button", { className: "absolute right-3 top-3 rounded-full bg-indigo-50 p-1 hover:bg-zinc-200" },
|
|
31
|
+
React.createElement(AiOutlineClose, { className: "h-5 w-5 rounded-full stroke-2 text-zinc-700" })),
|
|
32
|
+
React.createElement("p", null, session?.user?.email),
|
|
33
|
+
React.createElement("div", { className: "h-20 w-20 rounded-full border" },
|
|
34
|
+
React.createElement(Image, { src: session?.user?.avatar, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })),
|
|
35
|
+
React.createElement("h2", { className: "tablet:text-2xl text-xl font-normal" },
|
|
36
|
+
"Hi, ",
|
|
37
|
+
session?.user?.name,
|
|
38
|
+
"!"),
|
|
39
|
+
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-blue-500 hover:bg-[#d3dfee]" }, "Manage your Google Account"),
|
|
40
|
+
React.createElement("div", { className: "flex space-x-1" },
|
|
41
|
+
React.createElement("button", { className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-l-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
42
|
+
React.createElement(HiOutlinePlus, { className: "h-7 w-7 rounded-full bg-indigo-50 p-1 text-blue-500" }),
|
|
43
|
+
React.createElement("span", null, "Add account")),
|
|
44
|
+
React.createElement("button", { className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
45
|
+
React.createElement(PiSignOutBold, { className: "h-6 w-6" }),
|
|
46
|
+
React.createElement("span", null, "Sign out"))),
|
|
47
|
+
React.createElement("div", { className: "flex h-10 items-center space-x-2 text-xs" },
|
|
48
|
+
React.createElement("span", null, "Privacy policy"),
|
|
49
|
+
React.createElement("span", { className: "-mt-[3px]" }, " . "),
|
|
50
|
+
" ",
|
|
51
|
+
React.createElement("span", null, "Terms of service"))));
|
|
54
52
|
});
|
|
55
53
|
AccountSwitcherModal.displayName = "AccountSwitcherModal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../src/components/auth/styles/session-owner-modal.module.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA","file":"session-owner-modal.module.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../src/components/auth/styles/session-owner-modal.module.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA","file":"session-owner-modal.module.css"}
|