eleven-solutions-common-website-unique-web 1.0.20 → 1.0.21
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.
| 
         @@ -67,7 +67,6 @@ const Taxionomies = () => { 
     | 
|
| 
       67 
67 
     | 
    
         
             
                                                    ? "text-blue-500 bg-blue-100"
         
     | 
| 
       68 
68 
     | 
    
         
             
                                                    : "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" }) })] })] }), _jsx("div", { className: "flex-grow ml-0 mt-4 w-0", children: _jsxs("button", { type: "button", onClick: () => {
         
     | 
| 
       69 
69 
     | 
    
         
             
                                            window.history.pushState({}, "", "/admin/taxinomies/taxonomyform");
         
     | 
| 
       70 
     | 
    
         
            -
                                            // Add any logic here to handle rendering the new content
         
     | 
| 
       71 
70 
     | 
    
         
             
                                        }, className: "flex items-center justify-center px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80", children: [_jsx(FaPlus, { className: "mr-2 font-medium" }), "Taxonomy"] }) })] })] }));
         
     | 
| 
       72 
71 
     | 
    
         
             
            };
         
     | 
| 
       73 
72 
     | 
    
         
             
            export default Taxionomies;
         
     | 
| 
         @@ -83,7 +83,7 @@ const UserForm = () => { 
     | 
|
| 
       83 
83 
     | 
    
         
             
                            yield addUserApi(userName, email, mobile, address, roleType);
         
     | 
| 
       84 
84 
     | 
    
         
             
                            alert("User added successfully");
         
     | 
| 
       85 
85 
     | 
    
         
             
                        }
         
     | 
| 
       86 
     | 
    
         
            -
                        window.location.href = "/admin/ 
     | 
| 
      
 86 
     | 
    
         
            +
                        window.location.href = "/admin/users";
         
     | 
| 
       87 
87 
     | 
    
         
             
                    }
         
     | 
| 
       88 
88 
     | 
    
         
             
                    catch (error) {
         
     | 
| 
       89 
89 
     | 
    
         
             
                        console.error("Error adding/updating User:", error);
         
     | 
| 
         @@ -104,7 +104,7 @@ const UserForm = () => { 
     | 
|
| 
       104 
104 
     | 
    
         
             
                    setMobile("");
         
     | 
| 
       105 
105 
     | 
    
         
             
                    setAddress("");
         
     | 
| 
       106 
106 
     | 
    
         
             
                    setRoleType("");
         
     | 
| 
       107 
     | 
    
         
            -
                    window.location.href = "/admin/ 
     | 
| 
      
 107 
     | 
    
         
            +
                    window.location.href = "/admin/users";
         
     | 
| 
       108 
108 
     | 
    
         
             
                };
         
     | 
| 
       109 
109 
     | 
    
         
             
                return (_jsx("div", { className: "max-w-4xl p-6 mx-auto dark:bg-gray-800", children: _jsx("div", { children: _jsxs("form", { children: [_jsx("h1", { className: "text-3xl font-bold text-center 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: ["User 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", disabled: isEditMode })] }), _jsxs("div", { className: "mb-6 w-full", children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Moblie 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: [_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-end", 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" : "Add" }), _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" })] })] }) }) }));
         
     | 
| 
       110 
110 
     | 
    
         
             
            };
         
     | 
    
        package/package.json
    CHANGED
    
    
| 
         @@ -305,7 +305,6 @@ const Taxionomies = () => { 
     | 
|
| 
       305 
305 
     | 
    
         
             
                            "",
         
     | 
| 
       306 
306 
     | 
    
         
             
                            "/admin/taxinomies/taxonomyform"
         
     | 
| 
       307 
307 
     | 
    
         
             
                          );
         
     | 
| 
       308 
     | 
    
         
            -
                          // Add any logic here to handle rendering the new content
         
     | 
| 
       309 
308 
     | 
    
         
             
                        }}
         
     | 
| 
       310 
309 
     | 
    
         
             
                        className="flex items-center justify-center px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80"
         
     | 
| 
       311 
310 
     | 
    
         
             
                      >
         
     | 
| 
         @@ -91,7 +91,7 @@ const UserForm = () => { 
     | 
|
| 
       91 
91 
     | 
    
         
             
                    await addUserApi(userName, email, mobile, address, roleType);
         
     | 
| 
       92 
92 
     | 
    
         
             
                    alert("User added successfully");
         
     | 
| 
       93 
93 
     | 
    
         
             
                  }
         
     | 
| 
       94 
     | 
    
         
            -
                  window.location.href = "/admin/ 
     | 
| 
      
 94 
     | 
    
         
            +
                  window.location.href = "/admin/users";
         
     | 
| 
       95 
95 
     | 
    
         
             
                } catch (error) {
         
     | 
| 
       96 
96 
     | 
    
         
             
                  console.error("Error adding/updating User:", error);
         
     | 
| 
       97 
97 
     | 
    
         
             
                  alert("Failed to add/update User");
         
     | 
| 
         @@ -113,7 +113,7 @@ const UserForm = () => { 
     | 
|
| 
       113 
113 
     | 
    
         
             
                setMobile("");
         
     | 
| 
       114 
114 
     | 
    
         
             
                setAddress("");
         
     | 
| 
       115 
115 
     | 
    
         
             
                setRoleType("");
         
     | 
| 
       116 
     | 
    
         
            -
                window.location.href = "/admin/ 
     | 
| 
      
 116 
     | 
    
         
            +
                window.location.href = "/admin/users";
         
     | 
| 
       117 
117 
     | 
    
         
             
              };
         
     | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
119 
     | 
    
         
             
              return (
         
     |