@apexcura/ui-components 0.0.11-Beta28 → 0.0.11-Beta29
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -400,7 +400,7 @@ var AddMoreTable = (props) => {
|
|
|
400
400
|
} else if (type === "textarea") {
|
|
401
401
|
return /* @__PURE__ */ import_react13.default.createElement(TextareaElement, { onChange: (value) => onHandleChange(label, value) });
|
|
402
402
|
} else {
|
|
403
|
-
return
|
|
403
|
+
return null;
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
const dataSource = rows.map((eachRow, index) => {
|
|
@@ -416,6 +416,7 @@ var AddMoreTable = (props) => {
|
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
});
|
|
419
|
+
rowElements[""] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, "delete"), eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, "Add"));
|
|
419
420
|
}
|
|
420
421
|
return {
|
|
421
422
|
key: index.toString(),
|
package/dist/index.mjs
CHANGED
|
@@ -353,7 +353,7 @@ var AddMoreTable = (props) => {
|
|
|
353
353
|
} else if (type === "textarea") {
|
|
354
354
|
return /* @__PURE__ */ React12.createElement(TextareaElement, { onChange: (value) => onHandleChange(label, value) });
|
|
355
355
|
} else {
|
|
356
|
-
return
|
|
356
|
+
return null;
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
359
|
const dataSource = rows.map((eachRow, index) => {
|
|
@@ -369,6 +369,7 @@ var AddMoreTable = (props) => {
|
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
371
|
});
|
|
372
|
+
rowElements[""] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement("button", null, "delete"), eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", null, "Add"));
|
|
372
373
|
}
|
|
373
374
|
return {
|
|
374
375
|
key: index.toString(),
|