eleven-solutions-common-website-unique-web 8.0.24 → 9.0.0
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.
- package/dist/components/admin/TaxonomyForm.js +2 -2
- package/dist/components/admin/Template.d.ts +2 -0
- package/dist/components/admin/Template.js +5 -0
- package/dist/components/admin/UserForm.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/package.json +1 -1
- package/src/components/admin/TaxonomyForm.tsx +4 -3
- package/src/components/admin/Template.tsx +58 -0
- package/src/components/admin/UserForm.tsx +1 -1
- package/src/components/index.ts +2 -0
|
@@ -18,6 +18,7 @@ const TaxonomyForm = () => {
|
|
|
18
18
|
const [code, setCode] = useState("");
|
|
19
19
|
const [value, setValue] = useState("");
|
|
20
20
|
const [isEditMode, setIsEditMode] = useState(false);
|
|
21
|
+
const [isMultiple, setIsMultiple] = useState(false);
|
|
21
22
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
22
23
|
const [newCode, setNewCode] = useState("");
|
|
23
24
|
const [newValue, setNewValue] = useState("");
|
|
@@ -67,7 +68,6 @@ const TaxonomyForm = () => {
|
|
|
67
68
|
const [editTaxonomyItem, setEditTaxonomyItem] = useState(null);
|
|
68
69
|
const [editTempTaxonomyItem, setEditTempTaxonomyItem] = useState(null);
|
|
69
70
|
const [selectedTaxonomyId, setSelectedTaxonomyId] = useState("");
|
|
70
|
-
const [isMultiple, setIsMultiple] = useState(false);
|
|
71
71
|
const validateForm = () => {
|
|
72
72
|
if (!inputType || !code || !value) {
|
|
73
73
|
alert("Please fill in all required fields: Type, Code, and Value.");
|
|
@@ -332,7 +332,7 @@ const TaxonomyForm = () => {
|
|
|
332
332
|
_jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", style: { width: "200px" }, children: "Actions" })), _jsx("th", { className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", children: "Sub Type" }), _jsx("th", { className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", children: "Code" }), _jsx("th", { className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", children: "Value" })] }) }), _jsx("tbody", { children: allTaxonomies
|
|
333
333
|
.filter((item) => item.parentId === taxonomy.id)
|
|
334
334
|
.map((child, key) => (_jsxs("tr", { children: [similarTaxonomies.some((taxonomy) => taxonomy.isEdit) && (_jsx("td", { className: "px-4 py-4 text-sm whitespace-nowrap", children: _jsxs("div", { className: "flex items-center gap-x-6", children: [_jsx("button", { type: "button", onClick: () => handleDeleteSubTypeClick(child.id), className: "text-gray-500 transition-colors duration-200 dark:hover:text-red-600 dark:text-gray-300 hover:text-red-500 focus:outline-none", children: _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", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" }) }) }), _jsx("button", { onClick: () => handleSubEdit(child), className: "text-gray-500 transition-colors duration-200 dark:hover:text-yellow-500 dark:text-gray-300 hover:text-yellow-500 focus:outline-none", children: _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", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" }) }) })] }) })), _jsx("td", { className: "px-4 py-4 text-sm font-medium text-gray-900 dark:text-white", children: child.type }), _jsx("td", { className: "px-4 py-2 text-sm text-gray-500 dark:text-gray-400", children: child.code }), _jsx("td", { className: "px-4 py-4 text-sm font-medium text-gray-900 dark:text-white", children: child.value })] }, key))) })] }) }) }))] }, taxonomy.id));
|
|
335
|
-
}) })] }) }), similarTaxonomies.some((taxonomy) => taxonomy.isEdit) && (_jsx("div", { className: "flex space-x-4 mt-6 justify-start", children: _jsxs("button", { type: "button", onClick: handleOpenModal, 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" }), "Add Multiple Values"] }) }))] })), isEditMode && (_jsx(_Fragment, { children: tempTaxonomy.length > 0 && (_jsxs("div", { className: "flex-grow ml-0 mt-4 w-full", children: [_jsx("div", { className: "overflow-hidden border border-gray-200 dark:border-gray-700 md:rounded-lg mt-6", children: _jsxs("table", { className: "min-w-full divide-y divide-gray-200 dark:divide-gray-700", children: [_jsx("thead", { className: "bg-gray-50 dark:bg-gray-800", children: _jsxs("tr", { children: [_jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", style: { width: "200px" }, children: "Actions" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Code" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Value" })] }) }), _jsx("tbody", { className: "bg-white divide-y divide-gray-200 dark:bg-gray-800 dark:divide-gray-700", children: [...tempTaxonomy].map((item, index) => (_jsxs("tr", { children: [_jsx("td", { className: "px-4 py-4 text-sm whitespace-nowrap", children: _jsxs("div", { className: "flex items-center gap-x-6", children: [_jsx("button", { type: "button", onClick: () => {
|
|
335
|
+
}) })] }) }), similarTaxonomies.some((taxonomy) => taxonomy.isEdit && taxonomy.isMultiple) && (_jsx("div", { className: "flex space-x-4 mt-6 justify-start", children: _jsxs("button", { type: "button", onClick: handleOpenModal, 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" }), "Add Multiple Values"] }) }))] })), isEditMode && (_jsx(_Fragment, { children: tempTaxonomy.length > 0 && (_jsxs("div", { className: "flex-grow ml-0 mt-4 w-full", children: [_jsx("div", { className: "overflow-hidden border border-gray-200 dark:border-gray-700 md:rounded-lg mt-6", children: _jsxs("table", { className: "min-w-full divide-y divide-gray-200 dark:divide-gray-700", children: [_jsx("thead", { className: "bg-gray-50 dark:bg-gray-800", children: _jsxs("tr", { children: [_jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", style: { width: "200px" }, children: "Actions" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Code" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Value" })] }) }), _jsx("tbody", { className: "bg-white divide-y divide-gray-200 dark:bg-gray-800 dark:divide-gray-700", children: [...tempTaxonomy].map((item, index) => (_jsxs("tr", { children: [_jsx("td", { className: "px-4 py-4 text-sm whitespace-nowrap", children: _jsxs("div", { className: "flex items-center gap-x-6", children: [_jsx("button", { type: "button", onClick: () => {
|
|
336
336
|
const newTempTaxonomy = [...tempTaxonomy];
|
|
337
337
|
newTempTaxonomy.splice(index, 1);
|
|
338
338
|
setTempTaxonomy(newTempTaxonomy);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const Template = () => {
|
|
3
|
+
return (_jsxs("div", { className: "container px-4 mx-auto mt-6 h-full", children: [_jsx("div", { className: "w-3/4", children: _jsx("h1", { className: "text-3xl font-bold text-blue-600 mb-5", children: "Template" }) }), _jsx("div", { className: "flex-grow ml-0 w-full mt-10", children: _jsxs("form", { className: "w-full ", children: [_jsx("label", { htmlFor: "default-search", className: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white", children: "Search" }), _jsxs("div", { className: "relative w-full", children: [_jsx("div", { className: "absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none", children: _jsx("svg", { className: "w-4 h-4 text-gray-500 dark:text-gray-400", "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", children: _jsx("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" }) }) }), _jsx("input", { type: "search", id: "default-search", className: "inline-block min-w-full p-3 ps-10 outline-none text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500", placeholder: "Search Templates", required: true }), _jsx("button", { type: "submit", className: "text-white absolute end-1.5 bottom-1.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800", children: "Search" })] })] }) }), _jsx("div", { className: "flex-grow ml-0 w-3/4", children: _jsx("form", { className: "w-auto" }) })] }));
|
|
4
|
+
};
|
|
5
|
+
export default Template;
|
|
@@ -79,6 +79,6 @@ const UserForm = () => {
|
|
|
79
79
|
window.history.pushState({}, "", "/admin/users");
|
|
80
80
|
window.dispatchEvent(new PopStateEvent("popstate"));
|
|
81
81
|
};
|
|
82
|
-
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: "
|
|
82
|
+
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: "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: [_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" })] })] }) }) }));
|
|
83
83
|
};
|
|
84
84
|
export default UserForm;
|
|
@@ -8,6 +8,7 @@ export { default as Users } from "./admin/Users";
|
|
|
8
8
|
export { default as UserForm } from "./admin/UserForm";
|
|
9
9
|
export { default as Taxionomies } from "./admin/Taxionomies";
|
|
10
10
|
export { default as TaxonomyForm } from "./admin/TaxonomyForm";
|
|
11
|
+
export { default as Template } from "./admin/Template";
|
|
11
12
|
export { default as AdminSideBar } from "./admin/Sidebar";
|
|
12
13
|
export { default as Dashboard } from "./admin/Dashboard";
|
|
13
14
|
export { registerApi, loginApi } from "./api/api";
|
package/dist/components/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { default as Users } from "./admin/Users";
|
|
|
9
9
|
export { default as UserForm } from "./admin/UserForm";
|
|
10
10
|
export { default as Taxionomies } from "./admin/Taxionomies";
|
|
11
11
|
export { default as TaxonomyForm } from "./admin/TaxonomyForm";
|
|
12
|
+
export { default as Template } from "./admin/Template";
|
|
12
13
|
export { default as AdminSideBar } from "./admin/Sidebar";
|
|
13
14
|
export { default as Dashboard } from "./admin/Dashboard";
|
|
14
15
|
export { registerApi, loginApi } from "./api/api";
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ const TaxonomyForm = () => {
|
|
|
19
19
|
const [value, setValue] = useState<string>("");
|
|
20
20
|
|
|
21
21
|
const [isEditMode, setIsEditMode] = useState<boolean>(false);
|
|
22
|
+
const [isMultiple, setIsMultiple] = useState(false);
|
|
22
23
|
|
|
23
24
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
24
25
|
|
|
@@ -94,8 +95,6 @@ const TaxonomyForm = () => {
|
|
|
94
95
|
|
|
95
96
|
const [selectedTaxonomyId, setSelectedTaxonomyId] = useState<string>("");
|
|
96
97
|
|
|
97
|
-
const [isMultiple, setIsMultiple] = useState(false);
|
|
98
|
-
|
|
99
98
|
const validateForm = () => {
|
|
100
99
|
if (!inputType || !code || !value) {
|
|
101
100
|
alert("Please fill in all required fields: Type, Code, and Value.");
|
|
@@ -794,7 +793,9 @@ const TaxonomyForm = () => {
|
|
|
794
793
|
</tbody>
|
|
795
794
|
</table>
|
|
796
795
|
</div>
|
|
797
|
-
{similarTaxonomies.some(
|
|
796
|
+
{similarTaxonomies.some(
|
|
797
|
+
(taxonomy) => taxonomy.isEdit && taxonomy.isMultiple
|
|
798
|
+
) && (
|
|
798
799
|
<div className="flex space-x-4 mt-6 justify-start">
|
|
799
800
|
<button
|
|
800
801
|
type="button"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const Template = () => {
|
|
4
|
+
return (
|
|
5
|
+
<div className="container px-4 mx-auto mt-6 h-full">
|
|
6
|
+
<div className="w-3/4">
|
|
7
|
+
<h1 className="text-3xl font-bold text-blue-600 mb-5">Template</h1>
|
|
8
|
+
</div>
|
|
9
|
+
<div className="flex-grow ml-0 w-full mt-10">
|
|
10
|
+
<form className="w-full ">
|
|
11
|
+
<label
|
|
12
|
+
htmlFor="default-search"
|
|
13
|
+
className="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
14
|
+
>
|
|
15
|
+
Search
|
|
16
|
+
</label>
|
|
17
|
+
<div className="relative w-full">
|
|
18
|
+
<div className="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
|
|
19
|
+
<svg
|
|
20
|
+
className="w-4 h-4 text-gray-500 dark:text-gray-400"
|
|
21
|
+
aria-hidden="true"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
fill="none"
|
|
24
|
+
viewBox="0 0 20 20"
|
|
25
|
+
>
|
|
26
|
+
<path
|
|
27
|
+
stroke="currentColor"
|
|
28
|
+
stroke-linecap="round"
|
|
29
|
+
stroke-linejoin="round"
|
|
30
|
+
stroke-width="2"
|
|
31
|
+
d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
32
|
+
/>
|
|
33
|
+
</svg>
|
|
34
|
+
</div>
|
|
35
|
+
<input
|
|
36
|
+
type="search"
|
|
37
|
+
id="default-search"
|
|
38
|
+
className="inline-block min-w-full p-3 ps-10 outline-none text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
39
|
+
placeholder="Search Templates"
|
|
40
|
+
required
|
|
41
|
+
/>
|
|
42
|
+
<button
|
|
43
|
+
type="submit"
|
|
44
|
+
className="text-white absolute end-1.5 bottom-1.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
45
|
+
>
|
|
46
|
+
Search
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
</form>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="flex-grow ml-0 w-3/4">
|
|
52
|
+
<form className="w-auto">{/* Search Form */}</form>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default Template;
|
package/src/components/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export { default as Users } from "./admin/Users";
|
|
|
9
9
|
export { default as UserForm } from "./admin/UserForm";
|
|
10
10
|
export { default as Taxionomies } from "./admin/Taxionomies";
|
|
11
11
|
export { default as TaxonomyForm } from "./admin/TaxonomyForm";
|
|
12
|
+
export { default as Template } from "./admin/Template";
|
|
13
|
+
|
|
12
14
|
export { default as AdminSideBar } from "./admin/Sidebar";
|
|
13
15
|
export { default as Dashboard } from "./admin/Dashboard";
|
|
14
16
|
export { registerApi, loginApi } from "./api/api";
|