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

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 DonutGraph: React$1.FC;
124
124
 
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 };
125
+ export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, DonutGraph, 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 DonutGraph: React$1.FC;
124
124
 
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 };
125
+ export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, DonutGraph, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ __export(src_exports, {
36
36
  CkEditor: () => CkEditor,
37
37
  DatePickerElement: () => DatePickerElement,
38
38
  DateRangePickerElement: () => DateRangePickerElement,
39
- Donut: () => Donut_default,
39
+ DonutGraph: () => DonutGraph_default,
40
40
  DropDownGroup: () => DropDownGroup,
41
41
  FileUpload: () => FileUpload,
42
42
  Image: () => Image,
@@ -1089,60 +1089,60 @@ var OtpElement = (props) => {
1089
1089
  )));
1090
1090
  };
1091
1091
 
1092
- // src/Components/Donut.tsx
1092
+ // src/Components/DonutGraph.tsx
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 DonutGraph = () => {
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("p", null, "frijwenjds"), /* @__PURE__ */ import_react31.default.createElement(
1138
+ import_highcharts_react_official.default,
1139
+ {
1140
+ highcharts: import_highcharts.default,
1141
+ options
1142
+ }
1143
+ ));
1144
1144
  };
1145
- var Donut_default = Donut;
1145
+ var DonutGraph_default = DonutGraph;
1146
1146
  // Annotate the CommonJS export names for ESM import in node:
1147
1147
  0 && (module.exports = {
1148
1148
  AddMoreTable,
@@ -1151,7 +1151,7 @@ var Donut_default = Donut;
1151
1151
  CkEditor,
1152
1152
  DatePickerElement,
1153
1153
  DateRangePickerElement,
1154
- Donut,
1154
+ DonutGraph,
1155
1155
  DropDownGroup,
1156
1156
  FileUpload,
1157
1157
  Image,
package/dist/index.mjs CHANGED
@@ -1028,60 +1028,60 @@ var OtpElement = (props) => {
1028
1028
  )));
1029
1029
  };
1030
1030
 
1031
- // src/Components/Donut.tsx
1031
+ // src/Components/DonutGraph.tsx
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 DonutGraph = () => {
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("p", null, "frijwenjds"), /* @__PURE__ */ React31.createElement(
1077
+ HighchartsReact,
1078
+ {
1079
+ highcharts: Highcharts,
1080
+ options
1081
+ }
1082
+ ));
1083
1083
  };
1084
- var Donut_default = Donut;
1084
+ var DonutGraph_default = DonutGraph;
1085
1085
  export {
1086
1086
  AddMoreTable,
1087
1087
  ButtonElement,
@@ -1089,7 +1089,7 @@ export {
1089
1089
  CkEditor,
1090
1090
  DatePickerElement,
1091
1091
  DateRangePickerElement,
1092
- Donut_default as Donut,
1092
+ DonutGraph_default as DonutGraph,
1093
1093
  DropDownGroup,
1094
1094
  FileUpload,
1095
1095
  Image,
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-Beta112",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",