@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 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 = date;
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 = date;
767
+ const formattedDate = dateString;
768
768
  setDateState(date);
769
769
  if (props.onChange) {
770
770
  props.onChange(formattedDate);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta4",
3
+ "version": "0.0.15-Beta6",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",