x-ui-design 0.5.73 → 0.5.74

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.esm.js CHANGED
@@ -2203,13 +2203,14 @@ const RangePicker = ({
2203
2203
  const handleSelect = date => {
2204
2204
  if (!selectedDates[0] || selectedDates[0] && selectedDates[1]) {
2205
2205
  setSelectedDates([date, null]);
2206
- onCalendarChange?.(date.toUTCString(), formatDate(date), {});
2206
+ onCalendarChange?.([date.toUTCString(), undefined], [formatDate(date)], {});
2207
2207
  } else {
2208
2208
  const start = selectedDates[0];
2209
2209
  const end = date < start ? start : date;
2210
2210
  const begin = date < start ? date : start;
2211
2211
  setSelectedDates([begin, end]);
2212
2212
  onChange?.([begin.toUTCString(), end.toUTCString()], [formatDate(begin), formatDate(end)]);
2213
+ onCalendarChange?.([begin.toUTCString(), end.toUTCString()], [formatDate(begin), formatDate(end)], {});
2213
2214
  setIsOpen(false);
2214
2215
  }
2215
2216
  };