diff --git a/packages/@react-spectrum/s2/src/Calendar.tsx b/packages/@react-spectrum/s2/src/Calendar.tsx index 31509068d9b..5b06b4dddc1 100644 --- a/packages/@react-spectrum/s2/src/Calendar.tsx +++ b/packages/@react-spectrum/s2/src/Calendar.tsx @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {ActionButton, Header, Heading, pressScale} from './'; +import {ActionButton, Header, HeaderContext, Heading, HeadingContext, pressScale} from './'; import { Calendar as AriaCalendar, CalendarCell as AriaCalendarCell, @@ -27,6 +27,7 @@ import { CalendarStateContext, ContextValue, DateValue, + Provider, RangeCalendarState, RangeCalendarStateContext, Text @@ -304,11 +305,17 @@ export const Calendar = /*#__PURE__*/ (forwardRef as forwardRefType)(function Ca {({isInvalid, isDisabled}) => { return ( <> -
- - - -
+ +
+ + + +
+
{ return ( <> -
- - - -
+ +
+ + + +
+