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

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
@@ -65,6 +65,8 @@ type ElementType = {
65
65
  length?: number;
66
66
  imgClassName?: string;
67
67
  loading?: boolean;
68
+ fillText1?: string;
69
+ fillText2?: string;
68
70
  };
69
71
 
70
72
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
@@ -128,7 +130,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
128
130
 
129
131
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
130
132
 
131
- declare const DoubleBarChart: React$1.FC;
133
+ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
132
134
 
133
135
  declare const BarChart: React$1.FC;
134
136
 
package/dist/index.d.ts CHANGED
@@ -65,6 +65,8 @@ type ElementType = {
65
65
  length?: number;
66
66
  imgClassName?: string;
67
67
  loading?: boolean;
68
+ fillText1?: string;
69
+ fillText2?: string;
68
70
  };
69
71
 
70
72
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
@@ -128,7 +130,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
128
130
 
129
131
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
130
132
 
131
- declare const DoubleBarChart: React$1.FC;
133
+ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
132
134
 
133
135
  declare const BarChart: React$1.FC;
134
136
 
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 = "16px 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: {
@@ -1366,8 +1364,7 @@ var LineChart = (props) => {
1366
1364
  }
1367
1365
  },
1368
1366
  grid: {
1369
- display: true
1370
- // Display y-axis grid lines
1367
+ display: false
1371
1368
  }
1372
1369
  }
1373
1370
  }
@@ -1386,7 +1383,7 @@ var LineChart = (props) => {
1386
1383
  // src/Components/DoubleBarChart.tsx
1387
1384
  var import_react35 = __toESM(require("react"));
1388
1385
  var import_auto2 = __toESM(require("chart.js/auto"));
1389
- var DoubleBarChart = () => {
1386
+ var DoubleBarChart = (props) => {
1390
1387
  const chartRef = (0, import_react35.useRef)(null);
1391
1388
  const chartInstance = (0, import_react35.useRef)(null);
1392
1389
  (0, import_react35.useEffect)(() => {
@@ -1406,21 +1403,29 @@ var DoubleBarChart = () => {
1406
1403
  ],
1407
1404
  datasets: [
1408
1405
  {
1409
- label: "Male",
1406
+ label: "Engagement Rate",
1410
1407
  data: [60, 70, 50, 80, 65],
1411
1408
  // Example data for male
1412
- backgroundColor: "#93B8E2"
1409
+ backgroundColor: "#93B8E2",
1410
+ barThickness: 20
1413
1411
  },
1414
1412
  {
1415
- label: "Female",
1413
+ label: "Conversion Rate",
1416
1414
  data: [70, 65, 75, 55, 85],
1417
1415
  // Example data for female
1418
- backgroundColor: "#4484CD"
1416
+ backgroundColor: "#4484CD",
1417
+ barThickness: 20
1419
1418
  }
1420
1419
  ]
1421
1420
  },
1422
1421
  options: {
1423
1422
  scales: {
1423
+ x: {
1424
+ grid: {
1425
+ display: true
1426
+ // Display x-axis grid lines
1427
+ }
1428
+ },
1424
1429
  y: {
1425
1430
  beginAtZero: true,
1426
1431
  suggestedMax: 100,
@@ -1431,16 +1436,13 @@ var DoubleBarChart = () => {
1431
1436
  },
1432
1437
  grid: {
1433
1438
  display: false
1434
- // Remove y-axis grid lines
1435
1439
  }
1436
1440
  }
1437
1441
  },
1438
1442
  plugins: {
1439
1443
  legend: {
1440
1444
  labels: {
1441
- // Configure labels to show colored circles
1442
1445
  usePointStyle: true
1443
- // Use circles instead of squares
1444
1446
  }
1445
1447
  }
1446
1448
  }
@@ -1453,7 +1455,7 @@ var DoubleBarChart = () => {
1453
1455
  }
1454
1456
  };
1455
1457
  }, []);
1456
- return /* @__PURE__ */ import_react35.default.createElement("canvas", { ref: chartRef });
1458
+ 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
1459
  };
1458
1460
 
1459
1461
  // 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 = "16px 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: {
@@ -1318,8 +1316,7 @@ var LineChart = (props) => {
1318
1316
  }
1319
1317
  },
1320
1318
  grid: {
1321
- display: true
1322
- // Display y-axis grid lines
1319
+ display: false
1323
1320
  }
1324
1321
  }
1325
1322
  }
@@ -1338,7 +1335,7 @@ var LineChart = (props) => {
1338
1335
  // src/Components/DoubleBarChart.tsx
1339
1336
  import React35, { useEffect as useEffect5, useRef as useRef3 } from "react";
1340
1337
  import Chart2 from "chart.js/auto";
1341
- var DoubleBarChart = () => {
1338
+ var DoubleBarChart = (props) => {
1342
1339
  const chartRef = useRef3(null);
1343
1340
  const chartInstance = useRef3(null);
1344
1341
  useEffect5(() => {
@@ -1358,21 +1355,29 @@ var DoubleBarChart = () => {
1358
1355
  ],
1359
1356
  datasets: [
1360
1357
  {
1361
- label: "Male",
1358
+ label: "Engagement Rate",
1362
1359
  data: [60, 70, 50, 80, 65],
1363
1360
  // Example data for male
1364
- backgroundColor: "#93B8E2"
1361
+ backgroundColor: "#93B8E2",
1362
+ barThickness: 20
1365
1363
  },
1366
1364
  {
1367
- label: "Female",
1365
+ label: "Conversion Rate",
1368
1366
  data: [70, 65, 75, 55, 85],
1369
1367
  // Example data for female
1370
- backgroundColor: "#4484CD"
1368
+ backgroundColor: "#4484CD",
1369
+ barThickness: 20
1371
1370
  }
1372
1371
  ]
1373
1372
  },
1374
1373
  options: {
1375
1374
  scales: {
1375
+ x: {
1376
+ grid: {
1377
+ display: true
1378
+ // Display x-axis grid lines
1379
+ }
1380
+ },
1376
1381
  y: {
1377
1382
  beginAtZero: true,
1378
1383
  suggestedMax: 100,
@@ -1383,16 +1388,13 @@ var DoubleBarChart = () => {
1383
1388
  },
1384
1389
  grid: {
1385
1390
  display: false
1386
- // Remove y-axis grid lines
1387
1391
  }
1388
1392
  }
1389
1393
  },
1390
1394
  plugins: {
1391
1395
  legend: {
1392
1396
  labels: {
1393
- // Configure labels to show colored circles
1394
1397
  usePointStyle: true
1395
- // Use circles instead of squares
1396
1398
  }
1397
1399
  }
1398
1400
  }
@@ -1405,7 +1407,7 @@ var DoubleBarChart = () => {
1405
1407
  }
1406
1408
  };
1407
1409
  }, []);
1408
- return /* @__PURE__ */ React35.createElement("canvas", { ref: chartRef });
1410
+ return /* @__PURE__ */ React35.createElement("div", { className: props.className }, /* @__PURE__ */ React35.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ React35.createElement("canvas", { ref: chartRef }));
1409
1411
  };
1410
1412
 
1411
1413
  // 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-Beta132",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",