diff --git a/react-bootstrap/react-bootstrap.d.ts b/react-bootstrap/react-bootstrap.d.ts
index 8f3803a6b..a119114a5 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;
@@ -462,7 +469,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface NavDropdownProps {
+ interface NavDropdownProps extends React.Props {
+ className?: string;
eventKey?: any;
title?: string;
id?: string;
@@ -474,7 +482,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TabsProps {
+ interface TabsProps extends React.Props {
activeKey?: any;
animation?: boolean;
bsStyle?: string;
@@ -492,8 +500,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
@@ -505,7 +514,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PagerProps {
+ interface PagerProps extends React.Props {
+ className?: string;
onSelect?: Function;
}
interface Pager extends React.ReactElement { }
@@ -515,7 +525,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PageItemProps {
+ interface PageItemProps extends React.Props {
+ className?: string;
disabled?: boolean;
eventKey?: any;
href?: string;
@@ -532,11 +543,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;
@@ -553,9 +565,10 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface AlertProps {
+ interface AlertProps extends React.Props {
bsSize?: string;
bsStyle?: string;
+ className?: string;
closeLabel?: string;
dismissAfter?: number;
onDismiss?: Function;
@@ -567,10 +580,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;
@@ -591,11 +605,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;
@@ -607,7 +622,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface GridProps {
+ interface GridProps extends React.Props {
+ className?: string;
componentClass?: any; // TODO: Add more specific type
fluid?: boolean;
}
@@ -618,7 +634,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface RowProps {
+ interface RowProps extends React.Props {
className?: string;
componentClass?: any; // TODO: Add more specific type
}
@@ -629,7 +645,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;
@@ -655,10 +672,11 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ThumbnailProps {
+ interface ThumbnailProps extends React.Props {
alt?: string;
bsSize?: string;
bsStyle?: string;
+ className?: string;
href?: string;
src?: string;
}
@@ -669,7 +687,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ListGroupProps {
+ interface ListGroupProps extends React.Props {
className?: string;
id?: string | number;
fill?: boolean; // TODO: Add more specific type
@@ -681,7 +699,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface ListGroupItemProps {
+ interface ListGroupItemProps extends React.Props {
active?: any;
bsSize?: string;
bsStyle?: string;
@@ -702,9 +720,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 { }
@@ -713,7 +732,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface BadgeProps {
+ interface BadgeProps extends React.Props {
+ className?: string;
pullRight?: boolean;
}
interface Badge extends React.ReactElement { }
@@ -723,7 +743,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 { }
@@ -733,8 +754,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 { }
@@ -743,9 +764,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 { }
@@ -754,7 +776,8 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface GlyphiconProps {
+ interface GlyphiconProps extends React.Props {
+ className?: string;
// Required
glyph: string;
}
@@ -765,8 +788,9 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface TableProps {
+ interface TableProps extends React.Props {
bordered?: boolean;
+ className?: string;
condensed?: boolean;
hover?: boolean;
responsive?: boolean;
@@ -779,13 +803,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
@@ -797,7 +822,6 @@ declare module "react-bootstrap" {
labelClassName?: string;
multiple?: boolean;
placeholder?: string;
- ref?: string;
readOnly?: boolean;
type?: string;
onChange?: Function; // TODO: Add more specific type
@@ -814,13 +838,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;
@@ -845,7 +870,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PortalProps {
+ interface PortalProps extends React.Props {
dimension?: string | Function;
getDimensionValue?: Function;
in?: boolean;
@@ -867,7 +892,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface PositionProps {
+ interface PositionProps extends React.Props {
dimension?: string | Function;
getDimensionValue?: Function;
in?: boolean;
@@ -889,7 +914,7 @@ declare module "react-bootstrap" {
//
// ----------------------------------------
- interface FadeProps {
+ interface FadeProps extends React.Props {
in?: boolean;
onEnter?: Function;
onEntered?: Function;