@apexcura/ui-components 0.0.12-Beta21 → 0.0.12-Beta22
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -434,11 +434,11 @@ var AddMoreTable = (props) => {
|
|
|
434
434
|
element: "textarea",
|
|
435
435
|
type: "text"
|
|
436
436
|
},
|
|
437
|
-
icons: { delete: "", plus: "" }
|
|
437
|
+
icons: { delete: "delete", plus: "plus" }
|
|
438
438
|
};
|
|
439
439
|
const updatedVariableData = [...row.variable_data, newVariableData].map((item, index, array) => ({
|
|
440
440
|
...item,
|
|
441
|
-
icons: { delete: "", plus: index === array.length - 1 ? "" : void 0 }
|
|
441
|
+
icons: { delete: "delete", plus: index === array.length - 1 ? "plus" : void 0 }
|
|
442
442
|
}));
|
|
443
443
|
return {
|
|
444
444
|
...row,
|
|
@@ -475,7 +475,7 @@ var AddMoreTable = (props) => {
|
|
|
475
475
|
rowElements[value.label] = renderInputElement(value);
|
|
476
476
|
}
|
|
477
477
|
if (key === "icons") {
|
|
478
|
-
rowElements[`icons_${varIndex}`] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(eachRow.id) },
|
|
478
|
+
rowElements[`icons_${varIndex}`] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, "delete"), varIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleVariableData(eachRow.id) }, "plus"));
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -387,11 +387,11 @@ var AddMoreTable = (props) => {
|
|
|
387
387
|
element: "textarea",
|
|
388
388
|
type: "text"
|
|
389
389
|
},
|
|
390
|
-
icons: { delete: "", plus: "" }
|
|
390
|
+
icons: { delete: "delete", plus: "plus" }
|
|
391
391
|
};
|
|
392
392
|
const updatedVariableData = [...row.variable_data, newVariableData].map((item, index, array) => ({
|
|
393
393
|
...item,
|
|
394
|
-
icons: { delete: "", plus: index === array.length - 1 ? "" : void 0 }
|
|
394
|
+
icons: { delete: "delete", plus: index === array.length - 1 ? "plus" : void 0 }
|
|
395
395
|
}));
|
|
396
396
|
return {
|
|
397
397
|
...row,
|
|
@@ -428,7 +428,7 @@ var AddMoreTable = (props) => {
|
|
|
428
428
|
rowElements[value.label] = renderInputElement(value);
|
|
429
429
|
}
|
|
430
430
|
if (key === "icons") {
|
|
431
|
-
rowElements[`icons_${varIndex}`] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(eachRow.id) },
|
|
431
|
+
rowElements[`icons_${varIndex}`] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, "delete"), varIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleVariableData(eachRow.id) }, "plus"));
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
});
|