@apexcura/ui-components 0.0.15-Beta10 → 0.0.15-Beta2
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 +17 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -8
- package/dist/index.mjs +9 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -341,12 +341,29 @@ video {
|
|
|
341
341
|
.m-\[10px\] {
|
|
342
342
|
margin: 10px;
|
|
343
343
|
}
|
|
344
|
+
.mr-3 {
|
|
345
|
+
margin-right: 0.75rem;
|
|
346
|
+
}
|
|
344
347
|
.flex {
|
|
345
348
|
display: flex;
|
|
346
349
|
}
|
|
347
350
|
.table {
|
|
348
351
|
display: table;
|
|
349
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
|
+
}
|
|
350
367
|
.rounded-\[8px\] {
|
|
351
368
|
border-radius: 8px;
|
|
352
369
|
}
|
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.
|
|
123
|
+
declare const Donut: (props: ElementType) => React$1.JSX.Element;
|
|
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.
|
|
123
|
+
declare const Donut: (props: ElementType) => React$1.JSX.Element;
|
|
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
|
@@ -417,7 +417,7 @@ var ButtonElement = (props) => {
|
|
|
417
417
|
}
|
|
418
418
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
419
419
|
}
|
|
420
|
-
}, [
|
|
420
|
+
}, []);
|
|
421
421
|
const handleMouseEnter = () => {
|
|
422
422
|
if (hoverColor && originalSvgContent) {
|
|
423
423
|
const tempDiv = document.createElement("div");
|
|
@@ -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.loading
|
|
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.loading ? /* @__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" }), 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
|
|
|
@@ -810,7 +810,8 @@ var TableElement = (props) => {
|
|
|
810
810
|
dataSource,
|
|
811
811
|
columns,
|
|
812
812
|
size: props.size,
|
|
813
|
-
bordered: true
|
|
813
|
+
bordered: true,
|
|
814
|
+
scroll: { x: 1300 }
|
|
814
815
|
}
|
|
815
816
|
), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
816
817
|
};
|
|
@@ -825,7 +826,7 @@ var DatePickerElement = (props) => {
|
|
|
825
826
|
const [dateState, setDateState] = (0, import_react21.useState)("");
|
|
826
827
|
const handleChange = (date, dateString) => {
|
|
827
828
|
if (date) {
|
|
828
|
-
const formattedDate =
|
|
829
|
+
const formattedDate = date;
|
|
829
830
|
setDateState(date);
|
|
830
831
|
if (props.onChange) {
|
|
831
832
|
props.onChange(formattedDate);
|
|
@@ -1137,7 +1138,7 @@ var Donut = (props) => {
|
|
|
1137
1138
|
}
|
|
1138
1139
|
]
|
|
1139
1140
|
};
|
|
1140
|
-
return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(HighchartsChart, { options: chartOptions }));
|
|
1141
|
+
return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(HighchartsChart, { highcharts: import_highcharts.default, options: chartOptions }));
|
|
1141
1142
|
};
|
|
1142
1143
|
var Donut_default = Donut;
|
|
1143
1144
|
// Annotate the CommonJS export names for ESM import in node:
|
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
|
+
}, []);
|
|
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
|
|
381
|
+
onMouseLeave: handleMouseLeave,
|
|
382
|
+
disabled: props.loading
|
|
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.loading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }), 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
|
|
|
@@ -749,7 +749,8 @@ var TableElement = (props) => {
|
|
|
749
749
|
dataSource,
|
|
750
750
|
columns,
|
|
751
751
|
size: props.size,
|
|
752
|
-
bordered: true
|
|
752
|
+
bordered: true,
|
|
753
|
+
scroll: { x: 1300 }
|
|
753
754
|
}
|
|
754
755
|
), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
755
756
|
};
|
|
@@ -764,7 +765,7 @@ var DatePickerElement = (props) => {
|
|
|
764
765
|
const [dateState, setDateState] = useState7("");
|
|
765
766
|
const handleChange = (date, dateString) => {
|
|
766
767
|
if (date) {
|
|
767
|
-
const formattedDate =
|
|
768
|
+
const formattedDate = date;
|
|
768
769
|
setDateState(date);
|
|
769
770
|
if (props.onChange) {
|
|
770
771
|
props.onChange(formattedDate);
|
|
@@ -1076,7 +1077,7 @@ var Donut = (props) => {
|
|
|
1076
1077
|
}
|
|
1077
1078
|
]
|
|
1078
1079
|
};
|
|
1079
|
-
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsChart, { options: chartOptions }));
|
|
1080
|
+
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsChart, { highcharts: Highcharts, options: chartOptions }));
|
|
1080
1081
|
};
|
|
1081
1082
|
var Donut_default = Donut;
|
|
1082
1083
|
export {
|