Merge pull request #26094 from FaithForHumans/reactstrap_generics

[reactstrap] Replacing components with generics.
This commit is contained in:
Benjamin Lichtman
2018-05-31 15:40:02 -07:00
committed by GitHub
76 changed files with 861 additions and 328 deletions
+235 -77
View File
@@ -14,80 +14,238 @@ export interface CSSModule {
[className: string]: string;
}
export { default as Alert, AlertProps } from './lib/Alert';
export { default as Badge, BadgeProps } from './lib/Badge';
export { default as Breadcrumb, BreadcrumbProps } from './lib/Breadcrumb';
export { default as BreadcrumbItem, BreadcrumbItemProps } from './lib/BreadcrumbItem';
export { default as Button, ButtonProps } from './lib/Button';
export { default as ButtonDropdown, ButtonDropdownProps } from './lib/ButtonDropdown';
export { default as ButtonGroup, ButtonGroupProps } from './lib/ButtonGroup';
export { default as ButtonToolbar, ButtonToolbarProps } from './lib/ButtonToolbar';
export { default as Card, CardProps } from './lib/Card';
export { default as CardBody, CardBodyProps } from './lib/CardBody';
export { default as CardColumns, CardColumnsProps } from './lib/CardColumns';
export { default as CardDeck, CardDeckProps } from './lib/CardDeck';
export { default as CardFooter, CardFooterProps } from './lib/CardFooter';
export { default as CardGroup, CardGroupProps } from './lib/CardGroup';
export { default as CardHeader, CardHeaderProps } from './lib/CardHeader';
export { default as CardImg, CardImgProps } from './lib/CardImg';
export { default as CardImgOverlay, CardImgOverlayProps } from './lib/CardImgOverlay';
export { default as CardLink, CardLinkProps } from './lib/CardLink';
export { default as CardSubtitle, CardSubtitleProps } from './lib/CardSubtitle';
export { default as CardText, CardTextProps } from './lib/CardText';
export { default as CardTitle, CardTitleProps } from './lib/CardTitle';
export { default as Carousel, CarouselProps } from './lib/Carousel';
export { default as CarouselItem, CarouselItemProps } from './lib/CarouselItem';
export { default as CarouselControl, CarouselControlProps } from './lib/CarouselControl';
export { default as CarouselIndicators, CarouselIndicatorsProps } from './lib/CarouselIndicators';
export { default as CarouselCaption, CarouselCaptionProps } from './lib/CarouselCaption';
export { default as Col, ColProps } from './lib/Col';
export { default as Collapse, CollapseProps } from './lib/Collapse';
export { default as Container, ContainerProps } from './lib/Container';
export { default as Dropdown, DropdownProps } from './lib/Dropdown';
export { default as DropdownItem, DropdownItemProps } from './lib/DropdownItem';
export { default as DropdownMenu, DropdownMenuProps } from './lib/DropdownMenu';
export { default as DropdownToggle, DropdownToggleProps } from './lib/DropdownToggle';
export { default as Fade, FadeProps } from './lib/Fade';
export { default as Form, FormProps } from './lib/Form';
export { default as FormFeedback, FormFeedbackProps } from './lib/FormFeedback';
export { default as FormGroup, FormGroupProps } from './lib/FormGroup';
export { default as FormText, FormTextProps } from './lib/FormText';
export { default as Input, InputProps } from './lib/Input';
export { default as InputGroup, InputGroupProps } from './lib/InputGroup';
export { default as InputGroupAddon, InputGroupAddonProps } from './lib/InputGroupAddon';
export { default as InputGroupButtonDropdown, InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown';
export { default as InputGroupText, InputGroupTextProps } from './lib/InputGroupText';
export { default as Jumbotron, JumbotronProps } from './lib/Jumbotron';
export { default as Label, LabelProps } from './lib/Label';
export { default as ListGroup, ListGroupProps } from './lib/ListGroup';
export { default as ListGroupItem, ListGroupItemProps } from './lib/ListGroupItem';
export { default as ListGroupItemHeading, ListGroupItemHeadingProps } from './lib/ListGroupItemHeading';
export { default as ListGroupItemText, ListGroupItemTextProps } from './lib/ListGroupItemText';
export { default as Media, MediaProps } from './lib/Media';
export { default as Modal, ModalProps } from './lib/Modal';
export { default as ModalBody, ModalBodyProps } from './lib/ModalBody';
export { default as ModalFooter, ModalFooterProps } from './lib/ModalFooter';
export { default as ModalHeader, ModalHeaderProps } from './lib/ModalHeader';
export { default as Nav, NavProps } from './lib/Nav';
export { default as Navbar, NavbarProps } from './lib/Navbar';
export { default as NavbarBrand, NavbarBrandProps } from './lib/NavbarBrand';
export { default as NavbarToggler, NavbarTogglerProps } from './lib/NavbarToggler';
export { default as NavItem, NavItemProps } from './lib/NavItem';
export { default as NavLink, NavLinkProps } from './lib/NavLink';
export { default as Pagination, PaginationProps } from './lib/Pagination';
export { default as PaginationItem, PaginationItemProps } from './lib/PaginationItem';
export { default as PaginationLink, PaginationLinkProps } from './lib/PaginationLink';
export { default as Popover, PopoverProps } from './lib/Popover';
export { default as PopoverBody, PopoverBodyProps } from './lib/PopoverBody';
export { default as PopoverHeader, PopoverHeaderProps } from './lib/PopoverHeader';
export { default as Progress, ProgressProps } from './lib/Progress';
export { default as Row, RowProps } from './lib/Row';
export { default as TabContent, TabContentProps } from './lib/TabContent';
export { default as Table, TableProps } from './lib/Table';
export { default as TabPane, TabPaneProps } from './lib/TabPane';
export { default as Tag, TagProps } from './lib/Tag';
export { default as Tooltip, TooltipProps } from './lib/Tooltip';
export { UncontrolledAlert, UncontrolledAlertProps } from './lib/Uncontrolled';
export { UncontrolledButtonDropdown, UncontrolledButtonDropdownProps } from './lib/Uncontrolled';
export { UncontrolledDropdown, UncontrolledDropdownProps } from './lib/Uncontrolled';
export { UncontrolledTooltip, UncontrolledTooltipProps } from './lib/Uncontrolled';
import { default as Alert_ } from './lib/Alert';
export class Alert<T = {}> extends Alert_<T> {}
export { AlertProps } from './lib/Alert';
import { default as Badge_ } from './lib/Badge';
export class Badge<T = {}> extends Badge_<T> {}
export { BadgeProps } from './lib/Badge';
import { default as Breadcrumb_ } from './lib/Breadcrumb';
export class Breadcrumb<T = {}> extends Breadcrumb_<T> {}
export { BreadcrumbProps } from './lib/Breadcrumb';
import { default as BreadcrumbItem_ } from './lib/BreadcrumbItem';
export class BreadcrumbItem<T = {}> extends BreadcrumbItem_<T> {}
export { BreadcrumbItemProps } from './lib/BreadcrumbItem';
import { default as Button_ } from './lib/Button';
export class Button<T = {}> extends Button_<T> {}
export { ButtonProps } from './lib/Button';
import { default as ButtonDropdown_ } from './lib/ButtonDropdown';
export class ButtonDropdown<T = {}> extends ButtonDropdown_<T> {}
export { ButtonDropdownProps } from './lib/ButtonDropdown';
import { default as ButtonGroup_ } from './lib/ButtonGroup';
export class ButtonGroup<T = {}> extends ButtonGroup_<T> {}
export { ButtonGroupProps } from './lib/ButtonGroup';
import { default as ButtonToolbar_ } from './lib/ButtonToolbar';
export class ButtonToolbar<T = {}> extends ButtonToolbar_<T> {}
export { ButtonToolbarProps } from './lib/ButtonToolbar';
import { default as Card_ } from './lib/Card';
export class Card<T = {}> extends Card_<T> {}
export { CardProps } from './lib/Card';
import { default as CardBody_ } from './lib/CardBody';
export class CardBody<T = {}> extends CardBody_<T> {}
export { CardBodyProps } from './lib/CardBody';
import { default as CardColumns_ } from './lib/CardColumns';
export class CardColumns<T = {}> extends CardColumns_<T> {}
export { CardColumnsProps } from './lib/CardColumns';
import { default as CardDeck_ } from './lib/CardDeck';
export class CardDeck<T = {}> extends CardDeck_<T> {}
export { CardDeckProps } from './lib/CardDeck';
import { default as CardFooter_ } from './lib/CardFooter';
export class CardFooter<T = {}> extends CardFooter_<T> {}
export { CardFooterProps } from './lib/CardFooter';
import { default as CardGroup_ } from './lib/CardGroup';
export class CardGroup<T = {}> extends CardGroup_<T> {}
export { CardGroupProps } from './lib/CardGroup';
import { default as CardHeader_ } from './lib/CardHeader';
export class CardHeader<T = {}> extends CardHeader_<T> {}
export { CardHeaderProps } from './lib/CardHeader';
import { default as CardImg_ } from './lib/CardImg';
export class CardImg<T = {}> extends CardImg_<T> {}
export { CardImgProps } from './lib/CardImg';
import { default as CardImgOverlay_ } from './lib/CardImgOverlay';
export class CardImgOverlay<T = {}> extends CardImgOverlay_<T> {}
export { CardImgOverlayProps } from './lib/CardImgOverlay';
import { default as CardLink_ } from './lib/CardLink';
export class CardLink<T = {}> extends CardLink_<T> {}
export { CardLinkProps } from './lib/CardLink';
import { default as CardSubtitle_ } from './lib/CardSubtitle';
export class CardSubtitle<T = {}> extends CardSubtitle_<T> {}
export { CardSubtitleProps } from './lib/CardSubtitle';
import { default as CardText_ } from './lib/CardText';
export class CardText<T = {}> extends CardText_<T> {}
export { CardTextProps } from './lib/CardText';
import { default as CardTitle_ } from './lib/CardTitle';
export class CardTitle<T = {}> extends CardTitle_<T> {}
export { CardTitleProps } from './lib/CardTitle';
import { default as Carousel_ } from './lib/Carousel';
export class Carousel<T = {}> extends Carousel_<T> {}
export { CarouselProps } from './lib/Carousel';
import { default as CarouselItem_ } from './lib/CarouselItem';
export class CarouselItem<T = {}> extends CarouselItem_<T> {}
export { CarouselItemProps } from './lib/CarouselItem';
import { default as CarouselControl_ } from './lib/CarouselControl';
export class CarouselControl<T = {}> extends CarouselControl_<T> {}
export { CarouselControlProps } from './lib/CarouselControl';
import { default as CarouselIndicators_ } from './lib/CarouselIndicators';
export class CarouselIndicators<T = {}> extends CarouselIndicators_<T> {}
export { CarouselIndicatorsProps } from './lib/CarouselIndicators';
import { default as CarouselCaption_ } from './lib/CarouselCaption';
export class CarouselCaption<T = {}> extends CarouselCaption_<T> {}
export { CarouselCaptionProps } from './lib/CarouselCaption';
import { default as Col_ } from './lib/Col';
export class Col<T = {}> extends Col_<T> {}
export { ColProps } from './lib/Col';
import { default as Collapse_ } from './lib/Collapse';
export class Collapse<T = {}> extends Collapse_<T> {}
export { CollapseProps } from './lib/Collapse';
import { default as Container_ } from './lib/Container';
export class Container<T = {}> extends Container_<T> {}
export { ContainerProps } from './lib/Container';
import { default as Dropdown_ } from './lib/Dropdown';
export class Dropdown<T = {}> extends Dropdown_<T> {}
export { DropdownProps } from './lib/Dropdown';
import { default as DropdownItem_ } from './lib/DropdownItem';
export class DropdownItem<T = {}> extends DropdownItem_<T> {}
export { DropdownItemProps } from './lib/DropdownItem';
import { default as DropdownMenu_ } from './lib/DropdownMenu';
export class DropdownMenu<T = {}> extends DropdownMenu_<T> {}
export { DropdownMenuProps } from './lib/DropdownMenu';
import { default as DropdownToggle_ } from './lib/DropdownToggle';
export class DropdownToggle<T = {}> extends DropdownToggle_<T> {}
export { DropdownToggleProps } from './lib/DropdownToggle';
import { default as Fade_ } from './lib/Fade';
export class Fade<T = {}> extends Fade_<T> {}
export { FadeProps } from './lib/Fade';
import { default as Form_ } from './lib/Form';
export class Form<T = {}> extends Form_<T> {}
export { FormProps } from './lib/Form';
import { default as FormFeedback_ } from './lib/FormFeedback';
export class FormFeedback<T = {}> extends FormFeedback_<T> {}
export { FormFeedbackProps } from './lib/FormFeedback';
import { default as FormGroup_ } from './lib/FormGroup';
export class FormGroup<T = {}> extends FormGroup_<T> {}
export { FormGroupProps } from './lib/FormGroup';
import { default as FormText_ } from './lib/FormText';
export class FormText<T = {}> extends FormText_<T> {}
export { FormTextProps } from './lib/FormText';
import { default as Input_ } from './lib/Input';
export class Input<T = {}> extends Input_<T> {}
export { InputProps } from './lib/Input';
import { default as InputGroup_ } from './lib/InputGroup';
export class InputGroup<T = {}> extends InputGroup_<T> {}
export { InputGroupProps } from './lib/InputGroup';
import { default as InputGroupAddon_ } from './lib/InputGroupAddon';
export class InputGroupAddon<T = {}> extends InputGroupAddon_<T> {}
export { InputGroupAddonProps } from './lib/InputGroupAddon';
import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown';
export class InputGroupButtonDropdown<T = {}> extends InputGroupButtonDropdown_<T> {}
export { InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown';
import { default as InputGroupText_ } from './lib/InputGroupText';
export class InputGroupText<T = {}> extends InputGroupText_<T> {}
export { InputGroupTextProps } from './lib/InputGroupText';
import { default as Jumbotron_ } from './lib/Jumbotron';
export class Jumbotron<T = {}> extends Jumbotron_<T> {}
export { JumbotronProps } from './lib/Jumbotron';
import { default as Label_ } from './lib/Label';
export class Label<T = {}> extends Label_<T> {}
export { LabelProps } from './lib/Label';
import { default as ListGroup_ } from './lib/ListGroup';
export class ListGroup<T = {}> extends ListGroup_<T> {}
export { ListGroupProps } from './lib/ListGroup';
import { default as ListGroupItem_ } from './lib/ListGroupItem';
export class ListGroupItem<T = {}> extends ListGroupItem_<T> {}
export { ListGroupItemProps } from './lib/ListGroupItem';
import { default as ListGroupItemHeading_ } from './lib/ListGroupItemHeading';
export class ListGroupItemHeading<T = {}> extends ListGroupItemHeading_<T> {}
export { ListGroupItemHeadingProps } from './lib/ListGroupItemHeading';
import { default as ListGroupItemText_ } from './lib/ListGroupItemText';
export class ListGroupItemText<T = {}> extends ListGroupItemText_<T> {}
export { ListGroupItemTextProps } from './lib/ListGroupItemText';
import { default as Media_ } from './lib/Media';
export class Media<T = {}> extends Media_<T> {}
export { MediaProps } from './lib/Media';
import { default as Modal_ } from './lib/Modal';
export class Modal<T = {}> extends Modal_<T> {}
export { ModalProps } from './lib/Modal';
import { default as ModalBody_ } from './lib/ModalBody';
export class ModalBody<T = {}> extends ModalBody_<T> {}
export { ModalBodyProps } from './lib/ModalBody';
import { default as ModalFooter_ } from './lib/ModalFooter';
export class ModalFooter<T = {}> extends ModalFooter_<T> {}
export { ModalFooterProps } from './lib/ModalFooter';
import { default as ModalHeader_ } from './lib/ModalHeader';
export class ModalHeader<T = {}> extends ModalHeader_<T> {}
export { ModalHeaderProps } from './lib/ModalHeader';
import { default as Nav_ } from './lib/Nav';
export class Nav<T = {}> extends Nav_<T> {}
export { NavProps } from './lib/Nav';
import { default as Navbar_ } from './lib/Navbar';
export class Navbar<T = {}> extends Navbar_<T> {}
export { NavbarProps } from './lib/Navbar';
import { default as NavbarBrand_ } from './lib/NavbarBrand';
export class NavbarBrand<T = {}> extends NavbarBrand_<T> {}
export { NavbarBrandProps } from './lib/NavbarBrand';
import { default as NavbarToggler_ } from './lib/NavbarToggler';
export class NavbarToggler<T = {}> extends NavbarToggler_<T> {}
export { NavbarTogglerProps } from './lib/NavbarToggler';
import { default as NavItem_ } from './lib/NavItem';
export class NavItem<T = {}> extends NavItem_<T> {}
export { NavItemProps } from './lib/NavItem';
import { default as NavLink_ } from './lib/NavLink';
export class NavLink<T = {}> extends NavLink_<T> {}
export { NavLinkProps } from './lib/NavLink';
import { default as Pagination_ } from './lib/Pagination';
export class Pagination<T = {}> extends Pagination_<T> {}
export { PaginationProps } from './lib/Pagination';
import { default as PaginationItem_ } from './lib/PaginationItem';
export class PaginationItem<T = {}> extends PaginationItem_<T> {}
export { PaginationItemProps } from './lib/PaginationItem';
import { default as PaginationLink_ } from './lib/PaginationLink';
export class PaginationLink<T = {}> extends PaginationLink_<T> {}
export { PaginationLinkProps } from './lib/PaginationLink';
import { default as Popover_ } from './lib/Popover';
export class Popover<T = {}> extends Popover_<T> {}
export { PopoverProps } from './lib/Popover';
import { default as PopoverBody_ } from './lib/PopoverBody';
export class PopoverBody<T = {}> extends PopoverBody_<T> {}
export { PopoverBodyProps } from './lib/PopoverBody';
import { default as PopoverHeader_ } from './lib/PopoverHeader';
export class PopoverHeader<T = {}> extends PopoverHeader_<T> {}
export { PopoverHeaderProps } from './lib/PopoverHeader';
import { default as Progress_ } from './lib/Progress';
export class Progress<T = {}> extends Progress_<T> {}
export { ProgressProps } from './lib/Progress';
import { default as Row_ } from './lib/Row';
export class Row<T = {}> extends Row_<T> {}
export { RowProps } from './lib/Row';
import { default as TabContent_ } from './lib/TabContent';
export class TabContent<T = {}> extends TabContent_<T> {}
export { TabContentProps } from './lib/TabContent';
import { default as Table_ } from './lib/Table';
export class Table<T = {}> extends Table_<T> {}
export { TableProps } from './lib/Table';
import { default as TabPane_ } from './lib/TabPane';
export class TabPane<T = {}> extends TabPane_<T> {}
export { TabPaneProps } from './lib/TabPane';
import { default as Tag_ } from './lib/Tag';
export class Tag<T = {}> extends Tag_<T> {}
export { TagProps } from './lib/Tag';
import { default as Tooltip_ } from './lib/Tooltip';
export class Tooltip<T = {}> extends Tooltip_<T> {}
export { TooltipProps } from './lib/Tooltip';
import {
UncontrolledAlert as UncontrolledAlert_,
UncontrolledButtonDropdown as UncontrolledButtonDropdown_,
UncontrolledDropdown as UncontrolledDropdown_,
UncontrolledTooltip as UncontrolledTooltip_
} from './lib/Uncontrolled';
export class UncontrolledAlert<T = {}> extends UncontrolledAlert_<T> {}
export class UncontrolledButtonDropdown<T = {}> extends UncontrolledButtonDropdown_<T> {}
export class UncontrolledDropdown<T = {}> extends UncontrolledDropdown_<T> {}
export class UncontrolledTooltip<T = {}> extends UncontrolledTooltip_<T> {}
export {
UncontrolledButtonDropdownProps,
UncontrolledAlertProps,
UncontrolledDropdownProps,
UncontrolledTooltipProps
} from './lib/Uncontrolled';
+7 -8
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface UncontrolledProps extends React.HTMLAttributes<HTMLElement> {
export type UncontrolledProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
className?: string;
cssModule?: CSSModule;
color?: string;
@@ -8,15 +9,13 @@ export interface UncontrolledProps extends React.HTMLAttributes<HTMLElement> {
transitionAppearTimeout?: number;
transitionEnterTimeout?: number;
transitionLeaveTimeout?: number;
}
export interface UncontrolledAlertProps extends UncontrolledProps {
/* intentionally blank */
}
} & T;
export type UncontrolledAlertProps<T = {}> = UncontrolledProps<T>;
export interface AlertProps extends UncontrolledAlertProps {
export type AlertProps<T = {}> = UncontrolledAlertProps<T> & {
isOpen?: boolean;
toggle?: () => void;
}
};
declare const Alert: React.StatelessComponent<AlertProps>;
declare class Alert<T = {[key: string]: any}> extends React.Component<AlertProps<T>> {}
export default Alert;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface BadgeProps extends React.HTMLAttributes<HTMLElement> {
export type BadgeProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
color?: string;
pill?: boolean;
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Badge: React.StatelessComponent<BadgeProps>;
declare class Badge<T = {[key: string]: any}> extends React.Component<BadgeProps<T>> {}
export default Badge;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
export type BreadcrumbProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: string;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Breadcrumb: React.StatelessComponent<BreadcrumbProps>;
declare class Breadcrumb<T = {[key: string]: any}> extends React.Component<BreadcrumbProps<T>> {}
export default Breadcrumb;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLElement> {
export type BreadcrumbItemProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
active?: boolean;
className?: string;
@@ -8,7 +9,7 @@ export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLElement> {
// if a is passed as a string
// this could be href
[others: string]: any;
}
} & T;
declare const BreadcrumbItem: React.StatelessComponent<BreadcrumbItemProps>;
declare class BreadcrumbItem<T = {[key: string]: any}> extends React.Component<BreadcrumbItemProps<T>> {}
export default BreadcrumbItem;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ButtonProps extends React.HTMLProps<HTMLButtonElement> {
export type ButtonProps<T = {}> = React.HTMLProps<HTMLButtonElement> & {
outline?: boolean;
active?: boolean;
block?: boolean;
@@ -16,7 +16,7 @@ export interface ButtonProps extends React.HTMLProps<HTMLButtonElement> {
style?: React.CSSProperties;
cssModule?: CSSModule;
}
} & T;
declare class Button extends React.Component<ButtonProps> {}
declare class Button<T = {[key: string]: any}> extends React.Component<ButtonProps<T>> {}
export default Button;
+5 -10
View File
@@ -1,15 +1,10 @@
import * as React from 'react';
import { UncontrolledDropdownProps, DropdownProps } from './Dropdown';
export interface UncontrolledProps extends UncontrolledDropdownProps {
/* intentionally blank */
}
export interface UncontrolledButtonDropdownProps extends UncontrolledProps {
/* intentionally blank */
}
export type UncontrolledProps<T = {}> = UncontrolledDropdownProps<T>;
export type UncontrolledButtonDropdownProps<T = {}> = UncontrolledProps<T>;
export interface ButtonDropdownProps extends DropdownProps {
/* intentionally blank */
}
export type ButtonDropdownProps<T = {}> = DropdownProps<T>;
declare const ButtonDropdown: React.StatelessComponent<ButtonDropdownProps>;
declare class ButtonDropdown<T = {[key: string]: any}> extends React.Component<ButtonDropdownProps<T>> {}
export default ButtonDropdown;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ButtonGroupProps extends React.HTMLAttributes<HTMLElement> {
export type ButtonGroupProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
'aria-label'?: string;
className?: string;
@@ -8,7 +9,7 @@ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLElement> {
role?: string;
size?: string;
vertical?: boolean;
}
} & T;
declare const ButtonGroup: React.StatelessComponent<ButtonGroupProps>;
declare class ButtonGroup<T = {[key: string]: any}> extends React.Component<ButtonGroupProps<T>> {}
export default ButtonGroup;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ButtonToolbarProps extends React.HTMLAttributes<HTMLElement> {
export type ButtonToolbarProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
'aria-label'?: string;
className?: string;
cssModule?: CSSModule;
role?: string;
}
} & T;
declare const ButtonToolbar: React.StatelessComponent<ButtonToolbarProps>;
declare class ButtonToolbar<T = {[key: string]: any}> extends React.Component<ButtonToolbarProps<T>> {}
export default ButtonToolbar;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardProps extends React.HTMLAttributes<HTMLElement> {
export type CardProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
inverse?: boolean;
color?: string;
@@ -10,7 +11,7 @@ export interface CardProps extends React.HTMLAttributes<HTMLElement> {
className?: string;
cssModule?: CSSModule;
style?: React.CSSProperties;
}
} & T;
declare const Card: React.StatelessComponent<CardProps>;
declare class Card<T = {[key: string]: any}> extends React.Component<CardProps<T>> {}
export default Card;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardBodyProps extends React.HTMLAttributes<HTMLElement> {
export type CardBodyProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardBody: React.StatelessComponent<CardBodyProps>;
declare class CardBody<T = {[key: string]: any}> extends React.Component<CardBodyProps<T>> {}
export default CardBody;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardColumnsProps extends React.HTMLAttributes<HTMLElement> {
export type CardColumnsProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardColumns: React.StatelessComponent<CardColumnsProps>;
declare class CardColumns<T = {[key: string]: any}> extends React.Component<CardColumnsProps<T>> {}
export default CardColumns;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardDeckProps extends React.HTMLAttributes<HTMLElement> {
export type CardDeckProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardDeck: React.StatelessComponent<CardDeckProps>;
declare class CardDeck<T = {[key: string]: any}> extends React.Component<CardDeckProps<T>> {}
export default CardDeck;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
export type CardFooterProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardFooter: React.StatelessComponent<CardFooterProps>;
declare class CardFooter<T = {[key: string]: any}> extends React.Component<CardFooterProps<T>> {}
export default CardFooter;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardGroupProps extends React.HTMLAttributes<HTMLElement> {
export type CardGroupProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardGroup: React.StatelessComponent<CardGroupProps>;
declare class CardGroup<T = {[key: string]: any}> extends React.Component<CardGroupProps<T>> {}
export default CardGroup;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
export type CardHeaderProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardHeader: React.StatelessComponent<CardHeaderProps>;
declare class CardHeader<T = {[key: string]: any}> extends React.Component<CardHeaderProps<T>> {}
export default CardHeader;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardImgProps extends React.HTMLAttributes<HTMLElement> {
export type CardImgProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
top?: boolean;
bottom?: boolean;
@@ -10,7 +11,7 @@ export interface CardImgProps extends React.HTMLAttributes<HTMLElement> {
width?: string;
height?: string;
alt?: string;
}
} & T;
declare const CardImg: React.StatelessComponent<CardImgProps>;
declare class CardImg<T = {[key: string]: any}> extends React.Component<CardImgProps<T>> {}
export default CardImg;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardImgOverlayProps extends React.HTMLAttributes<HTMLElement> {
export type CardImgOverlayProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardImgOverlay: React.StatelessComponent<CardImgOverlayProps>;
declare class CardImgOverlay<T = {[key: string]: any}> extends React.Component<CardImgOverlayProps<T>> {}
export default CardImgOverlay;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardLinkProps extends React.HTMLAttributes<HTMLElement> {
export type CardLinkProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
innerRef?: React.Ref<HTMLAnchorElement>;
className?: string;
cssModule?: CSSModule;
href?: string;
}
} & T;
declare const CardLink: React.StatelessComponent<CardLinkProps>;
declare class CardLink<T = {[key: string]: any}> extends React.Component<CardLinkProps<T>> {}
export default CardLink;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardSubtitleProps extends React.HTMLAttributes<HTMLElement> {
export type CardSubtitleProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardSubtitle: React.StatelessComponent<CardSubtitleProps>;
declare class CardSubtitle<T = {[key: string]: any}> extends React.Component<CardSubtitleProps<T>> {}
export default CardSubtitle;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardTextProps extends React.HTMLAttributes<HTMLElement> {
export type CardTextProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardText: React.StatelessComponent<CardTextProps>;
declare class CardText<T = {[key: string]: any}> extends React.Component<CardTextProps<T>> {}
export default CardText;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CardTitleProps extends React.HTMLAttributes<HTMLElement> {
export type CardTitleProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const CardTitle: React.StatelessComponent<CardTitleProps>;
declare class CardTitle<T = {[key: string]: any}> extends React.Component<CardTitleProps<T>> {}
export default CardTitle;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CarouselProps extends React.HTMLProps<HTMLElement> {
export type CarouselProps<T = {}> = React.HTMLProps<HTMLElement> & {
activeIndex?: number;
next: () => void;
previous: () => void;
@@ -13,7 +13,7 @@ export interface CarouselProps extends React.HTMLProps<HTMLElement> {
mouseExit?: () => void;
slide?: boolean;
cssModule?: CSSModule
}
} & T;
declare class Carousel extends React.Component<CarouselProps> {}
declare class Carousel<T = {[key: string]: any}> extends React.Component<CarouselProps<T>> {}
export default Carousel;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CarouselCaptionProps extends React.HTMLProps<HTMLElement> {
export type CarouselCaptionProps<T = {}> = React.HTMLProps<HTMLElement> & {
captionHeader?: string;
captionText: string;
cssModule?: CSSModule;
}
} & T;
declare const CarouselCaption: React.StatelessComponent<CarouselCaptionProps>;
declare class CarouselCaption<T = {[key: string]: any}> extends React.Component<CarouselCaptionProps<T>> {}
export default CarouselCaption;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CarouselControlProps extends React.HTMLProps<HTMLElement> {
export type CarouselControlProps<T = {}> = React.HTMLProps<HTMLElement> & {
direction: 'prev' | 'next';
onClickHandler: () => void;
cssModule?: CSSModule;
directionText: string;
}
} & T;
declare const CarouselControl: React.StatelessComponent<CarouselControlProps>;
declare class CarouselControl<T = {[key: string]: any}> extends React.Component<CarouselControlProps<T>> {}
export default CarouselControl;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CarouselIndicatorsProps extends React.HTMLProps<HTMLElement> {
export type CarouselIndicatorsProps<T = {}> = React.HTMLProps<HTMLElement> & {
items: object[];
activeIndex: number;
cssModule?: CSSModule;
onClickHandler: (idx: number) => void;
}
} & T;
declare const CarouselIndicators: React.StatelessComponent<CarouselIndicatorsProps>;
declare class CarouselIndicators<T = {[key: string]: any}> extends React.Component<CarouselIndicatorsProps<T>> {}
export default CarouselIndicators;
+3 -3
View File
@@ -10,12 +10,12 @@ export interface Transition {
onExited?: () => void;
}
export interface CarouselItemProps extends React.HTMLProps<HTMLElement>, Transition {
export type CarouselItemProps<T = {}> = React.HTMLProps<HTMLElement> & Transition & {
tag?: React.ReactType;
in?: boolean;
cssModule?: CSSModule;
slide?: boolean;
}
} & T;
declare class CarouselItem extends React.Component<CarouselItemProps> {}
declare class CarouselItem<T = {[key: string]: any}> extends React.Component<CarouselItemProps<T>> {}
export default CarouselItem;
+5 -3
View File
@@ -1,3 +1,5 @@
import * as React from 'react';
export type ColumnProps
= string
| boolean
@@ -10,7 +12,7 @@ export type ColumnProps
order?: string | number
};
export interface ColProps extends React.HTMLProps<HTMLDivElement> {
export type ColProps<T = {}> = React.HTMLProps<HTMLDivElement> & {
tag?: React.ReactType;
xs?: ColumnProps;
sm?: ColumnProps;
@@ -20,7 +22,7 @@ export interface ColProps extends React.HTMLProps<HTMLDivElement> {
//custom widths
widths?: string[];
}
} & T;
declare const Col: React.StatelessComponent<ColProps>;
declare class Col<T = {[key: string]: any}> extends React.Component<ColProps<T>> {}
export default Col;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface CollapseProps extends React.HTMLProps<HTMLElement> {
export type CollapseProps<T = {}> = React.HTMLProps<HTMLElement> & {
isOpen?: boolean;
classNames?: string;
cssModule?: CSSModule;
@@ -18,7 +18,7 @@ export interface CollapseProps extends React.HTMLProps<HTMLElement> {
onExit?: () => void;
onExiting?: () => void;
onExited?: () => void;
}
} & T;
declare class Collapse extends React.Component<CollapseProps> {}
declare class Collapse<T = {[key: string]: any}> extends React.Component<CollapseProps<T>> {}
export default Collapse;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
export type ContainerProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
fluid?: boolean;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Container: React.StatelessComponent<ContainerProps>;
declare class Container<T = {[key: string]: any}> extends React.Component<ContainerProps<T>> {}
export default Container;
+7 -11
View File
@@ -7,29 +7,25 @@ export type Direction =
| "left"
| "right"
export interface UncontrolledProps extends React.HTMLAttributes<HTMLElement> {
export type UncontrolledProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
isOpen?: boolean;
toggle?: () => void;
className?: string;
cssModule?: CSSModule;
nav?: boolean;
inNavbar?: boolean;
}
export interface UncontrolledDropdownProps extends UncontrolledProps {
/* intentionally blank */
}
} & T;
export type UncontrolledDropdownProps<T = {}> = UncontrolledProps<T>;
export interface Props extends UncontrolledProps {
export type Props<T = {}> = UncontrolledProps<T> & {
disabled?: boolean;
direction?: Direction;
group?: boolean;
size?: string;
tag?: React.ReactType;
addonType?: boolean | 'prepend' | 'append';
}
export interface DropdownProps extends Props {
/* intentionally blank */
}
};
export type DropdownProps<T = {}> = Props<T>;
declare class Dropdown extends React.Component<DropdownProps> {}
declare class Dropdown<T = {[key: string]: any}> extends React.Component<DropdownProps<T>> {}
export default Dropdown;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface DropdownItemProps extends React.HTMLAttributes<HTMLElement> {
export type DropdownItemProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
disabled?: boolean;
divider?: boolean;
tag?: React.ReactType;
@@ -12,7 +12,7 @@ export interface DropdownItemProps extends React.HTMLAttributes<HTMLElement> {
href?: string;
toggle?: boolean;
active?: boolean;
}
} & T;
declare class DropdownItem extends React.Component<DropdownItemProps> {}
declare class DropdownItem<T> extends React.Component<DropdownItemProps<T>> {}
export default DropdownItem;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
export type DropdownMenuProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
right?: boolean;
className?: string;
cssModule?: CSSModule;
flip?: boolean;
}
} & T;
declare const DropdownMenu: React.StatelessComponent<DropdownMenuProps>;
declare class DropdownMenu<T = {[key: string]: any}> extends React.Component<DropdownMenuProps<T>> {}
export default DropdownMenu;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface DropdownToggleProps extends React.HTMLAttributes<HTMLElement> {
export type DropdownToggleProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
caret?: boolean;
className?: string;
cssModule?: CSSModule;
@@ -15,7 +15,7 @@ export interface DropdownToggleProps extends React.HTMLAttributes<HTMLElement> {
nav?: boolean;
color?: string;
size?: string;
}
} & T;
declare class DropdownToggle extends React.Component<DropdownToggleProps> {}
declare class DropdownToggle<T> extends React.Component<DropdownToggleProps<T>> {}
export default DropdownToggle;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface FadeProps extends React.HTMLAttributes<HTMLElement> {
export type FadeProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
in?: boolean;
baseClass?: string;
baseClassIn?: string;
@@ -15,7 +16,7 @@ export interface FadeProps extends React.HTMLAttributes<HTMLElement> {
transitionLeave?: boolean;
onLeave?: () => void;
onEnter?: () => void;
}
} & T;
declare const Fade: React.StatelessComponent<FadeProps>;
declare class Fade<T = {[key: string]: any}> extends React.Component<FadeProps<T>> {}
export default Fade;
+3 -3
View File
@@ -1,13 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface FormProps extends React.HTMLProps<HTMLFormElement> {
export type FormProps<T = {}> = React.HTMLProps<HTMLFormElement> & {
inline?: boolean;
tag?: React.ReactType;
innerRef?: React.Ref<HTMLFormElement>;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare class Form extends React.Component<FormProps> {}
declare class Form<T> extends React.Component<FormProps<T>> {}
export default Form;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface FormFeedbackProps extends React.HTMLAttributes<HTMLElement> {
export type FormFeedbackProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: string;
className?: string;
cssModule?: CSSModule;
valid?: boolean;
}
} & T;
declare const FormFeedback: React.StatelessComponent<FormFeedbackProps>;
declare class FormFeedback<T = {[key: string]: any}> extends React.Component<FormFeedbackProps<T>> {}
export default FormFeedback;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface FormGroupProps extends React.HTMLProps<HTMLDivElement> {
export type FormGroupProps<T = {}> = React.HTMLProps<HTMLDivElement> & {
row?: boolean;
check?: boolean;
inline?: boolean;
@@ -8,7 +9,7 @@ export interface FormGroupProps extends React.HTMLProps<HTMLDivElement> {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const FormGroup: React.StatelessComponent<FormGroupProps>;
declare class FormGroup<T = {[key: string]: any}> extends React.Component<FormGroupProps<T>> {}
export default FormGroup;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface FormTextProps extends React.HTMLAttributes<HTMLElement> {
export type FormTextProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
inline?: boolean;
tag?: React.ReactType;
color?: string;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const FormText: React.StatelessComponent<FormTextProps>;
declare class FormText<T = {[key: string]: any}> extends React.Component<FormTextProps<T>> {}
export default FormText;
+3 -3
View File
@@ -28,7 +28,7 @@ export type InputType =
| 'time'
| 'color';
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
export type InputProps<T = {}> = React.InputHTMLAttributes<HTMLInputElement> & {
type?: InputType;
bsSize?: 'lg' | 'sm';
state?: string;
@@ -40,7 +40,7 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
addon?: boolean;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare class Input extends React.Component<InputProps> {}
declare class Input<T> extends React.Component<InputProps<T>> {}
export default Input;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface InputGroupProps extends React.HTMLAttributes<HTMLElement> {
export type InputGroupProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
size?: string;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const InputGroup: React.StatelessComponent<InputGroupProps>;
declare class InputGroup<T = {[key: string]: any}> extends React.Component<InputGroupProps<T>> {}
export default InputGroup;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface InputGroupAddonProps extends React.HTMLAttributes<HTMLElement> {
export type InputGroupAddonProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
addonType: 'prepend' | 'append';
}
} & T;
declare const InputGroupAddon: React.StatelessComponent<InputGroupAddonProps>;
declare class InputGroupAddon<T = {[key: string]: any}> extends React.Component<InputGroupAddonProps<T>> {}
export default InputGroupAddon;
+4 -3
View File
@@ -1,8 +1,9 @@
import * as React from 'react';
import { DropdownProps } from './Dropdown';
export interface InputGroupButtonDropdownProps extends DropdownProps {
export type InputGroupButtonDropdownProps<T = {}> = DropdownProps & {
addonType: 'prepend' | 'append';
}
} & T;
declare const InputGroupButtonDropdown: React.StatelessComponent<InputGroupButtonDropdownProps>;
declare class InputGroupButtonDropdown<T = {[key: string]: any}> extends React.Component<InputGroupButtonDropdownProps<T>> {}
export default InputGroupButtonDropdown;
+4 -3
View File
@@ -1,9 +1,10 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface InputGroupTextProps extends React.HTMLAttributes<HTMLElement> {
export type InputGroupTextProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
cssModule?: CSSModule;
}
} & T;
declare const InputGroupText: React.StatelessComponent<InputGroupTextProps>;
declare class InputGroupText<T = {[key: string]: any}> extends React.Component<InputGroupTextProps<T>> {}
export default InputGroupText;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface JumbotronProps extends React.HTMLAttributes<HTMLElement> {
export type JumbotronProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
fluid?: boolean;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Jumbotron: React.StatelessComponent<JumbotronProps>;
declare class Jumbotron<T = {[key: string]: any}> extends React.Component<JumbotronProps<T>> {}
export default Jumbotron;
+6 -5
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
import { ColumnProps } from './Col';
interface Intermediate extends React.LabelHTMLAttributes<HTMLLabelElement> {
type Intermediate = React.LabelHTMLAttributes<HTMLLabelElement> & {
size?: any;
}
};
export interface LabelProps extends Intermediate {
export type LabelProps<T = {}> = Intermediate & {
hidden?: boolean;
check?: boolean;
inline?: boolean;
@@ -20,7 +21,7 @@ export interface LabelProps extends Intermediate {
md?: ColumnProps;
lg?: ColumnProps;
xl?: ColumnProps;
}
} & T;
declare const Label: React.StatelessComponent<LabelProps>;
declare class Label<T = {[key: string]: any}> extends React.Component<LabelProps<T>> {}
export default Label;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ListGroupProps extends React.HTMLAttributes<HTMLElement> {
export type ListGroupProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
flush?: boolean;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const ListGroup: React.StatelessComponent<ListGroupProps>;
declare class ListGroup<T = {[key: string]: any}> extends React.Component<ListGroupProps<T>> {}
export default ListGroup;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ListGroupItemProps extends React.HTMLAttributes<HTMLElement> {
export type ListGroupItemProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
active?: boolean;
disabled?: boolean;
@@ -11,7 +12,7 @@ export interface ListGroupItemProps extends React.HTMLAttributes<HTMLElement> {
href?: string;
onClick?: React.MouseEventHandler<any>;
}
} & T;
declare const ListGroupItem: React.StatelessComponent<ListGroupItemProps>;
declare class ListGroupItem<T = {[key: string]: any}> extends React.Component<ListGroupItemProps<T>> {}
export default ListGroupItem;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ListGroupItemHeadingProps extends React.HTMLAttributes<HTMLElement> {
export type ListGroupItemHeadingProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const ListGroupItemHeading: React.StatelessComponent<ListGroupItemHeadingProps>;
declare class ListGroupItemHeading<T = {[key: string]: any}> extends React.Component<ListGroupItemHeadingProps<T>> {}
export default ListGroupItemHeading;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ListGroupItemTextProps extends React.HTMLAttributes<HTMLElement> {
export type ListGroupItemTextProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const ListGroupItemText: React.StatelessComponent<ListGroupItemTextProps>;
declare class ListGroupItemText<T = {[key: string]: any}> extends React.Component<ListGroupItemTextProps<T>> {}
export default ListGroupItemText;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface MediaProps extends React.HTMLAttributes<HTMLElement> {
export type MediaProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
body?: boolean;
bottom?: boolean;
className?: string;
@@ -15,7 +16,7 @@ export interface MediaProps extends React.HTMLAttributes<HTMLElement> {
top?: boolean;
href?: string;
alt?: string;
}
} & T;
declare const Media: React.StatelessComponent<MediaProps>;
declare class Media<T = {[key: string]: any}> extends React.Component<MediaProps<T>> {}
export default Media;
+3 -3
View File
@@ -2,7 +2,7 @@ import * as React from 'react';
import { CSSModule } from '../index';
import { FadeProps } from './Fade';
export interface ModalProps extends React.HTMLAttributes<HTMLElement> {
export type ModalProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
isOpen?: boolean;
autoFocus?: boolean;
size?: string;
@@ -27,7 +27,7 @@ export interface ModalProps extends React.HTMLAttributes<HTMLElement> {
external?: React.ReactNode;
labelledBy?: string;
role?: string;
}
} & T;
declare class Modal extends React.Component<ModalProps> {}
declare class Modal<T> extends React.Component<ModalProps<T>> {}
export default Modal;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ModalBodyProps extends React.HTMLAttributes<HTMLElement> {
export type ModalBodyProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const ModalBody: React.StatelessComponent<ModalBodyProps>;
declare class ModalBody<T = {[key: string]: any}> extends React.Component<ModalBodyProps<T>> {}
export default ModalBody;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ModalFooterProps extends React.HTMLAttributes<HTMLElement> {
export type ModalFooterProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const ModalFooter: React.StatelessComponent<ModalFooterProps>;
declare class ModalFooter<T = {[key: string]: any}> extends React.Component<ModalFooterProps<T>> {}
export default ModalFooter;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ModalHeaderProps extends React.HTMLAttributes<HTMLElement> {
export type ModalHeaderProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
wrapTag?: React.ReactType;
toggle?: () => void;
}
} & T;
declare const ModalHeader: React.StatelessComponent<ModalHeaderProps>;
declare class ModalHeader<T = {[key: string]: any}> extends React.Component<ModalHeaderProps<T>> {}
export default ModalHeader;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavProps extends React.HTMLProps<HTMLUListElement> {
export type NavProps<T = {}> = React.HTMLProps<HTMLUListElement> & {
tabs?: boolean;
pills?: boolean;
vertical?: boolean | string;
@@ -12,7 +13,7 @@ export interface NavProps extends React.HTMLProps<HTMLUListElement> {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Nav: React.StatelessComponent<NavProps>;
declare class Nav<T = {[key: string]: any}> extends React.Component<NavProps<T>> {}
export default Nav;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavItemProps extends React.HTMLAttributes<HTMLElement> {
export type NavItemProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
active?: boolean;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const NavItem: React.StatelessComponent<NavItemProps>;
declare class NavItem<T = {[key: string]: any}> extends React.Component<NavItemProps<T>> {}
export default NavItem;
+3 -3
View File
@@ -1,7 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavLinkProps extends React.HTMLProps<HTMLAnchorElement> {
export type NavLinkProps<T = {}> = React.HTMLProps<HTMLAnchorElement> & {
tag?: React.ReactType;
innerRef?: React.Ref<HTMLAnchorElement>;
disabled?: boolean;
@@ -10,7 +10,7 @@ export interface NavLinkProps extends React.HTMLProps<HTMLAnchorElement> {
cssModule?: CSSModule;
onClick?: React.MouseEventHandler<any>;
href?: string;
}
} & T;
declare class NavLink extends React.Component<NavLinkProps> {}
declare class NavLink<T> extends React.Component<NavLinkProps<T>> {}
export default NavLink;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavbarProps extends React.HTMLAttributes<HTMLElement> {
export type NavbarProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
light?: boolean;
dark?: boolean;
inverse?: boolean;
@@ -14,7 +15,7 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement> {
cssModule?: CSSModule;
toggleable?: boolean | string;
expand?: boolean | string;
}
} & T;
declare const Navbar: React.StatelessComponent<NavbarProps>;
declare class Navbar<T = {[key: string]: any}> extends React.Component<NavbarProps<T>> {}
export default Navbar;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavbarBrandProps extends React.HTMLProps<HTMLAnchorElement> {
export type NavbarBrandProps<T = {}> = React.HTMLProps<HTMLAnchorElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const NavbarBrand: React.StatelessComponent<NavbarBrandProps>;
declare class NavbarBrand<T = {[key: string]: any}> extends React.Component<NavbarBrandProps<T>> {}
export default NavbarBrand;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface NavbarTogglerProps extends React.HTMLProps<HTMLAnchorElement> {
export type NavbarTogglerProps<T = {}> = React.HTMLProps<HTMLAnchorElement> & {
tag?: React.ReactType;
type?: string;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const NavbarToggler: React.StatelessComponent<NavbarTogglerProps>;
declare class NavbarToggler<T = {[key: string]: any}> extends React.Component<NavbarTogglerProps<T>> {}
export default NavbarToggler;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
export type PaginationProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
className?: string;
cssModule?: CSSModule;
size?: string;
}
} & T;
declare const Pagination: React.StatelessComponent<PaginationProps>;
declare class Pagination<T = {[key: string]: any}> extends React.Component<PaginationProps<T>> {}
export default Pagination;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface PaginationItemProps extends React.HTMLAttributes<HTMLElement> {
export type PaginationItemProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
className?: string;
cssModule?: CSSModule;
active?: boolean;
disabled?: boolean;
tag?: React.ReactType;
}
} & T;
declare const PaginationItem: React.StatelessComponent<PaginationItemProps>;
declare class PaginationItem<T = {[key: string]: any}> extends React.Component<PaginationItemProps<T>> {}
export default PaginationItem;
+4 -3
View File
@@ -1,13 +1,14 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface PaginationLinkProps extends React.HTMLProps<HTMLAnchorElement> {
export type PaginationLinkProps<T = {}> = React.HTMLProps<HTMLAnchorElement> & {
'aria-label'?: string;
className?: string;
cssModule?: CSSModule;
next?: boolean;
previous?: boolean;
tag?: React.ReactType;
}
} & T;
declare const PaginationLink: React.StatelessComponent<PaginationLinkProps>;
declare class PaginationLink<T = {[key: string]: any}> extends React.Component<PaginationLinkProps<T>> {}
export default PaginationLink;
+3 -3
View File
@@ -2,7 +2,7 @@ import * as React from 'react';
import { CSSModule } from '../index';
import { Popper } from './Popper';
export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
export type PopoverProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
isOpen?: boolean;
toggle?: () => void;
target: string | HTMLElement;
@@ -16,7 +16,7 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
delay?: number | {show: number, hide: number};
modifiers?: Popper.Modifiers;
cssModule?: CSSModule;
}
} & T;
declare class Popover extends React.Component<PopoverProps> {}
declare class Popover<T> extends React.Component<PopoverProps<T>> {}
export default Popover;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface PopoverBodyProps extends React.HTMLAttributes<HTMLElement> {
export type PopoverBodyProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const PopoverBody: React.StatelessComponent<PopoverBodyProps>;
declare class PopoverBody<T = {[key: string]: any}> extends React.Component<PopoverBodyProps<T>> {}
export default PopoverBody;
+4 -3
View File
@@ -1,10 +1,11 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface PopoverHeaderProps extends React.HTMLAttributes<HTMLElement> {
export type PopoverHeaderProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const PopoverHeader: React.StatelessComponent<PopoverHeaderProps>;
declare class PopoverHeader<T = {[key: string]: any}> extends React.Component<PopoverHeaderProps<T>> {}
export default PopoverHeader;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface ProgressProps extends React.HTMLAttributes<HTMLElement> {
export type ProgressProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
bar?: boolean;
multi?: boolean;
tag?: string;
@@ -12,7 +13,7 @@ export interface ProgressProps extends React.HTMLAttributes<HTMLElement> {
className?: string;
cssModule?: CSSModule;
barClassName?: string;
}
} & T;
declare const Progress: React.StatelessComponent<ProgressProps>;
declare class Progress<T = {[key: string]: any}> extends React.Component<ProgressProps<T>> {}
export default Progress;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface RowProps extends React.HTMLProps<HTMLElement> {
export type RowProps<T = {}> = React.HTMLProps<HTMLElement> & {
className?: string;
cssModule?: CSSModule;
tag?: React.ReactType;
noGutters?: boolean;
}
} & T;
declare const Row: React.StatelessComponent<RowProps>;
declare class Row<T = {[key: string]: any}> extends React.Component<RowProps<T>> {}
export default Row;
+3 -3
View File
@@ -1,12 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface TabContentProps extends React.HTMLAttributes<HTMLElement> {
export type TabContentProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
activeTab?: number | string;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare class TabContent extends React.Component<TabContentProps> {}
declare class TabContent<T> extends React.Component<TabContentProps<T>> {}
export default TabContent;
+4 -3
View File
@@ -1,11 +1,12 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface TabPaneProps extends React.HTMLAttributes<HTMLElement> {
export type TabPaneProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
tabId?: number | string;
}
} & T;
declare const TabPane: React.StatelessComponent<TabPaneProps>;
declare class TabPane<T = {[key: string]: any}> extends React.Component<TabPaneProps<T>> {}
export default TabPane;
+4 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface TableProps extends React.HTMLAttributes<HTMLElement> {
export type TableProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
className?: string;
cssModule?: CSSModule;
size?: string;
@@ -12,7 +13,7 @@ export interface TableProps extends React.HTMLAttributes<HTMLElement> {
responsive?: boolean;
tag?: React.ReactType;
responsiveTag?: React.ReactType;
}
} & T;
declare const Table: React.StatelessComponent<TableProps>;
declare class Table<T = {[key: string]: any}> extends React.Component<TableProps<T>> {}
export default Table;
+4 -3
View File
@@ -1,12 +1,13 @@
import * as React from 'react';
import { CSSModule } from '../index';
export interface TagProps extends React.HTMLAttributes<HTMLElement> {
export type TagProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
color?: string;
pill?: boolean;
tag?: React.ReactType;
className?: string;
cssModule?: CSSModule;
}
} & T;
declare const Tag: React.StatelessComponent<TagProps>;
declare class Tag<T = {[key: string]: any}> extends React.Component<TagProps<T>> {}
export default Tag;
+6 -8
View File
@@ -2,7 +2,7 @@ import * as React from 'react';
import { CSSModule } from '../index';
import {Popper} from './Popper';
export interface UncontrolledProps extends React.HTMLAttributes<HTMLElement> {
export type UncontrolledProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
target: string | HTMLElement;
container?: string | HTMLElement;
delay?: number | {show: number, hide: number};
@@ -12,15 +12,13 @@ export interface UncontrolledProps extends React.HTMLAttributes<HTMLElement> {
placement?: Popper.Placement;
modifiers?: Popper.Modifiers;
cssModule?: CSSModule;
}
export interface UncontrolledTooltipProps extends UncontrolledProps {
/* intentionally blank */
}
} & T;
export type UncontrolledTooltipProps<T = {}> = UncontrolledProps<T>;
export interface TooltipProps extends UncontrolledTooltipProps {
export type TooltipProps<T = {}> = UncontrolledTooltipProps<T> & {
toggle?: () => void;
isOpen?: boolean;
}
};
declare class Tooltip extends React.Component<TooltipProps> {}
declare class Tooltip<T> extends React.Component<TooltipProps<T>> {}
export default Tooltip;
+4 -4
View File
@@ -5,10 +5,10 @@ import { UncontrolledButtonDropdownProps } from './ButtonDropdown';
import { UncontrolledDropdownProps } from './Dropdown';
import { UncontrolledTooltipProps } from './Tooltip';
export class UncontrolledAlert extends React.Component<UncontrolledAlertProps> {}
export class UncontrolledButtonDropdown extends React.Component<UncontrolledButtonDropdownProps> {}
export class UncontrolledDropdown extends React.Component<UncontrolledDropdownProps> {}
export class UncontrolledTooltip extends React.Component<UncontrolledTooltipProps> {}
export class UncontrolledAlert<T = {}> extends React.Component<UncontrolledAlertProps<T>> {}
export class UncontrolledButtonDropdown<T = {}> extends React.Component<UncontrolledButtonDropdownProps<T>> {}
export class UncontrolledDropdown<T = {}> extends React.Component<UncontrolledDropdownProps<T>> {}
export class UncontrolledTooltip<T = {}> extends React.Component<UncontrolledTooltipProps<T>> {}
export { UncontrolledAlertProps } from './Alert';
export { UncontrolledButtonDropdownProps } from './ButtonDropdown';
+330 -1
View File
@@ -350,7 +350,7 @@ class Example15 extends React.Component<any, any> {
<DropdownItem disabled>Action</DropdownItem>
<DropdownItem>Another Action</DropdownItem>
<DropdownItem divider />
<DropdownItem onClick={event => {
<DropdownItem onClick={(event: React.MouseEvent<HTMLElement>) => {
// something happens here
}}>Another Action</DropdownItem>
</DropdownMenu>
@@ -3722,3 +3722,332 @@ function Example118() {
<Input innerRef={ref}/>;
<NavLink innerRef={ref}/>;
}
import { default as Alert_ } from './lib/Alert'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Badge_ } from './lib/Badge'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Breadcrumb_ } from './lib/Breadcrumb'; /* tslint:disable-line: no-relative-import-in-test */
import { default as BreadcrumbItem_ } from './lib/BreadcrumbItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Button_ } from './lib/Button'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ButtonDropdown_ } from './lib/ButtonDropdown'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ButtonGroup_ } from './lib/ButtonGroup'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ButtonToolbar_ } from './lib/ButtonToolbar'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Card_ } from './lib/Card'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardBody_ } from './lib/CardBody'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardColumns_ } from './lib/CardColumns'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardDeck_ } from './lib/CardDeck'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardFooter_ } from './lib/CardFooter'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardGroup_ } from './lib/CardGroup'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardHeader_ } from './lib/CardHeader'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardImg_ } from './lib/CardImg'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardImgOverlay_ } from './lib/CardImgOverlay'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardLink_ } from './lib/CardLink'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardSubtitle_ } from './lib/CardSubtitle'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardText_ } from './lib/CardText'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CardTitle_ } from './lib/CardTitle'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Carousel_ } from './lib/Carousel'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CarouselItem_ } from './lib/CarouselItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CarouselControl_ } from './lib/CarouselControl'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CarouselIndicators_ } from './lib/CarouselIndicators'; /* tslint:disable-line: no-relative-import-in-test */
import { default as CarouselCaption_ } from './lib/CarouselCaption'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Col_ } from './lib/Col'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Collapse_ } from './lib/Collapse'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Container_ } from './lib/Container'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Dropdown_ } from './lib/Dropdown'; /* tslint:disable-line: no-relative-import-in-test */
import { default as DropdownItem_ } from './lib/DropdownItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as DropdownMenu_ } from './lib/DropdownMenu'; /* tslint:disable-line: no-relative-import-in-test */
import { default as DropdownToggle_ } from './lib/DropdownToggle'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Fade_ } from './lib/Fade'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Form_ } from './lib/Form'; /* tslint:disable-line: no-relative-import-in-test */
import { default as FormFeedback_ } from './lib/FormFeedback'; /* tslint:disable-line: no-relative-import-in-test */
import { default as FormGroup_ } from './lib/FormGroup'; /* tslint:disable-line: no-relative-import-in-test */
import { default as FormText_ } from './lib/FormText'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Input_ } from './lib/Input'; /* tslint:disable-line: no-relative-import-in-test */
import { default as InputGroup_ } from './lib/InputGroup'; /* tslint:disable-line: no-relative-import-in-test */
import { default as InputGroupAddon_ } from './lib/InputGroupAddon'; /* tslint:disable-line: no-relative-import-in-test */
import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown'; /* tslint:disable-line: no-relative-import-in-test */
import { default as InputGroupText_ } from './lib/InputGroupText'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Jumbotron_ } from './lib/Jumbotron'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Label_ } from './lib/Label'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ListGroup_ } from './lib/ListGroup'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ListGroupItem_ } from './lib/ListGroupItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ListGroupItemHeading_ } from './lib/ListGroupItemHeading'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ListGroupItemText_ } from './lib/ListGroupItemText'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Media_ } from './lib/Media'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Modal_ } from './lib/Modal'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ModalBody_ } from './lib/ModalBody'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ModalFooter_ } from './lib/ModalFooter'; /* tslint:disable-line: no-relative-import-in-test */
import { default as ModalHeader_ } from './lib/ModalHeader'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Nav_ } from './lib/Nav'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Navbar_ } from './lib/Navbar'; /* tslint:disable-line: no-relative-import-in-test */
import { default as NavbarBrand_ } from './lib/NavbarBrand'; /* tslint:disable-line: no-relative-import-in-test */
import { default as NavbarToggler_ } from './lib/NavbarToggler'; /* tslint:disable-line: no-relative-import-in-test */
import { default as NavItem_ } from './lib/NavItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as NavLink_ } from './lib/NavLink'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Pagination_ } from './lib/Pagination'; /* tslint:disable-line: no-relative-import-in-test */
import { default as PaginationItem_ } from './lib/PaginationItem'; /* tslint:disable-line: no-relative-import-in-test */
import { default as PaginationLink_ } from './lib/PaginationLink'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Popover_ } from './lib/Popover'; /* tslint:disable-line: no-relative-import-in-test */
import { default as PopoverBody_ } from './lib/PopoverBody'; /* tslint:disable-line: no-relative-import-in-test */
import { default as PopoverHeader_ } from './lib/PopoverHeader'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Progress_ } from './lib/Progress'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Row_ } from './lib/Row'; /* tslint:disable-line: no-relative-import-in-test */
import { default as TabContent_ } from './lib/TabContent'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Table_ } from './lib/Table'; /* tslint:disable-line: no-relative-import-in-test */
import { default as TabPane_ } from './lib/TabPane'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Tag_ } from './lib/Tag'; /* tslint:disable-line: no-relative-import-in-test */
import { default as Tooltip_ } from './lib/Tooltip'; /* tslint:disable-line: no-relative-import-in-test */
import { UncontrolledAlert as UncontrolledAlert_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */
import { UncontrolledButtonDropdown as UncontrolledButtonDropdown_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */
import { UncontrolledDropdown as UncontrolledDropdown_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */
import { UncontrolledTooltip as UncontrolledTooltip_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */
function AnyPropExample() {
return (
<React.Fragment >
<Alert_ foo={1} bar={false} foobar="example" />
<Badge_ foo={1} bar={false} foobar="example" />
<Breadcrumb_ foo={1} bar={false} foobar="example" />
<BreadcrumbItem_ foo={1} bar={false} foobar="example" />
<Button_ foo={1} bar={false} foobar="example" />
<ButtonDropdown_ foo={1} bar={false} foobar="example" />
<ButtonGroup_ foo={1} bar={false} foobar="example" />
<ButtonToolbar_ foo={1} bar={false} foobar="example" />
<Card_ foo={1} bar={false} foobar="example" />
<CardBody_ foo={1} bar={false} foobar="example" />
<CardColumns_ foo={1} bar={false} foobar="example" />
<CardDeck_ foo={1} bar={false} foobar="example" />
<CardFooter_ foo={1} bar={false} foobar="example" />
<CardGroup_ foo={1} bar={false} foobar="example" />
<CardHeader_ foo={1} bar={false} foobar="example" />
<CardImg_ foo={1} bar={false} foobar="example" />
<CardImgOverlay_ foo={1} bar={false} foobar="example" />
<CardLink_ foo={1} bar={false} foobar="example" />
<CardSubtitle_ foo={1} bar={false} foobar="example" />
<CardText_ foo={1} bar={false} foobar="example" />
<CardTitle_ foo={1} bar={false} foobar="example" />
<Carousel_ foo={1} bar={false} foobar="example" next={() => {}} previous={() => {}}/>
<CarouselItem_ foo={1} bar={false} foobar="example" />
<CarouselControl_ foo={1} bar={false} foobar="example" direction="next" onClickHandler={() => {}} directionText="" />
<CarouselIndicators_ foo={1} bar={false} foobar="example" items={[]} activeIndex={-1} onClickHandler={() => {}} />
<CarouselCaption_ foo={1} bar={false} foobar="example" captionText="" />
<Col_ foo={1} bar={false} foobar="example" />
<Collapse_ foo={1} bar={false} foobar="example" />
<Container_ foo={1} bar={false} foobar="example" />
<Dropdown_ foo={1} bar={false} foobar="example" />
<DropdownItem_ foo={1} bar={false} foobar="example" />
<DropdownMenu_ foo={1} bar={false} foobar="example" />
<DropdownToggle_ foo={1} bar={false} foobar="example" />
<Fade_ foo={1} bar={false} foobar="example" />
<Form_ foo={1} bar={false} foobar="example" />
<FormFeedback_ foo={1} bar={false} foobar="example" />
<FormGroup_ foo={1} bar={false} foobar="example" />
<FormText_ foo={1} bar={false} foobar="example" />
<Input_ foo={1} bar={false} foobar="example" />
<InputGroup_ foo={1} bar={false} foobar="example" />
<InputGroupAddon_ foo={1} bar={false} foobar="example" addonType="prepend" />
<InputGroupButtonDropdown_ foo={1} bar={false} foobar="example" addonType="prepend" />
<InputGroupText_ foo={1} bar={false} foobar="example" />
<Jumbotron_ foo={1} bar={false} foobar="example" />
<Label_ foo={1} bar={false} foobar="example" />
<ListGroup_ foo={1} bar={false} foobar="example" />
<ListGroupItem_ foo={1} bar={false} foobar="example" />
<ListGroupItemHeading_ foo={1} bar={false} foobar="example" />
<ListGroupItemText_ foo={1} bar={false} foobar="example" />
<Media_ foo={1} bar={false} foobar="example" />
<Modal_ foo={1} bar={false} foobar="example" />
<ModalBody_ foo={1} bar={false} foobar="example" />
<ModalFooter_ foo={1} bar={false} foobar="example" />
<ModalHeader_ foo={1} bar={false} foobar="example" />
<Nav_ foo={1} bar={false} foobar="example" />
<Navbar_ foo={1} bar={false} foobar="example" />
<NavbarBrand_ foo={1} bar={false} foobar="example" />
<NavbarToggler_ foo={1} bar={false} foobar="example" />
<NavItem_ foo={1} bar={false} foobar="example" />
<NavLink_ foo={1} bar={false} foobar="example" />
<Pagination_ foo={1} bar={false} foobar="example" />
<PaginationItem_ foo={1} bar={false} foobar="example" />
<PaginationLink_ foo={1} bar={false} foobar="example" />
<Popover_ foo={1} bar={false} foobar="example" target="" />
<PopoverBody_ foo={1} bar={false} foobar="example" />
<PopoverHeader_ foo={1} bar={false} foobar="example" />
<Progress_ foo={1} bar={false} foobar="example" />
<Row_ foo={1} bar={false} foobar="example" />
<TabContent_ foo={1} bar={false} foobar="example" />
<Table_ foo={1} bar={false} foobar="example" />
<TabPane_ foo={1} bar={false} foobar="example" />
<Tag_ foo={1} bar={false} foobar="example" />
<Tooltip_ foo={1} bar={false} foobar="example" target="" />
<UncontrolledAlert_ foo={1} bar={false} foobar="example" />
<UncontrolledButtonDropdown_ foo={1} bar={false} foobar="example" />
<UncontrolledDropdown_ foo={1} bar={false} foobar="example" />
<UncontrolledTooltip_ foo={1} bar={false} foobar="example" target="" />
</React.Fragment >
);
}
interface GenericInterface {
foo: number;
bar: boolean;
foobar?: string;
}
class AlertGeneric extends Alert<GenericInterface> {}
class BadgeGeneric extends Badge<GenericInterface> {}
class BreadcrumbGeneric extends Breadcrumb<GenericInterface> {}
class BreadcrumbItemGeneric extends BreadcrumbItem<GenericInterface> {}
class ButtonGeneric extends Button<GenericInterface> {}
class ButtonDropdownGeneric extends ButtonDropdown<GenericInterface> {}
class ButtonGroupGeneric extends ButtonGroup<GenericInterface> {}
class ButtonToolbarGeneric extends ButtonToolbar<GenericInterface> {}
class CardGeneric extends Card<GenericInterface> {}
class CardBodyGeneric extends CardBody<GenericInterface> {}
class CardColumnsGeneric extends CardColumns<GenericInterface> {}
class CardDeckGeneric extends CardDeck<GenericInterface> {}
class CardFooterGeneric extends CardFooter<GenericInterface> {}
class CardGroupGeneric extends CardGroup<GenericInterface> {}
class CardHeaderGeneric extends CardHeader<GenericInterface> {}
class CardImgGeneric extends CardImg<GenericInterface> {}
class CardImgOverlayGeneric extends CardImgOverlay<GenericInterface> {}
class CardLinkGeneric extends CardLink<GenericInterface> {}
class CardSubtitleGeneric extends CardSubtitle<GenericInterface> {}
class CardTextGeneric extends CardText<GenericInterface> {}
class CardTitleGeneric extends CardTitle<GenericInterface> {}
class CarouselGeneric extends Carousel<GenericInterface> {}
class CarouselItemGeneric extends CarouselItem<GenericInterface> {}
class CarouselControlGeneric extends CarouselControl<GenericInterface> {}
class CarouselIndicatorsGeneric extends CarouselIndicators<GenericInterface> {}
class CarouselCaptionGeneric extends CarouselCaption<GenericInterface> {}
class ColGeneric extends Col<GenericInterface> {}
class CollapseGeneric extends Collapse<GenericInterface> {}
class ContainerGeneric extends Container<GenericInterface> {}
class DropdownGeneric extends Dropdown<GenericInterface> {}
class DropdownItemGeneric extends DropdownItem<GenericInterface> {}
class DropdownMenuGeneric extends DropdownMenu<GenericInterface> {}
class DropdownToggleGeneric extends DropdownToggle<GenericInterface> {}
class FadeGeneric extends Fade<GenericInterface> {}
class FormGeneric extends Form<GenericInterface> {}
class FormFeedbackGeneric extends FormFeedback<GenericInterface> {}
class FormGroupGeneric extends FormGroup<GenericInterface> {}
class FormTextGeneric extends FormText<GenericInterface> {}
class InputGeneric extends Input<GenericInterface> {}
class InputGroupGeneric extends InputGroup<GenericInterface> {}
class InputGroupAddonGeneric extends InputGroupAddon<GenericInterface> {}
class InputGroupButtonDropdownGeneric extends InputGroupButtonDropdown<GenericInterface> {}
class InputGroupTextGeneric extends InputGroupText<GenericInterface> {}
class JumbotronGeneric extends Jumbotron<GenericInterface> {}
class LabelGeneric extends Label<GenericInterface> {}
class ListGroupGeneric extends ListGroup<GenericInterface> {}
class ListGroupItemGeneric extends ListGroupItem<GenericInterface> {}
class ListGroupItemHeadingGeneric extends ListGroupItemHeading<GenericInterface> {}
class ListGroupItemTextGeneric extends ListGroupItemText<GenericInterface> {}
class MediaGeneric extends Media<GenericInterface> {}
class ModalGeneric extends Modal<GenericInterface> {}
class ModalBodyGeneric extends ModalBody<GenericInterface> {}
class ModalFooterGeneric extends ModalFooter<GenericInterface> {}
class ModalHeaderGeneric extends ModalHeader<GenericInterface> {}
class NavGeneric extends Nav<GenericInterface> {}
class NavbarGeneric extends Navbar<GenericInterface> {}
class NavbarBrandGeneric extends NavbarBrand<GenericInterface> {}
class NavbarTogglerGeneric extends NavbarToggler<GenericInterface> {}
class NavItemGeneric extends NavItem<GenericInterface> {}
class NavLinkGeneric extends NavLink<GenericInterface> {}
class PaginationGeneric extends Pagination<GenericInterface> {}
class PaginationItemGeneric extends PaginationItem<GenericInterface> {}
class PaginationLinkGeneric extends PaginationLink<GenericInterface> {}
class PopoverGeneric extends Popover<GenericInterface> {}
class PopoverBodyGeneric extends PopoverBody<GenericInterface> {}
class PopoverHeaderGeneric extends PopoverHeader<GenericInterface> {}
class ProgressGeneric extends Progress<GenericInterface> {}
class RowGeneric extends Row<GenericInterface> {}
class TabContentGeneric extends TabContent<GenericInterface> {}
class TableGeneric extends Table<GenericInterface> {}
class TabPaneGeneric extends TabPane<GenericInterface> {}
class TagGeneric extends Tag<GenericInterface> {}
class TooltipGeneric extends Tooltip<GenericInterface> {}
class UncontrolledAlertGeneric extends UncontrolledAlert<GenericInterface> {}
class UncontrolledButtonDropdownGeneric extends UncontrolledButtonDropdown<GenericInterface> {}
class UncontrolledDropdownGeneric extends UncontrolledDropdown<GenericInterface> {}
class UncontrolledTooltipGeneric extends UncontrolledTooltip<GenericInterface> {}
function GenericPropExample() {
return (
<React.Fragment >
<AlertGeneric foo={1} bar={false} foobar="example" />
<BadgeGeneric foo={1} bar={false} foobar="example" />
<BreadcrumbGeneric foo={1} bar={false} foobar="example" />
<BreadcrumbItemGeneric foo={1} bar={false} foobar="example" />
<ButtonGeneric foo={1} bar={false} foobar="example" />
<ButtonDropdownGeneric foo={1} bar={false} foobar="example" />
<ButtonGroupGeneric foo={1} bar={false} foobar="example" />
<ButtonToolbarGeneric foo={1} bar={false} foobar="example" />
<CardGeneric foo={1} bar={false} foobar="example" />
<CardBodyGeneric foo={1} bar={false} foobar="example" />
<CardColumnsGeneric foo={1} bar={false} foobar="example" />
<CardDeckGeneric foo={1} bar={false} foobar="example" />
<CardFooterGeneric foo={1} bar={false} foobar="example" />
<CardGroupGeneric foo={1} bar={false} foobar="example" />
<CardHeaderGeneric foo={1} bar={false} foobar="example" />
<CardImgGeneric foo={1} bar={false} foobar="example" />
<CardImgOverlayGeneric foo={1} bar={false} foobar="example" />
<CardLinkGeneric foo={1} bar={false} foobar="example" />
<CardSubtitleGeneric foo={1} bar={false} foobar="example" />
<CardTextGeneric foo={1} bar={false} foobar="example" />
<CardTitleGeneric foo={1} bar={false} foobar="example" />
<CarouselGeneric foo={1} bar={false} foobar="example" next={() => {}} previous={() => {}}/>
<CarouselItemGeneric foo={1} bar={false} foobar="example" />
<CarouselControlGeneric foo={1} bar={false} foobar="example" direction="next" onClickHandler={() => {}} directionText="" />
<CarouselIndicatorsGeneric foo={1} bar={false} foobar="example" items={[]} activeIndex={-1} onClickHandler={() => {}} />
<CarouselCaptionGeneric foo={1} bar={false} foobar="example" captionText="" />
<ColGeneric foo={1} bar={false} foobar="example" />
<CollapseGeneric foo={1} bar={false} foobar="example" />
<ContainerGeneric foo={1} bar={false} foobar="example" />
<DropdownGeneric foo={1} bar={false} foobar="example" />
<DropdownItemGeneric foo={1} bar={false} foobar="example" />
<DropdownMenuGeneric foo={1} bar={false} foobar="example" />
<DropdownToggleGeneric foo={1} bar={false} foobar="example" />
<FadeGeneric foo={1} bar={false} foobar="example" />
<FormGeneric foo={1} bar={false} foobar="example" />
<FormFeedbackGeneric foo={1} bar={false} foobar="example" />
<FormGroupGeneric foo={1} bar={false} foobar="example" />
<FormTextGeneric foo={1} bar={false} foobar="example" />
<InputGeneric foo={1} bar={false} foobar="example" />
<InputGroupGeneric foo={1} bar={false} foobar="example" />
<InputGroupAddonGeneric foo={1} bar={false} foobar="example" addonType="prepend" />
<InputGroupButtonDropdownGeneric foo={1} bar={false} foobar="example" addonType="prepend" />
<InputGroupTextGeneric foo={1} bar={false} foobar="example" />
<JumbotronGeneric foo={1} bar={false} foobar="example" />
<LabelGeneric foo={1} bar={false} foobar="example" />
<ListGroupGeneric foo={1} bar={false} foobar="example" />
<ListGroupItemGeneric foo={1} bar={false} foobar="example" />
<ListGroupItemHeadingGeneric foo={1} bar={false} foobar="example" />
<ListGroupItemTextGeneric foo={1} bar={false} foobar="example" />
<MediaGeneric foo={1} bar={false} foobar="example" />
<ModalGeneric foo={1} bar={false} foobar="example" />
<ModalBodyGeneric foo={1} bar={false} foobar="example" />
<ModalFooterGeneric foo={1} bar={false} foobar="example" />
<ModalHeaderGeneric foo={1} bar={false} foobar="example" />
<NavGeneric foo={1} bar={false} foobar="example" />
<NavbarGeneric foo={1} bar={false} foobar="example" />
<NavbarBrandGeneric foo={1} bar={false} foobar="example" />
<NavbarTogglerGeneric foo={1} bar={false} foobar="example" />
<NavItemGeneric foo={1} bar={false} foobar="example" />
<NavLinkGeneric foo={1} bar={false} foobar="example" />
<PaginationGeneric foo={1} bar={false} foobar="example" />
<PaginationItemGeneric foo={1} bar={false} foobar="example" />
<PaginationLinkGeneric foo={1} bar={false} foobar="example" />
<PopoverGeneric foo={1} bar={false} foobar="example" target="" />
<PopoverBodyGeneric foo={1} bar={false} foobar="example" />
<PopoverHeaderGeneric foo={1} bar={false} foobar="example" />
<ProgressGeneric foo={1} bar={false} foobar="example" />
<RowGeneric foo={1} bar={false} foobar="example" />
<TabContentGeneric foo={1} bar={false} foobar="example" />
<TableGeneric foo={1} bar={false} foobar="example" />
<TabPaneGeneric foo={1} bar={false} foobar="example" />
<TagGeneric foo={1} bar={false} foobar="example" />
<TooltipGeneric foo={1} bar={false} foobar="example" target="" />
<UncontrolledAlertGeneric foo={1} bar={false} foobar="example" />
<UncontrolledButtonDropdownGeneric foo={1} bar={false} foobar="example" />
<UncontrolledDropdownGeneric foo={1} bar={false} foobar="example" />
<UncontrolledTooltipGeneric foo={1} bar={false} foobar="example" target="" />
</React.Fragment >
);
}