@apexcura/ui-components 0.0.11-Beta43 → 0.0.11-Beta45

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
@@ -378,8 +378,21 @@ var AddMoreTable = (props) => {
378
378
  const newId = lastRow ? lastRow.id + 1 : 1;
379
379
  let newRow = {
380
380
  ...lastRow,
381
- id: newId
381
+ id: newId,
382
+ variable_data: [
383
+ {
384
+ id: 1,
385
+ Route: { label: "Route", element: "single-select", type: "text" },
386
+ Dose: { label: "Dose", element: "single-select", type: "text" },
387
+ Frequency: { label: "Frequency", element: "single-select", type: "text" },
388
+ When: { label: "When", element: "textarea", type: "text" },
389
+ Duration: { label: "Duration", element: "textarea", type: "text" },
390
+ Instructions: { label: "Instructions", element: "textarea", type: "text" },
391
+ icons: { delete: "plusOutlined", add: "plusOutlined" }
392
+ }
393
+ ]
382
394
  };
395
+ console.log(rows);
383
396
  setRows((prevData) => [...prevData, newRow]);
384
397
  };
385
398
  const onHandleDelete = (index) => {
package/dist/index.mjs CHANGED
@@ -331,8 +331,21 @@ var AddMoreTable = (props) => {
331
331
  const newId = lastRow ? lastRow.id + 1 : 1;
332
332
  let newRow = {
333
333
  ...lastRow,
334
- id: newId
334
+ id: newId,
335
+ variable_data: [
336
+ {
337
+ id: 1,
338
+ Route: { label: "Route", element: "single-select", type: "text" },
339
+ Dose: { label: "Dose", element: "single-select", type: "text" },
340
+ Frequency: { label: "Frequency", element: "single-select", type: "text" },
341
+ When: { label: "When", element: "textarea", type: "text" },
342
+ Duration: { label: "Duration", element: "textarea", type: "text" },
343
+ Instructions: { label: "Instructions", element: "textarea", type: "text" },
344
+ icons: { delete: "plusOutlined", add: "plusOutlined" }
345
+ }
346
+ ]
335
347
  };
348
+ console.log(rows);
336
349
  setRows((prevData) => [...prevData, newRow]);
337
350
  };
338
351
  const onHandleDelete = (index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta43",
3
+ "version": "0.0.11-Beta45",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",