@apexcura/ui-components 0.0.14-Beta110 → 0.0.14-Beta111

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
@@ -120,6 +120,6 @@ declare const Upload: (props: ElementType) => React$1.JSX.Element;
120
120
 
121
121
  declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
122
122
 
123
- declare const Donut: React$1.FC<any>;
123
+ declare const Donut: React$1.FC;
124
124
 
125
125
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.d.ts CHANGED
@@ -120,6 +120,6 @@ declare const Upload: (props: ElementType) => React$1.JSX.Element;
120
120
 
121
121
  declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
122
122
 
123
- declare const Donut: React$1.FC<any>;
123
+ declare const Donut: React$1.FC;
124
124
 
125
125
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.js CHANGED
@@ -1093,54 +1093,54 @@ var OtpElement = (props) => {
1093
1093
  var import_react31 = __toESM(require("react"));
1094
1094
  var import_highcharts = __toESM(require("highcharts"));
1095
1095
  var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
1096
- var HighchartsChart = ({ options }) => {
1097
- return /* @__PURE__ */ import_react31.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options });
1098
- };
1099
- console.log(HighchartsChart);
1100
- console.log(typeof HighchartsChart);
1101
- var Donut = (props) => {
1102
- const chartOptions = {
1096
+ var Donut = () => {
1097
+ const data = [
1098
+ { platform: "Facebook", engagementRate: 15, conversionRate: 5 },
1099
+ { platform: "WhatsApp", engagementRate: 20, conversionRate: 4 },
1100
+ { platform: "Instagram", engagementRate: 18, conversionRate: 6 },
1101
+ { platform: "LinkedIn", engagementRate: 12, conversionRate: 3 }
1102
+ ];
1103
+ const seriesData = [
1104
+ {
1105
+ name: "Engagement Rate (%)",
1106
+ data: data.map((item) => [item.platform, item.engagementRate]),
1107
+ color: "#7cb5ec",
1108
+ type: "column"
1109
+ },
1110
+ {
1111
+ name: "Conversion Rate (%)",
1112
+ data: data.map((item) => [item.platform, item.conversionRate]),
1113
+ color: "#434348",
1114
+ type: "column"
1115
+ }
1116
+ ];
1117
+ const options = {
1118
+ chart: {
1119
+ type: "column"
1120
+ },
1103
1121
  title: {
1104
- text: "Distribution of Students"
1122
+ text: "Engagement Rate and Conversion Rate Across Platforms"
1105
1123
  },
1106
- plotOptions: {
1107
- pie: {
1108
- innerSize: "70%",
1109
- dataLabels: {
1110
- enabled: false,
1111
- format: "<b>{point.name}</b>: {point.percentage:.1f} %"
1112
- },
1113
- showInLegend: true
1124
+ xAxis: {
1125
+ type: "category",
1126
+ title: {
1127
+ text: "Platform"
1114
1128
  }
1115
1129
  },
1116
- series: [
1117
- {
1118
- type: "pie",
1119
- name: "Percentage",
1120
- data: [
1121
- {
1122
- name: "Girls",
1123
- y: 20,
1124
- color: "#FF6384"
1125
- // Custom color for Girls
1126
- },
1127
- {
1128
- name: "Boys",
1129
- y: 40,
1130
- color: "#36A2EB"
1131
- // Custom color for Boys
1132
- },
1133
- {
1134
- name: "Students",
1135
- y: 40,
1136
- color: "#FFCE56"
1137
- // Custom color for Students
1138
- }
1139
- ]
1130
+ yAxis: {
1131
+ title: {
1132
+ text: "Rate (%)"
1140
1133
  }
1141
- ]
1134
+ },
1135
+ series: seriesData
1142
1136
  };
1143
- return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(HighchartsChart, { options: chartOptions }));
1137
+ return /* @__PURE__ */ import_react31.default.createElement("div", null, /* @__PURE__ */ import_react31.default.createElement(
1138
+ import_highcharts_react_official.default,
1139
+ {
1140
+ highcharts: import_highcharts.default,
1141
+ options
1142
+ }
1143
+ ));
1144
1144
  };
1145
1145
  var Donut_default = Donut;
1146
1146
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1032,54 +1032,54 @@ var OtpElement = (props) => {
1032
1032
  import React31 from "react";
1033
1033
  import Highcharts from "highcharts";
1034
1034
  import HighchartsReact from "highcharts-react-official";
1035
- var HighchartsChart = ({ options }) => {
1036
- return /* @__PURE__ */ React31.createElement(HighchartsReact, { highcharts: Highcharts, options });
1037
- };
1038
- console.log(HighchartsChart);
1039
- console.log(typeof HighchartsChart);
1040
- var Donut = (props) => {
1041
- const chartOptions = {
1035
+ var Donut = () => {
1036
+ const data = [
1037
+ { platform: "Facebook", engagementRate: 15, conversionRate: 5 },
1038
+ { platform: "WhatsApp", engagementRate: 20, conversionRate: 4 },
1039
+ { platform: "Instagram", engagementRate: 18, conversionRate: 6 },
1040
+ { platform: "LinkedIn", engagementRate: 12, conversionRate: 3 }
1041
+ ];
1042
+ const seriesData = [
1043
+ {
1044
+ name: "Engagement Rate (%)",
1045
+ data: data.map((item) => [item.platform, item.engagementRate]),
1046
+ color: "#7cb5ec",
1047
+ type: "column"
1048
+ },
1049
+ {
1050
+ name: "Conversion Rate (%)",
1051
+ data: data.map((item) => [item.platform, item.conversionRate]),
1052
+ color: "#434348",
1053
+ type: "column"
1054
+ }
1055
+ ];
1056
+ const options = {
1057
+ chart: {
1058
+ type: "column"
1059
+ },
1042
1060
  title: {
1043
- text: "Distribution of Students"
1061
+ text: "Engagement Rate and Conversion Rate Across Platforms"
1044
1062
  },
1045
- plotOptions: {
1046
- pie: {
1047
- innerSize: "70%",
1048
- dataLabels: {
1049
- enabled: false,
1050
- format: "<b>{point.name}</b>: {point.percentage:.1f} %"
1051
- },
1052
- showInLegend: true
1063
+ xAxis: {
1064
+ type: "category",
1065
+ title: {
1066
+ text: "Platform"
1053
1067
  }
1054
1068
  },
1055
- series: [
1056
- {
1057
- type: "pie",
1058
- name: "Percentage",
1059
- data: [
1060
- {
1061
- name: "Girls",
1062
- y: 20,
1063
- color: "#FF6384"
1064
- // Custom color for Girls
1065
- },
1066
- {
1067
- name: "Boys",
1068
- y: 40,
1069
- color: "#36A2EB"
1070
- // Custom color for Boys
1071
- },
1072
- {
1073
- name: "Students",
1074
- y: 40,
1075
- color: "#FFCE56"
1076
- // Custom color for Students
1077
- }
1078
- ]
1069
+ yAxis: {
1070
+ title: {
1071
+ text: "Rate (%)"
1079
1072
  }
1080
- ]
1073
+ },
1074
+ series: seriesData
1081
1075
  };
1082
- return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsChart, { options: chartOptions }));
1076
+ return /* @__PURE__ */ React31.createElement("div", null, /* @__PURE__ */ React31.createElement(
1077
+ HighchartsReact,
1078
+ {
1079
+ highcharts: Highcharts,
1080
+ options
1081
+ }
1082
+ ));
1083
1083
  };
1084
1084
  var Donut_default = Donut;
1085
1085
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta110",
3
+ "version": "0.0.14-Beta111",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",