@neuctra/authix 1.0.2 → 1.0.4

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.
@@ -2,5 +2,5 @@ import React, { ReactNode } from "react";
2
2
  interface SignInComponentProps {
3
3
  children?: ReactNode;
4
4
  }
5
- export declare const ReactSignInComponent: React.FC<SignInComponentProps>;
5
+ export declare const ReactSignedIn: React.FC<SignInComponentProps>;
6
6
  export {};
@@ -2,5 +2,5 @@ import React, { ReactNode } from "react";
2
2
  interface SignOutComponentProps {
3
3
  children?: ReactNode;
4
4
  }
5
- export declare const ReactSignOutComponent: React.FC<SignOutComponentProps>;
5
+ export declare const ReactSignedOut: React.FC<SignOutComponentProps>;
6
6
  export {};
@@ -9,6 +9,7 @@ interface UserInfo {
9
9
  interface UserButtonProps {
10
10
  darkMode?: boolean;
11
11
  primaryColor?: string;
12
+ varient?: "classic" | "modren";
12
13
  onLogout: () => void;
13
14
  propUser?: UserInfo | null;
14
15
  className?: string;
@@ -5,6 +5,7 @@ interface UserProfileProps {
5
5
  user?: UserInfo | null;
6
6
  darkMode?: boolean;
7
7
  primaryColor?: string;
8
+ onLogout: () => void;
8
9
  }
9
10
  export declare const ReactUserProfile: React.FC<UserProfileProps>;
10
11
  export {};
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ interface ThemeColors {
3
+ background: string;
4
+ surface: string;
5
+ surfaceLight: string;
6
+ surfaceLighter: string;
7
+ textPrimary: string;
8
+ textSecondary: string;
9
+ textTertiary: string;
10
+ accent: string;
11
+ accentHover: string;
12
+ success: string;
13
+ error: string;
14
+ border: string;
15
+ }
16
+ interface AvatarModalProps {
17
+ isOpen: boolean;
18
+ onClose: () => void;
19
+ onUpdate: (url: string) => Promise<boolean>;
20
+ colors: ThemeColors;
21
+ }
22
+ declare const AvatarModal: React.FC<AvatarModalProps>;
23
+ export default AvatarModal;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ interface ThemeColors {
3
+ background: string;
4
+ surface: string;
5
+ surfaceLight: string;
6
+ surfaceLighter: string;
7
+ textPrimary: string;
8
+ textSecondary: string;
9
+ textTertiary: string;
10
+ accent: string;
11
+ accentHover: string;
12
+ success: string;
13
+ error: string;
14
+ border: string;
15
+ }
16
+ interface ChangePasswordModalProps {
17
+ baseUrl: string;
18
+ apiKey: string;
19
+ appId: string;
20
+ isOpen: boolean;
21
+ onClose: () => void;
22
+ onSuccess: (msg: string) => void;
23
+ onError: (msg: string) => void;
24
+ userId: string;
25
+ colors: ThemeColors;
26
+ }
27
+ declare const ChangePasswordModal: React.FC<ChangePasswordModalProps>;
28
+ export default ChangePasswordModal;
@@ -0,0 +1,28 @@
1
+ interface ThemeColors {
2
+ background: string;
3
+ surface: string;
4
+ surfaceLight: string;
5
+ surfaceLighter: string;
6
+ textPrimary: string;
7
+ textSecondary: string;
8
+ textTertiary: string;
9
+ accent: string;
10
+ accentHover: string;
11
+ success: string;
12
+ error: string;
13
+ border: string;
14
+ }
15
+ interface DeleteAccountModalProps {
16
+ baseUrl: string;
17
+ apiKey: string;
18
+ appId: string;
19
+ isOpen: boolean;
20
+ onClose: () => void;
21
+ onSuccess: (msg: string) => void;
22
+ onError: (msg: string) => void;
23
+ userId: string;
24
+ token: string;
25
+ colors: ThemeColors;
26
+ }
27
+ declare const DeleteAccountModal: React.FC<DeleteAccountModalProps>;
28
+ export default DeleteAccountModal;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { UserInfo } from '../../api/login.js';
3
+ interface EmailVerificationModalProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ onVerify: (e: React.FormEvent) => Promise<void>;
7
+ onSendOTP: () => Promise<void>;
8
+ verifyFormData: {
9
+ email: string;
10
+ otp: string;
11
+ appId: string;
12
+ };
13
+ setVerifyFormData: React.Dispatch<React.SetStateAction<{
14
+ email: string;
15
+ otp: string;
16
+ appId: string;
17
+ }>>;
18
+ otpSent: boolean;
19
+ verifying: boolean;
20
+ user?: UserInfo | null;
21
+ colors: {
22
+ surface: string;
23
+ border: string;
24
+ textPrimary: string;
25
+ textSecondary: string;
26
+ textTertiary: string;
27
+ surfaceLight: string;
28
+ accent: string;
29
+ accentHover: string;
30
+ };
31
+ darkMode: boolean;
32
+ }
33
+ export declare const EmailVerificationModal: React.FC<EmailVerificationModalProps>;
34
+ export {};
@@ -1,6 +1,6 @@
1
1
  export { ReactUserSignUp } from "./UserSignUp.js";
2
2
  export { ReactUserLogin } from "./UserLogin.js";
3
- export { ReactSignInComponent } from "./SignInComponent.js";
4
- export { ReactSignOutComponent } from "./SignOutComponent.js";
3
+ export { ReactSignedIn } from "./SignedIn.js";
4
+ export { ReactSignedOut } from "./SignedOut.js";
5
5
  export { ReactUserProfile } from "./UserProfile.js";
6
6
  export { ReactUserButton } from "./UserButton.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuctra/authix",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Authentication SDK and UI components library for React and Vue with TailwindCSS",
5
5
  "author": "Taha Asif",
6
6
  "license": "MIT",