@apexcura/ui-components 0.0.14-Beta130 → 0.0.14-Beta131

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
@@ -128,7 +128,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
128
128
 
129
129
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
130
130
 
131
- declare const DoubleBarChart: React$1.FC;
131
+ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
132
132
 
133
133
  declare const BarChart: React$1.FC;
134
134
 
package/dist/index.d.ts CHANGED
@@ -128,7 +128,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
128
128
 
129
129
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
130
130
 
131
- declare const DoubleBarChart: React$1.FC;
131
+ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
132
132
 
133
133
  declare const BarChart: React$1.FC;
134
134
 
package/dist/index.js CHANGED
@@ -1241,12 +1241,12 @@ var SemiCircleDonut = (props) => {
1241
1241
  const centerX = left + width / 2;
1242
1242
  const centerY = top + height / 1.5;
1243
1243
  ctx.save();
1244
- ctx.font = "30px Arial";
1244
+ ctx.font = "26px Arial";
1245
1245
  ctx.fillStyle = "black";
1246
1246
  ctx.textAlign = "center";
1247
1247
  ctx.textBaseline = "middle";
1248
1248
  ctx.fillText("High", centerX, centerY - 10);
1249
- ctx.font = "13px Arial";
1249
+ ctx.font = "12px Arial";
1250
1250
  ctx.fillText("Improve Chatbot Training Data", centerX, centerY + 20);
1251
1251
  ctx.restore();
1252
1252
  }
@@ -1336,8 +1336,7 @@ var LineChart = (props) => {
1336
1336
  pointBackgroundColor: index === 0 ? "#FF8F00" : index === 1 ? "#F50057" : "#254AAA",
1337
1337
  pointBorderColor: "white",
1338
1338
  pointStyle: "circle",
1339
- pointRadius: 5,
1340
- // Adjust point size as needed
1339
+ pointRadius: 3,
1341
1340
  tension: 0.1,
1342
1341
  fill: true
1343
1342
  }))
