@react-types/datepicker
Advanced tools
Comparing version 3.0.0-nightly-262cc758b-241115 to 3.0.0-nightly-326f48154-241212
{ | ||
"name": "@react-types/datepicker", | ||
"version": "3.0.0-nightly-262cc758b-241115", | ||
"version": "3.0.0-nightly-326f48154-241212", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,6 +12,6 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@internationalized/date": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-types/calendar": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-types/overlays": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-types/shared": "^3.0.0-nightly-262cc758b-241115" | ||
"@internationalized/date": "3.0.0-nightly-326f48154-241212", | ||
"@react-types/calendar": "3.0.0-nightly-326f48154-241212", | ||
"@react-types/overlays": "3.0.0-nightly-326f48154-241212", | ||
"@react-types/shared": "3.0.0-nightly-326f48154-241212" | ||
}, | ||
@@ -22,5 +22,4 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
}, | ||
"stableVersion": "3.8.3" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
} | ||
} |
@@ -42,9 +42,9 @@ /* | ||
/** The minimum allowed date that a user may select. */ | ||
minValue?: DateValue, | ||
minValue?: DateValue | null, | ||
/** The maximum allowed date that a user may select. */ | ||
maxValue?: DateValue, | ||
maxValue?: DateValue | null, | ||
/** Callback that is called for each date of the calendar. If it returns true, then the date is unavailable. */ | ||
isDateUnavailable?: (date: DateValue) => boolean, | ||
/** A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight. */ | ||
placeholderValue?: T, | ||
placeholderValue?: T | null, | ||
/** Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale. */ | ||
@@ -67,3 +67,3 @@ hourCycle?: 12 | 24, | ||
interface AriaDateFieldBaseProps<T extends DateValue> extends DateFieldBase<T>, AriaLabelingProps, DOMProps {} | ||
export interface DateFieldProps<T extends DateValue> extends DateFieldBase<T>, ValueBase<T | null, MappedDateValue<T>> {} | ||
export interface DateFieldProps<T extends DateValue> extends DateFieldBase<T>, ValueBase<T | null, MappedDateValue<T> | null> {} | ||
export interface AriaDateFieldProps<T extends DateValue> extends DateFieldProps<T>, AriaDateFieldBaseProps<T>, InputDOMProps {} | ||
@@ -80,7 +80,7 @@ | ||
export interface DatePickerProps<T extends DateValue> extends DatePickerBase<T>, ValueBase<T | null, MappedDateValue<T>> {} | ||
export interface DatePickerProps<T extends DateValue> extends DatePickerBase<T>, ValueBase<T | null, MappedDateValue<T> | null> {} | ||
export interface AriaDatePickerProps<T extends DateValue> extends DatePickerProps<T>, AriaDatePickerBaseProps<T>, InputDOMProps {} | ||
export type DateRange = RangeValue<DateValue>; | ||
export interface DateRangePickerProps<T extends DateValue> extends Omit<DatePickerBase<T>, 'validate'>, Validation<RangeValue<MappedDateValue<T>>>, ValueBase<RangeValue<T> | null, RangeValue<MappedDateValue<T>>> { | ||
export interface DateRangePickerProps<T extends DateValue> extends Omit<DatePickerBase<T>, 'validate'>, Validation<RangeValue<MappedDateValue<T>>>, ValueBase<RangeValue<T> | null, RangeValue<MappedDateValue<T>> | null> { | ||
/** | ||
@@ -140,3 +140,3 @@ * When combined with `isDateUnavailable`, determines whether non-contiguous ranges, | ||
export interface TimePickerProps<T extends TimeValue> extends InputBase, Validation<MappedTimeValue<T>>, FocusableProps, LabelableProps, HelpTextProps, ValueBase<T | null, MappedTimeValue<T>> { | ||
export interface TimePickerProps<T extends TimeValue> extends InputBase, Validation<MappedTimeValue<T>>, FocusableProps, LabelableProps, HelpTextProps, ValueBase<T | null, MappedTimeValue<T> | null> { | ||
/** Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale. */ | ||
@@ -162,5 +162,5 @@ hourCycle?: 12 | 24, | ||
/** The minimum allowed time that a user may select. */ | ||
minValue?: TimeValue, | ||
minValue?: TimeValue | null, | ||
/** The maximum allowed time that a user may select. */ | ||
maxValue?: TimeValue | ||
maxValue?: TimeValue | null | ||
} | ||
@@ -167,0 +167,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8937
+ Added@internationalized/date@3.0.0-nightly-326f48154-241212(transitive)
+ Added@react-types/calendar@3.0.0-nightly-326f48154-241212(transitive)
+ Added@react-types/overlays@3.0.0-nightly-326f48154-241212(transitive)
+ Added@react-types/shared@3.0.0-nightly-326f48154-241212(transitive)
- Removed@internationalized/date@3.6.0(transitive)
- Removed@react-types/calendar@3.5.0(transitive)
- Removed@react-types/overlays@3.8.11(transitive)
- Removed@react-types/shared@3.26.0(transitive)
Updated@internationalized/date@3.0.0-nightly-326f48154-241212