anteriority-ui 1.14.0 → 1.14.2

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/.verify-bundle.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/.verify-bundle.js
3
- size: 59204256 bytes
4
- sha256: 576e135ced8df47f9bb7c7db632d718d659e668e6ee7a70f7402f8098c3d6ddc
3
+ size: 59204544 bytes
4
+ sha256: e71b7609e07cbd048926e6566828bcca094bfb4a33abb70b6b41929d27b9d68a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anteriority-ui",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "Librería interna de componentes React (UI) construida sobre MUI, lucide-react y CSS Modules.",
5
5
  "main": "index.js",
6
6
  "license": "ISC",
@@ -72,6 +72,11 @@ const CalendarPicker = ({
72
72
  const rangeStart = range ? parseValueToDate(rangeValue.start) : null;
73
73
  const rangeEnd = range ? parseValueToDate(rangeValue.end) : null;
74
74
  const selectedDate = !range ? parseValueToDate(value) : null;
75
+ useEffect(() => {
76
+ if (isInline || !isOpen) return void 0;
77
+ const anchorDate = range ? rangeStart || rangeEnd : selectedDate;
78
+ if (anchorDate) setCurrentDate(anchorDate);
79
+ }, [isOpen]);
75
80
  useEffect(() => {
76
81
  if (!isPopoverOpen) {
77
82
  setHoveredDay(null);
@@ -88,6 +93,7 @@ const CalendarPicker = ({
88
93
  }
89
94
  };
90
95
  const handleClickOutside = (e) => {
96
+ if (e.target.closest && e.target.closest(".MuiAutocomplete-popper")) return;
91
97
  if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
92
98
  setIsOpen(false);
93
99
  setShowSelectors(false);