@@ -1354,7 +1353,6 @@ var LineChart = (props) => {
1354
1353
  x: {
1355
1354
  grid: {
1356
1355
  display: true
1357
- // Display x-axis grid lines
1358
1356
  }
1359
1357
  },
1360
1358
  y: {
@@ -1386,7 +1384,7 @@ var LineChart = (props) => {
1386
1384
  // src/Components/DoubleBarChart.tsx
1387
1385
  var import_react35 = __toESM(require("react"));
1388
1386
  var import_auto2 = __toESM(require("chart.js/auto"));
1389
- var DoubleBarChart = () => {
1387
+ var DoubleBarChart = (props) => {
1390
1388
  const chartRef = (0, import_react35.useRef)(null);
1391
1389
  const chartInstance = (0, import_react35.useRef)(null);
1392
1390
  (0, import_react35.useEffect)(() => {
@@ -1406,21 +1404,29 @@ var DoubleBarChart = () => {
1406
1404
  ],
1407
1405
  datasets: [
1408
1406
  {
1409
- label: "Male",
1407
+ label: "Engagement Rate",
1410
1408
  data: [60, 70, 50, 80, 65],
1411
1409
  // Example data for male
1412
- backgroundColor: "#93B8E2"
1410
+ backgroundColor: "#93B8E2",
1411
+ barThickness: 20
1413
1412
  },
1414
1413
  {
1415
- label: "Female",
1414
+ label: "Conversion Rate",
1416
1415
  data: [70, 65, 75, 55, 85],
1417
1416
  // Example data for female
1418
- backgroundColor: "#4484CD"
1417
+ backgroundColor: "#4484CD",
1418
+ barThickness: 20
1419
1419
  }
1420
1420
  ]
1421
1421
  },
1422
1422
  options: {
1423
1423
  scales: {
1424
+ x: {
1425
+ grid: {
1426
+ display: true
1427
+ // Display x-axis grid lines
1428
+ }
1429
+ },
1424
1430
  y: {
1425
1431
  beginAtZero: true,
1426
1432
  suggestedMax: 100,
@@ -1430,7 +1436,7 @@ var DoubleBarChart = () => {
1430
1436
  }
1431
1437
  },
1432
1438
  grid: {
1433
- display: false
1439
+ display: true
1434
1440
  // Remove y-axis grid lines
1435
1441
  }
1436
1442
  }
@@ -1438,9 +1444,7 @@ var DoubleBarChart = () => {
1438
1444
  plugins: {
1439
1445
  legend: {
1440
1446
  labels: {
1441
- // Configure labels to show colored circles
1442
1447
  usePointStyle: true
1443
- // Use circles instead of squares
1444
1448
  }
1445
1449
  }
1446
1450
  }
@@ -1453,7 +1457,7 @@ var DoubleBarChart = () => {
1453
1457
  }
1454
1458
  };
1455
1459
  }, []);
1456
- return /* @__PURE__ */ import_react35.default.createElement("canvas", { ref: chartRef });
1460
+ return /* @__PURE__ */ import_react35.default.createElement("div", { className: props.className }, /* @__PURE__ */ import_react35.default.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ import_react35.default.createElement("canvas", { ref: chartRef }));
1457
1461
  };
1458
1462
 
1459
1463
  // src/Components/BarChart.tsx
package/dist/index.mjs CHANGED
@@ -1187,12 +1187,12 @@ var SemiCircleDonut = (props) => {
1187
1187
  const centerX = left + width / 2;
1188
1188
  const centerY = top + height / 1.5;
1189
1189
  ctx.save();
1190
- ctx.font = "30px Arial";
1190
+ ctx.font = "26px Arial";
1191
1191
  ctx.fillStyle = "black";
1192
1192
  ctx.textAlign = "center";
1193
1193
  ctx.textBaseline = "middle";
1194
1194
  ctx.fillText("High", centerX, centerY - 10);
1195
- ctx.font = "13px Arial";
1195
+ ctx.font = "12px Arial";
1196
1196
  ctx.fillText("Improve Chatbot Training Data", centerX, centerY + 20);
1197
1197
  ctx.restore();
1198
1198
  }
@@ -1288,8 +1288,7 @@ var LineChart = (props) => {
1288
1288
  pointBackgroundColor: index === 0 ? "#FF8F00" : index === 1 ? "#F50057" : "#254AAA",
1289
1289
  pointBorderColor: "white",
1290
1290
  pointStyle: "circle",
1291
- pointRadius: 5,
1292
- // Adjust point size as needed
1291
+ pointRadius: 3,
1293
1292
  tension: 0.1,
1294
1293
  fill: true
1295
1294
  }))
@@ -1306,7 +1305,6 @@ var LineChart = (props) => {
1306
1305
  x: {
1307
1306
  grid: {
1308
1307
  display: true
1309
- // Display x-axis grid lines
1310
1308
  }
1311
1309
  },
1312
1310
  y: {
@@ -1338,7 +1336,7 @@ var LineChart = (props) => {
1338
1336
  // src/Components/DoubleBarChart.tsx
1339
1337
  import React35, { useEffect as useEffect5, useRef as useRef3 } from "react";
1340
1338
  import Chart2 from "chart.js/auto";
1341
- var DoubleBarChart = () => {
1339
+ var DoubleBarChart = (props) => {
1342
1340
  const chartRef = useRef3(null);
1343
1341
  const chartInstance = useRef3(null);
1344
1342
  useEffect5(() => {
@@ -1358,21 +1356,29 @@ var DoubleBarChart = () => {
1358
1356
  ],
1359
1357
  datasets: [
1360
1358
  {
1361
- label: "Male",
1359
+ label: "Engagement Rate",
1362
1360
  data: [60, 70, 50, 80, 65],
1363
1361
  // Example data for male
1364
- backgroundColor: "#93B8E2"
1362
+ backgroundColor: "#93B8E2",
1363
+ barThickness: 20
1365
1364
  },
1366
1365
  {
1367
- label: "Female",
1366
+ label: "Conversion Rate",
1368
1367
  data: [70, 65, 75, 55, 85],
1369
1368
  // Example data for female
1370
- backgroundColor: "#4484CD"
1369
+ backgroundColor: "#4484CD",
1370
+ barThickness: 20
1371
1371
  }
1372
1372
  ]
1373
1373
  },
1374
1374
  options: {
1375
1375
  scales: {
1376
+ x: {
1377
+ grid: {
1378
+ display: true
1379
+ // Display x-axis grid lines
1380
+ }
1381
+ },
1376
1382
  y: {
1377
1383
  beginAtZero: true,
1378
1384
  suggestedMax: 100,
@@ -1382,7 +1388,7 @@ var DoubleBarChart = () => {
1382
1388
  }
1383
1389
  },
1384
1390
  grid: {
1385
- display: false
1391
+ display: true
1386
1392
  // Remove y-axis grid lines
1387
1393
  }
1388
1394
  }
@@ -1390,9 +1396,7 @@ var DoubleBarChart = () => {
1390
1396
  plugins: {
1391
1397
  legend: {
1392
1398
  labels: {
1393
- // Configure labels to show colored circles
1394
1399
  usePointStyle: true
1395
- // Use circles instead of squares
1396
1400
  }
1397
1401
  }
1398
1402
  }
@@ -1405,7 +1409,7 @@ var DoubleBarChart = () => {
1405
1409
  }
1406
1410
  };
1407
1411
  }, []);
1408
- return /* @__PURE__ */ React35.createElement("canvas", { ref: chartRef });
1412
+ return /* @__PURE__ */ React35.createElement("div", { className: props.className }, /* @__PURE__ */ React35.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ React35.createElement("canvas", { ref: chartRef }));
1409
1413
  };
1410
1414
 
1411
1415
  // src/Components/BarChart.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta130",
3
+ "version": "0.0.14-Beta131",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",