@uxf/datepicker 11.50.0 → 11.80.4

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/README.md CHANGED
@@ -319,3 +319,4 @@ export const DateRangePickerDay: FC<{ day: string; date: Date }> = ({ day, date
319
319
 
320
320
  - keyboard navigation doesn't work for year and decade view
321
321
  - the demo needs a little more love!
322
+
@@ -31,5 +31,6 @@ exports.DatePickerContext = (0, react_1.createContext)({
31
31
  onDateSelect: () => undefined,
32
32
  onResetDates: () => undefined,
33
33
  preventScroll: undefined,
34
+ selectedDate: null,
34
35
  unavailableDates: [],
35
36
  });
@@ -31,6 +31,7 @@ export interface UseDatePickerReturnType extends UseDatePickerNavigationReturnTy
31
31
  onDateSelect: (date: Date) => void;
32
32
  onResetDates: () => void;
33
33
  preventScroll?: boolean;
34
+ selectedDate: Date | null;
34
35
  /** deprecated */
35
36
  unavailableDates: Date[];
36
37
  }
@@ -114,6 +114,7 @@ function useDatePicker({ datesConfig = [], firstDayOfWeek = 0, initialVisibleMon
114
114
  onDateSelect,
115
115
  onResetDates: onReset,
116
116
  preventScroll,
117
+ selectedDate,
117
118
  unavailableDates: disabledDates,
118
119
  };
119
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/datepicker",
3
- "version": "11.50.0",
3
+ "version": "11.80.4",
4
4
  "description": "A set of React hooks to create an awesome datepicker.",
5
5
  "main": "index.js",
6
6
  "scripts": {