@apexcura/ui-components 0.0.14-Beta184 → 0.0.14-Beta186

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
@@ -132,7 +132,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
132
132
 
133
133
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
134
134
 
135
- declare function HighchartsLineChart(): React$1.JSX.Element;
135
+ declare const HighchartsLineChart: (props: any) => React$1.JSX.Element;
136
136
 
137
137
  declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
138
138
 
package/dist/index.d.ts CHANGED
@@ -132,7 +132,7 @@ declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
132
132
 
133
133
  declare const LineChart: (props: ElementType) => React$1.JSX.Element;
134
134
 
135
- declare function HighchartsLineChart(): React$1.JSX.Element;
135
+ declare const HighchartsLineChart: (props: any) => React$1.JSX.Element;
136
136
 
137
137
  declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
138
138
 
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ __export(src_exports, {
41
41
  DoubleBarChart: () => DoubleBarChart,
42
42
  DropDownGroup: () => DropDownGroup,
43
43
  FileUpload: () => FileUpload,
44
- HighchartsLineChart: () => highchart_default,
44
+ HighchartsLineChart: () => HighchartsLineChart,
45
45
  HorizontalBarChart: () => HorizontalBarChart,
46
46
  Image: () => Image,
47
47
  LineChart: () => LineChart,
@@ -1385,10 +1385,137 @@ var LineChart = (props) => {
1385
1385
 
1386
1386
  // src/Components/highchart.tsx
1387
1387
  var import_react35 = __toESM(require("react"));
1388
- function HighchartsLineChart() {
1389
- return /* @__PURE__ */ import_react35.default.createElement("h1", null, "123456789");
1390
- }
1391
- var highchart_default = HighchartsLineChart;
1388
+ var import_highcharts = __toESM(require("highcharts"));
1389
+ var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
1390
+ var HighchartsLineChart = (props) => {
1391
+ let graph_data = {
1392
+ chart: {
1393
+ height: "50%"
1394
+ },
1395
+ title: {
1396
+ text: "U.S Solar Employment Growth",
1397
+ align: "left"
1398
+ },
1399
+ subtitle: {
1400
+ text: 'By Job Category. Source: <a href="https://irecusa.org/programs/solar-jobs-census/" target="_blank">IREC</a>.',
1401
+ align: "left"
1402
+ },
1403
+ yAxis: {
1404
+ title: {
1405
+ text: "Number of Employees"
1406
+ }
1407
+ },
1408
+ xAxis: {
1409
+ accessibility: {
1410
+ rangeDescription: "Range: 2010 to 2020"
1411
+ }
1412
+ },
1413
+ legend: {
1414
+ layout: "vertical",
1415
+ align: "right",
1416
+ verticalAlign: "middle"
1417
+ },
1418
+ plotOptions: {
1419
+ series: {
1420
+ label: {
1421
+ connectorAllowed: false
1422
+ },
1423
+ pointStart: 2010
1424
+ }
1425
+ },
1426
+ series: [{
1427
+ name: "Installation & Developers",
1428
+ data: [
1429
+ 43934,
1430
+ 48656,
1431
+ 65165,
1432
+ 81827,
1433
+ 112143,
1434
+ 142383,
1435
+ 171533,
1436
+ 165174,
1437
+ 155157,
1438
+ 161454,
1439
+ 154610
1440
+ ]
1441
+ }, {
1442
+ name: "Manufacturing",
1443
+ data: [
1444
+ 24916,
1445
+ 37941,
1446
+ 29742,
1447
+ 29851,
1448
+ 32490,
1449
+ 30282,
1450
+ 38121,
1451
+ 36885,
1452
+ 33726,
1453
+ 34243,
1454
+ 31050
1455
+ ]
1456
+ }, {
1457
+ name: "Sales & Distribution",
1458
+ data: [
1459
+ 11744,
1460
+ 3e4,
1461
+ 16005,
1462
+ 19771,
1463
+ 20185,
1464
+ 24377,
1465
+ 32147,
1466
+ 30912,
1467
+ 29243,
1468
+ 29213,
1469
+ 25663
1470
+ ]
1471
+ }, {
1472
+ name: "Operations & Maintenance",
1473
+ data: [
1474
+ null,
1475
+ null,
1476
+ null,
1477
+ null,
1478
+ null,
1479
+ null,
1480
+ null,
1481
+ null,
1482
+ 11164,
1483
+ 11218,
1484
+ 10077
1485
+ ]
1486
+ }, {
1487
+ name: "Other",
1488
+ data: [
1489
+ 21908,
1490
+ 5548,
1491
+ 8105,
1492
+ 11248,
1493
+ 8989,
1494
+ 11816,
1495
+ 18274,
1496
+ 17300,
1497
+ 13053,
1498
+ 11906,
1499
+ 10073
1500
+ ]
1501
+ }],
1502
+ responsive: {
1503
+ rules: [{
1504
+ condition: {
1505
+ maxWidth: 500
1506
+ },
1507
+ chartOptions: {
1508
+ legend: {
1509
+ layout: "horizontal",
1510
+ align: "center",
1511
+ verticalAlign: "bottom"
1512
+ }
1513
+ }
1514
+ }]
1515
+ }
1516
+ };
1517
+ return /* @__PURE__ */ import_react35.default.createElement("div", null, /* @__PURE__ */ import_react35.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options: graph_data }));
1518
+ };
1392
1519
 
1393
1520
  // src/Components/DoubleBarChart.tsx
1394
1521
  var import_react36 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -1336,10 +1336,137 @@ var LineChart = (props) => {
1336
1336
 
1337
1337
  // src/Components/highchart.tsx
1338
1338
  import React35 from "react";
1339
- function HighchartsLineChart() {
1340
- return /* @__PURE__ */ React35.createElement("h1", null, "123456789");
1341
- }
1342
- var highchart_default = HighchartsLineChart;
1339
+ import Highcharts from "highcharts";
1340
+ import HighchartsReact from "highcharts-react-official";
1341
+ var HighchartsLineChart = (props) => {
1342
+ let graph_data = {
1343
+ chart: {
1344
+ height: "50%"
1345
+ },
1346
+ title: {
1347
+ text: "U.S Solar Employment Growth",
1348
+ align: "left"
1349
+ },
1350
+ subtitle: {
1351
+ text: 'By Job Category. Source: <a href="https://irecusa.org/programs/solar-jobs-census/" target="_blank">IREC</a>.',
1352
+ align: "left"
1353
+ },
1354
+ yAxis: {
1355
+ title: {
1356
+ text: "Number of Employees"
1357
+ }
1358
+ },
1359
+ xAxis: {
1360
+ accessibility: {
1361
+ rangeDescription: "Range: 2010 to 2020"
1362
+ }
1363
+ },
1364
+ legend: {
1365
+ layout: "vertical",
1366
+ align: "right",
1367
+ verticalAlign: "middle"
1368
+ },
1369
+ plotOptions: {
1370
+ series: {
1371
+ label: {
1372
+ connectorAllowed: false
1373
+ },
1374
+ pointStart: 2010
1375
+ }
1376
+ },
1377
+ series: [{
1378
+ name: "Installation & Developers",
1379
+ data: [
1380
+ 43934,
1381
+ 48656,
1382
+ 65165,
1383
+ 81827,
1384
+ 112143,
1385
+ 142383,
1386
+ 171533,
1387
+ 165174,
1388
+ 155157,
1389
+ 161454,
1390
+ 154610
1391
+ ]
1392
+ }, {
1393
+ name: "Manufacturing",
1394
+ data: [
1395
+ 24916,
1396
+ 37941,
1397
+ 29742,
1398
+ 29851,
1399
+ 32490,
1400
+ 30282,
1401
+ 38121,
1402
+ 36885,
1403
+ 33726,
1404
+ 34243,
1405
+ 31050
1406
+ ]
1407
+ }, {
1408
+ name: "Sales & Distribution",
1409
+ data: [
1410
+ 11744,
1411
+ 3e4,
1412
+ 16005,
1413
+ 19771,
1414
+ 20185,
1415
+ 24377,
1416
+ 32147,
1417
+ 30912,
1418
+ 29243,
1419
+ 29213,
1420
+ 25663
1421
+ ]
1422
+ }, {
1423
+ name: "Operations & Maintenance",
1424
+ data: [
1425
+ null,
1426
+ null,
1427
+ null,
1428
+ null,
1429
+ null,
1430
+ null,
1431
+ null,
1432
+ null,
1433
+ 11164,
1434
+ 11218,
1435
+ 10077
1436
+ ]
1437
+ }, {
1438
+ name: "Other",
1439
+ data: [
1440
+ 21908,
1441
+ 5548,
1442
+ 8105,
1443
+ 11248,
1444
+ 8989,
1445
+ 11816,
1446
+ 18274,
1447
+ 17300,
1448
+ 13053,
1449
+ 11906,
1450
+ 10073
1451
+ ]
1452
+ }],
1453
+ responsive: {
1454
+ rules: [{
1455
+ condition: {
1456
+ maxWidth: 500
1457
+ },
1458
+ chartOptions: {
1459
+ legend: {
1460
+ layout: "horizontal",
1461
+ align: "center",
1462
+ verticalAlign: "bottom"
1463
+ }
1464
+ }
1465
+ }]
1466
+ }
1467
+ };
1468
+ return /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement(HighchartsReact, { highcharts: Highcharts, options: graph_data }));
1469
+ };
1343
1470
 
1344
1471
  // src/Components/DoubleBarChart.tsx
1345
1472
  import React36, { useEffect as useEffect5, useRef as useRef3 } from "react";
@@ -1502,7 +1629,7 @@ export {
1502
1629
  DoubleBarChart,
1503
1630
  DropDownGroup,
1504
1631
  FileUpload,
1505
- highchart_default as HighchartsLineChart,
1632
+ HighchartsLineChart,
1506
1633
  HorizontalBarChart,
1507
1634
  Image,
1508
1635
  LineChart,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta184",
3
+ "version": "0.0.14-Beta186",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",