eleven-solutions-common-website-unique-web 23.0.6 → 23.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/admin/Dashboard.d.ts +2 -1
- package/dist/components/admin/Dashboard.js +1 -0
- package/dist/components/admin/Sidebar.d.ts +16 -1
- package/dist/components/admin/Sidebar.js +2 -1
- package/dist/components/admin/Taxionomies.d.ts +5 -1
- package/dist/components/admin/Taxionomies.js +1 -0
- package/dist/components/admin/TaxonomyForm.d.ts +5 -1
- package/dist/components/admin/TaxonomyForm.js +1 -0
- package/dist/components/admin/Template.d.ts +5 -1
- package/dist/components/admin/Template.js +1 -0
- package/dist/components/admin/TemplateForm.d.ts +5 -1
- package/dist/components/admin/TemplateForm.js +1 -0
- package/dist/components/admin/UserForm.d.ts +5 -1
- package/dist/components/admin/UserForm.js +1 -0
- package/dist/components/admin/Users.d.ts +5 -1
- package/dist/components/admin/Users.js +1 -0
- package/dist/components/footer/Footer.d.ts +8 -1
- package/dist/components/footer/Footer.js +1 -0
- package/dist/components/footer/Privacy.d.ts +4 -1
- package/dist/components/footer/Privacy.js +1 -0
- package/dist/components/footer/Terms.d.ts +1 -0
- package/dist/components/footer/Terms.js +1 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.js +19 -19
- package/dist/components/login/Header.d.ts +14 -1
- package/dist/components/login/Header.js +5 -4
- package/dist/components/login/index.js +0 -4
- package/dist/components/useraccount/UpdateUserDetails.d.ts +2 -2
- package/dist/components/useraccount/UpdateUserDetails.js +2 -1
- package/package.json +1 -1
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
declare function Dashboard(): import("react/jsx-runtime").JSX.Element;
|
2
|
+
export default Dashboard;
|
@@ -1 +1,16 @@
|
|
1
|
-
|
1
|
+
import React from "react";
|
2
|
+
interface Item {
|
3
|
+
icon: React.ReactNode;
|
4
|
+
label: string;
|
5
|
+
onClick: () => void;
|
6
|
+
}
|
7
|
+
interface Group {
|
8
|
+
heading: string;
|
9
|
+
items: Item[];
|
10
|
+
}
|
11
|
+
interface DashboardProps {
|
12
|
+
menuGroups: Group[];
|
13
|
+
logo: any;
|
14
|
+
}
|
15
|
+
declare const Dashboard: React.FC<DashboardProps>;
|
16
|
+
export default Dashboard;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { useState } from "react";
|
3
3
|
import { FiMenu } from "react-icons/fi";
|
4
|
-
const Dashboard = ({ menuGroups, logo }) => {
|
4
|
+
const Dashboard = ({ menuGroups, logo, }) => {
|
5
5
|
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
|
6
6
|
const [activeItem, setActiveItem] = useState(null);
|
7
7
|
const toggleSidebar = () => {
|
@@ -19,3 +19,4 @@ const Dashboard = ({ menuGroups, logo }) => {
|
|
19
19
|
? "bg-gray-300 text-gray-800"
|
20
20
|
: "hover:bg-gray-100 text-gray-700"}`, onClick: () => handleItemClick(item.label, item.onClick), children: [_jsx("span", { className: "text-gray-500 text-lg", children: item.icon }), _jsx("span", { className: "font-medium", children: item.label })] }, idx))) })] }, index)))] })] }));
|
21
21
|
};
|
22
|
+
export default Dashboard;
|
@@ -70,3 +70,4 @@ const Taxionomies = ({ url }) => {
|
|
70
70
|
? "text-blue-500 bg-blue-100"
|
71
71
|
: "text-gray-500 hover:bg-gray-100"} rounded-md`, children: index + 1 }, index + 1))) }), _jsxs("button", { onClick: handleNextPage, disabled: currentPage === totalPages, className: "flex items-center px-5 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 bg-white border rounded-md gap-x-2 hover:bg-gray-100 dark:bg-gray-900 dark:text-gray-200 dark:border-gray-700 dark:hover:bg-gray-800", children: [_jsx("span", { children: "Next" }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "w-5 h-5 rtl:-scale-x-100", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" }) })] })] })] })] }));
|
72
72
|
};
|
73
|
+
export default Taxionomies;
|
@@ -262,3 +262,4 @@ const TaxonomyForm = ({ url }) => {
|
|
262
262
|
? "Edit Values"
|
263
263
|
: "Add Values" }), _jsx("button", { onClick: handleCloseModal, className: "text-xl text-gray-600 dark:text-gray-400 h-6 w-6", children: "\u00D7" })] }), isAddingSubType ? (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: subCode, onChange: (e) => setSubCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: subValue, onChange: (e) => setSubValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsxs("div", { className: "flex space-x-4 justify-end", children: [_jsx("button", { onClick: handleSubTypeSubmitClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: editTaxonomyItem ? "Edit" : "Add" }), _jsx("button", { onClick: handleCloseModal, className: "px-8 py-2.5 leading-5 bg-gray-300 rounded-md", children: "Cancel" })] })] })) : (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: newCode, onChange: (e) => setNewCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: newValue, onChange: (e) => setNewValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsxs("div", { className: "flex space-x-4 justify-end", children: [_jsx("button", { onClick: handleSubmitClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: editTaxonomyItem ? "Edit" : "Add" }), _jsx("button", { onClick: handleCloseModal, className: "px-8 py-2.5 leading-5 bg-gray-300 rounded-md", children: "Cancel" })] })] }))] }) })] })) }) }));
|
264
264
|
};
|
265
|
+
export default TaxonomyForm;
|
@@ -70,3 +70,4 @@ const Template = ({ url }) => {
|
|
70
70
|
? "text-blue-500 bg-blue-100"
|
71
71
|
: "text-gray-500 hover:bg-gray-100"} rounded-md`, children: index + 1 }, index + 1))) }), _jsxs("button", { onClick: handleNextPage, disabled: currentPage === totalPages, className: "flex items-center px-5 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 bg-white border rounded-md gap-x-2 hover:bg-gray-100 dark:bg-gray-900 dark:text-gray-200 dark:border-gray-700 dark:hover:bg-gray-800", children: [_jsx("span", { children: "Next" }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "w-5 h-5 rtl:-scale-x-100", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" }) })] })] })] })] }));
|
72
72
|
};
|
73
|
+
export default Template;
|
@@ -96,3 +96,4 @@ const TemplateForm = ({ url }) => {
|
|
96
96
|
};
|
97
97
|
return (_jsx("div", { children: _jsx("div", { children: loading ? (_jsx("div", { className: "flex justify-center items-center h-screen", children: _jsx("div", { className: "flex justify-center items-center h-12 w-12 animate-spin rounded-full border-4 border-solid border-current border-e-transparent align-[-0.125em] text-surface motion-reduce:animate-[spin_1.5s_linear_infinite] text-blue-600", role: "status", children: _jsx("span", { className: "!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]", children: "Loading..." }) }) })) : hasError ? (_jsx("div", { className: "flex justify-center items-center h-screen" })) : (_jsx("div", { className: "w-full pr-16", children: _jsx("div", { className: "flex-grow p-6", children: _jsxs("form", { children: [_jsx("h1", { className: "text-3xl font-bold text-blue-600 capitalize dark:text-white mb-4", children: isEditMode ? "Edit Template" : "Add Template" }), _jsxs("div", { className: "mb-6 w-full", children: [_jsxs("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: ["Name ", _jsx("span", { className: "text-red-500", children: "*" })] }), _jsx("input", { required: true, type: "text", value: name, onChange: (e) => setName(e.target.value), className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", placeholder: "Enter Name" })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsxs("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: ["Content ", _jsx("span", { className: "text-red-500", children: "*" })] }), _jsx(Editor, { content: content, setContent: setContent, config: config })] }), _jsxs("div", { className: "flex space-x-4 mt-6 justify-start", children: [_jsx("button", { type: "submit", onClick: handleSubmit, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: isEditMode ? "Update" : "Save and Close" }), _jsx("button", { type: "button", onClick: handleCancelClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: "Cancel" })] })] }) }) })) }) }));
|
98
98
|
};
|
99
|
+
export default TemplateForm;
|
@@ -104,3 +104,4 @@ const UserForm = ({ url }) => {
|
|
104
104
|
};
|
105
105
|
return (_jsx("div", { className: "max-w-4xl p-6 dark:bg-gray-800", children: _jsx("div", { children: loading ? (_jsx("div", { className: "flex justify-center items-center h-screen", children: _jsx("div", { className: "flex justify-center items-center h-12 w-12 animate-spin rounded-full border-4 border-solid border-current border-e-transparent align-[-0.125em] text-surface motion-reduce:animate-[spin_1.5s_linear_infinite] text-blue-600", role: "status", children: _jsx("span", { className: "!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]", children: "Loading..." }) }) })) : hasError ? (_jsx("div", { className: "flex justify-center items-center h-screen" })) : (_jsx("div", { children: _jsxs("form", { children: [_jsx("h1", { className: "text-3xl font-bold text-blue-600 capitalize dark:text-white mb-4", children: isEditMode ? "Edit User" : "Add User" }), _jsxs("div", { className: "mb-6 w-full", children: [_jsxs("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: ["Name ", _jsx("span", { className: "text-red-500", children: "*" })] }), _jsx("input", { required: true, value: userName, onChange: (e) => setUserName(e.target.value), type: "text", className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", placeholder: "Enter User Name" })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsxs("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: ["Email ", _jsx("span", { className: "text-red-500", children: "*" })] }), _jsx("input", { required: true, value: email, onChange: (e) => setEmail(e.target.value), type: "email", className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", placeholder: "Enter Email" })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Mobile Number" }), _jsx("input", { required: true, value: mobile, onChange: (e) => setMobile(e.target.value), type: "number", className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", placeholder: "Enter Mobile Number" })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Address" }), _jsx("input", { required: true, value: address, onChange: (e) => setAddress(e.target.value), type: "text", className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", placeholder: "Address" })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Gender" }), _jsxs("select", { required: true, value: gender, onChange: (e) => setGender(e.target.value === "" ? null : e.target.value), className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", children: [_jsx("option", { value: "", children: "Select a Gender" }), _jsx("option", { value: "1", children: "Male" }), _jsx("option", { value: "2", children: "Female" })] })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsxs("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: ["Role Type ", _jsx("span", { className: "text-red-500", children: "*" })] }), _jsxs("select", { required: true, value: roleType, onChange: (e) => setRoleType(e.target.value), className: "w-full px-4 py-2 mt-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", children: [_jsx("option", { value: "", children: "Select a Role Type" }), _jsx("option", { value: "1", children: "Guest" }), _jsx("option", { value: "2", children: "Admin" })] })] }), _jsxs("div", { className: "flex space-x-4 mt-6 justify-start", children: [_jsx("button", { type: "submit", onClick: handleSubmit, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: isEditMode ? "Edit" : "Save and Close" }), _jsx("button", { type: "button", onClick: handleCancelClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: "Cancel" })] })] }) })) }) }));
|
106
106
|
};
|
107
|
+
export default UserForm;
|
@@ -113,3 +113,4 @@ const Users = ({ url }) => {
|
|
113
113
|
}) }), _jsxs("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "flex items-center px-5 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 bg-white border rounded-md gap-x-2 hover:bg-gray-100 dark:bg-gray-900 dark:text-gray-200 dark:border-gray-700 dark:hover:bg-gray-800", children: [_jsx("span", { children: "Next" }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5 h-5 rtl:-scale-x-100", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" }) })] })] })] }), _jsx("div", { className: "inset-0 bg-gray-800 bg-opacity-50 z-50 transition-opacity duration-300", children: _jsxs("div", { className: `fixed top-0 right-0 h-full w-[300px] bg-white p-4 rounded-md shadow-lg transform transition-transform duration-500 ease-in-out
|
114
114
|
${filterModal ? "translate-x-0" : "translate-x-full"}`, children: [_jsx("h1", { className: "text-2xl md:text-3xl font-bold text-blue-600 mb-4 md:mb-6", children: "Filter" }), _jsx("button", { onClick: () => setFilterModal(false), className: "absolute top-1 right-3 text-gray-400 hover:text-gray-600 text-2xl", children: "\u00D7" }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "mb-4 flex flex-col", children: [_jsx("label", { className: "block text-gray-700 mb-2", children: "Role Type" }), _jsx("div", { className: "w-full", children: _jsxs("select", { value: Number(selectedRoleType), onChange: handleRoleTypeChange, required: true, className: "w-full px-4 py-2 text-gray-800 bg-white border border-gray-400 rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-800 focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring", children: [_jsx("option", { value: "", children: "All" }), _jsx("option", { value: "1", children: "Guest" }), _jsx("option", { value: "2", children: "Admin" })] }) })] }), _jsx("div", { className: "flex flex-row gap-3", children: _jsx("button", { onClick: resetFilter, className: "mt-2 px-4 py-2 bg-blue-500 text-white rounded-md w-32", children: "Reset" }) })] })] }) })] }));
|
115
115
|
};
|
116
|
+
export default Users;
|
@@ -1 +1,8 @@
|
|
1
|
-
|
1
|
+
interface FooterProps {
|
2
|
+
companyName?: string;
|
3
|
+
isDarkMode?: boolean;
|
4
|
+
img?: string;
|
5
|
+
name?: string;
|
6
|
+
}
|
7
|
+
declare const Footer: ({ companyName, isDarkMode, img, name }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export default Footer;
|
@@ -39,3 +39,4 @@ 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;
|
@@ -2,3 +2,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
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;
|
@@ -9,3 +9,4 @@ 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,3 +1,22 @@
|
|
1
|
+
export { default as Footer } from "./footer/Footer";
|
2
|
+
export { default as Terms } from "./footer/Terms";
|
3
|
+
export { default as Privacy } from "./footer/Privacy";
|
4
|
+
export { default as Login } from "./login/Login";
|
5
|
+
export { default as Header } from "./login/Header";
|
6
|
+
export { default as Users } from "./admin/Users";
|
7
|
+
export { default as UserForm } from "./admin/UserForm";
|
8
|
+
export { default as Taxionomies } from "./admin/Taxionomies";
|
9
|
+
export { default as TaxonomyForm } from "./admin/TaxonomyForm";
|
10
|
+
export { default as Template } from "./admin/Template";
|
11
|
+
export { default as TemplateFrom } from "./admin/TemplateForm";
|
12
|
+
export { default as Editor } from "./admin/Editor";
|
13
|
+
export { default as AdminSideBar } from "./admin/Sidebar";
|
14
|
+
export { default as Dashboard } from "./admin/Dashboard";
|
15
|
+
export { registerApi, loginApi } from "./api/api";
|
16
|
+
export { default as userSlice } from "./redux/slices/userSlice";
|
17
|
+
export { clearProfileData } from "./redux/slices/userSlice";
|
18
|
+
export { getProfileApi, updateProfileApi } from "./api/updateuser";
|
19
|
+
export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
|
1
20
|
export * as adminIndex from "./admin/index";
|
2
21
|
export * as apiIndex from "./api/index";
|
3
22
|
export * as footerIndex from "./footer/index";
|
package/dist/components/index.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
// Exports for components
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
export { default as Footer } from "./footer/Footer";
|
3
|
+
export { default as Terms } from "./footer/Terms";
|
4
|
+
export { default as Privacy } from "./footer/Privacy";
|
5
|
+
export { default as Login } from "./login/Login";
|
6
|
+
export { default as Header } from "./login/Header";
|
7
|
+
export { default as Users } from "./admin/Users";
|
8
|
+
export { default as UserForm } from "./admin/UserForm";
|
9
|
+
export { default as Taxionomies } from "./admin/Taxionomies";
|
10
|
+
export { default as TaxonomyForm } from "./admin/TaxonomyForm";
|
11
|
+
export { default as Template } from "./admin/Template";
|
12
|
+
export { default as TemplateFrom } from "./admin/TemplateForm";
|
13
|
+
export { default as Editor } from "./admin/Editor";
|
14
|
+
export { default as AdminSideBar } from "./admin/Sidebar";
|
15
|
+
export { default as Dashboard } from "./admin/Dashboard";
|
16
|
+
export { registerApi, loginApi } from "./api/api";
|
17
|
+
export { default as userSlice } from "./redux/slices/userSlice";
|
18
|
+
export { clearProfileData } from "./redux/slices/userSlice";
|
19
|
+
export { getProfileApi, updateProfileApi } from "./api/updateuser";
|
20
|
+
export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
|
21
21
|
export * as adminIndex from "./admin/index";
|
22
22
|
export * as apiIndex from "./api/index";
|
23
23
|
export * as footerIndex from "./footer/index";
|
@@ -1 +1,14 @@
|
|
1
|
-
|
1
|
+
interface HeaderProps {
|
2
|
+
toggleTheme: any;
|
3
|
+
userLogedin: any;
|
4
|
+
userType: any;
|
5
|
+
url: string;
|
6
|
+
isDarkMode: boolean;
|
7
|
+
img: string;
|
8
|
+
name: string;
|
9
|
+
userdetails: any;
|
10
|
+
menugroups: any;
|
11
|
+
donationHistory: any;
|
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,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { CiLight, CiDark } from "react-icons/ci";
|
14
14
|
import { RxPerson } from "react-icons/rx";
|
15
15
|
import { useState } from "react";
|
16
|
-
import
|
16
|
+
import UpdateUserDetails from "../useraccount/UpdateUserDetails";
|
17
17
|
import { useDispatch } from "react-redux";
|
18
18
|
import { clearProfileData } from "../redux/slices/userSlice";
|
19
19
|
import { MdArrowDropDown } from "react-icons/md";
|
@@ -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,3 +200,4 @@ 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;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
// export { default as GoogleButton } from "./GoogleButton";
|
2
|
-
// export { default as Login } from "./Login";
|
3
|
-
// export { default as Header } from "./Header";
|
4
|
-
// export { default as Setcookie } from "./Setcookie";
|
5
1
|
export * from "./GoogleButton";
|
6
2
|
export * from "./Login";
|
7
3
|
export * from "./Header";
|
@@ -6,5 +6,5 @@ interface UpdateUserDetailsProps {
|
|
6
6
|
isDarkMode: boolean;
|
7
7
|
userdetails: any;
|
8
8
|
}
|
9
|
-
|
10
|
-
export
|
9
|
+
declare const UpdateUserDetails: React.FC<UpdateUserDetailsProps>;
|
10
|
+
export default UpdateUserDetails;
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "react";
|
12
12
|
import { updateProfileApi } from "../api/updateuser";
|
13
13
|
import Cookies from "universal-cookie";
|
14
|
-
|
14
|
+
const UpdateUserDetails = ({ usermodalopen, closeusermodal, url, isDarkMode, userdetails, }) => {
|
15
15
|
var _a;
|
16
16
|
const [name, setName] = useState("");
|
17
17
|
const [mobile, setMobile] = useState("");
|
@@ -87,3 +87,4 @@ export const UpdateUserDetails = ({ usermodalopen, closeusermodal, url, isDarkMo
|
|
87
87
|
? "bg-blue-500 hover:bg-blue-400 text-white"
|
88
88
|
: "bg-blue-500 hover:bg-blue-400 text-white"}`, children: "Update Details" }) })] }) }));
|
89
89
|
};
|
90
|
+
export default UpdateUserDetails;
|