@apexcura/ui-components 0.0.11-Beta10 → 0.0.11-Beta11
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -374,7 +374,7 @@ var AddMoreTable = (props) => {
|
|
|
374
374
|
key: eachHeadEl.id
|
|
375
375
|
})) : [];
|
|
376
376
|
const renderInputElement = (element) => {
|
|
377
|
-
const { type, label } = element;
|
|
377
|
+
const { element: type, label } = element;
|
|
378
378
|
if (type === "single-select") {
|
|
379
379
|
return /* @__PURE__ */ import_react13.default.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
|
|
380
380
|
} else if (type === "textarea") {
|
|
@@ -386,7 +386,6 @@ var AddMoreTable = (props) => {
|
|
|
386
386
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
387
387
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
388
388
|
acc[curr.label] = renderInputElement(curr);
|
|
389
|
-
console.log("acc", acc);
|
|
390
389
|
return acc;
|
|
391
390
|
}, {});
|
|
392
391
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -327,7 +327,7 @@ var AddMoreTable = (props) => {
|
|
|
327
327
|
key: eachHeadEl.id
|
|
328
328
|
})) : [];
|
|
329
329
|
const renderInputElement = (element) => {
|
|
330
|
-
const { type, label } = element;
|
|
330
|
+
const { element: type, label } = element;
|
|
331
331
|
if (type === "single-select") {
|
|
332
332
|
return /* @__PURE__ */ React12.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
|
|
333
333
|
} else if (type === "textarea") {
|
|
@@ -339,7 +339,6 @@ var AddMoreTable = (props) => {
|
|
|
339
339
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
340
340
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
341
341
|
acc[curr.label] = renderInputElement(curr);
|
|
342
|
-
console.log("acc", acc);
|
|
343
342
|
return acc;
|
|
344
343
|
}, {});
|
|
345
344
|
return {
|