@apexcura/ui-components 0.0.14-Beta80 → 0.0.14-Beta81

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
@@ -1086,88 +1086,9 @@ var OtpElement = (props) => {
1086
1086
 
1087
1087
  // src/Components/Donut.tsx
1088
1088
  var import_react31 = __toESM(require("react"));
1089
- var import_highcharts = __toESM(require("highcharts"));
1090
- var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
1091
1089
  var Donut = (props) => {
1092
1090
  console.log(props);
1093
- const girlsPercentage = 20;
1094
- const chartOptions = {
1095
- chart: {
1096
- type: "pie",
1097
- events: {
1098
- render: function() {
1099
- const chart = this;
1100
- const width = chart.plotWidth;
1101
- const height = chart.plotHeight;
1102
- const centerX = chart.plotLeft + width / 2;
1103
- const centerY = chart.plotTop + height / 2;
1104
- if (!chart.customText) {
1105
- chart.customText = chart.renderer.text(`Girls ${girlsPercentage.toFixed(1)}%`, centerX, centerY).attr({
1106
- align: "center",
1107
- zIndex: 5
1108
- }).add();
1109
- } else {
1110
- chart.customText.attr({
1111
- text: `${girlsPercentage.toFixed(1)}%`
1112
- });
1113
- }
1114
- }
1115
- }
1116
- },
1117
- title: {
1118
- text: "Distribution of Students"
1119
- },
1120
- plotOptions: {
1121
- pie: {
1122
- innerSize: "70%",
1123
- dataLabels: {
1124
- enabled: false,
1125
- format: "<b>{point.name}</b>: {point.percentage:.1f} %"
1126
- },
1127
- showInLegend: true
1128
- }
1129
- },
1130
- series: [
1131
- {
1132
- type: "pie",
1133
- name: "Percentage",
1134
- data: [
1135
- {
1136
- name: "Girls",
1137
- y: 20,
1138
- color: "#FF6384"
1139
- // Custom color for Girls
1140
- },
1141
- {
1142
- name: "Boys",
1143
- y: 40,
1144
- color: "#36A2EB"
1145
- // Custom color for Boys
1146
- },
1147
- {
1148
- name: "Students",
1149
- y: 40,
1150
- color: "#FFCE56"
1151
- // Custom color for Students
1152
- }
1153
- ]
1154
- }
1155
- ],
1156
- // tooltip: {
1157
- // // pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y:.1f}%</b><br/>'
1158
- // },
1159
- legend: {
1160
- enabled: true,
1161
- align: "left",
1162
- verticalAlign: "middle",
1163
- layout: "vertical",
1164
- labelFormatter: function() {
1165
- const point = this;
1166
- return `${point.name}: ${point.y?.toFixed(1)}%`;
1167
- }
1168
- }
1169
- };
1170
- return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options: chartOptions }));
1091
+ return /* @__PURE__ */ import_react31.default.createElement("div", null, "Donut");
1171
1092
  };
1172
1093
  // Annotate the CommonJS export names for ESM import in node:
1173
1094
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1025,88 +1025,9 @@ var OtpElement = (props) => {
1025
1025
 
1026
1026
  // src/Components/Donut.tsx
1027
1027
  import React31 from "react";
1028
- import Highcharts from "highcharts";
1029
- import HighchartsReact from "highcharts-react-official";
1030
1028
  var Donut = (props) => {
1031
1029
  console.log(props);
1032
- const girlsPercentage = 20;
1033
- const chartOptions = {
1034
- chart: {
1035
- type: "pie",
1036
- events: {
1037
- render: function() {
1038
- const chart = this;
1039
- const width = chart.plotWidth;
1040
- const height = chart.plotHeight;
1041
- const centerX = chart.plotLeft + width / 2;
1042
- const centerY = chart.plotTop + height / 2;
1043
- if (!chart.customText) {
1044
- chart.customText = chart.renderer.text(`Girls ${girlsPercentage.toFixed(1)}%`, centerX, centerY).attr({
1045
- align: "center",
1046
- zIndex: 5
1047
- }).add();
1048
- } else {
1049
- chart.customText.attr({
1050
- text: `${girlsPercentage.toFixed(1)}%`
1051
- });
1052
- }
1053
- }
1054
- }
1055
- },
1056
- title: {
1057
- text: "Distribution of Students"
1058
- },
1059
- plotOptions: {
1060
- pie: {
1061
- innerSize: "70%",
1062
- dataLabels: {
1063
- enabled: false,
1064
- format: "<b>{point.name}</b>: {point.percentage:.1f} %"
1065
- },
1066
- showInLegend: true
1067
- }
1068
- },
1069
- series: [
1070
- {
1071
- type: "pie",
1072
- name: "Percentage",
1073
- data: [
1074
- {
1075
- name: "Girls",
1076
- y: 20,
1077
- color: "#FF6384"
1078
- // Custom color for Girls
1079
- },
1080
- {
1081
- name: "Boys",
1082
- y: 40,
1083
- color: "#36A2EB"
1084
- // Custom color for Boys
1085
- },
1086
- {
1087
- name: "Students",
1088
- y: 40,
1089
- color: "#FFCE56"
1090
- // Custom color for Students
1091
- }
1092
- ]
1093
- }
1094
- ],
1095
- // tooltip: {
1096
- // // pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y:.1f}%</b><br/>'
1097
- // },
1098
- legend: {
1099
- enabled: true,
1100
- align: "left",
1101
- verticalAlign: "middle",
1102
- layout: "vertical",
1103
- labelFormatter: function() {
1104
- const point = this;
1105
- return `${point.name}: ${point.y?.toFixed(1)}%`;
1106
- }
1107
- }
1108
- };
1109
- return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsReact, { highcharts: Highcharts, options: chartOptions }));
1030
+ return /* @__PURE__ */ React31.createElement("div", null, "Donut");
1110
1031
  };
1111
1032
  export {
1112
1033
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta80",
3
+ "version": "0.0.14-Beta81",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",