@types/react-bootstrap
Advanced tools
Comparing version 0.0.29 to 0.0.30
// Type definitions for react-bootstrap | ||
// Project: https://github.com/react-bootstrap/react-bootstrap | ||
// Definitions by: Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr> | ||
// Definitions by: Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -53,8 +53,6 @@ | ||
// <Breadcrumb /> | ||
interface BreadcrumbProps | ||
extends React.Props<Breadcrumb> { | ||
interface BreadcrumbProps extends React.Props<Breadcrumb> { | ||
bsClass?: string; | ||
} | ||
interface BreadcrumbClass | ||
extends React.ClassicComponentClass<BreadcrumbProps> { | ||
interface BreadcrumbClass extends React.ClassicComponentClass<BreadcrumbProps> { | ||
Item: typeof BreadcrumbItem; | ||
@@ -67,7 +65,5 @@ } | ||
// <BreadcrumbItem /> | ||
interface BreadcrumbItemProps | ||
extends React.Props<BreadcrumbItem> { | ||
interface BreadcrumbItemProps extends React.Props<BreadcrumbItem> { | ||
active?: boolean; | ||
id?: string | number; | ||
linkId?: string | number; | ||
href?: string; | ||
@@ -82,4 +78,3 @@ title?: React.ReactNode; | ||
// <Button /> | ||
interface ButtonProps | ||
extends React.HTMLProps<Button> { | ||
interface ButtonProps extends React.HTMLProps<Button> { | ||
active?: boolean; | ||
@@ -89,4 +84,2 @@ block?: boolean; | ||
bsSize?: Sizes; | ||
navItem?: boolean; | ||
navDropdown?: boolean; | ||
componentClass?: React.ReactType; | ||
@@ -99,4 +92,3 @@ } | ||
// <ButtonToolbar /> | ||
interface ButtonToolbarProps | ||
extends React.HTMLProps<ButtonToolbar> { | ||
interface ButtonToolbarProps extends React.HTMLProps<ButtonToolbar> { | ||
block?: boolean; | ||
@@ -113,4 +105,3 @@ bsSize?: Sizes; | ||
// <ButtonGroup /> | ||
interface ButtonGroupProps | ||
extends React.HTMLProps<ButtonGroup> { | ||
interface ButtonGroupProps extends React.HTMLProps<ButtonGroup> { | ||
block?: boolean; | ||
@@ -127,4 +118,3 @@ bsSize?: Sizes; | ||
// <Checkbox /> | ||
interface CheckboxProps | ||
extends React.HTMLProps<Checkbox> { | ||
interface CheckboxProps extends React.HTMLProps<Checkbox> { | ||
bsClass?: string; | ||
@@ -136,10 +126,7 @@ disabled?: boolean; | ||
} | ||
class Checkbox | ||
extends React.Component<CheckboxProps, {}> | ||
{ } | ||
class Checkbox extends React.Component<CheckboxProps, {}> { } | ||
// <Clearfix /> | ||
interface ClearfixProps | ||
extends React.HTMLProps<Clearfix> { | ||
interface ClearfixProps extends React.HTMLProps<Clearfix> { | ||
componentClass?: React.ReactType, | ||
@@ -151,12 +138,9 @@ visibleXsBlock?: boolean; | ||
} | ||
class Clearfix | ||
extends React.Component<ClearfixProps, {}> | ||
{ } | ||
class Clearfix extends React.Component<ClearfixProps, {}> { } | ||
// <Collapse /> | ||
interface CollapseProps | ||
extends TransitionCallbacks, React.Props<Collapse> { | ||
dimension?: 'height' | 'width' | { (): string }; | ||
getDimensionValue?: (dimension: number, element: React.ReactElement<any>) => number; | ||
interface CollapseProps extends TransitionCallbacks, React.Props<Collapse> { | ||
dimension?: 'height' | 'width' | { ( ):string }; | ||
getDimensionValue?: ( dimension:number, element:React.ReactElement<any> ) => number; | ||
in?: boolean; | ||
@@ -167,5 +151,3 @@ timeout?: number; | ||
} | ||
class Collapse | ||
extends React.Component<CollapseProps, {}> | ||
{ } | ||
class Collapse extends React.Component<CollapseProps, {}> { } | ||
@@ -188,5 +170,3 @@ | ||
type DropdownProps = DropdownBaseProps & React.HTMLProps<Dropdown>; | ||
class Dropdown | ||
extends React.Component<DropdownProps, any> | ||
{ | ||
class Dropdown extends React.Component<DropdownProps, any> { | ||
public static Menu: typeof DropdownMenu; | ||
@@ -198,4 +178,3 @@ public static Toggle: typeof DropdownToggle; | ||
// <DropdownButton /> | ||
interface DropdownButtonBaseProps | ||
extends DropdownBaseProps { | ||
interface DropdownButtonBaseProps extends DropdownBaseProps { | ||
bsSize?: Sizes; | ||
@@ -208,10 +187,7 @@ bsStyle?: string; | ||
type DropdownButtonProps = DropdownButtonBaseProps & React.HTMLProps<DropdownButton>; | ||
class DropdownButton | ||
extends React.Component<DropdownButtonProps, {}> | ||
{ } | ||
class DropdownButton extends React.Component<DropdownButtonProps, {}> { } | ||
// <Dropdown.Menu /> | ||
interface DropdownMenuProps | ||
extends React.HTMLProps<DropdownMenu> { | ||
interface DropdownMenuProps extends React.HTMLProps<DropdownMenu> { | ||
labelledBy?: string | number; | ||
@@ -223,10 +199,7 @@ onClose?: Function; | ||
} | ||
class DropdownMenu | ||
extends React.Component<DropdownMenuProps, any> | ||
{ } | ||
class DropdownMenu extends React.Component<DropdownMenuProps, any> { } | ||
// <Dropdown.Toggle /> | ||
interface DropdownToggleProps | ||
extends React.HTMLProps<DropdownToggle> { | ||
interface DropdownToggleProps extends React.HTMLProps<DropdownToggle> { | ||
bsRole?: string; | ||
@@ -237,11 +210,9 @@ noCaret?: boolean; | ||
useAnchor?: boolean; | ||
bsClass?:string; // Added since v0.30.0 | ||
} | ||
class DropdownToggle | ||
extends React.Component<DropdownToggleProps, any> | ||
{ } | ||
class DropdownToggle extends React.Component<DropdownToggleProps, any> { } | ||
// <Fade /> | ||
interface FadeProps | ||
extends TransitionCallbacks, React.Props<Fade> { | ||
interface FadeProps extends TransitionCallbacks, React.Props<Fade> { | ||
in?: boolean; | ||
@@ -252,10 +223,7 @@ timeout?: number; | ||
} | ||
class Fade | ||
extends React.Component<FadeProps, {}> | ||
{ } | ||
class Fade extends React.Component<FadeProps, {}> { } | ||
// <MenuItem /> | ||
interface MenuItemProps | ||
extends React.HTMLProps<MenuItem> { | ||
interface MenuItemProps extends React.HTMLProps<MenuItem> { | ||
active?: boolean; | ||
@@ -272,10 +240,7 @@ bsClass?: string; | ||
} | ||
class MenuItem | ||
extends React.Component<MenuItemProps, {}> | ||
{ } | ||
class MenuItem extends React.Component<MenuItemProps, {}> { } | ||
// <Panel /> | ||
interface PanelProps | ||
extends TransitionCallbacks, React.HTMLProps<Panel> { | ||
interface PanelProps extends TransitionCallbacks, React.HTMLProps<Panel> { | ||
bsClass?: string; | ||
@@ -297,4 +262,3 @@ bsSize?: Sizes; | ||
// <PanelGroup /> | ||
interface PanelGroupProps | ||
extends React.HTMLProps<PanelGroup> { | ||
interface PanelGroupProps extends React.HTMLProps<PanelGroup> { | ||
accordion?: boolean; | ||
@@ -312,4 +276,3 @@ activeKey?: any; | ||
// <SplitButton /> | ||
interface SplitButtonProps | ||
extends React.HTMLProps<SplitButton> { | ||
interface SplitButtonProps extends React.HTMLProps<SplitButton> { | ||
bsStyle?: string; | ||
@@ -321,5 +284,3 @@ bsSize?: Sizes; | ||
} | ||
class SplitButton | ||
extends React.Component<SplitButtonProps, {}> | ||
{ } | ||
class SplitButton extends React.Component<SplitButtonProps, {}> { } | ||
@@ -455,4 +416,4 @@ | ||
placement?: string; | ||
positionLeft?: number; | ||
positionTop?: number; | ||
positionLeft?: number | string; // String support added since v0.30.0 | ||
positionTop?: number | string; // String support added since v0.30.0 | ||
} | ||
@@ -597,4 +558,4 @@ type Popover = React.ClassicComponent<PopoverProps, {}>; | ||
// <NavDropdown /> | ||
interface NavDropdownBaseProps | ||
extends DropdownBaseProps { | ||
interface NavDropdownBaseProps extends DropdownBaseProps { | ||
active?: boolean; | ||
noCaret?: boolean; | ||
@@ -604,8 +565,4 @@ eventKey?: any; | ||
type NavDropdownProps = NavDropdownBaseProps & React.HTMLProps<NavDropdown>; | ||
class NavDropdown | ||
extends React.Component<NavDropdownProps, {}> | ||
{ | ||
} | ||
class NavDropdown extends React.Component<NavDropdownProps, {}> { } | ||
// <Tabs /> | ||
@@ -667,13 +624,14 @@ interface TabsProps extends React.HTMLProps<Tabs> { | ||
// <Pager /> | ||
interface PagerProps | ||
extends React.HTMLProps<Pager> { | ||
interface PagerProps extends React.HTMLProps<Pager> { | ||
onSelect?: SelectCallback; | ||
} | ||
interface PagerClass extends React.ClassicComponentClass<PagerProps> { | ||
Item: typeof PageItem // Added since v0.30.0 | ||
} | ||
type Pager = React.ClassicComponent<PagerProps, {}>; | ||
var Pager: React.ClassicComponentClass<PagerProps>; | ||
var Pager: PagerClass; | ||
// <PageItem /> | ||
interface PageItemProps | ||
extends React.HTMLProps<PageItem> { | ||
interface PageItemProps extends React.HTMLProps<PageItem> { | ||
disabled?: boolean; | ||
@@ -687,2 +645,3 @@ eventKey?: any; | ||
type PageItem = React.ClassicComponent<PageItemProps, {}>; | ||
/** @deprecated since v0.30.0, should use <Pager.Item> instead of <PageItem>*/ | ||
var PageItem: React.ClassicComponentClass<PageItemProps>; | ||
@@ -692,4 +651,3 @@ | ||
// <Pagination /> | ||
interface PaginationProps | ||
extends React.HTMLProps<Pagination> { | ||
interface PaginationProps extends React.HTMLProps<Pagination> { | ||
activePage?: number; | ||
@@ -755,3 +713,2 @@ bsSize?: Sizes; | ||
animateOut?: boolean; | ||
caption?: any; // TODO: Add more specific type | ||
direction?: string; | ||
@@ -823,2 +780,3 @@ index?: number; | ||
interface ListGroupProps extends React.HTMLProps<ListGroup> { | ||
componentClass?: React.ReactType; // Added since v0.30.0 | ||
fill?: boolean; // TODO: Add more specific type | ||
@@ -907,50 +865,8 @@ } | ||
// <Input /> | ||
interface InputProps extends React.HTMLProps<Input> { | ||
defaultValue?: string; | ||
addonAfter?: any; // TODO: Add more specific type | ||
addonBefore?: any; // TODO: Add more specific type | ||
bsSize?: Sizes; | ||
bsStyle?: string; | ||
buttonAfter?: any; // TODO: Add more specific type | ||
buttonBefore?: any; // TODO: Add more specific type | ||
feedbackIcon?: any; // TODO: Add more specific type | ||
groupClassName?: string; | ||
hasFeedback?: boolean; | ||
help?: any; // TODO: Add more specific type | ||
labelClassName?: string; | ||
wrapperClassName?: string; | ||
} | ||
/** @deprecated since v0.29.0 */ | ||
class Input extends React.Component<InputProps, {}> { | ||
} | ||
// <ButtonInput /> | ||
interface ButtonInputProps extends React.HTMLProps<ButtonInput> { | ||
addonAfter?: any; // TODO: Add more specific type | ||
addonBefore?: any; // TODO: Add more specific type | ||
bsSize?: Sizes; | ||
bsStyle?: string; | ||
buttonAfter?: any; // TODO: Add more specific type | ||
buttonBefore?: any; // TODO: Add more specific type | ||
feedbackIcon?: any; // TODO: Add more specific type | ||
groupClassName?: string; | ||
hasFeedback?: boolean; | ||
help?: any; // TODO: Add more specific type | ||
labelClassName?: string; | ||
wrapperClassName?: string; | ||
} | ||
/** @deprecated since v0.29.0 */ | ||
class ButtonInput extends React.Component<ButtonInputProps, {}> { | ||
} | ||
// <InputGroup /> | ||
interface InputGroupProps | ||
extends React.HTMLProps<InputGroup> { | ||
interface InputGroupProps extends React.HTMLProps<InputGroup> { | ||
bsClass?: string; | ||
bsSize?: Sizes; | ||
} | ||
interface InputGroupClass | ||
extends React.ClassicComponentClass<InputGroupProps> { | ||
interface InputGroupClass extends React.ClassicComponentClass<InputGroupProps> { | ||
Addon: typeof InputGroupAddon; | ||
@@ -964,5 +880,3 @@ Button: typeof InputGroupButton; | ||
// <InputGroup.Addon /> | ||
interface InputGroupAddonProps | ||
extends React.HTMLProps<InputGroupAddon> | ||
{ } | ||
interface InputGroupAddonProps extends React.HTMLProps<InputGroupAddon> { } | ||
type InputGroupAddon = React.ClassicComponent<InputGroupAddonProps, {}>; | ||
@@ -973,5 +887,3 @@ var InputGroupAddon: React.ClassicComponentClass<InputGroupAddonProps>; | ||
// <InputGroup.Button /> | ||
interface InputGroupButtonProps | ||
extends React.HTMLProps<InputGroupButton> | ||
{ } | ||
interface InputGroupButtonProps extends React.HTMLProps<InputGroupButton> { } | ||
type InputGroupButton = React.ClassicComponent<InputGroupButtonProps, {}>; | ||
@@ -1043,4 +955,3 @@ var InputGroupButton: React.ClassicComponentClass<InputGroupButtonProps>; | ||
// <Radio /> | ||
interface RadioProps | ||
extends React.HTMLProps<Radio> { | ||
interface RadioProps extends React.HTMLProps<Radio> { | ||
bsClass?: string; | ||
@@ -1052,5 +963,3 @@ disabled?: boolean; | ||
} | ||
class Radio | ||
extends React.Component<RadioProps, {}> | ||
{ } | ||
class Radio extends React.Component<RadioProps, {}> { } | ||
@@ -1144,2 +1053,23 @@ | ||
var Media: MediaClass; | ||
/* Utils */ | ||
interface bootstrapUtilsType{ | ||
// TODO: Implement functions | ||
} | ||
function createChainedFunctionType(...funcs:Function[]):Function | ||
interface ValidComponentChildrenType{ | ||
map: (children:any,func:any,context:any) => any | ||
forEach:(children:any,func:any,context:any) => any | ||
count:(children:any) => number | ||
filter:(children:any,func:any,context:any) => any | ||
find:(children:any,func:any,context:any) => any | ||
every:(children:any,func:any,context:any) => any | ||
some:(children:any,func:any,context:any) => any | ||
toArray:(children:any) => any | ||
} | ||
class utils { | ||
static bootstrapUtils:bootstrapUtilsType | ||
static createChainedFunction: typeof createChainedFunctionType | ||
static ValidComponentChildren:ValidComponentChildrenType | ||
} | ||
} |
{ | ||
"name": "@types/react-bootstrap", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "TypeScript definitions for react-bootstrap", | ||
"license": "MIT", | ||
"author": "Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>", | ||
"author": "Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh>", | ||
"main": "", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 02 Aug 2016 15:42:59 GMT | ||
* Last updated: Mon, 08 Aug 2016 20:24:56 GMT | ||
* File structure: ProperModule | ||
@@ -19,2 +19,2 @@ * Library Dependencies: none | ||
# Credits | ||
These definitions were written by Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>. | ||
These definitions were written by Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh>. |
{ | ||
"authors": "Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>", | ||
"authors": "Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh>", | ||
"definitionFilename": "index.d.ts", | ||
@@ -26,3 +26,3 @@ "libraryDependencies": [], | ||
"hasPackageJson": false, | ||
"contentHash": "ea8631358bcc440a3f472ec7d804a4382314c7ae3accbec8230e9d17e2bf34f2" | ||
"contentHash": "7332774392bc684881b5eda581a03ce407279eabe01da79b58edf230a54e8c24" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
37031
942