@apexcura/ui-components 0.0.15-Beta4 → 0.0.15-Beta6
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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
|
-
}, [props.className]);
|
|
420
|
+
}, [props.icon, props.className]);
|
|
421
421
|
const handleMouseEnter = () => {
|
|
422
422
|
if (hoverColor && originalSvgContent) {
|
|
423
423
|
const tempDiv = document.createElement("div");
|
|
@@ -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);
|
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
|
-
}, [props.className]);
|
|
359
|
+
}, [props.icon, props.className]);
|
|
360
360
|
const handleMouseEnter = () => {
|
|
361
361
|
if (hoverColor && originalSvgContent) {
|
|
362
362
|
const tempDiv = document.createElement("div");
|
|
@@ -764,7 +764,7 @@ var DatePickerElement = (props) => {
|
|
|
764
764
|
const [dateState, setDateState] = useState7("");
|
|
765
765
|
const handleChange = (date, dateString) => {
|
|
766
766
|
if (date) {
|
|
767
|
-
const formattedDate =
|
|
767
|
+
const formattedDate = dateString;
|
|
768
768
|
setDateState(date);
|
|
769
769
|
if (props.onChange) {
|
|
770
770
|
props.onChange(formattedDate);
|