@react-types/calendar 3.4.6 → 3.4.8

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/calendar",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,14 +9,14 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@internationalized/date": "^3.5.4",
13
- "@react-types/shared": "^3.23.1"
12
+ "@internationalized/date": "^3.5.5",
13
+ "@react-types/shared": "^3.24.1"
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
18
18
  "peerDependencies": {
19
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
19
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
20
20
  },
21
- "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
21
+ "gitHead": "f0aa6aacee60af265dc8994b9274ccf072a850aa"
22
22
  }
package/src/index.d.ts CHANGED
@@ -23,9 +23,9 @@ type MappedDateValue<T> =
23
23
 
24
24
  export interface CalendarPropsBase {
25
25
  /** The minimum allowed date that a user may select. */
26
- minValue?: DateValue,
26
+ minValue?: DateValue | null,
27
27
  /** The maximum allowed date that a user may select. */
28
- maxValue?: DateValue,
28
+ maxValue?: DateValue | null,
29
29
  /** Callback that is called for each date of the calendar. If it returns true, then the date is unavailable. */
30
30
  isDateUnavailable?: (date: DateValue) => boolean,
31
31
  /**
@@ -65,9 +65,9 @@ export interface CalendarPropsBase {
65
65
  pageBehavior?: PageBehavior
66
66
  }
67
67
 
68
- export type DateRange = RangeValue<DateValue>;
69
- export interface CalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<T | null, MappedDateValue<T>> {}
70
- export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<RangeValue<T> | null, RangeValue<MappedDateValue<T>>> {
68
+ export type DateRange = RangeValue<DateValue> | null;
69
+ export interface CalendarProps<T extends DateValue | null> extends CalendarPropsBase, ValueBase<T | null, MappedDateValue<T>> {}
70
+ export interface RangeCalendarProps<T extends DateValue | null> extends CalendarPropsBase, ValueBase<RangeValue<T>> {
71
71
  /**
72
72
  * When combined with `isDateUnavailable`, determines whether non-contiguous ranges,
73
73
  * i.e. ranges containing unavailable dates, may be selected.