@apexcura/ui-components 0.0.11-Beta19 → 0.0.11-Beta20

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 CHANGED
@@ -393,7 +393,6 @@ var AddMoreTable = (props) => {
393
393
  })) : [];
394
394
  const renderInputElement = (element) => {
395
395
  const { element: type, label } = element;
396
- console.log("type....", type);
397
396
  if (type === "single-select") {
398
397
  return /* @__PURE__ */ import_react13.default.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
399
398
  } else if (type === "textarea") {
@@ -416,8 +415,17 @@ var AddMoreTable = (props) => {
416
415
  });
417
416
  });
418
417
  if (eachRow.variable_data.length > 0) {
419
- const addSubRow = /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null));
420
- rowElements["kkk"] = addSubRow;
418
+ const addIconObject = {
419
+ id: { id: eachRow.variable_data.length + 1 },
420
+ Route: { label: "Route", element: "single-select", type: "text" },
421
+ Dose: { label: "Dose", element: "single-select", type: "text" },
422
+ Frequency: { label: "Frequency", element: "single-select", type: "text" },
423
+ When: { label: "When", element: "textarea", type: "text" },
424
+ Duration: { label: "Duration", element: "textarea", type: "text" },
425
+ Instructions: { label: "Instructions", element: "textarea", type: "text" },
426
+ addIcon: /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => console.log("Add more clicked") }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null))
427
+ };
428
+ rowElements["AddMoreIcon"] = addIconObject.addIcon;
421
429
  }
422
430
  }
423
431
  return {
package/dist/index.mjs CHANGED
@@ -346,7 +346,6 @@ var AddMoreTable = (props) => {
346
346
  })) : [];
347
347
  const renderInputElement = (element) => {
348
348
  const { element: type, label } = element;
349
- console.log("type....", type);
350
349
  if (type === "single-select") {
351
350
  return /* @__PURE__ */ React12.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
352
351
  } else if (type === "textarea") {
@@ -369,8 +368,17 @@ var AddMoreTable = (props) => {
369
368
  });
370
369
  });
371
370
  if (eachRow.variable_data.length > 0) {
372
- const addSubRow = /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(PlusOutlined, null));
373
- rowElements["kkk"] = addSubRow;
371
+ const addIconObject = {
372
+ id: { id: eachRow.variable_data.length + 1 },
373
+ Route: { label: "Route", element: "single-select", type: "text" },
374
+ Dose: { label: "Dose", element: "single-select", type: "text" },
375
+ Frequency: { label: "Frequency", element: "single-select", type: "text" },
376
+ When: { label: "When", element: "textarea", type: "text" },
377
+ Duration: { label: "Duration", element: "textarea", type: "text" },
378
+ Instructions: { label: "Instructions", element: "textarea", type: "text" },
379
+ addIcon: /* @__PURE__ */ React12.createElement("button", { onClick: () => console.log("Add more clicked") }, /* @__PURE__ */ React12.createElement(PlusOutlined, null))
380
+ };
381
+ rowElements["AddMoreIcon"] = addIconObject.addIcon;
374
382
  }
375
383
  }
376
384
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta19",
3
+ "version": "0.0.11-Beta20",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",