anteriority-ui 1.14.0 → 1.14.1

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: 59204457 bytes
4
+ sha256: f1db148e270819a80c15168f9ef8818e80df77f0f972641e9e2d18b408b731cc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anteriority-ui",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
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);