diff --git a/react-bootstrap/react-bootstrap.d.ts b/react-bootstrap/react-bootstrap.d.ts
index 2285b7a3f..c63c55e9d 100644
--- a/react-bootstrap/react-bootstrap.d.ts
+++ b/react-bootstrap/react-bootstrap.d.ts
@@ -12,7 +12,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ButtonProps {
+ interface ButtonProps extends React.Props{
// Optional
active?: boolean;
@@ -20,6 +20,7 @@ declare module "react-bootstrap" {
block?: boolean;
bsStyle?: string;
bsSize?: string;
+ className?: string;
navItem?: boolean;
navDropdown?: boolean;
componentClass?: string;
@@ -35,12 +36,13 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ButtonToolbarProps {
+ interface ButtonToolbarProps extends React.Props {
// Optional
block?: boolean;
bsSize?: string;
bsStyle?: string;
+ className?: string;
justified?: boolean;
vertical?: boolean;
}
@@ -50,11 +52,12 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ButtonGroupProps {
+ interface ButtonGroupProps extends React.Props {
// Optional
block?: boolean;
bsSize?: string;
bsStyle?: string;
+ className?: string;
justified?: boolean;
vertical?: boolean;
}
@@ -65,16 +68,14 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface DropdownButtonProps {
+ interface DropdownButtonProps extends React.Props {
bsStyle?: string;
bsSize?: string;
buttonClassName?: string;
- children?: any; // TODO: Add more specific type
className?: string;
dropup?: boolean;
href?: string;
id?: string | number;
- key?: any; // TODO: Add more specific type
navItem?: boolean;
noCaret?: boolean;
onClick?: Function; // TODO: Add more specifc type
@@ -89,10 +90,9 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface SplitButtonProps {
+ interface SplitButtonProps extends React.Props{
bsStyle?: string;
bsSize?: string;
- children?: any; // TODO: Add more specific type
className?: string;
disabled?: boolean;
dropdownTitle?: any; // TODO: Add more specific type
@@ -112,14 +112,14 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface MenuItemProps {
+ interface MenuItemProps extends React.Props {
active?: boolean;
+ className?: string;
disabled?: boolean;
divider?: boolean;
eventKey?: any;
header?: boolean;
href?: string;
- key?: any;
onSelect?: Function;
target?: string;
title?: string;
@@ -131,7 +131,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PanelProps {
+ interface PanelProps extends React.Props {
+ className?: string;
bsSize?: string;
bsStyle?: string;
collapsible?: boolean;
@@ -151,7 +152,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface AccordionProps {
+ interface AccordionProps extends React.Props {
bsSize?: string;
bsStyle?: string;
collapsible?: boolean;
@@ -170,12 +171,11 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PanelGroupProps {
+ interface PanelGroupProps extends React.Props {
accordion?: boolean;
activeKey?: any;
bsSize?: string;
bsStyle?: string;
- children?: any;
className?: string;
defaultActiveKey?: any;
onSelect?: Function;
@@ -187,7 +187,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalDialogProps {
+ interface ModalDialogProps extends React.Props {
// TODO: Add more specific type
}
interface ModalDialog extends React.ReactElement { }
@@ -196,7 +196,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalHeaderProps {
+ interface ModalHeaderProps extends React.Props {
+ className?: string;
closeButton?: boolean;
modalClassName?: string;
onHide?: Function;
@@ -208,7 +209,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalTitleProps {
+ interface ModalTitleProps extends React.Props {
+ className?: string;
modalClassName?: string;
}
interface ModalTitle extends React.ReactElement { }
@@ -217,7 +219,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalBodyProps {
+ interface ModalBodyProps extends React.Props {
+ className?: string;
modalClassName?: string;
}
interface ModalBody extends React.ReactElement { }
@@ -226,7 +229,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalFooterProps {
+ interface ModalFooterProps extends React.Props {
+ className?: string;
modalClassName?: string;
}
interface ModalFooter extends React.ReactElement { }
@@ -235,7 +239,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ModalProps {
+ interface ModalProps extends React.Props {
// Required
onHide: Function;
@@ -249,9 +253,10 @@ declare module "react-bootstrap" {
dialogComponent?: any; // TODO: Add more specific type
enforceFocus?: boolean;
keyboard?: boolean;
+ show?: boolean;
}
interface Modal extends React.ReactElement { }
- interface ModalClass extends React.ComponentClass {
+ interface ModalClass extends React.ComponentClass {
Header: ModalHeaderClass;
Title: ModalTitleClass;
Body: ModalBodyClass;
@@ -263,7 +268,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface OverlayTriggerProps {
+ interface OverlayTriggerProps extends React.Props {
// Required
overlay: any; // TODO: Add more specific type
@@ -292,7 +297,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TooltipProps {
+ interface TooltipProps extends React.Props {
// Optional
arrowOffsetLeft?: number | string;
arrowOffsetTop?: number | string;
@@ -312,12 +317,13 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PopoverProps {
+ interface PopoverProps extends React.Props {
// Optional
arrowOffsetLeft?: number | string;
arrowOffsetTop?: number | string;
bsSize?: string;
bsStyle?: string;
+ className?: string;
id?: string;
placement?: string;
positionLeft?: number;
@@ -331,7 +337,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface OverlayProps {
+ interface OverlayProps extends React.Props {
// Optional
animation?: any; // TODO: Add more specific type
container?: any; // TODO: Add more specific type
@@ -355,16 +361,14 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ProgressBarProps {
+ interface ProgressBarProps extends React.Props {
// Optional
active?: boolean;
bsSize?: string;
bsStyle?: string;
- children?: any; // TODO: Add more specific type
className?: string;
interpolatedClass?: any; // TODO: Add more specific type
label?: any; // TODO: Add more specific type
- key?: number; // TODO: Add more specific type
max?: number;
min?: number;
now?: number;
@@ -379,7 +383,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
// TODO: This one turned into a union of two different types
- interface NavProps {
+ interface NavProps extends React.Props {
// Optional
activeHref?: string;
activeKey?: any;
@@ -406,11 +410,12 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface NavItemProps {
+ interface NavItemProps extends React.Props {
active?: boolean;
brand?: any; // TODO: Add more specific type
bsSize?: string;
bsStyle?: string;
+ className?: string;
componentClass?: any; // TODO: Add more specific type
defaultNavExpanded?: boolean;
disabled?: boolean;
@@ -422,6 +427,7 @@ declare module "react-bootstrap" {
inverse?: boolean;
linkId?: string;
navExpanded?: boolean;
+ onClick?: Function;
onSelect?: Function;
onToggle?: Function;
role?: string;
@@ -438,10 +444,11 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface NavbarProps {
+ interface NavbarProps extends React.Props {
brand?: any; // TODO: Add more specific type
bsSize?: string;
bsStyle?: string;
+ className?: string;
componentClass?: any; // TODO: Add more specific type
defaultNavExpanded?: boolean;
fixedBottom?: boolean;
@@ -471,7 +478,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface NavDropdownProps {
+ interface NavDropdownProps extends React.Props {
+ className?: string;
eventKey?: any;
title?: string;
id?: string;
@@ -483,7 +491,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TabsProps {
+ interface TabsProps extends React.Props {
activeKey?: any;
animation?: boolean;
bsStyle?: string;
@@ -501,8 +509,9 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TabProps {
+ interface TabProps extends React.Props {
animation?: boolean;
+ className?: string;
disabled?: boolean;
eventKey?: any; // TODO: Add more specific type
title?: any; // TODO: Add more specific type
@@ -514,7 +523,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PagerProps {
+ interface PagerProps extends React.Props {
+ className?: string;
onSelect?: Function;
}
interface Pager extends React.ReactElement { }
@@ -524,7 +534,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PageItemProps {
+ interface PageItemProps extends React.Props {
+ className?: string;
disabled?: boolean;
eventKey?: any;
href?: string;
@@ -541,11 +552,12 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PaginationProps {
+ interface PaginationProps extends React.Props {
activePage?: number;
bsSize?: string;
bsStyle?: string;
buttonComponentClass?: any; // TODO: Add more specific type
+ className?: string;
ellipsis?: boolean;
first?: boolean;
items?: number;
@@ -562,9 +574,10 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface AlertProps {
+ interface AlertProps extends React.Props {
bsSize?: string;
bsStyle?: string;
+ className?: string;
closeLabel?: string;
dismissAfter?: number;
onDismiss?: Function;
@@ -576,10 +589,11 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface CarouselProps {
+ interface CarouselProps extends React.Props {
activeIndex?: number;
bsSize?: string;
bsStyle?: string;
+ className?: string;
controls?: boolean;
defaultActiveIndex?: number;
direction?: string;
@@ -600,11 +614,12 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface CarouselItemProps {
+ interface CarouselItemProps extends React.Props {
active?: boolean;
animtateIn?: boolean;
animateOut?: boolean;
caption?: any; // TODO: Add more specific type
+ className?: string;
direction?: string;
index?: number;
onAnimateOutEnd?: Function;
@@ -616,7 +631,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface GridProps {
+ interface GridProps extends React.Props {
+ className?: string;
componentClass?: any; // TODO: Add more specific type
fluid?: boolean;
}
@@ -627,7 +643,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface RowProps {
+ interface RowProps extends React.Props {
className?: string;
componentClass?: any; // TODO: Add more specific type
}
@@ -638,7 +654,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ColProps {
+ interface ColProps extends React.Props {
+ className?: string;
componentClass?: any; // TODO: Add more specific type
lg?: number;
lgOffset?: number;
@@ -664,10 +681,11 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ThumbnailProps {
+ interface ThumbnailProps extends React.Props {
alt?: string;
bsSize?: string;
bsStyle?: string;
+ className?: string;
href?: string;
src?: string;
}
@@ -678,7 +696,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ListGroupProps {
+ interface ListGroupProps extends React.Props {
className?: string;
id?: string | number;
fill?: boolean; // TODO: Add more specific type
@@ -690,7 +708,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ListGroupItemProps {
+ interface ListGroupItemProps extends React.Props {
active?: any;
bsSize?: string;
bsStyle?: string;
@@ -711,9 +729,10 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface LabelProps {
+ interface LabelProps extends React.Props {
bsSize?: string;
bsStyle?: string;
+ className?: string;
}
interface Label extends React.ReactElement { }
interface LabelClass extends React.ComponentClass { }
@@ -722,7 +741,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface BadgeProps {
+ interface BadgeProps extends React.Props {
+ className?: string;
pullRight?: boolean;
}
interface Badge extends React.ReactElement { }
@@ -732,7 +752,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface JumbotronProps {
+ interface JumbotronProps extends React.Props {
+ className?: string;
componentClass?: any; // TODO: Add more specific type
}
interface Jumbotron extends React.ReactElement { }
@@ -742,8 +763,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PageHeaderProps {
- // No props
+ interface PageHeaderProps extends React.Props {
+ className?: string;
}
interface PageHeader extends React.ReactElement { }
interface PageHeaderClass extends React.ComponentClass { }
@@ -752,9 +773,10 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface WellProps {
+ interface WellProps extends React.Props {
bsSize?: string;
bsStyle?: string;
+ className?: string;
}
interface Well extends React.ReactElement { }
interface WellClass extends React.ComponentClass { }
@@ -763,7 +785,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface GlyphiconProps {
+ interface GlyphiconProps extends React.Props {
+ className?: string;
// Required
glyph: string;
}
@@ -774,8 +797,9 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TableProps {
+ interface TableProps extends React.Props {
bordered?: boolean;
+ className?: string;
condensed?: boolean;
hover?: boolean;
responsive?: boolean;
@@ -788,13 +812,14 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface InputProps {
+ interface InputProps extends React.Props {
addonAfter?: any; // TODO: Add more specific type
addonBefore?: any; // TODO: Add more specific type
bsSize?: string;
bsStyle?: string;
buttonAfter?: any; // TODO: Add more specific type
- buttonBefore?: any; // TODO: Add more specific type
+ buttonBefore?: any; // TODO: Add more specific type
+ className?: string;
checked?: boolean;
disabled?: boolean;
feedbackIcon?: any; // TODO: Add more specific type
@@ -806,7 +831,6 @@ declare module "react-bootstrap" {
labelClassName?: string;
multiple?: boolean;
placeholder?: string;
- ref?: string;
readOnly?: boolean;
type?: string;
onChange?: Function; // TODO: Add more specific type
@@ -823,13 +847,14 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ButtonInputProps {
+ interface ButtonInputProps extends React.Props {
addonAfter?: any; // TODO: Add more specific type
addonBefore?: any; // TODO: Add more specific type
bsSize?: string;
bsStyle?: string;
buttonAfter?: any; // TODO: Add more specific type
- buttonBefore?: any; // TODO: Add more specific type
+ buttonBefore?: any; // TODO: Add more specific type
+ className?: string;
disabled?: boolean;
feedbackIcon?: any; // TODO: Add more specific type
groupClassName?: string;
@@ -854,7 +879,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PortalProps {
+ interface PortalProps extends React.Props {
dimension?: string | Function;
getDimensionValue?: Function;
in?: boolean;
@@ -876,7 +901,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PositionProps {
+ interface PositionProps extends React.Props {
dimension?: string | Function;
getDimensionValue?: Function;
in?: boolean;
@@ -898,7 +923,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface FadeProps {
+ interface FadeProps extends React.Props {
in?: boolean;
onEnter?: Function;
onEntered?: Function;