@apexcura/ui-components 0.0.11-Beta100 → 0.0.11-Beta101

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
@@ -24,6 +24,8 @@ type ElementType = {
24
24
  thead?: any[];
25
25
  tbody?: any[];
26
26
  variable_data?: any[];
27
+ optionType?: string;
28
+ selectedClassName?: string;
27
29
  };
28
30
 
29
31
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.d.ts CHANGED
@@ -24,6 +24,8 @@ type ElementType = {
24
24
  thead?: any[];
25
25
  tbody?: any[];
26
26
  variable_data?: any[];
27
+ optionType?: string;
28
+ selectedClassName?: string;
27
29
  };
28
30
 
29
31
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.js CHANGED
@@ -202,7 +202,8 @@ var RadioElement = (props) => {
202
202
  {
203
203
  options: props.options,
204
204
  onChange: handleChange,
205
- disabled: isDisabled
205
+ disabled: isDisabled,
206
+ optionType: "button"
206
207
  }
207
208
  );
208
209
  };
@@ -445,9 +446,9 @@ var AddMoreTable = (props) => {
445
446
  return null;
446
447
  const { element: type, label } = element;
447
448
  if (type === "single-select") {
448
- return /* @__PURE__ */ import_react13.default.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2) });
449
+ return /* @__PURE__ */ import_react13.default.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "" });
449
450
  } else if (type === "textarea") {
450
- return /* @__PURE__ */ import_react13.default.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2) });
451
+ return /* @__PURE__ */ import_react13.default.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "" });
451
452
  } else {
452
453
  return null;
453
454
  }
@@ -455,7 +456,11 @@ var AddMoreTable = (props) => {
455
456
  const dataSource = rows.map((eachRow, rowIndex) => {
456
457
  const rowData = {
457
458
  key: eachRow.id,
458
- "#": rowIndex + 1
459
+ "#": rowIndex + 1,
460
+ "Medicine": renderInputElement({
461
+ element: eachRow.element,
462
+ label: eachRow.label
463
+ })
459
464
  };
460
465
  rowData["Medicine"] = renderInputElement(eachRow.variable_data[0].Medicine);
461
466
  eachRow.variable_data.map((variable, subIndex) => {
package/dist/index.mjs CHANGED
@@ -155,7 +155,8 @@ var RadioElement = (props) => {
155
155
  {
156
156
  options: props.options,
157
157
  onChange: handleChange,
158
- disabled: isDisabled
158
+ disabled: isDisabled,
159
+ optionType: "button"
159
160
  }
160
161
  );
161
162
  };
@@ -398,9 +399,9 @@ var AddMoreTable = (props) => {
398
399
  return null;
399
400
  const { element: type, label } = element;
400
401
  if (type === "single-select") {
401
- return /* @__PURE__ */ React12.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2) });
402
+ return /* @__PURE__ */ React12.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "" });
402
403
  } else if (type === "textarea") {
403
- return /* @__PURE__ */ React12.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2) });
404
+ return /* @__PURE__ */ React12.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "" });
404
405
  } else {
405
406
  return null;
406
407
  }
@@ -408,7 +409,11 @@ var AddMoreTable = (props) => {
408
409
  const dataSource = rows.map((eachRow, rowIndex) => {
409
410
  const rowData = {
410
411
  key: eachRow.id,
411
- "#": rowIndex + 1
412
+ "#": rowIndex + 1,
413
+ "Medicine": renderInputElement({
414
+ element: eachRow.element,
415
+ label: eachRow.label
416
+ })
412
417
  };
413
418
  rowData["Medicine"] = renderInputElement(eachRow.variable_data[0].Medicine);
414
419
  eachRow.variable_data.map((variable, subIndex) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta100",
3
+ "version": "0.0.11-Beta101",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",