diff --git a/types/reactstrap/index.d.ts b/types/reactstrap/index.d.ts index b489b1cadb..479db55494 100644 --- a/types/reactstrap/index.d.ts +++ b/types/reactstrap/index.d.ts @@ -16,257 +16,170 @@ export interface CSSModule { [className: string]: string; } -import { default as Alert_ } from './lib/Alert'; -export class Alert extends Alert_ {} +export { default as Alert } from './lib/Alert'; export { AlertProps } from './lib/Alert'; -import { default as Badge_ } from './lib/Badge'; -export class Badge extends Badge_ {} +export { default as Badge } from './lib/Badge'; export { BadgeProps } from './lib/Badge'; -import { default as Breadcrumb_ } from './lib/Breadcrumb'; -export class Breadcrumb extends Breadcrumb_ {} +export { default as Breadcrumb } from './lib/Breadcrumb'; export { BreadcrumbProps } from './lib/Breadcrumb'; -import { default as BreadcrumbItem_ } from './lib/BreadcrumbItem'; -export class BreadcrumbItem extends BreadcrumbItem_ {} +export { default as BreadcrumbItem } from './lib/BreadcrumbItem'; export { BreadcrumbItemProps } from './lib/BreadcrumbItem'; -import { default as Button_ } from './lib/Button'; -export class Button extends Button_ {} +export { default as Button } from './lib/Button'; export { ButtonProps } from './lib/Button'; -import { default as ButtonDropdown_ } from './lib/ButtonDropdown'; -export class ButtonDropdown extends ButtonDropdown_ {} +export { default as ButtonDropdown } from './lib/ButtonDropdown'; export { ButtonDropdownProps } from './lib/ButtonDropdown'; -import { default as ButtonGroup_ } from './lib/ButtonGroup'; -export class ButtonGroup extends ButtonGroup_ {} +export { default as ButtonGroup } from './lib/ButtonGroup'; export { ButtonGroupProps } from './lib/ButtonGroup'; -import { default as ButtonToolbar_ } from './lib/ButtonToolbar'; -export class ButtonToolbar extends ButtonToolbar_ {} +export { default as ButtonToolbar } from './lib/ButtonToolbar'; export { ButtonToolbarProps } from './lib/ButtonToolbar'; -import { default as Card_ } from './lib/Card'; -export class Card extends Card_ {} +export { default as Card } from './lib/Card'; export { CardProps } from './lib/Card'; -import { default as CardBody_ } from './lib/CardBody'; -export class CardBody extends CardBody_ {} +export { default as CardBody } from './lib/CardBody'; export { CardBodyProps } from './lib/CardBody'; -import { default as CardColumns_ } from './lib/CardColumns'; -export class CardColumns extends CardColumns_ {} +export { default as CardColumns } from './lib/CardColumns'; export { CardColumnsProps } from './lib/CardColumns'; -import { default as CardDeck_ } from './lib/CardDeck'; -export class CardDeck extends CardDeck_ {} +export { default as CardDeck } from './lib/CardDeck'; export { CardDeckProps } from './lib/CardDeck'; -import { default as CardFooter_ } from './lib/CardFooter'; -export class CardFooter extends CardFooter_ {} +export { default as CardFooter } from './lib/CardFooter'; export { CardFooterProps } from './lib/CardFooter'; -import { default as CardGroup_ } from './lib/CardGroup'; -export class CardGroup extends CardGroup_ {} +export { default as CardGroup } from './lib/CardGroup'; export { CardGroupProps } from './lib/CardGroup'; -import { default as CardHeader_ } from './lib/CardHeader'; -export class CardHeader extends CardHeader_ {} +export { default as CardHeader } from './lib/CardHeader'; export { CardHeaderProps } from './lib/CardHeader'; -import { default as CardImg_ } from './lib/CardImg'; -export class CardImg extends CardImg_ {} +export { default as CardImg } from './lib/CardImg'; export { CardImgProps } from './lib/CardImg'; -import { default as CardImgOverlay_ } from './lib/CardImgOverlay'; -export class CardImgOverlay extends CardImgOverlay_ {} +export { default as CardImgOverlay } from './lib/CardImgOverlay'; export { CardImgOverlayProps } from './lib/CardImgOverlay'; -import { default as CardLink_ } from './lib/CardLink'; -export class CardLink extends CardLink_ {} +export { default as CardLink } from './lib/CardLink'; export { CardLinkProps } from './lib/CardLink'; -import { default as CardSubtitle_ } from './lib/CardSubtitle'; -export class CardSubtitle extends CardSubtitle_ {} +export { default as CardSubtitle } from './lib/CardSubtitle'; export { CardSubtitleProps } from './lib/CardSubtitle'; -import { default as CardText_ } from './lib/CardText'; -export class CardText extends CardText_ {} +export { default as CardText } from './lib/CardText'; export { CardTextProps } from './lib/CardText'; -import { default as CardTitle_ } from './lib/CardTitle'; -export class CardTitle extends CardTitle_ {} +export { default as CardTitle } from './lib/CardTitle'; export { CardTitleProps } from './lib/CardTitle'; -import { default as Carousel_ } from './lib/Carousel'; -export class Carousel extends Carousel_ {} +export { default as Carousel } from './lib/Carousel'; export { CarouselProps } from './lib/Carousel'; -import { default as CarouselItem_ } from './lib/CarouselItem'; -export class CarouselItem extends CarouselItem_ {} +export { default as CarouselItem } from './lib/CarouselItem'; export { CarouselItemProps } from './lib/CarouselItem'; -import { default as CarouselControl_ } from './lib/CarouselControl'; -export class CarouselControl extends CarouselControl_ {} +export { default as CarouselControl } from './lib/CarouselControl'; export { CarouselControlProps } from './lib/CarouselControl'; -import { default as CarouselIndicators_ } from './lib/CarouselIndicators'; -export class CarouselIndicators extends CarouselIndicators_ {} +export { default as CarouselIndicators } from './lib/CarouselIndicators'; export { CarouselIndicatorsProps } from './lib/CarouselIndicators'; -import { default as CarouselCaption_ } from './lib/CarouselCaption'; -export class CarouselCaption extends CarouselCaption_ {} +export { default as CarouselCaption } from './lib/CarouselCaption'; export { CarouselCaptionProps } from './lib/CarouselCaption'; -import { default as Col_ } from './lib/Col'; -export class Col extends Col_ {} +export { default as Col } from './lib/Col'; export { ColProps } from './lib/Col'; -import { default as Collapse_ } from './lib/Collapse'; -export class Collapse extends Collapse_ {} +export { default as Collapse } from './lib/Collapse'; export { CollapseProps } from './lib/Collapse'; -import { default as Container_ } from './lib/Container'; -export class Container extends Container_ {} +export { default as Container } from './lib/Container'; export { ContainerProps } from './lib/Container'; -import { default as CustomInput_ } from './lib/CustomInput'; -export class CustomInput extends CustomInput_ {} +export { default as CustomInput } from './lib/CustomInput'; export { CustomInputProps } from './lib/CustomInput'; -import { default as Dropdown_ } from './lib/Dropdown'; -export class Dropdown extends Dropdown_ {} +export { default as Dropdown } from './lib/Dropdown'; export { DropdownProps } from './lib/Dropdown'; -import { default as DropdownItem_ } from './lib/DropdownItem'; -export class DropdownItem extends DropdownItem_ {} +export { default as DropdownItem } from './lib/DropdownItem'; export { DropdownItemProps } from './lib/DropdownItem'; -import { default as DropdownMenu_ } from './lib/DropdownMenu'; -export class DropdownMenu extends DropdownMenu_ {} +export { default as DropdownMenu } from './lib/DropdownMenu'; export { DropdownMenuProps } from './lib/DropdownMenu'; -import { default as DropdownToggle_ } from './lib/DropdownToggle'; -export class DropdownToggle extends DropdownToggle_ {} +export { default as DropdownToggle } from './lib/DropdownToggle'; export { DropdownToggleProps } from './lib/DropdownToggle'; -import { default as Fade_ } from './lib/Fade'; -export class Fade extends Fade_ {} +export { default as Fade } from './lib/Fade'; export { FadeProps } from './lib/Fade'; -import { default as Form_ } from './lib/Form'; -export class Form extends Form_ {} +export { default as Form } from './lib/Form'; export { FormProps } from './lib/Form'; -import { default as FormFeedback_ } from './lib/FormFeedback'; -export class FormFeedback extends FormFeedback_ {} +export { default as FormFeedback } from './lib/FormFeedback'; export { FormFeedbackProps } from './lib/FormFeedback'; -import { default as FormGroup_ } from './lib/FormGroup'; -export class FormGroup extends FormGroup_ {} +export { default as FormGroup } from './lib/FormGroup'; export { FormGroupProps } from './lib/FormGroup'; -import { default as FormText_ } from './lib/FormText'; -export class FormText extends FormText_ {} +export { default as FormText } from './lib/FormText'; export { FormTextProps } from './lib/FormText'; -import { default as Input_ } from './lib/Input'; -export class Input extends Input_ {} +export { default as Input } from './lib/Input'; export { InputProps } from './lib/Input'; -import { default as InputGroup_ } from './lib/InputGroup'; -export class InputGroup extends InputGroup_ {} +export { default as InputGroup } from './lib/InputGroup'; export { InputGroupProps } from './lib/InputGroup'; -import { default as InputGroupAddon_ } from './lib/InputGroupAddon'; -export class InputGroupAddon extends InputGroupAddon_ {} +export { default as InputGroupAddon } from './lib/InputGroupAddon'; export { InputGroupAddonProps } from './lib/InputGroupAddon'; -import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown'; -export class InputGroupButtonDropdown extends InputGroupButtonDropdown_ {} +export { default as InputGroupButtonDropdown } from './lib/InputGroupButtonDropdown'; export { InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown'; -import { default as InputGroupText_ } from './lib/InputGroupText'; -export class InputGroupText extends InputGroupText_ {} +export { default as InputGroupText } from './lib/InputGroupText'; export { InputGroupTextProps } from './lib/InputGroupText'; -import { default as Jumbotron_ } from './lib/Jumbotron'; -export class Jumbotron extends Jumbotron_ {} +export { default as Jumbotron } from './lib/Jumbotron'; export { JumbotronProps } from './lib/Jumbotron'; -import { default as Label_ } from './lib/Label'; -export class Label extends Label_ {} +export { default as Label } from './lib/Label'; export { LabelProps } from './lib/Label'; -import { default as ListGroup_ } from './lib/ListGroup'; -export class ListGroup extends ListGroup_ {} +export { default as ListGroup } from './lib/ListGroup'; export { ListGroupProps } from './lib/ListGroup'; -import { default as ListGroupItem_ } from './lib/ListGroupItem'; -export class ListGroupItem extends ListGroupItem_ {} +export { default as ListGroupItem } from './lib/ListGroupItem'; export { ListGroupItemProps } from './lib/ListGroupItem'; -import { default as ListGroupItemHeading_ } from './lib/ListGroupItemHeading'; -export class ListGroupItemHeading extends ListGroupItemHeading_ {} +export { default as ListGroupItemHeading } from './lib/ListGroupItemHeading'; export { ListGroupItemHeadingProps } from './lib/ListGroupItemHeading'; -import { default as ListGroupItemText_ } from './lib/ListGroupItemText'; -export class ListGroupItemText extends ListGroupItemText_ {} +export { default as ListGroupItemText } from './lib/ListGroupItemText'; export { ListGroupItemTextProps } from './lib/ListGroupItemText'; -import { default as Media_ } from './lib/Media'; -export class Media extends Media_ {} +export { default as Media } from './lib/Media'; export { MediaProps } from './lib/Media'; -import { default as Modal_ } from './lib/Modal'; -export class Modal extends Modal_ {} +export { default as Modal } from './lib/Modal'; export { ModalProps } from './lib/Modal'; -import { default as ModalBody_ } from './lib/ModalBody'; -export class ModalBody extends ModalBody_ {} +export { default as ModalBody } from './lib/ModalBody'; export { ModalBodyProps } from './lib/ModalBody'; -import { default as ModalFooter_ } from './lib/ModalFooter'; -export class ModalFooter extends ModalFooter_ {} +export { default as ModalFooter } from './lib/ModalFooter'; export { ModalFooterProps } from './lib/ModalFooter'; -import { default as ModalHeader_ } from './lib/ModalHeader'; -export class ModalHeader extends ModalHeader_ {} +export { default as ModalHeader } from './lib/ModalHeader'; export { ModalHeaderProps } from './lib/ModalHeader'; -import { default as Nav_ } from './lib/Nav'; -export class Nav extends Nav_ {} +export { default as Nav } from './lib/Nav'; export { NavProps } from './lib/Nav'; -import { default as Navbar_ } from './lib/Navbar'; -export class Navbar extends Navbar_ {} +export { default as Navbar } from './lib/Navbar'; export { NavbarProps } from './lib/Navbar'; -import { default as NavbarBrand_ } from './lib/NavbarBrand'; -export class NavbarBrand extends NavbarBrand_ {} +export { default as NavbarBrand } from './lib/NavbarBrand'; export { NavbarBrandProps } from './lib/NavbarBrand'; -import { default as NavbarToggler_ } from './lib/NavbarToggler'; -export class NavbarToggler extends NavbarToggler_ {} +export { default as NavbarToggler } from './lib/NavbarToggler'; export { NavbarTogglerProps } from './lib/NavbarToggler'; -import { default as NavItem_ } from './lib/NavItem'; -export class NavItem extends NavItem_ {} +export { default as NavItem } from './lib/NavItem'; export { NavItemProps } from './lib/NavItem'; -import { default as NavLink_ } from './lib/NavLink'; -export class NavLink extends NavLink_ {} +export { default as NavLink } from './lib/NavLink'; export { NavLinkProps } from './lib/NavLink'; -import { default as Pagination_ } from './lib/Pagination'; -export class Pagination extends Pagination_ {} +export { default as Pagination } from './lib/Pagination'; export { PaginationProps } from './lib/Pagination'; -import { default as PaginationItem_ } from './lib/PaginationItem'; -export class PaginationItem extends PaginationItem_ {} +export { default as PaginationItem } from './lib/PaginationItem'; export { PaginationItemProps } from './lib/PaginationItem'; -import { default as PaginationLink_ } from './lib/PaginationLink'; -export class PaginationLink extends PaginationLink_ {} +export { default as PaginationLink } from './lib/PaginationLink'; export { PaginationLinkProps } from './lib/PaginationLink'; -import { default as Popover_ } from './lib/Popover'; -export class Popover extends Popover_ {} +export { default as Popover } from './lib/Popover'; export { PopoverProps } from './lib/Popover'; -import { default as PopoverBody_ } from './lib/PopoverBody'; -export class PopoverBody extends PopoverBody_ {} +export { default as PopoverBody } from './lib/PopoverBody'; export { PopoverBodyProps } from './lib/PopoverBody'; -import { default as PopoverHeader_ } from './lib/PopoverHeader'; -export class PopoverHeader extends PopoverHeader_ {} +export { default as PopoverHeader } from './lib/PopoverHeader'; export { PopoverHeaderProps } from './lib/PopoverHeader'; -import { default as Progress_ } from './lib/Progress'; -export class Progress extends Progress_ {} +export { default as Progress } from './lib/Progress'; export { ProgressProps } from './lib/Progress'; -import { default as Row_ } from './lib/Row'; -export class Row extends Row_ {} +export { default as Row } from './lib/Row'; export { RowProps } from './lib/Row'; -import { default as Spinner_ } from './lib/Spinner'; -export class Spinner extends Spinner_ {} +export { default as Spinner } from './lib/Spinner'; export { SpinnerProps } from './lib/Spinner'; -import { default as TabContent_ } from './lib/TabContent'; -export class TabContent extends TabContent_ {} +export { default as TabContent } from './lib/TabContent'; export { TabContentProps } from './lib/TabContent'; -import { default as Table_ } from './lib/Table'; -export class Table extends Table_ {} +export { default as Table } from './lib/Table'; export { TableProps } from './lib/Table'; -import { default as TabPane_ } from './lib/TabPane'; -export class TabPane extends TabPane_ {} +export { default as TabPane } from './lib/TabPane'; export { TabPaneProps } from './lib/TabPane'; -import { default as Tag_ } from './lib/Tag'; -export class Tag extends Tag_ {} +export { default as Tag } from './lib/Tag'; export { TagProps } from './lib/Tag'; -import { default as Toast_ } from './lib/Toast'; -export class Toast extends Toast_ {} +export { default as Toast } from './lib/Toast'; export { ToastProps } from './lib/Toast'; -import { default as ToastBody_ } from './lib/ToastBody'; -export class ToastBody extends ToastBody_ {} +export { default as ToastBody } from './lib/ToastBody'; export { ToastBodyProps } from './lib/ToastBody'; -import { default as ToastHeader_ } from './lib/ToastHeader'; -export class ToastHeader extends ToastHeader_ {} +export { default as ToastHeader } from './lib/ToastHeader'; export { ToastHeaderProps } from './lib/ToastHeader'; -import { default as Tooltip_ } from './lib/Tooltip'; -export class Tooltip extends Tooltip_ {} +export { default as Tooltip } from './lib/Tooltip'; export { TooltipProps } from './lib/Tooltip'; -import { - UncontrolledAlert as UncontrolledAlert_, - UncontrolledButtonDropdown as UncontrolledButtonDropdown_, - UncontrolledDropdown as UncontrolledDropdown_, - UncontrolledTooltip as UncontrolledTooltip_, - UncontrolledCollapse as UncontrolledCollapse_, - UncontrolledCarousel as UncontrolledCarousel_, - UncontrolledPopover as UncontrolledPopover_ -} from './lib/Uncontrolled'; -export class UncontrolledAlert extends UncontrolledAlert_ {} -export class UncontrolledButtonDropdown extends UncontrolledButtonDropdown_ {} -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 { + UncontrolledAlert, + UncontrolledButtonDropdown, + UncontrolledDropdown, + UncontrolledTooltip, + UncontrolledCollapse, + UncontrolledCarousel, + UncontrolledPopover, UncontrolledButtonDropdownProps, UncontrolledAlertProps, UncontrolledDropdownProps, diff --git a/types/reactstrap/lib/Alert.d.ts b/types/reactstrap/lib/Alert.d.ts index 5aa58f862a..61ce1e85bc 100644 --- a/types/reactstrap/lib/Alert.d.ts +++ b/types/reactstrap/lib/Alert.d.ts @@ -2,19 +2,18 @@ import * as React from 'react'; import { CSSModule } from '../index'; import { FadeProps } from './Fade'; -export type UncontrolledProps = React.HTMLAttributes & { +export interface UncontrolledAlertProps extends React.HTMLAttributes { + [key: string]: any; className?: string; cssModule?: CSSModule; color?: string; tag?: React.ReactType; transition?: FadeProps; -} & T; -export type UncontrolledAlertProps = UncontrolledProps; - -export type AlertProps = UncontrolledAlertProps & { +} +export interface AlertProps extends UncontrolledAlertProps { isOpen?: boolean; toggle?: () => void; -}; +} -declare class Alert extends React.Component> {} +declare class Alert extends React.Component {} export default Alert; diff --git a/types/reactstrap/lib/Badge.d.ts b/types/reactstrap/lib/Badge.d.ts index 651521ac67..b64ec53441 100644 --- a/types/reactstrap/lib/Badge.d.ts +++ b/types/reactstrap/lib/Badge.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type BadgeProps = React.HTMLAttributes & { +export interface BadgeProps extends React.HTMLAttributes { + [key: string]: any; color?: string; pill?: boolean; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Badge extends React.Component> {} +declare class Badge extends React.Component {} export default Badge; diff --git a/types/reactstrap/lib/Breadcrumb.d.ts b/types/reactstrap/lib/Breadcrumb.d.ts index 9fd2385041..9aca2499ff 100644 --- a/types/reactstrap/lib/Breadcrumb.d.ts +++ b/types/reactstrap/lib/Breadcrumb.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type BreadcrumbProps = React.HTMLAttributes & { +export interface BreadcrumbProps extends React.HTMLAttributes { + [key: string]: any; tag?: string; className?: string; listTag?: string; listClassName?: string; cssModule?: CSSModule; -} & T; +} -declare class Breadcrumb extends React.Component> {} +declare class Breadcrumb extends React.Component {} export default Breadcrumb; diff --git a/types/reactstrap/lib/BreadcrumbItem.d.ts b/types/reactstrap/lib/BreadcrumbItem.d.ts index a3ce8156bf..6ecd81b079 100644 --- a/types/reactstrap/lib/BreadcrumbItem.d.ts +++ b/types/reactstrap/lib/BreadcrumbItem.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type BreadcrumbItemProps = React.HTMLAttributes & { +export interface BreadcrumbItemProps extends React.HTMLAttributes { tag?: React.ReactType; active?: boolean; className?: string; @@ -9,7 +9,7 @@ export type BreadcrumbItemProps = React.HTMLAttributes & { // if a is passed as a string // this could be href [others: string]: any; -} & T; +} -declare class BreadcrumbItem extends React.Component> {} +declare class BreadcrumbItem extends React.Component {} export default BreadcrumbItem; diff --git a/types/reactstrap/lib/Button.d.ts b/types/reactstrap/lib/Button.d.ts index f19ecf4e32..8460a46035 100644 --- a/types/reactstrap/lib/Button.d.ts +++ b/types/reactstrap/lib/Button.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ButtonProps = React.ButtonHTMLAttributes & { +export interface ButtonProps extends React.ButtonHTMLAttributes { + [key: string]: any; outline?: boolean; active?: boolean; block?: boolean; @@ -16,7 +17,7 @@ export type ButtonProps = React.ButtonHTMLAttributes style?: React.CSSProperties; cssModule?: CSSModule; -} & T; +} -declare class Button extends React.Component> {} +declare class Button extends React.Component {} export default Button; diff --git a/types/reactstrap/lib/ButtonDropdown.d.ts b/types/reactstrap/lib/ButtonDropdown.d.ts index 92f16ce5ce..175c5e8767 100644 --- a/types/reactstrap/lib/ButtonDropdown.d.ts +++ b/types/reactstrap/lib/ButtonDropdown.d.ts @@ -1,10 +1,6 @@ import * as React from 'react'; import { UncontrolledDropdownProps, DropdownProps } from './Dropdown'; +export { UncontrolledDropdownProps as UncontrolledButtonDropdownProps, DropdownProps as ButtonDropdownProps }; -export type UncontrolledProps = UncontrolledDropdownProps; -export type UncontrolledButtonDropdownProps = UncontrolledProps; - -export type ButtonDropdownProps = DropdownProps; - -declare class ButtonDropdown extends React.Component> {} +declare class ButtonDropdown extends React.Component {} export default ButtonDropdown; diff --git a/types/reactstrap/lib/ButtonGroup.d.ts b/types/reactstrap/lib/ButtonGroup.d.ts index 736f894165..fab9dfb712 100644 --- a/types/reactstrap/lib/ButtonGroup.d.ts +++ b/types/reactstrap/lib/ButtonGroup.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ButtonGroupProps = React.HTMLAttributes & { +export interface ButtonGroupProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; 'aria-label'?: string; className?: string; @@ -9,7 +10,7 @@ export type ButtonGroupProps = React.HTMLAttributes & { role?: string; size?: string; vertical?: boolean; -} & T; +} -declare class ButtonGroup extends React.Component> {} +declare class ButtonGroup extends React.Component {} export default ButtonGroup; diff --git a/types/reactstrap/lib/ButtonToolbar.d.ts b/types/reactstrap/lib/ButtonToolbar.d.ts index b19fff3274..1396b2433e 100644 --- a/types/reactstrap/lib/ButtonToolbar.d.ts +++ b/types/reactstrap/lib/ButtonToolbar.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ButtonToolbarProps = React.HTMLAttributes & { +export interface ButtonToolbarProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; 'aria-label'?: string; className?: string; cssModule?: CSSModule; role?: string; -} & T; +} -declare class ButtonToolbar extends React.Component> {} +declare class ButtonToolbar extends React.Component {} export default ButtonToolbar; diff --git a/types/reactstrap/lib/Card.d.ts b/types/reactstrap/lib/Card.d.ts index d14bb52a81..3de8b2dc1d 100644 --- a/types/reactstrap/lib/Card.d.ts +++ b/types/reactstrap/lib/Card.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardProps = React.HTMLAttributes & { +export interface CardProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; inverse?: boolean; color?: string; @@ -10,7 +11,7 @@ export type CardProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; style?: React.CSSProperties; -} & T; +} -declare class Card extends React.Component> {} +declare class Card extends React.Component {} export default Card; diff --git a/types/reactstrap/lib/CardBody.d.ts b/types/reactstrap/lib/CardBody.d.ts index d8bcac515b..59c61bfadb 100644 --- a/types/reactstrap/lib/CardBody.d.ts +++ b/types/reactstrap/lib/CardBody.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardBodyProps = React.HTMLAttributes & { +export interface CardBodyProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardBody extends React.Component> {} +declare class CardBody extends React.Component {} export default CardBody; diff --git a/types/reactstrap/lib/CardColumns.d.ts b/types/reactstrap/lib/CardColumns.d.ts index ccce622907..139b53a5a3 100644 --- a/types/reactstrap/lib/CardColumns.d.ts +++ b/types/reactstrap/lib/CardColumns.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardColumnsProps = React.HTMLAttributes & { +export interface CardColumnsProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardColumns extends React.Component> {} +declare class CardColumns extends React.Component {} export default CardColumns; diff --git a/types/reactstrap/lib/CardDeck.d.ts b/types/reactstrap/lib/CardDeck.d.ts index 88f1166339..e8632747f3 100644 --- a/types/reactstrap/lib/CardDeck.d.ts +++ b/types/reactstrap/lib/CardDeck.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardDeckProps = React.HTMLAttributes & { +export interface CardDeckProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardDeck extends React.Component> {} +declare class CardDeck extends React.Component {} export default CardDeck; diff --git a/types/reactstrap/lib/CardFooter.d.ts b/types/reactstrap/lib/CardFooter.d.ts index c65ba5f8cf..61c80dc756 100644 --- a/types/reactstrap/lib/CardFooter.d.ts +++ b/types/reactstrap/lib/CardFooter.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardFooterProps = React.HTMLAttributes & { +export interface CardFooterProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardFooter extends React.Component> {} +declare class CardFooter extends React.Component {} export default CardFooter; diff --git a/types/reactstrap/lib/CardGroup.d.ts b/types/reactstrap/lib/CardGroup.d.ts index be33a187d5..69dde4198c 100644 --- a/types/reactstrap/lib/CardGroup.d.ts +++ b/types/reactstrap/lib/CardGroup.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardGroupProps = React.HTMLAttributes & { +export interface CardGroupProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardGroup extends React.Component> {} +declare class CardGroup extends React.Component {} export default CardGroup; diff --git a/types/reactstrap/lib/CardHeader.d.ts b/types/reactstrap/lib/CardHeader.d.ts index ac46ca37ba..be946f21bc 100644 --- a/types/reactstrap/lib/CardHeader.d.ts +++ b/types/reactstrap/lib/CardHeader.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardHeaderProps = React.HTMLAttributes & { +export interface CardHeaderProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardHeader extends React.Component> {} +declare class CardHeader extends React.Component {} export default CardHeader; diff --git a/types/reactstrap/lib/CardImg.d.ts b/types/reactstrap/lib/CardImg.d.ts index 6c77d88257..fc86aaeb37 100644 --- a/types/reactstrap/lib/CardImg.d.ts +++ b/types/reactstrap/lib/CardImg.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardImgProps = React.HTMLAttributes & { +export interface CardImgProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; top?: boolean; bottom?: boolean; @@ -11,7 +12,7 @@ export type CardImgProps = React.HTMLAttributes & { width?: string; height?: string; alt?: string; -} & T; +} -declare class CardImg extends React.Component> {} +declare class CardImg extends React.Component {} export default CardImg; diff --git a/types/reactstrap/lib/CardImgOverlay.d.ts b/types/reactstrap/lib/CardImgOverlay.d.ts index f4da865ae7..d20a83dbb5 100644 --- a/types/reactstrap/lib/CardImgOverlay.d.ts +++ b/types/reactstrap/lib/CardImgOverlay.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardImgOverlayProps = React.HTMLAttributes & { +export interface CardImgOverlayProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardImgOverlay extends React.Component> {} +declare class CardImgOverlay extends React.Component {} export default CardImgOverlay; diff --git a/types/reactstrap/lib/CardLink.d.ts b/types/reactstrap/lib/CardLink.d.ts index 359cb6e32a..2ad18a9eda 100644 --- a/types/reactstrap/lib/CardLink.d.ts +++ b/types/reactstrap/lib/CardLink.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardLinkProps = React.HTMLAttributes & { +export interface CardLinkProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; innerRef?: React.Ref; className?: string; cssModule?: CSSModule; href?: string; -} & T; +} -declare class CardLink extends React.Component> {} +declare class CardLink extends React.Component {} export default CardLink; diff --git a/types/reactstrap/lib/CardSubtitle.d.ts b/types/reactstrap/lib/CardSubtitle.d.ts index 8e379ceaa1..ee4ef79235 100644 --- a/types/reactstrap/lib/CardSubtitle.d.ts +++ b/types/reactstrap/lib/CardSubtitle.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardSubtitleProps = React.HTMLAttributes & { +export interface CardSubtitleProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardSubtitle extends React.Component> {} +declare class CardSubtitle extends React.Component {} export default CardSubtitle; diff --git a/types/reactstrap/lib/CardText.d.ts b/types/reactstrap/lib/CardText.d.ts index fd3fb8eba9..5ebf53d828 100644 --- a/types/reactstrap/lib/CardText.d.ts +++ b/types/reactstrap/lib/CardText.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardTextProps = React.HTMLAttributes & { +export interface CardTextProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardText extends React.Component> {} +declare class CardText extends React.Component {} export default CardText; diff --git a/types/reactstrap/lib/CardTitle.d.ts b/types/reactstrap/lib/CardTitle.d.ts index 0d6bad3c89..758486f1e4 100644 --- a/types/reactstrap/lib/CardTitle.d.ts +++ b/types/reactstrap/lib/CardTitle.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CardTitleProps = React.HTMLAttributes & { +export interface CardTitleProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class CardTitle extends React.Component> {} +declare class CardTitle extends React.Component {} export default CardTitle; diff --git a/types/reactstrap/lib/Carousel.d.ts b/types/reactstrap/lib/Carousel.d.ts index 69899eff34..858d128667 100644 --- a/types/reactstrap/lib/Carousel.d.ts +++ b/types/reactstrap/lib/Carousel.d.ts @@ -1,39 +1,39 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CarouselProps = React.HTMLProps & { - activeIndex?: number; - next: () => void; - previous: () => void; - keyboard?: boolean; - pause?: 'hover' | false; - ride?: 'carousel'; - interval?: number | string | boolean; - mouseEnter?: () => void; - mouseExit?: () => void; - slide?: boolean; - cssModule?: CSSModule -} & T; +export interface CarouselProps extends React.HTMLProps { + [key: string]: any; + activeIndex?: number; + next: () => void; + previous: () => void; + keyboard?: boolean; + pause?: 'hover' | false; + ride?: 'carousel'; + interval?: number | string | boolean; + mouseEnter?: () => void; + mouseExit?: () => void; + slide?: boolean; + cssModule?: CSSModule; +} -export type UncontrolledProps = React.HTMLProps & { - items: any[]; - activeIndex?: number; - next?: () => void; - previous?: () => void; - keyboard?: boolean; - pause?: "hover" | false; - ride?: "carousel"; - interval?: number | string | boolean; - mouseEnter?: () => void; - mouseExit?: () => void; - slide?: boolean; - cssModule?: CSSModule; - controls?: boolean; - indicators?: boolean; - autoPlay?: boolean; -} & T; +export interface UncontrolledCarouselProps extends React.HTMLProps { + [key: string]: any; + items: any[]; + activeIndex?: number; + next?: () => void; + previous?: () => void; + keyboard?: boolean; + pause?: "hover" | false; + ride?: "carousel"; + interval?: number | string | boolean; + mouseEnter?: () => void; + mouseExit?: () => void; + slide?: boolean; + cssModule?: CSSModule; + controls?: boolean; + indicators?: boolean; + autoPlay?: boolean; +} -export type UncontrolledCarouselProps = UncontrolledProps; - -declare class Carousel extends React.Component> {} +declare class Carousel extends React.Component {} export default Carousel; diff --git a/types/reactstrap/lib/CarouselCaption.d.ts b/types/reactstrap/lib/CarouselCaption.d.ts index 047505f318..6e535924f4 100644 --- a/types/reactstrap/lib/CarouselCaption.d.ts +++ b/types/reactstrap/lib/CarouselCaption.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CarouselCaptionProps = React.HTMLProps & { +export interface CarouselCaptionProps extends React.HTMLProps { + [key: string]: any; captionHeader?: string; captionText: string; cssModule?: CSSModule; -} & T; +} -declare class CarouselCaption extends React.Component> {} +declare class CarouselCaption extends React.Component {} export default CarouselCaption; diff --git a/types/reactstrap/lib/CarouselControl.d.ts b/types/reactstrap/lib/CarouselControl.d.ts index fb309f4cb1..9fd848fd87 100644 --- a/types/reactstrap/lib/CarouselControl.d.ts +++ b/types/reactstrap/lib/CarouselControl.d.ts @@ -1,12 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CarouselControlProps = React.HTMLProps & { - direction: 'prev' | 'next'; - onClickHandler: () => void; - cssModule?: CSSModule; - directionText: string; -} & T; +export interface CarouselControlProps extends React.HTMLProps { + [s: string]: any; + direction: 'prev' | 'next'; + onClickHandler: () => void; + cssModule?: CSSModule; + directionText: string; +} -declare class CarouselControl extends React.Component> {} -export default CarouselControl; +export default class CarouselControl extends React.Component { } diff --git a/types/reactstrap/lib/CarouselIndicators.d.ts b/types/reactstrap/lib/CarouselIndicators.d.ts index 761ab8d1cf..0964c13a5f 100644 --- a/types/reactstrap/lib/CarouselIndicators.d.ts +++ b/types/reactstrap/lib/CarouselIndicators.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CarouselIndicatorsProps = React.HTMLProps & { - items: object[]; - activeIndex: number; - cssModule?: CSSModule; - onClickHandler: (idx: number) => void; -} & T; +export interface CarouselIndicatorsProps extends React.HTMLProps { + [key: string]: any; + items: object[]; + activeIndex: number; + cssModule?: CSSModule; + onClickHandler: (idx: number) => void; +} -declare class CarouselIndicators extends React.Component> {} +declare class CarouselIndicators extends React.Component {} export default CarouselIndicators; diff --git a/types/reactstrap/lib/CarouselItem.d.ts b/types/reactstrap/lib/CarouselItem.d.ts index 8eb6bb325d..a6702746e2 100644 --- a/types/reactstrap/lib/CarouselItem.d.ts +++ b/types/reactstrap/lib/CarouselItem.d.ts @@ -1,21 +1,19 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface Transition { - onEnter?: () => void; - onEntering?: () => void; - onEntered?: () => void; - onExit?: () => void; - onExiting?: () => void; - onExited?: () => void; +export interface CarouselItemProps extends React.HTMLProps { + [key: string]: any; + tag?: React.ReactType; + in?: boolean; + cssModule?: CSSModule; + slide?: boolean; + onEnter?: () => void; + onEntering?: () => void; + onEntered?: () => void; + onExit?: () => void; + onExiting?: () => void; + onExited?: () => void; } -export type CarouselItemProps = React.HTMLProps & Transition & { - tag?: React.ReactType; - in?: boolean; - cssModule?: CSSModule; - slide?: boolean; -} & T; - -declare class CarouselItem extends React.Component> {} +declare class CarouselItem extends React.Component {} export default CarouselItem; diff --git a/types/reactstrap/lib/Col.d.ts b/types/reactstrap/lib/Col.d.ts index c52e32ec62..24554db9da 100644 --- a/types/reactstrap/lib/Col.d.ts +++ b/types/reactstrap/lib/Col.d.ts @@ -12,7 +12,8 @@ export type ColumnProps order?: string | number }; -export type ColProps = React.HTMLProps & { +export interface ColProps extends React.HTMLProps { + [key: string]: any; tag?: React.ReactType; xs?: ColumnProps; sm?: ColumnProps; @@ -22,7 +23,7 @@ export type ColProps = React.HTMLProps & { // custom widths widths?: string[]; -} & T; +} -declare class Col extends React.Component> {} +declare class Col extends React.Component {} export default Col; diff --git a/types/reactstrap/lib/Collapse.d.ts b/types/reactstrap/lib/Collapse.d.ts index 12247962aa..82fb603bbf 100644 --- a/types/reactstrap/lib/Collapse.d.ts +++ b/types/reactstrap/lib/Collapse.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type CollapseProps = React.HTMLProps & { +export interface CollapseProps extends React.HTMLProps { + [key: string]: any; isOpen?: boolean; classNames?: string; cssModule?: CSSModule; @@ -18,18 +19,17 @@ export type CollapseProps = React.HTMLProps & { onExit?: () => void; onExiting?: () => void; onExited?: () => void; -} & T; +} -export type UncontrolledProps = React.HTMLProps & { +export interface UncontrolledCollapseProps extends React.HTMLProps { + [key: string]: any; isOpen?: boolean; className?: string; cssModule?: CSSModule; tag?: React.ReactType; navbar?: boolean; toggle?: () => void; -} & T; +} -export type UncontrolledCollapseProps = UncontrolledProps; - -declare class Collapse extends React.Component> {} +declare class Collapse extends React.Component {} export default Collapse; diff --git a/types/reactstrap/lib/Container.d.ts b/types/reactstrap/lib/Container.d.ts index a39db466bb..9fb41599c0 100644 --- a/types/reactstrap/lib/Container.d.ts +++ b/types/reactstrap/lib/Container.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ContainerProps = React.HTMLAttributes & { +export interface ContainerProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; fluid?: boolean; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Container extends React.Component> {} +declare class Container extends React.Component {} export default Container; diff --git a/types/reactstrap/lib/CustomInput.d.ts b/types/reactstrap/lib/CustomInput.d.ts index 73f941c9f4..4545f2d126 100644 --- a/types/reactstrap/lib/CustomInput.d.ts +++ b/types/reactstrap/lib/CustomInput.d.ts @@ -8,7 +8,8 @@ export type CustomInputType = | 'checkbox' | 'switch'; -export type CustomInputProps = React.InputHTMLAttributes & { +export interface CustomInputProps extends React.InputHTMLAttributes { + [key: string]: any; type: CustomInputType; label?: React.ReactNode; inline?: boolean; @@ -18,7 +19,7 @@ export type CustomInputProps = React.InputHTMLAttributes extends React.Component> {} +declare class CustomInput extends React.Component {} export default CustomInput; diff --git a/types/reactstrap/lib/Dropdown.d.ts b/types/reactstrap/lib/Dropdown.d.ts index 585a1e8693..8f7f55abe6 100644 --- a/types/reactstrap/lib/Dropdown.d.ts +++ b/types/reactstrap/lib/Dropdown.d.ts @@ -7,7 +7,8 @@ export type Direction = | "left" | "right"; -export type UncontrolledProps = React.HTMLAttributes & { +export interface UncontrolledDropdownProps extends React.HTMLAttributes { + [key: string]: any; isOpen?: boolean; toggle?: () => void; className?: string; @@ -15,20 +16,16 @@ export type UncontrolledProps = React.HTMLAttributes & { nav?: boolean; inNavbar?: boolean; setActiveFromChild?: boolean; -} & T; +} -export type UncontrolledDropdownProps = UncontrolledProps; - -export type Props = UncontrolledProps & { +export interface DropdownProps extends UncontrolledDropdownProps { disabled?: boolean; direction?: Direction; group?: boolean; size?: string; tag?: React.ReactType; addonType?: boolean | 'prepend' | 'append'; -}; +} -export type DropdownProps = Props; - -declare class Dropdown extends React.Component> {} +declare class Dropdown extends React.Component {} export default Dropdown; diff --git a/types/reactstrap/lib/DropdownItem.d.ts b/types/reactstrap/lib/DropdownItem.d.ts index d6b4344d59..a8c366cb75 100644 --- a/types/reactstrap/lib/DropdownItem.d.ts +++ b/types/reactstrap/lib/DropdownItem.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type DropdownItemProps = React.HTMLAttributes & { +export interface DropdownItemProps extends React.HTMLAttributes { + [key: string]: any; disabled?: boolean; divider?: boolean; tag?: React.ReactType; @@ -12,7 +13,7 @@ export type DropdownItemProps = React.HTMLAttributes & { href?: string; toggle?: boolean; active?: boolean; -} & T; +} -declare class DropdownItem extends React.Component> {} +declare class DropdownItem extends React.Component {} export default DropdownItem; diff --git a/types/reactstrap/lib/DropdownMenu.d.ts b/types/reactstrap/lib/DropdownMenu.d.ts index fedb12f4c3..b7799abedc 100644 --- a/types/reactstrap/lib/DropdownMenu.d.ts +++ b/types/reactstrap/lib/DropdownMenu.d.ts @@ -2,7 +2,8 @@ import * as React from 'react'; import * as Popper from 'popper.js'; import { CSSModule } from '../index'; -export type DropdownMenuProps = React.HTMLAttributes & { +export interface DropdownMenuProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; right?: boolean; className?: string; @@ -10,7 +11,7 @@ export type DropdownMenuProps = React.HTMLAttributes & { flip?: boolean; modifiers?: Popper.Modifiers; persist?: boolean; -} & T; +} -declare class DropdownMenu extends React.Component> {} +declare class DropdownMenu extends React.Component {} export default DropdownMenu; diff --git a/types/reactstrap/lib/DropdownToggle.d.ts b/types/reactstrap/lib/DropdownToggle.d.ts index cdb665c6ce..93cbb25523 100644 --- a/types/reactstrap/lib/DropdownToggle.d.ts +++ b/types/reactstrap/lib/DropdownToggle.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type DropdownToggleProps = React.HTMLAttributes & { +export interface DropdownToggleProps extends React.HTMLAttributes { + [key: string]: any; caret?: boolean; className?: string; cssModule?: CSSModule; @@ -15,7 +16,7 @@ export type DropdownToggleProps = React.HTMLAttributes & { nav?: boolean; color?: string; size?: string; -} & T; +} -declare class DropdownToggle extends React.Component> {} +declare class DropdownToggle extends React.Component {} export default DropdownToggle; diff --git a/types/reactstrap/lib/Fade.d.ts b/types/reactstrap/lib/Fade.d.ts index 97fe421e7d..899fb89e99 100644 --- a/types/reactstrap/lib/Fade.d.ts +++ b/types/reactstrap/lib/Fade.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type FadeProps = React.HTMLAttributes & { +export interface FadeProps extends React.HTMLAttributes { + [key: string]: any; in?: boolean; baseClass?: string; baseClassIn?: string; @@ -16,7 +17,7 @@ export type FadeProps = React.HTMLAttributes & { transitionLeave?: boolean; onLeave?: () => void; onEnter?: () => void; -} & T; +} -declare class Fade extends React.Component> {} +declare class Fade extends React.Component {} export default Fade; diff --git a/types/reactstrap/lib/Form.d.ts b/types/reactstrap/lib/Form.d.ts index 2b6668b631..a0e49945ed 100644 --- a/types/reactstrap/lib/Form.d.ts +++ b/types/reactstrap/lib/Form.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type FormProps = React.HTMLProps & { +export interface FormProps extends React.HTMLProps { + [key: string]: any; inline?: boolean; tag?: React.ReactType; innerRef?: React.Ref; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Form extends React.Component> {} +declare class Form extends React.Component {} export default Form; diff --git a/types/reactstrap/lib/FormFeedback.d.ts b/types/reactstrap/lib/FormFeedback.d.ts index e221c9809b..6b938411f8 100644 --- a/types/reactstrap/lib/FormFeedback.d.ts +++ b/types/reactstrap/lib/FormFeedback.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type FormFeedbackProps = React.HTMLAttributes & { +export interface FormFeedbackProps extends React.HTMLAttributes { + [key: string]: any; tag?: string; className?: string; cssModule?: CSSModule; valid?: boolean; -} & T; +} -declare class FormFeedback extends React.Component> {} +declare class FormFeedback extends React.Component {} export default FormFeedback; diff --git a/types/reactstrap/lib/FormGroup.d.ts b/types/reactstrap/lib/FormGroup.d.ts index f0369ff7d9..fb8423b66c 100644 --- a/types/reactstrap/lib/FormGroup.d.ts +++ b/types/reactstrap/lib/FormGroup.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type FormGroupProps = React.HTMLProps & { +export interface FormGroupProps extends React.HTMLProps { + [key: string]: any; row?: boolean; check?: boolean; inline?: boolean; @@ -9,7 +10,7 @@ export type FormGroupProps = React.HTMLProps & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class FormGroup extends React.Component> {} +declare class FormGroup extends React.Component {} export default FormGroup; diff --git a/types/reactstrap/lib/FormText.d.ts b/types/reactstrap/lib/FormText.d.ts index f2fc6f30a6..57f1baef56 100644 --- a/types/reactstrap/lib/FormText.d.ts +++ b/types/reactstrap/lib/FormText.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type FormTextProps = React.HTMLAttributes & { +export interface FormTextProps extends React.HTMLAttributes { + [key: string]: any; inline?: boolean; tag?: React.ReactType; color?: string; className?: string; cssModule?: CSSModule; -} & T; +} -declare class FormText extends React.Component> {} +declare class FormText extends React.Component {} export default FormText; diff --git a/types/reactstrap/lib/Input.d.ts b/types/reactstrap/lib/Input.d.ts index 87415b7e10..05f286b191 100644 --- a/types/reactstrap/lib/Input.d.ts +++ b/types/reactstrap/lib/Input.d.ts @@ -28,7 +28,8 @@ export type InputType = | 'time' | 'color'; -export type InputProps = React.InputHTMLAttributes & { +export interface InputProps extends React.InputHTMLAttributes { + [key: string]: any; type?: InputType; bsSize?: 'lg' | 'sm'; state?: string; @@ -40,7 +41,7 @@ export type InputProps = React.InputHTMLAttributes & { addon?: boolean; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Input extends React.Component> {} +declare class Input extends React.Component {} export default Input; diff --git a/types/reactstrap/lib/InputGroup.d.ts b/types/reactstrap/lib/InputGroup.d.ts index e95b6c5539..0424e42b8b 100644 --- a/types/reactstrap/lib/InputGroup.d.ts +++ b/types/reactstrap/lib/InputGroup.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type InputGroupProps = React.HTMLAttributes & { +export interface InputGroupProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; size?: string; className?: string; cssModule?: CSSModule; -} & T; +} -declare class InputGroup extends React.Component> {} +declare class InputGroup extends React.Component {} export default InputGroup; diff --git a/types/reactstrap/lib/InputGroupAddon.d.ts b/types/reactstrap/lib/InputGroupAddon.d.ts index eec8a6727a..ba46a2856d 100644 --- a/types/reactstrap/lib/InputGroupAddon.d.ts +++ b/types/reactstrap/lib/InputGroupAddon.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type InputGroupAddonProps = React.HTMLAttributes & { +export interface InputGroupAddonProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; addonType: 'prepend' | 'append'; -} & T; +} -declare class InputGroupAddon extends React.Component> {} +declare class InputGroupAddon extends React.Component {} export default InputGroupAddon; diff --git a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts index 888364df14..5e7c8570bf 100644 --- a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts +++ b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts @@ -1,9 +1,9 @@ import * as React from 'react'; import { DropdownProps } from './Dropdown'; -export type InputGroupButtonDropdownProps = DropdownProps & { +export interface InputGroupButtonDropdownProps extends DropdownProps { addonType: 'prepend' | 'append'; -} & T; +} -declare class InputGroupButtonDropdown extends React.Component> {} +declare class InputGroupButtonDropdown extends React.Component {} export default InputGroupButtonDropdown; diff --git a/types/reactstrap/lib/InputGroupText.d.ts b/types/reactstrap/lib/InputGroupText.d.ts index 9e352ea9d8..358f34d96a 100644 --- a/types/reactstrap/lib/InputGroupText.d.ts +++ b/types/reactstrap/lib/InputGroupText.d.ts @@ -1,10 +1,11 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type InputGroupTextProps = React.HTMLAttributes & { +export interface InputGroupTextProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; cssModule?: CSSModule; -} & T; +} -declare class InputGroupText extends React.Component> {} +declare class InputGroupText extends React.Component {} export default InputGroupText; diff --git a/types/reactstrap/lib/Jumbotron.d.ts b/types/reactstrap/lib/Jumbotron.d.ts index d271b63960..cb0f2b4e6e 100644 --- a/types/reactstrap/lib/Jumbotron.d.ts +++ b/types/reactstrap/lib/Jumbotron.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type JumbotronProps = React.HTMLAttributes & { +export interface JumbotronProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; fluid?: boolean; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Jumbotron extends React.Component> {} +declare class Jumbotron extends React.Component {} export default Jumbotron; diff --git a/types/reactstrap/lib/Label.d.ts b/types/reactstrap/lib/Label.d.ts index 89d9a96e48..a2d05c1574 100644 --- a/types/reactstrap/lib/Label.d.ts +++ b/types/reactstrap/lib/Label.d.ts @@ -2,11 +2,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; import { ColumnProps } from './Col'; -type Intermediate = React.LabelHTMLAttributes & { - size?: any; -}; - -export type LabelProps = Intermediate & { +export interface LabelProps extends React.LabelHTMLAttributes { + [key: string]: any; hidden?: boolean; check?: boolean; inline?: boolean; @@ -21,7 +18,7 @@ export type LabelProps = Intermediate & { md?: ColumnProps; lg?: ColumnProps; xl?: ColumnProps; -} & T; +} -declare class Label extends React.Component> {} +declare class Label extends React.Component {} export default Label; diff --git a/types/reactstrap/lib/ListGroup.d.ts b/types/reactstrap/lib/ListGroup.d.ts index 1c2f6739e6..5378409bf7 100644 --- a/types/reactstrap/lib/ListGroup.d.ts +++ b/types/reactstrap/lib/ListGroup.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ListGroupProps = React.HTMLAttributes & { +export interface ListGroupProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; flush?: boolean; className?: string; cssModule?: CSSModule; -} & T; +} -declare class ListGroup extends React.Component> {} +declare class ListGroup extends React.Component {} export default ListGroup; diff --git a/types/reactstrap/lib/ListGroupItem.d.ts b/types/reactstrap/lib/ListGroupItem.d.ts index 54ae820290..84b7b0379a 100644 --- a/types/reactstrap/lib/ListGroupItem.d.ts +++ b/types/reactstrap/lib/ListGroupItem.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ListGroupItemProps = React.HTMLAttributes & { +export interface ListGroupItemProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; active?: boolean; disabled?: boolean; @@ -12,7 +13,7 @@ export type ListGroupItemProps = React.HTMLAttributes & { href?: string; onClick?: React.MouseEventHandler; -} & T; +} -declare class ListGroupItem extends React.Component> {} +declare class ListGroupItem extends React.Component {} export default ListGroupItem; diff --git a/types/reactstrap/lib/ListGroupItemHeading.d.ts b/types/reactstrap/lib/ListGroupItemHeading.d.ts index 6748aaa04c..55cbe8ed70 100644 --- a/types/reactstrap/lib/ListGroupItemHeading.d.ts +++ b/types/reactstrap/lib/ListGroupItemHeading.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ListGroupItemHeadingProps = React.HTMLAttributes & { +export interface ListGroupItemHeadingProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class ListGroupItemHeading extends React.Component> {} +declare class ListGroupItemHeading extends React.Component {} export default ListGroupItemHeading; diff --git a/types/reactstrap/lib/ListGroupItemText.d.ts b/types/reactstrap/lib/ListGroupItemText.d.ts index 667f2cad70..afeffdc77d 100644 --- a/types/reactstrap/lib/ListGroupItemText.d.ts +++ b/types/reactstrap/lib/ListGroupItemText.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ListGroupItemTextProps = React.HTMLAttributes & { +export interface ListGroupItemTextProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class ListGroupItemText extends React.Component> {} +declare class ListGroupItemText extends React.Component {} export default ListGroupItemText; diff --git a/types/reactstrap/lib/Media.d.ts b/types/reactstrap/lib/Media.d.ts index 971df9c22a..782dd8492d 100644 --- a/types/reactstrap/lib/Media.d.ts +++ b/types/reactstrap/lib/Media.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type MediaProps = React.HTMLAttributes & { +export interface MediaProps extends React.HTMLAttributes { + [key: string]: any; body?: boolean; bottom?: boolean; className?: string; @@ -17,7 +18,7 @@ export type MediaProps = React.HTMLAttributes & { src?: string; href?: string; alt?: string; -} & T; +} -declare class Media extends React.Component> {} +declare class Media extends React.Component {} export default Media; diff --git a/types/reactstrap/lib/Modal.d.ts b/types/reactstrap/lib/Modal.d.ts index 42951cf437..f2c901c095 100644 --- a/types/reactstrap/lib/Modal.d.ts +++ b/types/reactstrap/lib/Modal.d.ts @@ -2,7 +2,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; import { FadeProps } from './Fade'; -export type ModalProps = React.HTMLAttributes & { +export interface ModalProps extends React.HTMLAttributes { + [key: string]: any; isOpen?: boolean; autoFocus?: boolean; size?: string; @@ -30,7 +31,7 @@ export type ModalProps = React.HTMLAttributes & { role?: string; unmountOnClose?: boolean; returnFocusAfterClose?: boolean; -} & T; +} -declare class Modal extends React.Component> {} +declare class Modal extends React.Component {} export default Modal; diff --git a/types/reactstrap/lib/ModalBody.d.ts b/types/reactstrap/lib/ModalBody.d.ts index a7c38a1914..9790549041 100644 --- a/types/reactstrap/lib/ModalBody.d.ts +++ b/types/reactstrap/lib/ModalBody.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ModalBodyProps = React.HTMLAttributes & { +export interface ModalBodyProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class ModalBody extends React.Component> {} +declare class ModalBody extends React.Component {} export default ModalBody; diff --git a/types/reactstrap/lib/ModalFooter.d.ts b/types/reactstrap/lib/ModalFooter.d.ts index 8ce9b23cf2..1059ff203d 100644 --- a/types/reactstrap/lib/ModalFooter.d.ts +++ b/types/reactstrap/lib/ModalFooter.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ModalFooterProps = React.HTMLAttributes & { +export interface ModalFooterProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class ModalFooter extends React.Component> {} +declare class ModalFooter extends React.Component {} export default ModalFooter; diff --git a/types/reactstrap/lib/ModalHeader.d.ts b/types/reactstrap/lib/ModalHeader.d.ts index 4ef33e16ad..7e4ceab480 100644 --- a/types/reactstrap/lib/ModalHeader.d.ts +++ b/types/reactstrap/lib/ModalHeader.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ModalHeaderProps = React.HTMLAttributes & { +export interface ModalHeaderProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; wrapTag?: React.ReactType; toggle?: () => void; -} & T; +} -declare class ModalHeader extends React.Component> {} +declare class ModalHeader extends React.Component {} export default ModalHeader; diff --git a/types/reactstrap/lib/Nav.d.ts b/types/reactstrap/lib/Nav.d.ts index bc5fbdb6b9..deeab330be 100644 --- a/types/reactstrap/lib/Nav.d.ts +++ b/types/reactstrap/lib/Nav.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavProps = React.HTMLProps & { +export interface NavProps extends React.HTMLProps { + [key: string]: any; tabs?: boolean; pills?: boolean; vertical?: boolean | string; @@ -13,7 +14,7 @@ export type NavProps = React.HTMLProps & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Nav extends React.Component> {} +declare class Nav extends React.Component {} export default Nav; diff --git a/types/reactstrap/lib/NavItem.d.ts b/types/reactstrap/lib/NavItem.d.ts index ff2ad879c3..57c52ffd22 100644 --- a/types/reactstrap/lib/NavItem.d.ts +++ b/types/reactstrap/lib/NavItem.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavItemProps = React.HTMLAttributes & { +export interface NavItemProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; active?: boolean; className?: string; cssModule?: CSSModule; -} & T; +} -declare class NavItem extends React.Component> {} +declare class NavItem extends React.Component {} export default NavItem; diff --git a/types/reactstrap/lib/NavLink.d.ts b/types/reactstrap/lib/NavLink.d.ts index 4e88666c22..6e0b0253e8 100644 --- a/types/reactstrap/lib/NavLink.d.ts +++ b/types/reactstrap/lib/NavLink.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavLinkProps = React.HTMLProps & { +export interface NavLinkProps extends React.HTMLProps { + [key: string]: any; tag?: React.ReactType; innerRef?: React.Ref; disabled?: boolean; @@ -10,7 +11,7 @@ export type NavLinkProps = React.HTMLProps & { cssModule?: CSSModule; onClick?: React.MouseEventHandler; href?: string; -} & T; +} -declare class NavLink extends React.Component> {} +declare class NavLink extends React.Component {} export default NavLink; diff --git a/types/reactstrap/lib/Navbar.d.ts b/types/reactstrap/lib/Navbar.d.ts index 4dce8fd970..1a86999233 100644 --- a/types/reactstrap/lib/Navbar.d.ts +++ b/types/reactstrap/lib/Navbar.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavbarProps = React.HTMLAttributes & { +export interface NavbarProps extends React.HTMLAttributes { + [key: string]: any; light?: boolean; dark?: boolean; full?: boolean; @@ -13,7 +14,7 @@ export type NavbarProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; expand?: boolean | string; -} & T; +} -declare class Navbar extends React.Component> {} +declare class Navbar extends React.Component {} export default Navbar; diff --git a/types/reactstrap/lib/NavbarBrand.d.ts b/types/reactstrap/lib/NavbarBrand.d.ts index eea7ba15e4..d8b130167f 100644 --- a/types/reactstrap/lib/NavbarBrand.d.ts +++ b/types/reactstrap/lib/NavbarBrand.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavbarBrandProps = React.HTMLProps & { +export interface NavbarBrandProps extends React.HTMLProps { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class NavbarBrand extends React.Component> {} +declare class NavbarBrand extends React.Component {} export default NavbarBrand; diff --git a/types/reactstrap/lib/NavbarToggler.d.ts b/types/reactstrap/lib/NavbarToggler.d.ts index f4e1e212e5..02c8204c45 100644 --- a/types/reactstrap/lib/NavbarToggler.d.ts +++ b/types/reactstrap/lib/NavbarToggler.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type NavbarTogglerProps = React.HTMLProps & { +export interface NavbarTogglerProps extends React.HTMLProps { + [key: string]: any; tag?: React.ReactType; type?: string; className?: string; cssModule?: CSSModule; -} & T; +} -declare class NavbarToggler extends React.Component> {} +declare class NavbarToggler extends React.Component {} export default NavbarToggler; diff --git a/types/reactstrap/lib/Pagination.d.ts b/types/reactstrap/lib/Pagination.d.ts index 5c614bf208..6458b793f3 100644 --- a/types/reactstrap/lib/Pagination.d.ts +++ b/types/reactstrap/lib/Pagination.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type PaginationProps = React.HTMLAttributes & { +export interface PaginationProps extends React.HTMLAttributes { + [key: string]: any; className?: string; listClassName?: string; cssModule?: CSSModule; @@ -9,7 +10,7 @@ export type PaginationProps = React.HTMLAttributes & { tag?: React.ReactType; listTag?: React.ReactType; 'aria-label'?: string; -} & T; +} -declare class Pagination extends React.Component> {} +declare class Pagination extends React.Component {} export default Pagination; diff --git a/types/reactstrap/lib/PaginationItem.d.ts b/types/reactstrap/lib/PaginationItem.d.ts index b2567f5402..2a9ac142b9 100644 --- a/types/reactstrap/lib/PaginationItem.d.ts +++ b/types/reactstrap/lib/PaginationItem.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type PaginationItemProps = React.HTMLAttributes & { +export interface PaginationItemProps extends React.HTMLAttributes { + [key: string]: any; className?: string; cssModule?: CSSModule; active?: boolean; disabled?: boolean; tag?: React.ReactType; -} & T; +} -declare class PaginationItem extends React.Component> {} +declare class PaginationItem extends React.Component {} export default PaginationItem; diff --git a/types/reactstrap/lib/PaginationLink.d.ts b/types/reactstrap/lib/PaginationLink.d.ts index 6849a37aeb..dd693ea413 100644 --- a/types/reactstrap/lib/PaginationLink.d.ts +++ b/types/reactstrap/lib/PaginationLink.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type PaginationLinkProps = React.HTMLProps & { +export interface PaginationLinkProps extends React.HTMLProps { + [key: string]: any; 'aria-label'?: string; className?: string; cssModule?: CSSModule; @@ -10,7 +11,7 @@ export type PaginationLinkProps = React.HTMLProps & { first?: boolean; last?: boolean; tag?: React.ReactType; -} & T; +} -declare class PaginationLink extends React.Component> {} +declare class PaginationLink extends React.Component {} export default PaginationLink; diff --git a/types/reactstrap/lib/Popover.d.ts b/types/reactstrap/lib/Popover.d.ts index 0c23723dc9..88bd22b874 100644 --- a/types/reactstrap/lib/Popover.d.ts +++ b/types/reactstrap/lib/Popover.d.ts @@ -2,7 +2,8 @@ import * as React from 'react'; import * as Popper from 'popper.js'; import { CSSModule } from '../index'; -export type PopoverProps = React.HTMLAttributes & { +export interface PopoverProps extends React.HTMLAttributes { + [key: string]: any; isOpen?: boolean; toggle?: () => void; target: string | HTMLElement; @@ -19,11 +20,11 @@ export type PopoverProps = React.HTMLAttributes & { cssModule?: CSSModule; fade?: boolean; flip?: boolean; -} & T; +} -export type UncontrolledPopoverProps = PopoverProps & { +export interface UncontrolledPopoverProps extends PopoverProps { defaultOpen?: boolean; -}; +} -declare class Popover extends React.Component> {} +declare class Popover extends React.Component {} export default Popover; diff --git a/types/reactstrap/lib/PopoverBody.d.ts b/types/reactstrap/lib/PopoverBody.d.ts index ef274a0558..de7567f059 100644 --- a/types/reactstrap/lib/PopoverBody.d.ts +++ b/types/reactstrap/lib/PopoverBody.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type PopoverBodyProps = React.HTMLAttributes & { +export interface PopoverBodyProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class PopoverBody extends React.Component> {} +declare class PopoverBody extends React.Component {} export default PopoverBody; diff --git a/types/reactstrap/lib/PopoverHeader.d.ts b/types/reactstrap/lib/PopoverHeader.d.ts index 2ee7d5665e..a2f3c79b2b 100644 --- a/types/reactstrap/lib/PopoverHeader.d.ts +++ b/types/reactstrap/lib/PopoverHeader.d.ts @@ -1,11 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type PopoverHeaderProps = React.HTMLAttributes & { +export interface PopoverHeaderProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class PopoverHeader extends React.Component> {} +declare class PopoverHeader extends React.Component {} export default PopoverHeader; diff --git a/types/reactstrap/lib/Progress.d.ts b/types/reactstrap/lib/Progress.d.ts index 3a6b8178fa..a6ffbcaffd 100644 --- a/types/reactstrap/lib/Progress.d.ts +++ b/types/reactstrap/lib/Progress.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ProgressProps = React.HTMLAttributes & { +export interface ProgressProps extends React.HTMLAttributes { + [key: string]: any; bar?: boolean; multi?: boolean; tag?: string; @@ -13,7 +14,7 @@ export type ProgressProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; barClassName?: string; -} & T; +} -declare class Progress extends React.Component> {} +declare class Progress extends React.Component {} export default Progress; diff --git a/types/reactstrap/lib/Row.d.ts b/types/reactstrap/lib/Row.d.ts index c8887e3e12..1f952c6da8 100644 --- a/types/reactstrap/lib/Row.d.ts +++ b/types/reactstrap/lib/Row.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type RowProps = React.HTMLProps & { +export interface RowProps extends React.HTMLProps { + [key: string]: any; className?: string; cssModule?: CSSModule; tag?: React.ReactType; noGutters?: boolean; -} & T; +} -declare class Row extends React.Component> {} +declare class Row extends React.Component {} export default Row; diff --git a/types/reactstrap/lib/Spinner.d.ts b/types/reactstrap/lib/Spinner.d.ts index 3f60d0d77d..aa5542db80 100644 --- a/types/reactstrap/lib/Spinner.d.ts +++ b/types/reactstrap/lib/Spinner.d.ts @@ -1,14 +1,15 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type SpinnerProps = React.HTMLProps & { +export interface SpinnerProps extends React.HTMLProps { + [key: string]: any; tag?: React.ReactType; type?: string; size?: any; color?: string; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Spinner extends React.Component> {} +declare class Spinner extends React.Component {} export default Spinner; diff --git a/types/reactstrap/lib/TabContent.d.ts b/types/reactstrap/lib/TabContent.d.ts index 6597484f9e..ee8b5f7f6f 100644 --- a/types/reactstrap/lib/TabContent.d.ts +++ b/types/reactstrap/lib/TabContent.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type TabContentProps = React.HTMLAttributes & { +export interface TabContentProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; activeTab?: number | string; className?: string; cssModule?: CSSModule; -} & T; +} -declare class TabContent extends React.Component> {} +declare class TabContent extends React.Component {} export default TabContent; diff --git a/types/reactstrap/lib/TabPane.d.ts b/types/reactstrap/lib/TabPane.d.ts index 7f4624e23a..4c578d9db1 100644 --- a/types/reactstrap/lib/TabPane.d.ts +++ b/types/reactstrap/lib/TabPane.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type TabPaneProps = React.HTMLAttributes & { +export interface TabPaneProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; tabId?: number | string; -} & T; +} -declare class TabPane extends React.Component> {} +declare class TabPane extends React.Component {} export default TabPane; diff --git a/types/reactstrap/lib/Table.d.ts b/types/reactstrap/lib/Table.d.ts index 8e59b6a13e..0d671f6097 100644 --- a/types/reactstrap/lib/Table.d.ts +++ b/types/reactstrap/lib/Table.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type TableProps = React.HTMLAttributes & { +export interface TableProps extends React.HTMLAttributes { + [key: string]: any; className?: string; cssModule?: CSSModule; size?: string; @@ -14,7 +15,7 @@ export type TableProps = React.HTMLAttributes & { responsive?: boolean; tag?: React.ReactType; responsiveTag?: React.ReactType; -} & T; +} -declare class Table extends React.Component> {} +declare class Table extends React.Component {} export default Table; diff --git a/types/reactstrap/lib/Tag.d.ts b/types/reactstrap/lib/Tag.d.ts index dbec4c3516..49ef03fbee 100644 --- a/types/reactstrap/lib/Tag.d.ts +++ b/types/reactstrap/lib/Tag.d.ts @@ -1,13 +1,14 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type TagProps = React.HTMLAttributes & { +export interface TagProps extends React.HTMLAttributes { + [key: string]: any; color?: string; pill?: boolean; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} & T; +} -declare class Tag extends React.Component> {} +declare class Tag extends React.Component {} export default Tag; diff --git a/types/reactstrap/lib/Toast.d.ts b/types/reactstrap/lib/Toast.d.ts index 44824bd155..9828ad8468 100644 --- a/types/reactstrap/lib/Toast.d.ts +++ b/types/reactstrap/lib/Toast.d.ts @@ -2,7 +2,8 @@ import * as React from "react"; import { CSSModule } from "../index"; import { FadeProps } from "./Fade"; -export type ToastProps = React.HTMLAttributes & { +export interface ToastProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; @@ -10,7 +11,7 @@ export type ToastProps = React.HTMLAttributes & { isOpen?: boolean; fade?: boolean; transition?: FadeProps; -} & T; +} -declare class Toast extends React.Component> {} +declare class Toast extends React.Component {} export default Toast; diff --git a/types/reactstrap/lib/ToastBody.d.ts b/types/reactstrap/lib/ToastBody.d.ts index 55ae7ae502..9b9cc2ea81 100644 --- a/types/reactstrap/lib/ToastBody.d.ts +++ b/types/reactstrap/lib/ToastBody.d.ts @@ -1,12 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ToastBodyProps = React.HTMLAttributes & { +export interface ToastBodyProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; innerRef?: React.Ref; -} & T; +} -declare class ToastBody extends React.Component> {} +declare class ToastBody extends React.Component {} export default ToastBody; diff --git a/types/reactstrap/lib/ToastHeader.d.ts b/types/reactstrap/lib/ToastHeader.d.ts index 3fe589c11e..223a9d21fd 100644 --- a/types/reactstrap/lib/ToastHeader.d.ts +++ b/types/reactstrap/lib/ToastHeader.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export type ToastHeaderProps = React.HTMLAttributes & { +export interface ToastHeaderProps extends React.HTMLAttributes { + [key: string]: any; tag?: React.ReactType; className?: string; cssModule?: CSSModule; @@ -11,7 +12,7 @@ export type ToastHeaderProps = React.HTMLAttributes & { close?: React.ReactNode; charCode?: string | number; closeAriaLabel?: string; -} & T; +} -declare class ToastHeader extends React.Component> {} +declare class ToastHeader extends React.Component {} export default ToastHeader; diff --git a/types/reactstrap/lib/Tooltip.d.ts b/types/reactstrap/lib/Tooltip.d.ts index f7105362a7..f319427a2e 100644 --- a/types/reactstrap/lib/Tooltip.d.ts +++ b/types/reactstrap/lib/Tooltip.d.ts @@ -2,7 +2,8 @@ import * as React from 'react'; import * as Popper from 'popper.js'; import { CSSModule } from '../index'; -export type UncontrolledProps = React.HTMLAttributes & { +export interface UncontrolledTooltipProps extends React.HTMLAttributes { + [key: string]: any; target: string | HTMLElement; container?: string | HTMLElement; delay?: number | {show: number, hide: number}; @@ -14,13 +15,12 @@ export type UncontrolledProps = React.HTMLAttributes & { cssModule?: CSSModule; fade?: boolean; flip?: boolean; -} & T; -export type UncontrolledTooltipProps = UncontrolledProps; +} -export type TooltipProps = UncontrolledTooltipProps & { +export interface TooltipProps extends UncontrolledTooltipProps { toggle?: () => void; isOpen?: boolean; -}; +} -declare class Tooltip extends React.Component> {} +declare class Tooltip extends React.Component {} export default Tooltip; diff --git a/types/reactstrap/lib/Uncontrolled.d.ts b/types/reactstrap/lib/Uncontrolled.d.ts index f20db2f896..2a52fdf05d 100644 --- a/types/reactstrap/lib/Uncontrolled.d.ts +++ b/types/reactstrap/lib/Uncontrolled.d.ts @@ -8,13 +8,13 @@ import { UncontrolledCollapseProps } from './Collapse'; import { UncontrolledCarouselProps } from './Carousel'; import { UncontrolledPopoverProps } from './Popover'; -export class UncontrolledAlert extends React.Component> {} -export class UncontrolledButtonDropdown extends React.Component> {} -export class UncontrolledDropdown extends React.Component> {} -export class UncontrolledTooltip extends React.Component> {} -export class UncontrolledCollapse extends React.Component> {} -export class UncontrolledCarousel extends React.Component> {} -export class UncontrolledPopover extends React.Component> {} +export class UncontrolledAlert extends React.Component {} +export class UncontrolledButtonDropdown extends React.Component {} +export class UncontrolledDropdown extends React.Component {} +export class UncontrolledTooltip 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';