@apexcura/ui-components 0.0.15-Beta1 → 0.0.15-Beta10
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.css +0 -17
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +54 -8
- package/dist/index.mjs +53 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -341,29 +341,12 @@ video {
|
|
|
341
341
|
.m-\[10px\] {
|
|
342
342
|
margin: 10px;
|
|
343
343
|
}
|
|
344
|
-
.mr-3 {
|
|
345
|
-
margin-right: 0.75rem;
|
|
346
|
-
}
|
|
347
344
|
.flex {
|
|
348
345
|
display: flex;
|
|
349
346
|
}
|
|
350
347
|
.table {
|
|
351
348
|
display: table;
|
|
352
349
|
}
|
|
353
|
-
.h-5 {
|
|
354
|
-
height: 1.25rem;
|
|
355
|
-
}
|
|
356
|
-
.w-5 {
|
|
357
|
-
width: 1.25rem;
|
|
358
|
-
}
|
|
359
|
-
@keyframes spin {
|
|
360
|
-
to {
|
|
361
|
-
transform: rotate(360deg);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
.animate-spin {
|
|
365
|
-
animation: spin 1s linear infinite;
|
|
366
|
-
}
|
|
367
350
|
.rounded-\[8px\] {
|
|
368
351
|
border-radius: 8px;
|
|
369
352
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -120,4 +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
|
-
|
|
123
|
+
declare const Donut: React$1.FC<any>;
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -120,4 +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
|
-
|
|
123
|
+
declare const Donut: React$1.FC<any>;
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
CkEditor: () => CkEditor,
|
|
37
37
|
DatePickerElement: () => DatePickerElement,
|
|
38
38
|
DateRangePickerElement: () => DateRangePickerElement,
|
|
39
|
+
Donut: () => Donut_default,
|
|
39
40
|
DropDownGroup: () => DropDownGroup,
|
|
40
41
|
FileUpload: () => FileUpload,
|
|
41
42
|
Image: () => Image,
|
|
@@ -416,7 +417,7 @@ var ButtonElement = (props) => {
|
|
|
416
417
|
}
|
|
417
418
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
418
419
|
}
|
|
419
|
-
}, []);
|
|
420
|
+
}, [props.icon, props.className]);
|
|
420
421
|
const handleMouseEnter = () => {
|
|
421
422
|
if (hoverColor && originalSvgContent) {
|
|
422
423
|
const tempDiv = document.createElement("div");
|
|
@@ -438,15 +439,15 @@ var ButtonElement = (props) => {
|
|
|
438
439
|
onClick: props.onClick,
|
|
439
440
|
className: `${props.className ? props.className : ""}`,
|
|
440
441
|
onMouseEnter: handleMouseEnter,
|
|
441
|
-
onMouseLeave: handleMouseLeave
|
|
442
|
-
disabled: props.loading
|
|
442
|
+
onMouseLeave: handleMouseLeave
|
|
443
443
|
},
|
|
444
|
-
props.
|
|
444
|
+
props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ import_react11.default.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ import_react11.default.createElement(
|
|
445
445
|
"span",
|
|
446
446
|
{
|
|
447
447
|
dangerouslySetInnerHTML: { __html: svgContent }
|
|
448
448
|
}
|
|
449
|
-
),
|
|
449
|
+
),
|
|
450
|
+
props.label
|
|
450
451
|
);
|
|
451
452
|
};
|
|
452
453
|
|
|
@@ -809,8 +810,7 @@ var TableElement = (props) => {
|
|
|
809
810
|
dataSource,
|
|
810
811
|
columns,
|
|
811
812
|
size: props.size,
|
|
812
|
-
bordered: true
|
|
813
|
-
scroll: { x: 1300 }
|
|
813
|
+
bordered: true
|
|
814
814
|
}
|
|
815
815
|
), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
816
816
|
};
|
|
@@ -825,7 +825,7 @@ var DatePickerElement = (props) => {
|
|
|
825
825
|
const [dateState, setDateState] = (0, import_react21.useState)("");
|
|
826
826
|
const handleChange = (date, dateString) => {
|
|
827
827
|
if (date) {
|
|
828
|
-
const formattedDate =
|
|
828
|
+
const formattedDate = dateString;
|
|
829
829
|
setDateState(date);
|
|
830
830
|
if (props.onChange) {
|
|
831
831
|
props.onChange(formattedDate);
|
|
@@ -1095,6 +1095,51 @@ var HighchartsChart = ({ options }) => {
|
|
|
1095
1095
|
};
|
|
1096
1096
|
console.log(HighchartsChart);
|
|
1097
1097
|
console.log(typeof HighchartsChart);
|
|
1098
|
+
var Donut = (props) => {
|
|
1099
|
+
const chartOptions = {
|
|
1100
|
+
title: {
|
|
1101
|
+
text: "Distribution of Students"
|
|
1102
|
+
},
|
|
1103
|
+
plotOptions: {
|
|
1104
|
+
pie: {
|
|
1105
|
+
innerSize: "70%",
|
|
1106
|
+
dataLabels: {
|
|
1107
|
+
enabled: false,
|
|
1108
|
+
format: "<b>{point.name}</b>: {point.percentage:.1f} %"
|
|
1109
|
+
},
|
|
1110
|
+
showInLegend: true
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
series: [
|
|
1114
|
+
{
|
|
1115
|
+
type: "pie",
|
|
1116
|
+
name: "Percentage",
|
|
1117
|
+
data: [
|
|
1118
|
+
{
|
|
1119
|
+
name: "Girls",
|
|
1120
|
+
y: 20,
|
|
1121
|
+
color: "#FF6384"
|
|
1122
|
+
// Custom color for Girls
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "Boys",
|
|
1126
|
+
y: 40,
|
|
1127
|
+
color: "#36A2EB"
|
|
1128
|
+
// Custom color for Boys
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: "Students",
|
|
1132
|
+
y: 40,
|
|
1133
|
+
color: "#FFCE56"
|
|
1134
|
+
// Custom color for Students
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
}
|
|
1138
|
+
]
|
|
1139
|
+
};
|
|
1140
|
+
return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(HighchartsChart, { options: chartOptions }));
|
|
1141
|
+
};
|
|
1142
|
+
var Donut_default = Donut;
|
|
1098
1143
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1099
1144
|
0 && (module.exports = {
|
|
1100
1145
|
AddMoreTable,
|
|
@@ -1103,6 +1148,7 @@ console.log(typeof HighchartsChart);
|
|
|
1103
1148
|
CkEditor,
|
|
1104
1149
|
DatePickerElement,
|
|
1105
1150
|
DateRangePickerElement,
|
|
1151
|
+
Donut,
|
|
1106
1152
|
DropDownGroup,
|
|
1107
1153
|
FileUpload,
|
|
1108
1154
|
Image,
|
package/dist/index.mjs
CHANGED
|
@@ -356,7 +356,7 @@ var ButtonElement = (props) => {
|
|
|
356
356
|
}
|
|
357
357
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
358
358
|
}
|
|
359
|
-
}, []);
|
|
359
|
+
}, [props.icon, props.className]);
|
|
360
360
|
const handleMouseEnter = () => {
|
|
361
361
|
if (hoverColor && originalSvgContent) {
|
|
362
362
|
const tempDiv = document.createElement("div");
|
|
@@ -378,15 +378,15 @@ var ButtonElement = (props) => {
|
|
|
378
378
|
onClick: props.onClick,
|
|
379
379
|
className: `${props.className ? props.className : ""}`,
|
|
380
380
|
onMouseEnter: handleMouseEnter,
|
|
381
|
-
onMouseLeave: handleMouseLeave
|
|
382
|
-
disabled: props.loading
|
|
381
|
+
onMouseLeave: handleMouseLeave
|
|
383
382
|
},
|
|
384
|
-
props.
|
|
383
|
+
props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ React11.createElement(
|
|
385
384
|
"span",
|
|
386
385
|
{
|
|
387
386
|
dangerouslySetInnerHTML: { __html: svgContent }
|
|
388
387
|
}
|
|
389
|
-
),
|
|
388
|
+
),
|
|
389
|
+
props.label
|
|
390
390
|
);
|
|
391
391
|
};
|
|
392
392
|
|
|
@@ -749,8 +749,7 @@ var TableElement = (props) => {
|
|
|
749
749
|
dataSource,
|
|
750
750
|
columns,
|
|
751
751
|
size: props.size,
|
|
752
|
-
bordered: true
|
|
753
|
-
scroll: { x: 1300 }
|
|
752
|
+
bordered: true
|
|
754
753
|
}
|
|
755
754
|
), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
756
755
|
};
|
|
@@ -765,7 +764,7 @@ var DatePickerElement = (props) => {
|
|
|
765
764
|
const [dateState, setDateState] = useState7("");
|
|
766
765
|
const handleChange = (date, dateString) => {
|
|
767
766
|
if (date) {
|
|
768
|
-
const formattedDate =
|
|
767
|
+
const formattedDate = dateString;
|
|
769
768
|
setDateState(date);
|
|
770
769
|
if (props.onChange) {
|
|
771
770
|
props.onChange(formattedDate);
|
|
@@ -1035,6 +1034,51 @@ var HighchartsChart = ({ options }) => {
|
|
|
1035
1034
|
};
|
|
1036
1035
|
console.log(HighchartsChart);
|
|
1037
1036
|
console.log(typeof HighchartsChart);
|
|
1037
|
+
var Donut = (props) => {
|
|
1038
|
+
const chartOptions = {
|
|
1039
|
+
title: {
|
|
1040
|
+
text: "Distribution of Students"
|
|
1041
|
+
},
|
|
1042
|
+
plotOptions: {
|
|
1043
|
+
pie: {
|
|
1044
|
+
innerSize: "70%",
|
|
1045
|
+
dataLabels: {
|
|
1046
|
+
enabled: false,
|
|
1047
|
+
format: "<b>{point.name}</b>: {point.percentage:.1f} %"
|
|
1048
|
+
},
|
|
1049
|
+
showInLegend: true
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
series: [
|
|
1053
|
+
{
|
|
1054
|
+
type: "pie",
|
|
1055
|
+
name: "Percentage",
|
|
1056
|
+
data: [
|
|
1057
|
+
{
|
|
1058
|
+
name: "Girls",
|
|
1059
|
+
y: 20,
|
|
1060
|
+
color: "#FF6384"
|
|
1061
|
+
// Custom color for Girls
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
name: "Boys",
|
|
1065
|
+
y: 40,
|
|
1066
|
+
color: "#36A2EB"
|
|
1067
|
+
// Custom color for Boys
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
name: "Students",
|
|
1071
|
+
y: 40,
|
|
1072
|
+
color: "#FFCE56"
|
|
1073
|
+
// Custom color for Students
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
};
|
|
1079
|
+
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsChart, { options: chartOptions }));
|
|
1080
|
+
};
|
|
1081
|
+
var Donut_default = Donut;
|
|
1038
1082
|
export {
|
|
1039
1083
|
AddMoreTable,
|
|
1040
1084
|
ButtonElement,
|
|
@@ -1042,6 +1086,7 @@ export {
|
|
|
1042
1086
|
CkEditor,
|
|
1043
1087
|
DatePickerElement,
|
|
1044
1088
|
DateRangePickerElement,
|
|
1089
|
+
Donut_default as Donut,
|
|
1045
1090
|
DropDownGroup,
|
|
1046
1091
|
FileUpload,
|
|
1047
1092
|
Image,
|