From 25b1891db4372059c3f070e0ea7dc4fa7036b200 Mon Sep 17 00:00:00 2001 From: Robert Snow Date: Tue, 29 Jul 2025 12:36:05 +1000 Subject: [PATCH 1/2] chore: update datepickers now that hook api does more --- packages/@react-spectrum/datepicker/src/DatePicker.tsx | 2 -- .../@react-spectrum/datepicker/src/DateRangePicker.tsx | 2 -- packages/@react-spectrum/s2/src/DatePicker.tsx | 8 +------- packages/@react-spectrum/s2/src/DateRangePicker.tsx | 8 +------- 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/packages/@react-spectrum/datepicker/src/DatePicker.tsx b/packages/@react-spectrum/datepicker/src/DatePicker.tsx index ecdf57f34c8..90e20fa730d 100644 --- a/packages/@react-spectrum/datepicker/src/DatePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePicker.tsx @@ -171,8 +171,6 @@ export const DatePicker = React.forwardRef(function DatePicker {showTimeField && diff --git a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx index 0679833bb40..6a1f0c07989 100644 --- a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx @@ -189,8 +189,6 @@ export const DateRangePicker = React.forwardRef(function DateRangePicker {showTimeField && diff --git a/packages/@react-spectrum/s2/src/DatePicker.tsx b/packages/@react-spectrum/s2/src/DatePicker.tsx index 8ed4bd5fccd..d3f724d623d 100644 --- a/packages/@react-spectrum/s2/src/DatePicker.tsx +++ b/packages/@react-spectrum/s2/src/DatePicker.tsx @@ -139,10 +139,7 @@ export const DatePicker = /*#__PURE__*/ (forwardRef as forwardRefType)(function styles, placeholderValue, maxVisibleMonths = 1, - firstDayOfWeek, createCalendar, - pageBehavior, - isDateUnavailable, ...dateFieldProps } = props; let formContext = useContext(FormContext); @@ -206,10 +203,7 @@ export const DatePicker = /*#__PURE__*/ (forwardRef as forwardRefType)(function + createCalendar={createCalendar} /> {showTimeField && (
+ createCalendar={createCalendar} /> {showTimeField && (
Date: Tue, 29 Jul 2025 12:39:46 +1000 Subject: [PATCH 2/2] fix lint --- packages/@react-spectrum/datepicker/src/DatePicker.tsx | 4 +--- packages/@react-spectrum/datepicker/src/DateRangePicker.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/@react-spectrum/datepicker/src/DatePicker.tsx b/packages/@react-spectrum/datepicker/src/DatePicker.tsx index 90e20fa730d..711e2cd5a24 100644 --- a/packages/@react-spectrum/datepicker/src/DatePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePicker.tsx @@ -49,9 +49,7 @@ export const DatePicker = React.forwardRef(function DatePicker(null); diff --git a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx index 6a1f0c07989..dc1f9eec342 100644 --- a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx @@ -50,9 +50,7 @@ export const DateRangePicker = React.forwardRef(function DateRangePicker(null);