eleven-solutions-common-website-unique-web 23.0.16 → 23.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,5 +4,5 @@ interface FooterProps {
4
4
  img?: string;
5
5
  name?: string;
6
6
  }
7
- declare const Footer: ({ companyName, isDarkMode, img, name }: FooterProps) => import("react/jsx-runtime").JSX.Element;
8
- export default Footer;
7
+ export declare const Footer: ({ companyName, isDarkMode, img, name }: FooterProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -28,7 +28,7 @@ const data = [
28
28
  ],
29
29
  },
30
30
  ];
31
- const Footer = ({ companyName, isDarkMode, img, name }) => {
31
+ export const Footer = ({ companyName, isDarkMode, img, name }) => {
32
32
  const handleNavigation = (event, path) => {
33
33
  event.preventDefault();
34
34
  window.history.pushState({}, "", path);
@@ -39,4 +39,3 @@ const Footer = ({ companyName, isDarkMode, img, name }) => {
39
39
  ? "bg-[#2e2e2e] lg:border-t lg:border-[#3b3b3b] md:border-t md:border-[#3b3b3b]"
40
40
  : "bg-[#f8f9fa] border-t border-[#E9ECEF]"} py-8`, children: [_jsxs("div", { className: "container mx-auto px-6 flex flex-col lg:flex-row lg:justify-between items-center", children: [_jsxs("div", { className: "flex flex-col items-center lg:items-start lg:mb-0 ", children: [_jsx("img", { src: img, alt: "Logo", className: "w-16 h-16 mb-0" }), _jsx("span", { className: "text-transparent bg-clip-text font-extrabold text-[18px] ml-2 bg-gradient-to-r from-[#FD6E6A] to-[#FFC600]", children: name })] }), _jsx("div", { className: "hidden md:flex md:flex:row md:mt-4 lg:flex lg:flex-row justify-between w-full lg:w-1/2 ", children: groups })] }), _jsx("div", { className: `${isDarkMode ? "border-t border-[#424242]" : "border-t border-[#e9efec]"} py-4 mt-4 justify-between`, children: _jsxs("div", { className: "container mx-auto text-[#828282] text-sm px-6 text-center lg:flex lg:justify-between md:flex md:justify-between", children: [_jsxs("p", { children: ["\u00A9 2024 ", name, ". All rights reserved."] }), _jsxs("p", { children: ["Developed By:", " ", _jsx("a", { href: "http://www.11.Solutions", target: "_blank", rel: "noreferrer", className: "text-blue-300 hover:underline", children: companyName })] })] }) })] }));
41
41
  };
42
- export default Footer;
@@ -1,4 +1,3 @@
1
- declare function Privacy({ isDarkMode }: {
1
+ export declare function Privacy({ isDarkMode }: {
2
2
  isDarkMode: any;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
- export default Privacy;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- function Privacy({ isDarkMode }) {
2
+ export function Privacy({ isDarkMode }) {
3
3
  return (_jsxs("div", { className: `min-h-[70vh] p-4 text-justify lg:px-72 lg:text-justify ${isDarkMode ? "bg-globalBg text-[#ffff]" : "bg-white text-black"}`, children: [_jsx("h2", { className: "text-xl font-extrabold mt-4 text-blue-400 text-center", children: "PRIVACY AND POLICY" }), _jsx("p", { className: "text-sm text-gray-500 mt-3", children: "Welcome to TajushShariah Foundation - Islamic Trust For Donation. This Privacy Policy is designed to help you understand how we collect, use, disclose, and safeguard your personal information when you use our website, services, or interact with us." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "1. Information We Collect" }), _jsxs("p", { className: "text-sm text-gray-500 mt-2", children: [_jsx("strong", { children: "Personal Information: " }), "We may collect personal information that you provide to us voluntarily, such as your name, contact information, and donation details when you use our website or engage with our services."] }), _jsxs("p", { className: "text-sm text-gray-500 mt-2", children: [_jsx("strong", { children: "Non-Personal Information: " }), "We may also collect non-personal information, such as aggregated data, browser type, and IP address, for analytical and statistical purposes."] }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "2. How We Use Your Information" }), _jsxs("p", { className: "text-sm text-gray-500 mt-2", children: [_jsx("strong", { children: "Donation Processing: " }), "We use your personal information to process and manage your donations, provide receipts, and communicate with you regarding your contributions."] }), _jsxs("p", { className: "text-sm text-gray-500 mt-2", children: [_jsx("strong", { children: "Communication: " }), "We may use your contact information to send you updates, newsletters, or information about our initiatives, events, and fundraising activities."] }), _jsxs("p", { className: "text-sm text-gray-500 mt-2", children: [_jsx("strong", { children: "Analytics: " }), "Non-personal information may be used for analytics and to improve our website functionality, content, and user experience."] }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "3. Information Sharing" }), _jsx("p", { className: "text-sm text-gray-500 mt-2", children: "We do not sell, trade, or rent your personal information to third parties. Your information may be shared with trusted third parties, such as payment processors, solely for the purpose of processing your donations." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "4. Security" }), _jsx("p", { className: "text-sm text-gray-500 mt-2", children: "We are committed to protecting the security of your personal information. We implement appropriate technical and organizational measures to safeguard against unauthorized access, disclosure, alteration, and destruction of data." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "5. Cookies" }), _jsx("p", { className: "text-sm text-gray-500 mt-2", children: "Our website may use cookies to enhance your browsing experience. You can manage cookie preferences through your browser settings." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "6. Your Choices" }), _jsx("p", { className: "text-sm text-gray-500 mt-2", children: "You have the right to update, correct, or delete your personal information. You can also opt-out of receiving communications from us." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "7. Changes to this Privacy Policy" }), _jsx("p", { className: "text-sm text-gray-500 mt-2", children: "We reserve the right to update this Privacy Policy. Any changes will be effective upon posting the revised policy on our website." }), _jsx("h5", { className: "text-lg font-medium mt-4", children: "8. Contact Us" }), _jsx("p", { className: "text-sm text-gray-500 mb-4", children: "If you have any questions or concerns about this Privacy Policy, please contact us." })] }));
4
4
  }
5
- export default Privacy;
@@ -1,4 +1,3 @@
1
1
  export declare function TermsAndC({ isDarkMode }: {
2
2
  isDarkMode: any;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
- export default TermsAndC;
@@ -9,4 +9,3 @@ export function TermsAndC({ isDarkMode }) {
9
9
  // const { isDarkMode } = themeContext;
10
10
  return (_jsxs("div", { className: `container md:mx-auto min-h-[70vh] p-4 text-justify lg:px-72 lg:text-justify ${isDarkMode ? "bg-globalBg text-[#ffff]" : "bg-white text-black"}`, children: [_jsx("h2", { className: `font-extrabold mb-4 text-2xl lg:text-center md:text-center ${isDarkMode ? "text-blue-300" : "text-blue-400"}`, children: "Terms and Conditions" }), _jsx("p", { className: "text-sm mt-4", children: "Welcome to TajushShariah Foundation - Islamic Trust For Donation. By accessing our website, making a donation, or using our services, you agree to comply with and be bound by the following Terms and Conditions. If you do not agree with these terms, please do not use our website or services." }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "1. Donation Policy" }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Eligibility:", " "] }), "By making a donation to TajushShariah Foundation, you confirm that you are legally capable of entering into a binding agreement."] }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Acceptance:", " "] }), "We reserve the right to refuse or cancel any donation for any reason, including but not limited to issues with payment processing, suspicion of fraudulent activity, or violation of our policies."] }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Confirmation:", " "] }), "Upon successful donation, you will receive a confirmation email. This email will serve as a receipt for your donation."] }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "2. User Accounts" }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Creation:", " "] }), "If you create an account on our website, you are responsible for maintaining the confidentiality of your account information, including your password."] }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Termination:", " "] }), "We reserve the right to terminate or suspend your account at our discretion, without notice, if we believe you have violated these Terms and Conditions."] }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "3. Intellectual Property" }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Ownership:", " "] }), "All content on our website, including but not limited to text, graphics, logos, and images, is the property of TajushShariah Foundation and is protected by copyright and other intellectual property laws."] }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Use of Content:", " "] }), "You may not reproduce, distribute, modify, or create derivative works from the content on our website without prior written consent from TajushShariah Foundation."] }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "4. Privacy Policy" }), _jsx("p", { className: "text-sm mt-2", children: "Your use of our website and services is also governed by our Privacy Policy. Please review our Privacy Policy to understand how we collect, use, and protect your personal information." }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "5. Limitation of Liability" }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Disclaimer:", " "] }), "TajushShariah Foundation is not liable for any damages, losses, or expenses resulting from your use of our website or services."] }), _jsxs("p", { className: "text-sm mt-2", children: [_jsxs("strong", { className: `${isDarkMode ? "text-blue-400" : "text-black"}`, children: ["Indemnification:", " "] }), "You agree to indemnify and hold TajushShariah Foundation harmless from any claims, liabilities, or expenses arising from your use of our website or services."] }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "6. Governing Law" }), _jsx("p", { className: "text-sm mt-2", children: "These Terms and Conditions are governed by the laws of India. Any legal actions arising from or related to these terms will be filed in the appropriate courts within India." }), _jsx("h5", { className: `text-base font-semibold mt-6 ${isDarkMode ? "text-yellow-300" : "text-black"}`, children: "7. Changes to Terms and Conditions" }), _jsx("p", { className: "text-sm mt-2", children: "We reserve the right to update or modify these Terms and Conditions at any time. Changes will be effective upon posting the revised terms on our website." }), _jsx("p", { className: "text-sm mb-6", children: "By using our website or services, you acknowledge that you have read, understood, and agreed to these Terms and Conditions." })] }));
11
11
  }
12
- export default TermsAndC;
@@ -1,6 +1,3 @@
1
- // export { default as Footer } from "./Footer";
2
- // export { default as Privacy } from "./Privacy";
3
- // export { default as Terms } from "./Terms";
4
1
  export * from "./Footer";
5
2
  export * from "./Privacy";
6
3
  export * from "./Terms";
@@ -1,2 +1,8 @@
1
1
  export { default as Editor } from "./admin/Editor";
2
2
  export * from "./admin/index";
3
+ export * from "./api/index";
4
+ export * from "./footer/index";
5
+ export * from "./login/index";
6
+ export * from "./redux/slices/index";
7
+ export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
8
+ export * from "./useraccount/index";
@@ -20,3 +20,9 @@
20
20
  // export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
21
21
  export { default as Editor } from "./admin/Editor";
22
22
  export * from "./admin/index";
23
+ export * from "./api/index";
24
+ export * from "./footer/index";
25
+ export * from "./login/index";
26
+ export * from "./redux/slices/index";
27
+ export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
28
+ export * from "./useraccount/index";
@@ -10,5 +10,5 @@ interface HeaderProps {
10
10
  menugroups: any;
11
11
  donationHistory: any;
12
12
  }
13
- declare const Header: ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name, userdetails, menugroups, donationHistory, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
14
- export default Header;
13
+ export declare const Header: ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name, userdetails, menugroups, donationHistory, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -22,7 +22,7 @@ const IconWrapper = (_a) => {
22
22
  var { className } = _a, props = __rest(_a, ["className"]);
23
23
  return (_jsx("div", { className: className, children: _jsx(RxPerson, Object.assign({}, props)) }));
24
24
  };
25
- const Header = ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name, userdetails, menugroups, donationHistory, }) => {
25
+ export const Header = ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name, userdetails, menugroups, donationHistory, }) => {
26
26
  const [isOpen, setIsOpen] = useState(false);
27
27
  const [usermodalopen, setusermodalopen] = useState(false);
28
28
  const [showUserCard, setShowUserCard] = useState(false);
@@ -79,14 +79,14 @@ const Header = ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name
79
79
  ? "bg-blue-500 text-white"
80
80
  : isDarkMode
81
81
  ? "text-white hover:bg-gray-600"
82
- : "text-[#495057] hover:bg-gray-200"}`, children: "About Us" }), (menugroups === null || menugroups === void 0 ? void 0 : menugroups.length) > 0 && (_jsx("div", { className: "flex flex-col md:flex-row md:gap-2", children: menugroups.map((item, index) => (item.label === "Departments" ? (_jsxs("div", { className: "relative", onMouseEnter: () => setIsDepartmentsHovered(true), children: [_jsxs("a", { className: `py-1 px-2 md:px-1 rounded-[4px] flex justify-between font-semibold text-sm ${isActive("/seealldepartments")
82
+ : "text-[#495057] hover:bg-gray-200"}`, children: "About Us" }), (menugroups === null || menugroups === void 0 ? void 0 : menugroups.length) > 0 && (_jsx("div", { className: "flex flex-col md:flex-row md:gap-2", children: menugroups.map((item, index) => item.label === "Departments" ? (_jsxs("div", { className: "relative", onMouseEnter: () => setIsDepartmentsHovered(true), children: [_jsxs("a", { className: `py-1 px-2 md:px-1 rounded-[4px] flex justify-between font-semibold text-sm ${isActive("/seealldepartments")
83
83
  ? "bg-blue-500 text-white"
84
84
  : isDarkMode
85
85
  ? "text-white hover:bg-gray-600"
86
86
  : "text-[#495057] hover:bg-gray-200"}`, children: [_jsx("a", { href: "/seealldepartments", onClick: (event) => {
87
87
  setIsOpen(false);
88
88
  handleNavigation(event, "/seealldepartments");
89
- }, children: item.label }), isDepartmentsHovered ? (_jsx(MdArrowDropUp, { className: "w-6 h-6", onClick: handleDropdownToggle })) : (_jsx(MdArrowDropDown, { className: "w-6 h-6", onClick: handleDropdownToggle }))] }), (isDepartmentsHovered) && (_jsxs("div", { className: `md:absolute md:top-12 md:left-0 relative top-0 left-0 p-0 w-auto md:shadow-lg rounded-lg border border-gray-200 ${isDarkMode
89
+ }, children: item.label }), isDepartmentsHovered ? (_jsx(MdArrowDropUp, { className: "w-6 h-6", onClick: handleDropdownToggle })) : (_jsx(MdArrowDropDown, { className: "w-6 h-6", onClick: handleDropdownToggle }))] }), isDepartmentsHovered && (_jsxs("div", { className: `md:absolute md:top-12 md:left-0 relative top-0 left-0 p-0 w-auto md:shadow-lg rounded-lg border border-gray-200 ${isDarkMode
90
90
  ? "bg-[#2e2e2e] border-gray-700"
91
91
  : "bg-[#ffff] border-gray-200"}`, onMouseEnter: () => setIsDepartmentsHovered(true), onMouseLeave: () => setIsDepartmentsHovered(false), children: [_jsx("p", { onClick: (event) => {
92
92
  setIsOpen(false);
@@ -133,7 +133,7 @@ const Header = ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name
133
133
  ? "bg-blue-500 text-white"
134
134
  : isDarkMode
135
135
  ? "text-white hover:bg-gray-600"
136
- : "text-[#495057] hover:bg-gray-200"}`, children: item.label }, index)))) })), _jsx("a", { href: "/contact", onClick: (event) => {
136
+ : "text-[#495057] hover:bg-gray-200"}`, children: item.label }, index))) })), _jsx("a", { href: "/contact", onClick: (event) => {
137
137
  setIsOpen(false);
138
138
  handleNavigation(event, "/contact");
139
139
  }, className: `
@@ -200,4 +200,3 @@ const Header = ({ toggleTheme, isDarkMode, userLogedin, userType, url, img, name
200
200
  ? "text-white border-yellow-500 "
201
201
  : "text-black border-blue-500"} `, children: isDarkMode ? (_jsx(CiLight, { size: 20, color: "yellow" })) : (_jsx(CiDark, { size: 20, color: "blue" })) })] }) })] }) }), _jsx(UpdateUserDetails, { usermodalopen: usermodalopen, closeusermodal: () => setusermodalopen(false), url: url, isDarkMode: isDarkMode, userdetails: userdetails })] }));
202
202
  };
203
- export default Header;
@@ -5,5 +5,5 @@ interface LoginProps {
5
5
  isDarkMode: boolean;
6
6
  img: string;
7
7
  }
8
- declare const Login: ({ ModalOpen, closeModal, url, isDarkMode, img }: LoginProps) => import("react/jsx-runtime").JSX.Element;
9
- export default Login;
8
+ export declare const Login: ({ ModalOpen, closeModal, url, isDarkMode, img, }: LoginProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -6,7 +6,7 @@ import { loginUser, registerUser } from "../redux/slices/userSlice";
6
6
  // import { Dispatch } from "@reduxjs/toolkit";
7
7
  import { useDispatch } from "react-redux";
8
8
  // import { AppDispatch } from "../redux/slices/types/types";
9
- const Login = ({ ModalOpen, closeModal, url, isDarkMode, img }) => {
9
+ export const Login = ({ ModalOpen, closeModal, url, isDarkMode, img, }) => {
10
10
  const [isLoginMode, setIsLoginMode] = useState(true);
11
11
  const [email, setEmail] = useState("");
12
12
  const [password, setPassword] = useState("");
@@ -40,4 +40,3 @@ const Login = ({ ModalOpen, closeModal, url, isDarkMode, img }) => {
40
40
  ? "Don't have an account? Sign Up"
41
41
  : "Already have an account? Sign In" }) }), error && (_jsx("p", { className: "mt-2 w-full text-center text-red-500", children: error })), successMessage && (_jsx("p", { className: "mt-2 text-center text-green-500", children: successMessage }))] }) })) }));
42
42
  };
43
- export default Login;
@@ -1,2 +1 @@
1
- export { default as userSlice } from "./userSlice";
2
- export { clearProfileData } from "./userSlice";
1
+ export * from "./userSlice";
@@ -1,2 +1,3 @@
1
- export { default as userSlice } from "./userSlice";
2
- export { clearProfileData } from "./userSlice";
1
+ // export { default as userSlice } from "./userSlice";
2
+ // export { clearProfileData } from "./userSlice";
3
+ export * from "./userSlice";
@@ -1,3 +1,4 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
1
2
  import { AppDispatch } from "./types/types";
2
3
  interface ProfileData {
3
4
  id: string;
@@ -13,8 +14,14 @@ interface UserState {
13
14
  errorMessage: string | null;
14
15
  isLoading: boolean;
15
16
  }
17
+ export declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
18
+ setProfileData: (state: import("immer").WritableDraft<UserState>, action: PayloadAction<ProfileData>) => void;
19
+ clearProfileData: (state: import("immer").WritableDraft<UserState>) => void;
20
+ setErrorMessage: (state: import("immer").WritableDraft<UserState>, action: PayloadAction<string | null>) => void;
21
+ setSuccessMessage: (state: import("immer").WritableDraft<UserState>, action: PayloadAction<string | null>) => void;
22
+ setLoading: (state: import("immer").WritableDraft<UserState>, action: PayloadAction<boolean>) => void;
23
+ }, "user", "user", import("@reduxjs/toolkit").SliceSelectors<UserState>>;
16
24
  export declare const setProfileData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ProfileData, "user/setProfileData">, clearProfileData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/clearProfileData">, setErrorMessage: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "user/setErrorMessage">, setSuccessMessage: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "user/setSuccessMessage">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "user/setLoading">;
17
25
  export declare const loginUser: (url: string, email: string, password: string) => (dispatch: AppDispatch) => Promise<void>;
18
26
  export declare const registerUser: (url: string, name: string, email: string, mobile: string, confirmPassword: string) => (dispatch: AppDispatch) => Promise<void>;
19
- declare const _default: import("redux").Reducer<UserState>;
20
- export default _default;
27
+ export {};
@@ -19,7 +19,7 @@ const initialState = {
19
19
  errorMessage: null,
20
20
  isLoading: false,
21
21
  };
22
- const userSlice = createSlice({
22
+ export const userSlice = createSlice({
23
23
  name: "user",
24
24
  initialState,
25
25
  reducers: {
@@ -87,4 +87,3 @@ export const registerUser = (url, name, email, mobile, confirmPassword) => (disp
87
87
  }
88
88
  dispatch(setLoading(false));
89
89
  });
90
- export default userSlice.reducer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "23.0.16",
3
+ "version": "23.0.17",
4
4
  "main": "./dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",