File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22
3- export interface CalendarContainerProps extends React . PropsWithChildren {
3+ export interface CalendarContainerProps
4+ extends React . PropsWithChildren < HTMLDivElement > {
45 showTimeSelectOnly ?: boolean ;
56 showTime ?: boolean ;
6- className ?: string ;
77}
88
99const CalendarContainer : React . FC < CalendarContainerProps > = function ( {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import TabLoop from "./tab_loop";
77import withFloating from "./with_floating" ;
88
99import type { FloatingProps } from "./with_floating" ;
10+ import type { ReactNode } from "react" ;
1011
1112interface PortalProps
1213 extends Omit < React . ComponentPropsWithoutRef < typeof Portal > , "children" > { }
@@ -20,7 +21,7 @@ interface PopperComponentProps
2021 className ?: string ;
2122 wrapperClassName ?: string ;
2223 popperComponent : React . ReactNode ;
23- popperContainer ?: React . FC < React . PropsWithChildren > ;
24+ popperContainer ?: React . FC < { children ?: ReactNode | undefined } > ;
2425 targetComponent : React . ReactNode ;
2526 popperOnKeyDown : React . KeyboardEventHandler < HTMLDivElement > ;
2627 showArrow ?: boolean ;
Original file line number Diff line number Diff line change 11import React , { Component , createRef } from "react" ;
22
3- interface TabLoopProps extends React . PropsWithChildren {
3+ import type { ReactNode } from "react" ;
4+
5+ interface TabLoopProps {
46 enableTabLoop ?: boolean ;
7+ children ?: ReactNode | undefined ;
58}
69
710const focusableElementsSelector =
You can’t perform that action at this time.
0 commit comments