eleven-solutions-common-website-unique-web 22.0.19 → 22.0.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -102,6 +102,6 @@ const UserForm = ({ url }) => {
102
102
  window.history.pushState({}, "", "/admin/users");
103
103
  window.dispatchEvent(new PopStateEvent("popstate"));
104
104
  };
105
- 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" })) : (_jsxs("div", { className: "max-w-4xl p-6 dark:bg-gray-800", children: [_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" })] })] }) })] })) }) }));
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
107
  export default UserForm;
@@ -0,0 +1,9 @@
1
+ export { default as Editor } from "./Editor";
2
+ export { default as AdminSideBar } from "./Sidebar";
3
+ export { default as Dashboard } from "./Dashboard";
4
+ export { default as Users } from "./Users";
5
+ export { default as UserForm } from "./UserForm";
6
+ export { default as Taxionomies } from "./Taxionomies";
7
+ export { default as TaxonomyForm } from "./TaxonomyForm";
8
+ export { default as Template } from "./Template";
9
+ export { default as TemplateFrom } from "./TemplateForm";
@@ -0,0 +1,9 @@
1
+ export { default as Editor } from "./Editor";
2
+ export { default as AdminSideBar } from "./Sidebar";
3
+ export { default as Dashboard } from "./Dashboard";
4
+ export { default as Users } from "./Users";
5
+ export { default as UserForm } from "./UserForm";
6
+ export { default as Taxionomies } from "./Taxionomies";
7
+ export { default as TaxonomyForm } from "./TaxonomyForm";
8
+ export { default as Template } from "./Template";
9
+ export { default as TemplateFrom } from "./TemplateForm";
@@ -0,0 +1,2 @@
1
+ export { getProfileApi, updateProfileApi } from "./updateuser";
2
+ export { registerApi, loginApi } from "./api";
@@ -0,0 +1,2 @@
1
+ export { getProfileApi, updateProfileApi } from "./updateuser";
2
+ export { registerApi, loginApi } from "./api";
@@ -0,0 +1,3 @@
1
+ export { default as Footer } from "./Footer";
2
+ export { default as Privacy } from "./Privacy";
3
+ export { default as Terms } from "./Terms";
@@ -0,0 +1,3 @@
1
+ export { default as Footer } from "./Footer";
2
+ export { default as Privacy } from "./Privacy";
3
+ export { default as Terms } from "./Terms";
@@ -1,18 +1,6 @@
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 { getProfileApi, updateProfileApi } from "./api/updateuser";
18
- export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
1
+ export * as adminIndex from "./admin/index";
2
+ export * as footerIndex from "./footer/index";
3
+ export * as loginIndex from "./login/index";
4
+ export * as apiIndex from "./api/index";
5
+ export * as userAccountIndex from "./useraccount/index";
6
+ export * as reduxIndex from "./redux/slices/index";
@@ -1,19 +1,7 @@
1
1
  // Exports for components
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 { getProfileApi, updateProfileApi } from "./api/updateuser";
19
- export { default as UpdateUserDetails } from "./useraccount/UpdateUserDetails";
2
+ export * as adminIndex from "./admin/index";
3
+ export * as footerIndex from "./footer/index";
4
+ export * as loginIndex from "./login/index";
5
+ export * as apiIndex from "./api/index";
6
+ export * as userAccountIndex from "./useraccount/index";
7
+ export * as reduxIndex from "./redux/slices/index";
@@ -0,0 +1,4 @@
1
+ export { default as GoogleButton } from "./GoogleButton";
2
+ export { default as Header } from "./Header";
3
+ export { default as Login } from "./Login";
4
+ export { default as SetCookie } from "./Setcookie";
@@ -0,0 +1,4 @@
1
+ export { default as GoogleButton } from "./GoogleButton";
2
+ export { default as Header } from "./Header";
3
+ export { default as Login } from "./Login";
4
+ export { default as SetCookie } from "./Setcookie";
@@ -0,0 +1 @@
1
+ export { default as userSlice } from "./userSlice";
@@ -0,0 +1 @@
1
+ export { default as userSlice } from "./userSlice";
@@ -0,0 +1 @@
1
+ export { default as UpdateUserDetails } from "./UpdateUserDetails";
@@ -0,0 +1 @@
1
+ export { default as UpdateUserDetails } from "./UpdateUserDetails";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "22.0.19",
3
+ "version": "22.0.21",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"