next-auth-mfelfelani72 0.0.24 → 0.0.26
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/base/Image.js +1 -1
- package/dist/components/base/LanguageSwitcher.d.ts +0 -0
- package/dist/components/base/LanguageSwitcher.js +0 -0
- package/dist/components/demo/auth/Login.d.ts +1 -1
- package/dist/components/demo/auth/Login.js +1 -1
- package/dist/components/demo/auth/Register.d.ts +1 -1
- package/dist/components/demo/auth/Register.js +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/LoginLanding.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/RegisterLanding.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/BrandCard.d.ts +5 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/BrandCard.js +20 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/LeftSidebar.d.ts +8 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/LeftSidebar.js +19 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/RightSidebar.d.ts +6 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/RightSidebar.js +16 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginDetails.d.ts +1 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginDetails.js +24 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginForm.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginForm.js +2 -2
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterDetails.d.ts +2 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterDetails.js +25 -0
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterForm.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterForm.js +2 -2
- package/dist/components/demo/auth/layouts/twoColumn/desktop/Login.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/desktop/Login.js +6 -16
- package/dist/components/demo/auth/layouts/twoColumn/desktop/Register.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/desktop/Register.js +6 -16
- package/dist/components/demo/auth/layouts/twoColumn/ipad/Login.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/ipad/Login.js +4 -16
- package/dist/components/demo/auth/layouts/twoColumn/ipad/Register.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/ipad/Register.js +4 -16
- package/dist/components/demo/auth/layouts/twoColumn/mobile/Login.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/mobile/Login.js +3 -7
- package/dist/components/demo/auth/layouts/twoColumn/mobile/Register.d.ts +1 -1
- package/dist/components/demo/auth/layouts/twoColumn/mobile/Register.js +3 -7
- package/dist/configs/env.d.ts +0 -0
- package/dist/configs/env.js +0 -0
- package/dist/configs/language.d.ts +0 -0
- package/dist/configs/language.js +0 -0
- package/dist/core/auth.d.ts +0 -0
- package/dist/core/auth.js +0 -0
- package/dist/hooks/useTranslation.d.ts +0 -0
- package/dist/hooks/useTranslation.js +0 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +3 -2
- package/dist/libraries/auth/loginHandler.d.ts +0 -0
- package/dist/libraries/auth/loginHandler.js +0 -0
- package/dist/libraries/fonts.d.ts +0 -0
- package/dist/libraries/fonts.js +0 -0
- package/dist/locale/auth/en.json +0 -0
- package/dist/locale/auth/fa.json +0 -0
- package/dist/locale/en.d.ts +0 -0
- package/dist/locale/en.js +0 -0
- package/dist/locale/fa.d.ts +0 -0
- package/dist/locale/fa.js +0 -0
- package/dist/locale/index.d.ts +0 -0
- package/dist/locale/index.js +0 -0
- package/dist/proxy.d.ts +0 -0
- package/dist/proxy.js +0 -0
- package/dist/stores/AppStore.d.ts +0 -0
- package/dist/stores/AppStore.js +0 -0
- package/package.json +1 -1
- package/dist/components/Login.d.ts +0 -14
- package/dist/components/Login.js +0 -61
- package/dist/components/Register.d.ts +0 -1
- package/dist/components/Register.js +0 -41
- package/dist/components/demo/UiLogin.d.ts +0 -10
- package/dist/components/demo/UiLogin.js +0 -26
- package/dist/components/demo/UiRegister.d.ts +0 -12
- package/dist/components/demo/UiRegister.js +0 -15
- package/dist/interfaces/dictionary.d.ts +0 -18
- package/dist/interfaces/dictionary.js +0 -8
- package/dist/interfaces/global.d.ts +0 -65
- package/dist/interfaces/global.js +0 -1
- package/dist/libraries/cn.d.ts +0 -1
- package/dist/libraries/cn.js +0 -12
- package/dist/libraries/debounce.d.ts +0 -10
- package/dist/libraries/debounce.js +0 -17
- package/dist/libraries/detectComponentResponsive.d.ts +0 -10
- package/dist/libraries/detectComponentResponsive.js +0 -24
- package/dist/libraries/detectDeviceFromUA.d.ts +0 -8
- package/dist/libraries/detectDeviceFromUA.js +0 -14
- package/dist/libraries/translation.d.ts +0 -15
- package/dist/libraries/translation.js +0 -70
- package/dist/stores/LangStore.d.ts +0 -10
- package/dist/stores/LangStore.js +0 -87
- package/dist/types.d.ts +0 -10
- package/dist/types.js +0 -1
- package/dist/utilities/app/cookieUtils.d.ts +0 -20
- package/dist/utilities/app/cookieUtils.js +0 -98
|
@@ -27,7 +27,7 @@ import * as motion from "motion/react-client";
|
|
|
27
27
|
import { AnimatePresence } from "motion/react";
|
|
28
28
|
import { cn } from "forma-li";
|
|
29
29
|
// Hooks
|
|
30
|
-
import { useTranslation } from "
|
|
30
|
+
import { useTranslation } from "../../hooks/useTranslation";
|
|
31
31
|
// Constants
|
|
32
32
|
const PHRASE_KEYS = [
|
|
33
33
|
"loading_ahead_of_market",
|
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { useState, useMemo, lazy } from "react";
|
|
11
11
|
// Components
|
|
12
|
-
const LazyTwoColumn = lazy(() => import("
|
|
12
|
+
const LazyTwoColumn = lazy(() => import("../../../components/demo/auth/layouts/twoColumn/LoginLanding"));
|
|
13
13
|
// Constants
|
|
14
14
|
const LAYOUT_MAP = {
|
|
15
15
|
twoColumn: LazyTwoColumn,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useMemo, lazy } from "react";
|
|
4
4
|
import { cn } from "forma-li";
|
|
5
|
-
const LazyTwoColumn = lazy(() => import("
|
|
5
|
+
const LazyTwoColumn = lazy(() => import("../../../components/demo/auth/layouts/twoColumn/RegisterLanding"));
|
|
6
6
|
const LAYOUT_MAP = {
|
|
7
7
|
twoColumn: LazyTwoColumn,
|
|
8
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LoginComponentProps } from "
|
|
1
|
+
import type { LoginComponentProps } from "../../../../../types";
|
|
2
2
|
export default function TwoColumnLayout(props: LoginComponentProps): import("react").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RegisterComponentProps } from "
|
|
1
|
+
import type { RegisterComponentProps } from "../../../../../types";
|
|
2
2
|
export default function TwoColumnLayout(props: RegisterComponentProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: Mohammad Felfelani
|
|
3
|
+
* @Email: mfelfelani72@gmail.com
|
|
4
|
+
* @Team:
|
|
5
|
+
* @Date: 2025-10-04 11:48:20
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
// Components
|
|
11
|
+
import Image from "../../../../../../../../components/base/Image";
|
|
12
|
+
// Functions
|
|
13
|
+
import { cn } from "forma-li";
|
|
14
|
+
// Hooks
|
|
15
|
+
import { useTranslation } from "../../../../../../../../hooks/useTranslation";
|
|
16
|
+
export default function BrandCard({ className }) {
|
|
17
|
+
// Hooks
|
|
18
|
+
const { t } = useTranslation();
|
|
19
|
+
return (_jsxs("div", { className: cn("flex flex-col items-center gap-4 text-center", className), children: [_jsx("div", { className: "h-20 w-20 xl:h-24 xl:w-24 shrink-0", children: _jsx(Image, { src: "/images/png/logo.png", alt: "Logo", width: 80, height: 80, unoptimized: true, className: "h-full w-full object-contain", enableLoading: false, loading: "eager" }) }), _jsx("h1", { className: "text-3xl font-bold tracking-tight text-cyan-800 xl:text-4xl 2xl:text-5xl", children: t(process.env.NEXT_PUBLIC_LICENSE_NAME || "") }), _jsx("p", { className: "text-xs text-Neutral-400 xl:text-sm", children: t("right_sidebar_description") })] }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface LeftSidebarProps {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function LeftSidebar({ title, description, className, children, }: LeftSidebarProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: Mohammad Felfelani
|
|
3
|
+
* @Email: mfelfelani72@gmail.com
|
|
4
|
+
* @Team:
|
|
5
|
+
* @Date: 2025-10-04 11:48:20
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useRouter } from "next/navigation";
|
|
11
|
+
// Components
|
|
12
|
+
import { ArrowLeft } from "lucide-react";
|
|
13
|
+
// Functions
|
|
14
|
+
import { cn } from "forma-li";
|
|
15
|
+
export default function LeftSidebar({ title, description, className, children, }) {
|
|
16
|
+
// Hooks
|
|
17
|
+
const router = useRouter();
|
|
18
|
+
return (_jsxs("div", { className: cn("flex flex-col w-full px-6 py-5 relative overflow-hidden", "bg-white/3 backdrop-blur-lg", "border border-white/5", "shadow-2xl shadow-black/10", "ltr:rounded-l-2xl rtl:rounded-r-2xl", "xl:px-8 xl:py-6", className), children: [_jsx("div", { className: "absolute inset-0 bg-linear-to-br from-white/5 via-transparent to-transparent pointer-events-none" }), _jsx("div", { className: "absolute inset-0 rounded-l-2xl shadow-[inset_0_0_80px_rgba(255,255,255,0.03)] pointer-events-none" }), _jsxs("header", { className: "relative z-10 mb-4", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("button", { onClick: () => router.back(), className: "group cursor-pointer flex h-8 w-8 items-center justify-center rounded-full border border-gray-200/50 bg-white/30 text-gray-400 transition-all hover:bg-white/20 hover:border-gray-300 hover:text-gray-600", children: _jsx(ArrowLeft, { className: "h-4 w-4 transition-transform group-hover:scale-110 rtl:rotate-180 text-Neutral-100" }) }), _jsx("h1", { className: "text-lg font-semibold tracking-wide text-Neutral-50 xl:text-xl", children: title })] }), _jsx("p", { className: "hidden 4xl:block mt-1 max-w-[24rem] text-xs text-Neutral-100 ltr:pl-11 rtl:pr-11 xl:text-sm", children: description })] }), _jsx("div", { className: "relative z-10 flex-1", children: children })] }));
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: Mohammad Felfelani
|
|
3
|
+
* @Email: mfelfelani72@gmail.com
|
|
4
|
+
* @Team:
|
|
5
|
+
* @Date: 2025-10-04 11:48:20
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
// Components
|
|
11
|
+
import BrandCard from "./BrandCard";
|
|
12
|
+
// Functions
|
|
13
|
+
import { cn } from "forma-li";
|
|
14
|
+
export default function RightSidebar({ className, children, }) {
|
|
15
|
+
return (_jsxs("div", { className: cn("flex flex-col w-full p-2 relative", "bg-white/80 backdrop-blur-none", "border border-white/20", "shadow-2xl shadow-black/15", "ltr:rounded-r-2xl rtl:rounded-l-2xl", className), children: [_jsx("div", { className: "absolute inset-0 bg-linear-to-br from-white/40 via-white/10 to-transparent pointer-events-none ltr:rounded-r-2xl rtl:rounded-l-2xl" }), _jsxs("div", { className: "flex flex-col h-full items-center justify-between z-10", children: [_jsx(BrandCard, {}), children] })] }));
|
|
16
|
+
}
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginDetails.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function LoginDetails(): import("react").JSX.Element;
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginDetails.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: Mohammad Felfelani
|
|
3
|
+
* @Email: mfelfelani72@gmail.com
|
|
4
|
+
* @Team:
|
|
5
|
+
* @Date: 2025-10-04 11:48:20
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
// Components
|
|
11
|
+
import { Shield, Bolt, Eye } from "lucide-react";
|
|
12
|
+
// Hooks
|
|
13
|
+
import { useTranslation } from "../../../../../../../../../hooks/useTranslation";
|
|
14
|
+
export default function LoginDetails() {
|
|
15
|
+
// Hooks
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
// Constants
|
|
18
|
+
const features = [
|
|
19
|
+
{ icon: Shield, label: t("encrypted"), color: "text-emerald-600" },
|
|
20
|
+
{ icon: Bolt, label: t("fast"), color: "text-amber-600" },
|
|
21
|
+
{ icon: Eye, label: t("protected"), color: "text-sky-600" },
|
|
22
|
+
];
|
|
23
|
+
return (_jsx("div", { className: "px-1", children: _jsx("div", { className: "flex gap-6", children: features.map(({ icon: Icon, label, color }) => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: `h-4 w-4 ${color} xl:h-5 xl:w-5` }), _jsx("span", { className: "text-xs text-gray-500 xl:text-sm", children: label })] }, label))) }) }));
|
|
24
|
+
}
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/login/LoginForm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LoginComponentProps } from "
|
|
1
|
+
import type { LoginComponentProps } from "../../../../../../../../../types";
|
|
2
2
|
export default function LoginForm({ onSubmit, errors, message, }: LoginComponentProps): import("react").JSX.Element;
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
// Components
|
|
12
|
-
import LocalizedLink from "
|
|
12
|
+
import LocalizedLink from "../../../../../../../../../components/base/LocalizedLink";
|
|
13
13
|
import { InputPassword, InputEmail } from "forma-ui";
|
|
14
14
|
const GoogleIcon = () => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", children: _jsxs("g", { fill: "none", fillRule: "evenodd", children: [_jsx("path", { fill: "#4285F4", d: "M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z" }), _jsx("path", { fill: "#34A853", d: "M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18z" }), _jsx("path", { fill: "#FBBC05", d: "M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332z" }), _jsx("path", { fill: "#EA4335", d: "M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z" })] }) }));
|
|
15
15
|
// Hooks
|
|
16
|
-
import { useTranslation } from "
|
|
16
|
+
import { useTranslation } from "../../../../../../../../../hooks/useTranslation";
|
|
17
17
|
export default function LoginForm({ onSubmit, errors, message, }) {
|
|
18
18
|
// Hooks
|
|
19
19
|
const { t } = useTranslation();
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterDetails.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: Mohammad Felfelani
|
|
3
|
+
* @Email: mfelfelani72@gmail.com
|
|
4
|
+
* @Team:
|
|
5
|
+
* @Date: 2025-12-31 07:55:26
|
|
6
|
+
* @Description: Login Details - Dark text for white bg
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
// Components
|
|
11
|
+
import { Shield, Bolt, Eye } from "lucide-react";
|
|
12
|
+
// Hooks
|
|
13
|
+
import { useTranslation } from "../../../../../../../../../hooks/useTranslation";
|
|
14
|
+
const RegisterDetails = () => {
|
|
15
|
+
// Hooks
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
// Constants
|
|
18
|
+
const features = [
|
|
19
|
+
{ icon: Shield, label: t("encrypted"), color: "text-emerald-600" },
|
|
20
|
+
{ icon: Bolt, label: t("fast"), color: "text-amber-600" },
|
|
21
|
+
{ icon: Eye, label: t("protected"), color: "text-sky-600" },
|
|
22
|
+
];
|
|
23
|
+
return (_jsx("div", { className: "px-1", children: _jsx("div", { className: "flex gap-6", children: features.map(({ icon: Icon, label, color }) => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: `h-4 w-4 ${color} xl:h-5 xl:w-5` }), _jsx("span", { className: "text-xs text-gray-500 xl:text-sm", children: label })] }, label))) }) }));
|
|
24
|
+
};
|
|
25
|
+
export default RegisterDetails;
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterForm.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RegisterComponentProps } from "
|
|
1
|
+
import type { RegisterComponentProps } from "../../../../../../../../../types";
|
|
2
2
|
declare const RegisterForm: ({ onSubmit, errors, message, }: RegisterComponentProps) => import("react").JSX.Element;
|
|
3
3
|
export default RegisterForm;
|
package/dist/components/demo/auth/layouts/twoColumn/common/theme/default/register/RegisterForm.js
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
// Hooks
|
|
12
|
-
import { useTranslation } from "
|
|
12
|
+
import { useTranslation } from "../../../../../../../../../hooks/useTranslation";
|
|
13
13
|
// Components
|
|
14
14
|
import { InputPassword, InputEmail, InputRePassword } from "forma-ui";
|
|
15
|
-
import LocalizedLink from "
|
|
15
|
+
import LocalizedLink from "../../../../../../../../../components/base/LocalizedLink";
|
|
16
16
|
// Google SVG Icon Component
|
|
17
17
|
// Interface
|
|
18
18
|
const RegisterForm = ({ onSubmit, errors, message, }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LoginComponentProps } from "
|
|
1
|
+
import type { LoginComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function LoginDesktop(props: LoginComponentProps): import("react").JSX.Element;
|
|
@@ -7,25 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import LeftSidebar from "../common/theme/default/LeftSidebar";
|
|
12
|
+
import RightSidebar from "../common/theme/default/RightSidebar";
|
|
13
|
+
import LoginForm from "../common/theme/default/login/LoginForm";
|
|
14
|
+
import LoginDetails from "../common/theme/default/login/LoginDetails";
|
|
12
15
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
16
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
17
|
export default function LoginDesktop(props) {
|
|
15
18
|
// Hooks
|
|
16
19
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const Components = useMemo(() => {
|
|
19
|
-
const createDynamicComponent = (name) => {
|
|
20
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/${name}`).catch(() => import(`../common/theme/default/${name}`)), { ssr: false });
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
LeftSidebar: createDynamicComponent("LeftSidebar"),
|
|
24
|
-
RightSidebar: createDynamicComponent("RightSidebar"),
|
|
25
|
-
LoginForm: createDynamicComponent("login/LoginForm"),
|
|
26
|
-
LoginDetails: createDynamicComponent("login/LoginDetails"),
|
|
27
|
-
};
|
|
28
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
29
|
-
const { LeftSidebar, RightSidebar, LoginForm, LoginDetails } = Components;
|
|
30
20
|
return (_jsx("div", { className: "flex flex-row h-screen w-full items-center justify-center", children: _jsxs("div", { className: "relative inline-flex flex-row z-120 max-w-[60dvw] h-[77dvh]", children: [_jsx(LeftSidebar, { title: t("login_title"), description: t("login_description"), children: _jsx(LoginForm, Object.assign({}, props)) }), _jsx(RightSidebar, { children: _jsx(LoginDetails, {}) })] }) }));
|
|
31
21
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RegisterComponentProps } from "
|
|
1
|
+
import type { RegisterComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function RegisterDesktop(props: RegisterComponentProps): import("react").JSX.Element;
|
|
@@ -7,25 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import LeftSidebar from "../common/theme/default/LeftSidebar";
|
|
12
|
+
import RightSidebar from "../common/theme/default/RightSidebar";
|
|
13
|
+
import RegisterForm from "../common/theme/default/register/RegisterForm";
|
|
14
|
+
import RegisterDetails from "../common/theme/default/register/RegisterDetails";
|
|
12
15
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
16
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
17
|
export default function RegisterDesktop(props) {
|
|
15
18
|
// Hooks
|
|
16
19
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const Components = useMemo(() => {
|
|
19
|
-
const createDynamicComponent = (name) => {
|
|
20
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/${name}`).catch(() => import(`../common/theme/default/${name}`)), { ssr: false });
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
LeftSidebar: createDynamicComponent("LeftSidebar"),
|
|
24
|
-
RightSidebar: createDynamicComponent("RightSidebar"),
|
|
25
|
-
RegisterForm: createDynamicComponent("register/RegisterForm"),
|
|
26
|
-
RegisterDetails: createDynamicComponent("register/RegisterDetails"),
|
|
27
|
-
};
|
|
28
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
29
|
-
const { LeftSidebar, RightSidebar, RegisterForm, RegisterDetails } = Components;
|
|
30
20
|
return (_jsx("div", { className: "flex flex-row h-screen w-full items-center justify-center", children: _jsxs("div", { className: "relative inline-flex flex-row z-120 max-w-[60dvw] h-[77dvh]", children: [_jsx(LeftSidebar, { title: t("register_title"), description: t("register_description"), children: _jsx(RegisterForm, Object.assign({}, props)) }), _jsx(RightSidebar, { children: _jsx(RegisterDetails, {}) })] }) }));
|
|
31
21
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LoginComponentProps } from "
|
|
1
|
+
import type { LoginComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function LoginIpad(props: LoginComponentProps): import("react").JSX.Element;
|
|
@@ -7,25 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import LoginForm from "../common/theme/default/login/LoginForm";
|
|
12
|
+
import LoginDetails from "../common/theme/default/login/LoginDetails";
|
|
12
13
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
14
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
15
|
export default function LoginIpad(props) {
|
|
15
16
|
// Hooks
|
|
16
17
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const Components = useMemo(() => {
|
|
19
|
-
const createDynamicComponent = (name) => {
|
|
20
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/${name}`).catch(() => import(`../common/theme/default/${name}`)), { ssr: false });
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
LeftSidebar: createDynamicComponent("LeftSidebar"),
|
|
24
|
-
RightSidebar: createDynamicComponent("RightSidebar"),
|
|
25
|
-
LoginForm: createDynamicComponent("login/LoginForm"),
|
|
26
|
-
LoginDetails: createDynamicComponent("login/LoginDetails"),
|
|
27
|
-
};
|
|
28
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
29
|
-
const { LoginForm, LoginDetails } = Components;
|
|
30
18
|
return (_jsx("div", { className: "flex items-center justify-center min-h-screen p-6 ", children: _jsxs("div", { className: "flex flex-row w-full max-w-4xl h-[85vh] rounded-2xl overflow-hidden shadow-2xl", children: [_jsxs("div", { className: "w-1/2 bg-white/10 backdrop-blur-md p-6 flex flex-col", children: [_jsx("h1", { className: "text-xl font-bold text-white mb-1", children: t("login_title") }), _jsx("p", { className: "text-sm text-gray-200 mb-4", children: t("login_description") }), _jsx(LoginForm, Object.assign({}, props))] }), _jsxs("div", { className: "w-1/2 bg-white/80 backdrop-blur-none p-6 flex flex-col items-center justify-center", children: [_jsxs("div", { className: "text-center", children: [_jsx("h2", { className: "text-3xl font-bold text-cyan-800", children: "Brand" }), _jsx("p", { className: "text-xs text-gray-500 mt-2", children: t("right_sidebar_description") })] }), _jsx(LoginDetails, {})] })] }) }));
|
|
31
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RegisterComponentProps } from "
|
|
1
|
+
import type { RegisterComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function RegisterIpad(props: RegisterComponentProps): import("react").JSX.Element;
|
|
@@ -7,25 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import RegisterForm from "../common/theme/default/register/RegisterForm";
|
|
12
|
+
import RegisterDetails from "../common/theme/default/register/RegisterDetails";
|
|
12
13
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
14
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
15
|
export default function RegisterIpad(props) {
|
|
15
16
|
// Hooks
|
|
16
17
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const Components = useMemo(() => {
|
|
19
|
-
const createDynamicComponent = (name) => {
|
|
20
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/${name}`).catch(() => import(`../common/theme/default/${name}`)), { ssr: false });
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
LeftSidebar: createDynamicComponent("LeftSidebar"),
|
|
24
|
-
RightSidebar: createDynamicComponent("RightSidebar"),
|
|
25
|
-
RegisterForm: createDynamicComponent("register/RegisterForm"),
|
|
26
|
-
RegisterDetails: createDynamicComponent("register/RegisterDetails"),
|
|
27
|
-
};
|
|
28
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
29
|
-
const { RegisterForm, RegisterDetails } = Components;
|
|
30
18
|
return (_jsx("div", { className: "flex items-center justify-center min-h-screen p-6 ", children: _jsxs("div", { className: "flex flex-row w-full max-w-4xl h-[85vh] rounded-2xl overflow-hidden shadow-2xl", children: [_jsxs("div", { className: "w-1/2 bg-white/10 backdrop-blur-md p-6 flex flex-col", children: [_jsx("h1", { className: "text-xl font-bold text-white mb-1", children: t("register_title") }), _jsx("p", { className: "text-sm text-gray-200 mb-4", children: t("login_description") }), _jsx(RegisterForm, Object.assign({}, props))] }), _jsxs("div", { className: "w-1/2 bg-white/80 backdrop-blur-none p-6 flex flex-col items-center justify-center", children: [_jsxs("div", { className: "text-center", children: [_jsx("h2", { className: "text-3xl font-bold text-cyan-800", children: "Brand" }), _jsx("p", { className: "text-xs text-gray-500 mt-2", children: t("right_sidebar_description") })] }), _jsx(RegisterDetails, {})] })] }) }));
|
|
31
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LoginComponentProps } from "
|
|
1
|
+
import type { LoginComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function LoginMobile(props: LoginComponentProps): import("react").JSX.Element;
|
|
@@ -7,16 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import LoginForm from "../common/theme/default/login/LoginForm";
|
|
12
12
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
13
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
14
|
export default function LoginMobile(props) {
|
|
15
15
|
// Hooks
|
|
16
16
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const LoginForm = useMemo(() => {
|
|
19
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/LoginForm`).catch(() => import(`../common/theme/default/login/LoginForm`)), { ssr: false });
|
|
20
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
21
17
|
return (_jsx("div", { className: "flex items-center justify-center min-h-screen p-4 bg-linear-to-br", children: _jsxs("div", { className: "w-full max-w-sm bg-white/20 backdrop-blur-md rounded-2xl p-6 border border-white/30", children: [_jsx("h1", { className: "text-2xl font-bold text-center text-white mb-2", children: t("login_title") }), _jsx("p", { className: "text-center text-gray-200 mb-6 text-sm", children: t("login_description") }), _jsx(LoginForm, Object.assign({}, props))] }) }));
|
|
22
18
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RegisterComponentProps } from "
|
|
1
|
+
import type { RegisterComponentProps } from "../../../../../../types";
|
|
2
2
|
export default function RegisterMobile(props: RegisterComponentProps): import("react").JSX.Element;
|
|
@@ -7,16 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
// Components
|
|
11
|
+
import RegisterForm from "../common/theme/default/register/RegisterForm";
|
|
12
12
|
// Hooks
|
|
13
|
-
import { useTranslation } from "
|
|
13
|
+
import { useTranslation } from "../../../../../../hooks/useTranslation";
|
|
14
14
|
export default function RegisterMobile(props) {
|
|
15
15
|
// Hooks
|
|
16
16
|
const { t } = useTranslation();
|
|
17
|
-
// Functions
|
|
18
|
-
const RegisterForm = useMemo(() => {
|
|
19
|
-
return dynamic(() => import(`../common/theme/${props === null || props === void 0 ? void 0 : props.theme}/RegisterForm`).catch(() => import(`../common/theme/default/register/RegisterForm`)), { ssr: false });
|
|
20
|
-
}, [props === null || props === void 0 ? void 0 : props.theme]);
|
|
21
17
|
return (_jsx("div", { className: "flex items-center justify-center min-h-screen p-4 bg-linear-to-br", children: _jsxs("div", { className: "w-full max-w-sm bg-white/20 backdrop-blur-md rounded-2xl p-6 border border-white/30", children: [_jsx("h1", { className: "text-2xl font-bold text-center text-white mb-2", children: t("register_title") }), _jsx("p", { className: "text-center text-gray-200 mb-6 text-sm", children: t("register_description") }), _jsx(RegisterForm, Object.assign({}, props))] }) }));
|
|
22
18
|
}
|
package/dist/configs/env.d.ts
CHANGED
|
File without changes
|
package/dist/configs/env.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/configs/language.js
CHANGED
|
File without changes
|
package/dist/core/auth.d.ts
CHANGED
|
File without changes
|
package/dist/core/auth.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,3 @@ export { default as Login } from "./components/demo/auth/Login";
|
|
|
2
2
|
export { default as Register } from "./components/demo/auth/Register";
|
|
3
3
|
export { loginHandler } from "./libraries/auth/loginHandler";
|
|
4
4
|
export { registerHandler } from "./libraries/auth/registerHandler";
|
|
5
|
-
export { auth } from './core/auth';
|
|
6
|
-
export { env, checkEnv } from './configs/env';
|
|
7
|
-
export type { ServerEnv, ClientEnv } from './configs/env';
|
package/dist/index.js
CHANGED
|
@@ -4,5 +4,6 @@ export { default as Register } from "./components/demo/auth/Register";
|
|
|
4
4
|
// Server handlers
|
|
5
5
|
export { loginHandler } from "./libraries/auth/loginHandler";
|
|
6
6
|
export { registerHandler } from "./libraries/auth/registerHandler";
|
|
7
|
-
export { auth } from './core/auth';
|
|
8
|
-
export { env, checkEnv } from './configs/env';
|
|
7
|
+
// export { auth } from './core/auth';
|
|
8
|
+
// export { env, checkEnv } from './configs/env';
|
|
9
|
+
// export type { ServerEnv, ClientEnv } from './configs/env';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/libraries/fonts.js
CHANGED
|
File without changes
|
package/dist/locale/auth/en.json
CHANGED
|
File without changes
|
package/dist/locale/auth/fa.json
CHANGED
|
File without changes
|
package/dist/locale/en.d.ts
CHANGED
|
File without changes
|
package/dist/locale/en.js
CHANGED
|
File without changes
|
package/dist/locale/fa.d.ts
CHANGED
|
File without changes
|
package/dist/locale/fa.js
CHANGED
|
File without changes
|
package/dist/locale/index.d.ts
CHANGED
|
File without changes
|
package/dist/locale/index.js
CHANGED
|
File without changes
|
package/dist/proxy.d.ts
CHANGED
|
File without changes
|
package/dist/proxy.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/stores/AppStore.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { LoginProps } from "../types";
|
|
3
|
-
interface LoginComponentProps {
|
|
4
|
-
onSubmit: (formData: FormData) => void;
|
|
5
|
-
errors?: {
|
|
6
|
-
username?: string;
|
|
7
|
-
password?: string;
|
|
8
|
-
};
|
|
9
|
-
message?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export default function Login({ loginRoute, UiComponent, }: LoginProps & {
|
|
12
|
-
UiComponent?: React.ComponentType<LoginComponentProps>;
|
|
13
|
-
}): React.JSX.Element;
|
|
14
|
-
export {};
|