eleven-solutions-common-website-unique-web 4.0.33 → 4.0.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -272,16 +272,6 @@ const TaxonomyForm = () => {
272
272
  ? "Add SubType"
273
273
  : editTaxonomyItem || editTempTaxonomyItem
274
274
  ? "Edit Values"
275
- : "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: "Type" }), _jsx("input", { type: "text", value: subType, onChange: (e) => setSubType(e.target.value), placeholder: "Enter Type", 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: "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(_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", {
276
- // onClick={editTaxonomyItem ? handleEditTaxClick : handleAddClick}
277
- onClick: isAddingSubType
278
- ? handleSubTypeClick
279
- : editTaxonomyItem
280
- ? handleEditTaxClick
281
- : 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: isAddingSubType
282
- ? "Add SubType"
283
- : editTaxonomyItem || editTempTaxonomyItem
284
- ? "Edit"
285
- : "Add" })] })] }) })] }));
275
+ : "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: "Type" }), _jsx("input", { type: "text", value: subType, onChange: (e) => setSubType(e.target.value), placeholder: "Enter Type", 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: "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(_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" })] })] }))] }) })] }));
286
276
  };
287
277
  export default TaxonomyForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "4.0.33",
3
+ "version": "4.0.35",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -795,35 +795,25 @@ const TaxonomyForm = () => {
795
795
  placeholder="Enter Value"
796
796
  className="w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md"
797
797
  />
798
+
799
+ <div className="flex space-x-4 justify-end">
800
+ <button
801
+ onClick={handleCloseModal}
802
+ className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
803
+ >
804
+ Cancel
805
+ </button>
806
+ <button
807
+ onClick={
808
+ editTaxonomyItem ? handleEditTaxClick : handleAddClick
809
+ }
810
+ 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"
811
+ >
812
+ {editTaxonomyItem || editTempTaxonomyItem ? "Edit" : "Add"}
813
+ </button>
814
+ </div>
798
815
  </>
799
816
  )}
800
-
801
- <div className="flex space-x-4 justify-end">
802
- <button
803
- onClick={handleCloseModal}
804
- className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
805
- >
806
- Cancel
807
- </button>
808
- <button
809
- // onClick={editTaxonomyItem ? handleEditTaxClick : handleAddClick}
810
- onClick={
811
- isAddingSubType
812
- ? handleSubTypeClick
813
- : editTaxonomyItem
814
- ? handleEditTaxClick
815
- : handleAddClick
816
- }
817
- 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"
818
- >
819
- {/* {editTaxonomyItem || editTempTaxonomyItem ? "Edit" : "Add"} */}
820
- {isAddingSubType
821
- ? "Add SubType"
822
- : editTaxonomyItem || editTempTaxonomyItem
823
- ? "Edit"
824
- : "Add"}
825
- </button>
826
- </div>
827
817
  </div>
828
818
  </div>
829
819
  </div>