@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 CHANGED
@@ -22,6 +22,7 @@ type ElementType = {
22
22
  id?: number;
23
23
  thead?: any[];
24
24
  tbody?: any[];
25
+ variable_data?: any[];
25
26
  };
26
27
 
27
28
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ type ElementType = {
22
22
  id?: number;
23
23
  thead?: any[];
24
24
  tbody?: any[];
25
+ variable_data?: any[];
25
26
  };
26
27
 
27
28
  interface ElementExecuterProps$3 extends ElementType {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta10",
3
+ "version": "0.0.11-Beta11",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",