@apexcura/ui-components 0.0.14-Beta98 → 0.0.14
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 +26 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -335,15 +335,35 @@ video {
|
|
|
335
335
|
.visible {
|
|
336
336
|
visibility: visible;
|
|
337
337
|
}
|
|
338
|
+
.fixed {
|
|
339
|
+
position: fixed;
|
|
340
|
+
}
|
|
338
341
|
.m-\[10px\] {
|
|
339
342
|
margin: 10px;
|
|
340
343
|
}
|
|
344
|
+
.mr-3 {
|
|
345
|
+
margin-right: 0.75rem;
|
|
346
|
+
}
|
|
341
347
|
.flex {
|
|
342
348
|
display: flex;
|
|
343
349
|
}
|
|
344
350
|
.table {
|
|
345
351
|
display: table;
|
|
346
352
|
}
|
|
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
|
+
}
|
|
347
367
|
.rounded-\[8px\] {
|
|
348
368
|
border-radius: 8px;
|
|
349
369
|
}
|
|
@@ -382,6 +402,12 @@ video {
|
|
|
382
402
|
--tw-text-opacity: 1;
|
|
383
403
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
384
404
|
}
|
|
405
|
+
.opacity-25 {
|
|
406
|
+
opacity: 0.25;
|
|
407
|
+
}
|
|
408
|
+
.opacity-75 {
|
|
409
|
+
opacity: 0.75;
|
|
410
|
+
}
|
|
385
411
|
.shadow-\[0px_0px_1px_1px_\#919191\] {
|
|
386
412
|
--tw-shadow: 0px 0px 1px 1px #919191;
|
|
387
413
|
--tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -439,15 +439,15 @@ var ButtonElement = (props) => {
|
|
|
439
439
|
onClick: props.onClick,
|
|
440
440
|
className: `${props.className ? props.className : ""}`,
|
|
441
441
|
onMouseEnter: handleMouseEnter,
|
|
442
|
-
onMouseLeave: handleMouseLeave
|
|
442
|
+
onMouseLeave: handleMouseLeave,
|
|
443
|
+
disabled: props.isLoading
|
|
443
444
|
},
|
|
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
|
+
props.isLoading ? /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ import_react11.default.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ import_react11.default.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, 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
446
|
"span",
|
|
446
447
|
{
|
|
447
448
|
dangerouslySetInnerHTML: { __html: svgContent }
|
|
448
449
|
}
|
|
449
|
-
),
|
|
450
|
-
props.label
|
|
450
|
+
), props.label)
|
|
451
451
|
);
|
|
452
452
|
};
|
|
453
453
|
|
|
@@ -738,7 +738,8 @@ var TableElement = (props) => {
|
|
|
738
738
|
{
|
|
739
739
|
title: "#",
|
|
740
740
|
dataIndex: "#",
|
|
741
|
-
key: "#"
|
|
741
|
+
key: "#",
|
|
742
|
+
fixed: "left"
|
|
742
743
|
},
|
|
743
744
|
...thead.map((col, ind) => ({
|
|
744
745
|
title: col.label,
|
|
@@ -809,7 +810,8 @@ var TableElement = (props) => {
|
|
|
809
810
|
dataSource,
|
|
810
811
|
columns,
|
|
811
812
|
size: props.size,
|
|
812
|
-
bordered: true
|
|
813
|
+
bordered: true,
|
|
814
|
+
scroll: { x: 1300 }
|
|
813
815
|
}
|
|
814
816
|
), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
815
817
|
};
|
|
@@ -1095,7 +1097,6 @@ var HighchartsChart = ({ options }) => {
|
|
|
1095
1097
|
console.log(HighchartsChart);
|
|
1096
1098
|
console.log(typeof HighchartsChart);
|
|
1097
1099
|
var Donut = (props) => {
|
|
1098
|
-
console.log(props);
|
|
1099
1100
|
const chartOptions = {
|
|
1100
1101
|
title: {
|
|
1101
1102
|
text: "Distribution of Students"
|
|
@@ -1137,7 +1138,6 @@ var Donut = (props) => {
|
|
|
1137
1138
|
}
|
|
1138
1139
|
]
|
|
1139
1140
|
};
|
|
1140
|
-
console.log(chartOptions);
|
|
1141
1141
|
return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(HighchartsChart, { highcharts: import_highcharts.default, options: chartOptions }));
|
|
1142
1142
|
};
|
|
1143
1143
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -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
|
|
381
|
+
onMouseLeave: handleMouseLeave,
|
|
382
|
+
disabled: props.isLoading
|
|
382
383
|
},
|
|
383
|
-
props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ React11.createElement(
|
|
384
|
+
props.isLoading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ React11.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ React11.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ React11.createElement(
|
|
384
385
|
"span",
|
|
385
386
|
{
|
|
386
387
|
dangerouslySetInnerHTML: { __html: svgContent }
|
|
387
388
|
}
|
|
388
|
-
),
|
|
389
|
-
props.label
|
|
389
|
+
), props.label)
|
|
390
390
|
);
|
|
391
391
|
};
|
|
392
392
|
|
|
@@ -677,7 +677,8 @@ var TableElement = (props) => {
|
|
|
677
677
|
{
|
|
678
678
|
title: "#",
|
|
679
679
|
dataIndex: "#",
|
|
680
|
-
key: "#"
|
|
680
|
+
key: "#",
|
|
681
|
+
fixed: "left"
|
|
681
682
|
},
|
|
682
683
|
...thead.map((col, ind) => ({
|
|
683
684
|
title: col.label,
|
|
@@ -748,7 +749,8 @@ var TableElement = (props) => {
|
|
|
748
749
|
dataSource,
|
|
749
750
|
columns,
|
|
750
751
|
size: props.size,
|
|
751
|
-
bordered: true
|
|
752
|
+
bordered: true,
|
|
753
|
+
scroll: { x: 1300 }
|
|
752
754
|
}
|
|
753
755
|
), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
754
756
|
};
|
|
@@ -1034,7 +1036,6 @@ var HighchartsChart = ({ options }) => {
|
|
|
1034
1036
|
console.log(HighchartsChart);
|
|
1035
1037
|
console.log(typeof HighchartsChart);
|
|
1036
1038
|
var Donut = (props) => {
|
|
1037
|
-
console.log(props);
|
|
1038
1039
|
const chartOptions = {
|
|
1039
1040
|
title: {
|
|
1040
1041
|
text: "Distribution of Students"
|
|
@@ -1076,7 +1077,6 @@ var Donut = (props) => {
|
|
|
1076
1077
|
}
|
|
1077
1078
|
]
|
|
1078
1079
|
};
|
|
1079
|
-
console.log(chartOptions);
|
|
1080
1080
|
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsChart, { highcharts: Highcharts, options: chartOptions }));
|
|
1081
1081
|
};
|
|
1082
1082
|
export {
|