diff --git a/types/reactstrap/index.d.ts b/types/reactstrap/index.d.ts index 64af33fde2..adadd7886a 100644 --- a/types/reactstrap/index.d.ts +++ b/types/reactstrap/index.d.ts @@ -246,7 +246,8 @@ import { UncontrolledDropdown as UncontrolledDropdown_, UncontrolledTooltip as UncontrolledTooltip_, UncontrolledCollapse as UncontrolledCollapse_, - UncontrolledCarousel as UncontrolledCarousel_ + UncontrolledCarousel as UncontrolledCarousel_, + UncontrolledPopover as UncontrolledPopover_ } from './lib/Uncontrolled'; export class UncontrolledAlert extends UncontrolledAlert_ {} export class UncontrolledButtonDropdown extends UncontrolledButtonDropdown_ {} @@ -254,11 +255,13 @@ export class UncontrolledDropdown extends UncontrolledDropdown_ {} export class UncontrolledTooltip extends UncontrolledTooltip_ {} export class UncontrolledCollapse extends UncontrolledCollapse_ {} export class UncontrolledCarousel extends UncontrolledCarousel_ {} +export class UncontrolledPopover extends UncontrolledPopover_ {} export { UncontrolledButtonDropdownProps, UncontrolledAlertProps, UncontrolledDropdownProps, UncontrolledTooltipProps, UncontrolledCollapseProps, - UncontrolledCarouselProps + UncontrolledCarouselProps, + UncontrolledPopoverProps } from './lib/Uncontrolled'; diff --git a/types/reactstrap/lib/Popover.d.ts b/types/reactstrap/lib/Popover.d.ts index 187e76b0eb..8677fe69fa 100644 --- a/types/reactstrap/lib/Popover.d.ts +++ b/types/reactstrap/lib/Popover.d.ts @@ -19,5 +19,9 @@ export type PopoverProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; +export type UncontrolledPopoverProps = PopoverProps & { + defaultOpen?: boolean; +}; + declare class Popover extends React.Component> {} export default Popover; diff --git a/types/reactstrap/lib/Uncontrolled.d.ts b/types/reactstrap/lib/Uncontrolled.d.ts index 3be770852f..f20db2f896 100644 --- a/types/reactstrap/lib/Uncontrolled.d.ts +++ b/types/reactstrap/lib/Uncontrolled.d.ts @@ -5,7 +5,8 @@ import { UncontrolledButtonDropdownProps } from './ButtonDropdown'; import { UncontrolledDropdownProps } from './Dropdown'; import { UncontrolledTooltipProps } from './Tooltip'; import { UncontrolledCollapseProps } from './Collapse'; -import { UncontrolledCarouselProps } from "./Carousel"; +import { UncontrolledCarouselProps } from './Carousel'; +import { UncontrolledPopoverProps } from './Popover'; export class UncontrolledAlert extends React.Component> {} export class UncontrolledButtonDropdown extends React.Component> {} @@ -13,10 +14,12 @@ export class UncontrolledDropdown extends React.Component extends React.Component> {} export class UncontrolledCollapse extends React.Component> {} export class UncontrolledCarousel extends React.Component> {} +export class UncontrolledPopover extends React.Component> {} export { UncontrolledAlertProps } from './Alert'; export { UncontrolledButtonDropdownProps } from './ButtonDropdown'; export { UncontrolledDropdownProps } from './Dropdown'; export { UncontrolledTooltipProps } from './Tooltip'; export { UncontrolledCollapseProps } from './Collapse'; -export { UncontrolledCarouselProps } from "./Carousel"; +export { UncontrolledCarouselProps } from './Carousel'; +export { UncontrolledPopoverProps } from './Popover'; diff --git a/types/reactstrap/reactstrap-tests.tsx b/types/reactstrap/reactstrap-tests.tsx index a84d8010b6..f3678813de 100644 --- a/types/reactstrap/reactstrap-tests.tsx +++ b/types/reactstrap/reactstrap-tests.tsx @@ -80,7 +80,8 @@ import { Table, Tag, Tooltip, - Spinner + Spinner, + UncontrolledPopover, } from 'reactstrap'; // --------------- Alert @@ -4337,3 +4338,18 @@ function Example125() { ); } + +function Example126() { + return ( +
+ + Popover Title + Lorem ipsum dolor sit amet + + + Popover Title + Lorem ipsum dolor sit amet + +
+ ); +}