eleven-solutions-common-website-unique-web 16.0.3 → 16.0.5
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.
@@ -324,8 +324,8 @@ const TaxonomyForm = ({ url }) => {
|
|
324
324
|
: "Add SubType"
|
325
325
|
: editTaxonomyItem
|
326
326
|
? "Edit Values"
|
327
|
-
: "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:
|
327
|
+
: "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: editTaxonomyItem
|
328
328
|
? handleSubTypeEditClick
|
329
|
-
: handleSubTypeAddClick, 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 SubType" : "Add SubType" })] })] })) : (_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: handleCloseModal, className: "px-8 py-2.5 leading-5 bg-gray-300 rounded-md", children: "Cancel" }), _jsx("button", { onClick: editTaxonomyItem ? handleEditTaxClick : handleAddClick, 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 || editTempTaxonomyItem ? "Edit" : "Add" })] })] }))] }) })] }));
|
329
|
+
: handleSubTypeAddClick, 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 SubType" : "Add SubType" }), _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: handleCloseModal, className: "px-8 py-2.5 leading-5 bg-gray-300 rounded-md", children: "Cancel" }), _jsx("button", { onClick: editTaxonomyItem ? handleEditTaxClick : handleAddClick, 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 || editTempTaxonomyItem ? "Edit" : "Add" })] })] }))] }) })] }));
|
330
330
|
};
|
331
331
|
export default TaxonomyForm;
|
package/package.json
CHANGED
@@ -694,9 +694,6 @@ const TaxonomyForm = ({ url }: TaxionomyFormProps) => {
|
|
694
694
|
Actions
|
695
695
|
</th>
|
696
696
|
)}
|
697
|
-
{/* <th className="px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400">
|
698
|
-
Sub Type
|
699
|
-
</th> */}
|
700
697
|
<th className="px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400">
|
701
698
|
Code
|
702
699
|
</th>
|
@@ -766,9 +763,6 @@ const TaxonomyForm = ({ url }: TaxionomyFormProps) => {
|
|
766
763
|
</div>
|
767
764
|
</td>
|
768
765
|
)}
|
769
|
-
{/* <td className="px-4 py-4 text-sm font-medium text-gray-900 dark:text-white">
|
770
|
-
{child.type}
|
771
|
-
</td> */}
|
772
766
|
<td className="px-4 py-2 text-sm text-gray-500 dark:text-gray-400">
|
773
767
|
{child.code}
|
774
768
|
</td>
|
@@ -993,12 +987,6 @@ const TaxonomyForm = ({ url }: TaxionomyFormProps) => {
|
|
993
987
|
className="w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md"
|
994
988
|
/>
|
995
989
|
<div className="flex space-x-4 justify-end">
|
996
|
-
<button
|
997
|
-
onClick={handleCloseModal}
|
998
|
-
className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
|
999
|
-
>
|
1000
|
-
Cancel
|
1001
|
-
</button>
|
1002
990
|
<button
|
1003
991
|
onClick={
|
1004
992
|
editTaxonomyItem
|
@@ -1009,6 +997,12 @@ const TaxonomyForm = ({ url }: TaxionomyFormProps) => {
|
|
1009
997
|
>
|
1010
998
|
{editTaxonomyItem ? "Edit SubType" : "Add SubType"}
|
1011
999
|
</button>
|
1000
|
+
<button
|
1001
|
+
onClick={handleCloseModal}
|
1002
|
+
className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
|
1003
|
+
>
|
1004
|
+
Cancel
|
1005
|
+
</button>
|
1012
1006
|
</div>
|
1013
1007
|
</>
|
1014
1008
|
) : (
|