function Accordion() { (0, _classCallCheck3['default'])(this, Accordion); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Alert() { (0, _classCallCheck3['default'])(this, Alert); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Badge() { (0, _classCallCheck3['default'])(this, Badge); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Breadcrumb() { (0, _classCallCheck3['default'])(this, Breadcrumb); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function BreadcrumbItem() { (0, _classCallCheck3['default'])(this, BreadcrumbItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Button() { (0, _classCallCheck3['default'])(this, Button); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ButtonGroup() { (0, _classCallCheck3['default'])(this, ButtonGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ButtonToolbar() { (0, _classCallCheck3['default'])(this, ButtonToolbar); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Carousel(props, context) { (0, _classCallCheck3['default'])(this, Carousel); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleMouseOver = _this.handleMouseOver.bind(_this); _this.handleMouseOut = _this.handleMouseOut.bind(_this); _this.handlePrev = _this.handlePrev.bind(_this); _this.handleNext = _this.handleNext.bind(_this); _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_this); var defaultActiveIndex = props.defaultActiveIndex; _this.state = { activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, previousActiveIndex: null, direction: null }; _this.isUnmounted = false; return _this; }
n/a
function CarouselCaption() { (0, _classCallCheck3['default'])(this, CarouselCaption); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function CarouselItem(props, context) { (0, _classCallCheck3['default'])(this, CarouselItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); _this.state = { direction: null }; _this.isUnmounted = false; return _this; }
n/a
function Checkbox() { (0, _classCallCheck3['default'])(this, Checkbox); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Clearfix() { (0, _classCallCheck3['default'])(this, Clearfix); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function CloseButton() { (0, _classCallCheck3['default'])(this, CloseButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Col() { (0, _classCallCheck3['default'])(this, Col); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Collapse(props, context) { (0, _classCallCheck3['default'])(this, Collapse); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEnter = _this.handleEnter.bind(_this); _this.handleEntering = _this.handleEntering.bind(_this); _this.handleEntered = _this.handleEntered.bind(_this); _this.handleExit = _this.handleExit.bind(_this); _this.handleExiting = _this.handleExiting.bind(_this); return _this; }
n/a
function ControlLabel() { (0, _classCallCheck3['default'])(this, ControlLabel); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function Dropdown(props, context) { (0, _classCallCheck3['default'])(this, Dropdown); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); _this.handleClose = _this.handleClose.bind(_this); _this._focusInDropdown = false; _this.lastOpenEventType = null; return _this; }
n/a
function DropdownMenu(props) { (0, _classCallCheck3['default'])(this, DropdownMenu); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); _this.handleRootClose = _this.handleRootClose.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); return _this; }
n/a
function DropdownToggle() { (0, _classCallCheck3['default'])(this, DropdownToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function DropdownButton() { (0, _classCallCheck3['default'])(this, DropdownButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Fade() { (0, _classCallCheck3['default'])(this, Fade); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Form() { (0, _classCallCheck3['default'])(this, Form); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControl() { (0, _classCallCheck3['default'])(this, FormControl); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControlFeedback() { (0, _classCallCheck3['default'])(this, FormControlFeedback); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControlStatic() { (0, _classCallCheck3['default'])(this, FormControlStatic); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormGroup() { (0, _classCallCheck3['default'])(this, FormGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Glyphicon() { (0, _classCallCheck3['default'])(this, Glyphicon); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Grid() { (0, _classCallCheck3['default'])(this, Grid); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function HelpBlock() { (0, _classCallCheck3['default'])(this, HelpBlock); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Image() { (0, _classCallCheck3['default'])(this, Image); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroup() { (0, _classCallCheck3['default'])(this, InputGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroupAddon() { (0, _classCallCheck3['default'])(this, InputGroupAddon); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroupButton() { (0, _classCallCheck3['default'])(this, InputGroupButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Jumbotron() { (0, _classCallCheck3['default'])(this, Jumbotron); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Label() { (0, _classCallCheck3['default'])(this, Label); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ListGroup() { (0, _classCallCheck3['default'])(this, ListGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ListGroupItem() { (0, _classCallCheck3['default'])(this, ListGroupItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Media() { (0, _classCallCheck3['default'])(this, Media); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaBody() { (0, _classCallCheck3['default'])(this, MediaBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaHeading() { (0, _classCallCheck3['default'])(this, MediaHeading); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaLeft() { (0, _classCallCheck3['default'])(this, MediaLeft); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaList() { (0, _classCallCheck3['default'])(this, MediaList); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaListItem() { (0, _classCallCheck3['default'])(this, MediaListItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaRight() { (0, _classCallCheck3['default'])(this, MediaRight); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MenuItem(props, context) { (0, _classCallCheck3['default'])(this, MenuItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
function Modal(props, context) { (0, _classCallCheck3['default'])(this, Modal); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEntering = _this.handleEntering.bind(_this); _this.handleExited = _this.handleExited.bind(_this); _this.handleWindowResize = _this.handleWindowResize.bind(_this); _this.handleDialogClick = _this.handleDialogClick.bind(_this); _this.state = { style: {} }; return _this; }
n/a
function ModalDialog() { (0, _classCallCheck3['default'])(this, ModalDialog); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalBody() { (0, _classCallCheck3['default'])(this, ModalBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalFooter() { (0, _classCallCheck3['default'])(this, ModalFooter); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalHeader() { (0, _classCallCheck3['default'])(this, ModalHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalTitle() { (0, _classCallCheck3['default'])(this, ModalTitle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Nav() { (0, _classCallCheck3['default'])(this, Nav); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function NavDropdown() { (0, _classCallCheck3['default'])(this, NavDropdown); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function NavItem(props, context) { (0, _classCallCheck3['default'])(this, NavItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function NavbarCollapse() { (0, _classCallCheck3['default'])(this, NavbarCollapse); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Navbar(props, context) { (0, _classCallCheck3['default'])(this, Navbar); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleToggle = _this.handleToggle.bind(_this); _this.handleCollapse = _this.handleCollapse.bind(_this); return _this; }
n/a
function NavbarHeader() { (0, _classCallCheck3['default'])(this, NavbarHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function NavbarToggle() { (0, _classCallCheck3['default'])(this, NavbarToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function NavbarBrand() { (0, _classCallCheck3['default'])(this, NavbarBrand); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Overlay() { (0, _classCallCheck3['default'])(this, Overlay); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function OverlayTrigger(props, context) { (0, _classCallCheck3['default'])(this, OverlayTrigger); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleToggle = _this.handleToggle.bind(_this); _this.handleDelayedShow = _this.handleDelayedShow.bind(_this); _this.handleDelayedHide = _this.handleDelayedHide.bind(_this); _this.handleHide = _this.handleHide.bind(_this); _this.handleMouseOver = function (e) { return _this.handleMouseOverOut(_this.handleDelayedShow, e); }; _this.handleMouseOut = function (e) { return _this.handleMouseOverOut(_this.handleDelayedHide, e); }; _this._mountNode = null; _this.state = { show: props.defaultOverlayShown }; return _this; }
n/a
function PageHeader() { (0, _classCallCheck3['default'])(this, PageHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function DeprecatedComponent() { (0, _classCallCheck3['default'])(this, DeprecatedComponent); return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); }
n/a
function Pager() { (0, _classCallCheck3['default'])(this, Pager); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function PagerItem(props, context) { (0, _classCallCheck3['default'])(this, PagerItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleSelect = _this.handleSelect.bind(_this); return _this; }
n/a
function Pagination() { (0, _classCallCheck3['default'])(this, Pagination); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function PaginationButton(props, context) { (0, _classCallCheck3['default'])(this, PaginationButton); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
function Panel(props, context) { (0, _classCallCheck3['default'])(this, Panel); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClickTitle = _this.handleClickTitle.bind(_this); _this.state = { expanded: _this.props.defaultExpanded }; return _this; }
n/a
function PanelGroup(props, context) { (0, _classCallCheck3['default'])(this, PanelGroup); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleSelect = _this.handleSelect.bind(_this); _this.state = { activeKey: props.defaultActiveKey }; return _this; }
n/a
function Popover() { (0, _classCallCheck3['default'])(this, Popover); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ProgressBar() { (0, _classCallCheck3['default'])(this, ProgressBar); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Radio() { (0, _classCallCheck3['default'])(this, Radio); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ResponsiveEmbed() { (0, _classCallCheck3['default'])(this, ResponsiveEmbed); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Row() { (0, _classCallCheck3['default'])(this, Row); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function SafeAnchor(props, context) { (0, _classCallCheck3['default'])(this, SafeAnchor); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
function SplitButton() { (0, _classCallCheck3['default'])(this, SplitButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function SplitToggle() { (0, _classCallCheck3['default'])(this, SplitToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Tab() { (0, _classCallCheck3['default'])(this, Tab); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function TabContainer() { (0, _classCallCheck3['default'])(this, TabContainer); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function TabContent(props, context) { (0, _classCallCheck3['default'])(this, TabContent); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handlePaneEnter = _this.handlePaneEnter.bind(_this); _this.handlePaneExited = _this.handlePaneExited.bind(_this); // Active entries in state will be `null` unless `animation` is set. Need // to track active child in case keys swap and the active child changes // but the active key does not. _this.state = { activeKey: null, activeChild: null }; return _this; }
n/a
function TabPane(props, context) { (0, _classCallCheck3['default'])(this, TabPane); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEnter = _this.handleEnter.bind(_this); _this.handleExited = _this.handleExited.bind(_this); _this['in'] = false; return _this; }
n/a
function Table() { (0, _classCallCheck3['default'])(this, Table); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function Tabs() { (0, _classCallCheck3['default'])(this, Tabs); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Thumbnail() { (0, _classCallCheck3['default'])(this, Thumbnail); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Tooltip() { (0, _classCallCheck3['default'])(this, Tooltip); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Well() { (0, _classCallCheck3['default'])(this, Well); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Accordion() { (0, _classCallCheck3['default'])(this, Accordion); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { return _react2['default'].createElement( _PanelGroup2['default'], (0, _extends3['default'])({}, this.props, { accordion: true }), this.props.children ); }
n/a
function Alert() { (0, _classCallCheck3['default'])(this, Alert); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
closeLabel = function () { [native code] }
n/a
onDismiss = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, onDismiss = _props.onDismiss, closeLabel = _props.closeLabel, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['onDismiss', 'closeLabel', 'className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var dismissable = !!onDismiss; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'dismissable')] = dismissable, _extends2)); return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, elementProps, { role: 'alert', className: (0, _classnames2['default'])(className, classes) }), dismissable && _react2['default'].createElement(_CloseButton2['default'], { onClick: onDismiss, label: closeLabel }), children ); }
n/a
function Badge() { (0, _classCallCheck3['default'])(this, Badge); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
pullRight = function () { [native code] }
n/a
function hasContent(children) { var result = false; _react2['default'].Children.forEach(children, function (child) { if (result) { return; } if (child || child === 0) { result = true; } }); return result; }
...
bsProps = _splitBsProps[0],
elementProps = _splitBsProps[1];
var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), {
'pull-right': pullRight,
// Hack for collapsing on IE8.
hidden: !this.hasContent(children)
});
return _react2['default'].createElement(
'span',
(0, _extends3['default'])({}, elementProps, {
className: (0, _classnames2['default'])(className, classes)
}),
...
function render() { var _props = this.props, pullRight = _props.pullRight, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['pullRight', 'className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { 'pull-right': pullRight, // Hack for collapsing on IE8. hidden: !this.hasContent(children) }); return _react2['default'].createElement( 'span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), children ); }
n/a
function Breadcrumb() { (0, _classCallCheck3['default'])(this, Breadcrumb); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function BreadcrumbItem() { (0, _classCallCheck3['default'])(this, BreadcrumbItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('ol', (0, _extends3['default'])({}, elementProps, { role: 'navigation', 'aria-label': 'breadcrumbs', className: (0, _classnames2['default'])(className, classes) })); }
n/a
function BreadcrumbItem() { (0, _classCallCheck3['default'])(this, BreadcrumbItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
active = function () { [native code] }
n/a
href = function () { [native code] }
n/a
target = function () { [native code] }
n/a
title = function () { [native code] }
n/a
function render() { var _props = this.props, active = _props.active, href = _props.href, title = _props.title, target = _props.target, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'href', 'title', 'target', 'className']); // Don't try to render these props on non-active <span>. var linkProps = { href: href, title: title, target: target }; return _react2['default'].createElement( 'li', { className: (0, _classnames2['default'])(className, { active: active }) }, active ? _react2['default'].createElement('span', props) : _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3 ['default'])({}, props, linkProps)) ); }
n/a
function Button() { (0, _classCallCheck3['default'])(this, Button); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
active = function () { [native code] }
n/a
block = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
href = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
type = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, active = _props.active, block = _props.block, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'block', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = { active: active }, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'block')] = block, _extends2)); var fullClassName = (0, _classnames2['default'])(className, classes); if (elementProps.href) { return this.renderAnchor(elementProps, fullClassName); } return this.renderButton(elementProps, fullClassName); }
n/a
function renderAnchor(elementProps, className) { return _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, elementProps.disabled && 'disabled') })); }
...
var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {
active: active
}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'block')] = block, _extends2));
var fullClassName = (0, _classnames2['default'])(className, classes);
if (elementProps.href) {
return this.renderAnchor(elementProps, fullClassName);
}
return this.renderButton(elementProps, fullClassName);
};
return Button;
}(_react2['default'].Component);
...
function renderButton(_ref, className) { var componentClass = _ref.componentClass, elementProps = (0, _objectWithoutProperties3['default'])(_ref, ['componentClass']); var Component = componentClass || 'button'; return _react2['default'].createElement(Component, (0, _extends4['default'])({}, elementProps, { type: elementProps.type || 'button', className: className })); }
...
}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'block')] = block, _extends2));
var fullClassName = (0, _classnames2['default'])(className, classes);
if (elementProps.href) {
return this.renderAnchor(elementProps, fullClassName);
}
return this.renderButton(elementProps, fullClassName);
};
return Button;
}(_react2['default'].Component);
Button.propTypes = propTypes;
Button.defaultProps = defaultProps;
...
function ButtonGroup() { (0, _classCallCheck3['default'])(this, ButtonGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
block = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
justified = function () { [native code] }
n/a
vertical = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, block = _props.block, justified = _props.justified, vertical = _props.vertical, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['block', 'justified', 'vertical', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps)] = !vertical, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'vertical')] = vertical, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'justified')] = justified, _extends2[(0, _bootstrapUtils.prefix)(_Button2['default'].defaultProps, 'block')] = block, _extends2)); return _react2['default'].createElement('div', (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function ButtonToolbar() { (0, _classCallCheck3['default'])(this, ButtonToolbar); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { role: 'toolbar', className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Carousel(props, context) { (0, _classCallCheck3['default'])(this, Carousel); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleMouseOver = _this.handleMouseOver.bind(_this); _this.handleMouseOut = _this.handleMouseOut.bind(_this); _this.handlePrev = _this.handlePrev.bind(_this); _this.handleNext = _this.handleNext.bind(_this); _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_this); var defaultActiveIndex = props.defaultActiveIndex; _this.state = { activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, previousActiveIndex: null, direction: null }; _this.isUnmounted = false; return _this; }
n/a
function CarouselCaption() { (0, _classCallCheck3['default'])(this, CarouselCaption); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function CarouselItem(props, context) { (0, _classCallCheck3['default'])(this, CarouselItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); _this.state = { direction: null }; _this.isUnmounted = false; return _this; }
n/a
function CarouselCaption() { (0, _classCallCheck3['default'])(this, CarouselCaption); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
activeIndex = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
controls = function () { [native code] }
n/a
defaultActiveIndex = function () { [native code] }
n/a
direction = function () { [native code] }
n/a
indicators = function () { [native code] }
n/a
interval = function () { [native code] }
n/a
nextIcon = function () { [native code] }
n/a
nextLabel = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
onSlideEnd = function () { [native code] }
...
this.setState({
previousActiveIndex: null,
direction: null
}, function () {
_this2.waitForNext();
if (_this2.props.onSlideEnd) {
_this2.props.onSlideEnd();
}
});
};
Carousel.prototype.getActiveIndex = function getActiveIndex() {
var activeIndexProp = this.props.activeIndex;
return activeIndexProp != null ? activeIndexProp : this.state.activeIndex;
...
pauseOnHover = function () { [native code] }
n/a
prevIcon = function () { [native code] }
n/a
prevLabel = function () { [native code] }
n/a
slide = function () { [native code] }
n/a
wrap = function () { [native code] }
n/a
function componentDidMount() { this.waitForNext(); }
n/a
function componentWillReceiveProps(nextProps) { var activeIndex = this.getActiveIndex(); if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { clearTimeout(this.timeout); this.setState({ previousActiveIndex: activeIndex, direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) }); } }
n/a
function componentWillUnmount() { clearTimeout(this.timeout); this.isUnmounted = true; }
n/a
function getActiveIndex() { var activeIndexProp = this.props.activeIndex; return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; }
...
};
_this.isUnmounted = false;
return _this;
}
Carousel.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
var activeIndex = this.getActiveIndex();
if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) {
clearTimeout(this.timeout);
this.setState({
previousActiveIndex: activeIndex,
direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex)
...
function getDirection(prevIndex, index) { if (prevIndex === index) { return null; } return prevIndex > index ? 'prev' : 'next'; }
...
var activeIndex = this.getActiveIndex();
if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) {
clearTimeout(this.timeout);
this.setState({
previousActiveIndex: activeIndex,
direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex)
});
}
};
Carousel.prototype.componentDidMount = function componentDidMount() {
this.waitForNext();
};
...
function handleItemAnimateOutEnd() { var _this2 = this; this.setState({ previousActiveIndex: null, direction: null }, function () { _this2.waitForNext(); if (_this2.props.onSlideEnd) { _this2.props.onSlideEnd(); } }); }
n/a
function handleMouseOut() { if (this.isPaused) { this.play(); } }
n/a
function handleMouseOver() { if (this.props.pauseOnHover) { this.pause(); } }
n/a
function handleNext(e) { var index = this.getActiveIndex() + 1; var count = _ValidComponentChildren2['default'].count(this.props.children); if (index > count - 1) { if (!this.props.wrap) { return; } index = 0; } this.select(index, e, 'next'); }
n/a
function handlePrev(e) { var index = this.getActiveIndex() - 1; if (index < 0) { if (!this.props.wrap) { return; } index = _ValidComponentChildren2['default'].count(this.props.children) - 1; } this.select(index, e, 'prev'); }
n/a
function pause() { this.isPaused = true; clearTimeout(this.timeout); }
...
Carousel.prototype.componentWillUnmount = function componentWillUnmount() {
clearTimeout(this.timeout);
this.isUnmounted = true;
};
Carousel.prototype.handleMouseOver = function handleMouseOver() {
if (this.props.pauseOnHover) {
this.pause();
}
};
Carousel.prototype.handleMouseOut = function handleMouseOut() {
if (this.isPaused) {
this.play();
}
...
function play() { this.isPaused = false; this.waitForNext(); }
...
if (this.props.pauseOnHover) {
this.pause();
}
};
Carousel.prototype.handleMouseOut = function handleMouseOut() {
if (this.isPaused) {
this.play();
}
};
Carousel.prototype.handlePrev = function handlePrev(e) {
var index = this.getActiveIndex() - 1;
if (index < 0) {
...
function render() { var _this4 = this; var _props2 = this.props, slide = _props2.slide, indicators = _props2.indicators, controls = _props2.controls, wrap = _props2.wrap, prevIcon = _props2.prevIcon, prevLabel = _props2.prevLabel, nextIcon = _props2.nextIcon, nextLabel = _props2.nextLabel, className = _props2.className, children = _props2.children, props = (0, _objectWithoutProperties3['default'])(_props2, ['slide', 'indicators', 'controls', 'wrap', 'prevIcon', 'prevLabel ', 'nextIcon', 'nextLabel', 'className', 'children']); var _state = this.state, previousActiveIndex = _state.previousActiveIndex, direction = _state.direction; var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd ', 'activeIndex', // Accessed via this.getActiveIndex(). 'defaultActiveIndex', 'direction']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var activeIndex = this.getActiveIndex(); var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { slide: slide }); return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes), onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut }), indicators && this.renderIndicators(children, activeIndex, bsProps), _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'inner') }, _ValidComponentChildren2['default'].map(children, function (child, index) { var active = index === activeIndex; var previousActive = slide && index === previousActiveIndex; return (0, _react.cloneElement)(child, { active: active, index: index, animateOut: previousActive, animateIn: active && previousActiveIndex != null && slide, direction: direction, onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null }); }) ), controls && this.renderControls({ wrap: wrap, children: children, activeIndex: activeIndex, prevIcon: prevIcon, prevLabel: prevLabel, nextIcon: nextIcon, nextLabel: nextLabel, bsProps: bsProps }) ); }
n/a
function renderControls(properties) { var wrap = properties.wrap, children = properties.children, activeIndex = properties.activeIndex, prevIcon = properties.prevIcon, nextIcon = properties.nextIcon, bsProps = properties.bsProps, prevLabel = properties.prevLabel, nextLabel = properties.nextLabel; var controlClassName = (0, _bootstrapUtils.prefix)(bsProps, 'control'); var count = _ValidComponentChildren2['default'].count(children); return [(wrap || activeIndex !== 0) && _react2['default'].createElement( _SafeAnchor2['default'], { key: 'prev', className: (0, _classnames2['default'])(controlClassName, 'left'), onClick: this.handlePrev }, prevIcon, prevLabel && _react2['default'].createElement( 'span', { className: 'sr-only' }, prevLabel ) ), (wrap || activeIndex !== count - 1) && _react2['default'].createElement( _SafeAnchor2['default'], { key: 'next', className: (0, _classnames2['default'])(controlClassName, 'right'), onClick: this.handleNext }, nextIcon, nextLabel && _react2['default'].createElement( 'span', { className: 'sr-only' }, nextLabel ) )]; }
...
animateOut: previousActive,
animateIn: active && previousActiveIndex != null && slide,
direction: direction,
onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null
});
})
),
controls && this.renderControls({
wrap: wrap,
children: children,
activeIndex: activeIndex,
prevIcon: prevIcon,
prevLabel: prevLabel,
nextIcon: nextIcon,
nextLabel: nextLabel,
...
function renderIndicators(children, activeIndex, bsProps) { var _this3 = this; var indicators = []; _ValidComponentChildren2['default'].forEach(children, function (child, index) { indicators.push(_react2['default'].createElement('li', { key: index, className: index === activeIndex ? 'active' : null, onClick: function onClick(e) { return _this3.select(index, e); } }), // Force whitespace between indicator elements. Bootstrap requires // this for correct spacing of elements. ' '); }); return _react2['default'].createElement( 'ol', { className: (0, _bootstrapUtils.prefix)(bsProps, 'indicators') }, indicators ); }
...
return _react2['default'].createElement(
'div',
(0, _extends3['default'])({}, elementProps, {
className: (0, _classnames2['default'])(className, classes),
onMouseOver: this.handleMouseOver,
onMouseOut: this.handleMouseOut
}),
indicators && this.renderIndicators(children, activeIndex, bsProps),
_react2['default'].createElement(
'div',
{ className: (0, _bootstrapUtils.prefix)(bsProps, 'inner') },
_ValidComponentChildren2['default'].map(children, function (child, index) {
var active = index === activeIndex;
var previousActive = slide && index === previousActiveIndex;
...
function select(index, e, direction) { clearTimeout(this.timeout); // TODO: Is this necessary? Seems like the only risk is if the component // unmounts while handleItemAnimateOutEnd fires. if (this.isUnmounted) { return; } var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; direction = direction || this.getDirection(previousActiveIndex, index); var onSelect = this.props.onSelect; if (onSelect) { if (onSelect.length > 1) { // React SyntheticEvents are pooled, so we need to remove this event // from the pool to add a custom property. To avoid unnecessarily // removing objects from the pool, only do this when the listener // actually wants the event. if (e) { e.persist(); e.direction = direction; } else { e = { direction: direction }; } onSelect(index, e); } else { onSelect(index); } } if (this.props.activeIndex == null && index !== previousActiveIndex) { if (this.state.previousActiveIndex != null) { // If currently animating don't activate the new index. // TODO: look into queueing this canceled call and // animating after the current animation has ended. return; } this.setState({ activeIndex: index, previousActiveIndex: previousActiveIndex, direction: direction }); } }
...
if (index < 0) {
if (!this.props.wrap) {
return;
}
index = _ValidComponentChildren2['default'].count(this.props.children) - 1;
}
this.select(index, e, 'prev');
};
Carousel.prototype.handleNext = function handleNext(e) {
var index = this.getActiveIndex() + 1;
var count = _ValidComponentChildren2['default'].count(this.props.children);
if (index > count - 1) {
...
function waitForNext() { var _props = this.props, slide = _props.slide, interval = _props.interval, activeIndexProp = _props.activeIndex; if (!this.isPaused && slide && interval && activeIndexProp == null) { this.timeout = setTimeout(this.handleNext, interval); } }
...
previousActiveIndex: activeIndex,
direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex)
});
}
};
Carousel.prototype.componentDidMount = function componentDidMount() {
this.waitForNext();
};
Carousel.prototype.componentWillUnmount = function componentWillUnmount() {
clearTimeout(this.timeout);
this.isUnmounted = true;
};
...
function CarouselItem(props, context) { (0, _classCallCheck3['default'])(this, CarouselItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); _this.state = { direction: null }; _this.isUnmounted = false; return _this; }
n/a
active = function () { [native code] }
n/a
animateIn = function () { [native code] }
n/a
animateOut = function () { [native code] }
n/a
direction = function () { [native code] }
n/a
index = function () { [native code] }
n/a
onAnimateOutEnd = function () { [native code] }
...
CarouselItem.prototype.handleAnimateOutEnd = function handleAnimateOutEnd() {
if (this.isUnmounted) {
return;
}
if (this.props.onAnimateOutEnd) {
this.props.onAnimateOutEnd(this.props.index);
}
};
CarouselItem.prototype.startAnimation = function startAnimation() {
if (this.isUnmounted) {
return;
}
...
function componentDidUpdate(prevProps) { var _this2 = this; var active = this.props.active; var prevActive = prevProps.active; if (!active && prevActive) { _TransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this), this.handleAnimateOutEnd); } if (active !== prevActive) { setTimeout(function () { return _this2.startAnimation(); }, 20); } }
n/a
function componentWillReceiveProps(nextProps) { if (this.props.active !== nextProps.active) { this.setState({ direction: null }); } }
n/a
function componentWillUnmount() { this.isUnmounted = true; }
n/a
function handleAnimateOutEnd() { if (this.isUnmounted) { return; } if (this.props.onAnimateOutEnd) { this.props.onAnimateOutEnd(this.props.index); } }
n/a
function render() { var _props = this.props, direction = _props.direction, active = _props.active, animateIn = _props.animateIn, animateOut = _props.animateOut, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['direction', 'active', 'animateIn', 'animateOut', 'className']); delete props.onAnimateOutEnd; delete props.index; var classes = { item: true, active: active && !animateIn || animateOut }; if (direction && active && animateIn) { classes[direction] = true; } if (this.state.direction && (animateIn || animateOut)) { classes[this.state.direction] = true; } return _react2['default'].createElement('div', (0, _extends3['default'])({}, props, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function startAnimation() { if (this.isUnmounted) { return; } this.setState({ direction: this.props.direction === 'prev' ? 'right' : 'left' }); }
...
if (!active && prevActive) {
_TransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this), this.handleAnimateOutEnd
);
}
if (active !== prevActive) {
setTimeout(function () {
return _this2.startAnimation();
}, 20);
}
};
CarouselItem.prototype.componentWillUnmount = function componentWillUnmount() {
this.isUnmounted = true;
};
...
function Checkbox() { (0, _classCallCheck3['default'])(this, Checkbox); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
inline = function () { [native code] }
n/a
inputRef = function () { [native code] }
n/a
validationState = function () { [native code] }
n/a
function render() { var _props = this.props, inline = _props.inline, disabled = _props.disabled, validationState = _props.validationState, inputRef = _props.inputRef, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className ', 'style', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var input = _react2['default'].createElement('input', (0, _extends3['default'])({}, elementProps, { ref: inputRef, type: 'checkbox', disabled: disabled })); if (inline) { var _classes2; var _classes = (_classes2 = {}, _classes2[(0, _bootstrapUtils.prefix)(bsProps, 'inline')] = true, _classes2.disabled = disabled , _classes2); // Use a warning here instead of in propTypes to get better-looking // generated documentation. process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!validationState, '`validationState` is ignored on `<Checkbox inline>`. To display ' + 'validation state on an inline checkbox, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : void 0; return _react2['default'].createElement( 'label', { className: (0, _classnames2['default'])(className, _classes), style: style }, input, children ); } var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { disabled: disabled }); if (validationState) { classes['has-' + validationState] = true; } return _react2['default'].createElement( 'div', { className: (0, _classnames2['default'])(className, classes), style: style }, _react2['default'].createElement( 'label', null, input, children ) ); }
n/a
function Clearfix() { (0, _classCallCheck3['default'])(this, Clearfix); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
visibleLgBlock = function () { [native code] }
n/a
visibleMdBlock = function () { [native code] }
n/a
visibleSmBlock = function () { [native code] }
n/a
visibleXsBlock = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); _StyleConfig.DEVICE_SIZES.forEach(function (size) { var propName = 'visible' + (0, _capitalize2['default'])(size) + 'Block'; if (elementProps[propName]) { classes['visible-' + size + '-block'] = true; } delete elementProps[propName]; }); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function CloseButton() { (0, _classCallCheck3['default'])(this, CloseButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, label = _props.label, onClick = _props.onClick; return _react2['default'].createElement( 'button', { type: 'button', className: 'close', onClick: onClick }, _react2['default'].createElement( 'span', { 'aria-hidden': 'true' }, '\xD7' ), _react2['default'].createElement( 'span', { className: 'sr-only' }, label ) ); }
n/a
function Col() { (0, _classCallCheck3['default'])(this, Col); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
lg = function () { [native code] }
n/a
lgHidden = function () { [native code] }
n/a
lgOffset = function () { [native code] }
n/a
lgPull = function () { [native code] }
n/a
lgPush = function () { [native code] }
n/a
md = function () { [native code] }
n/a
mdHidden = function () { [native code] }
n/a
mdOffset = function () { [native code] }
n/a
mdPull = function () { [native code] }
n/a
mdPush = function () { [native code] }
n/a
sm = function () { [native code] }
n/a
smHidden = function () { [native code] }
n/a
smOffset = function () { [native code] }
n/a
smPull = function () { [native code] }
n/a
smPush = function () { [native code] }
n/a
xs = function () { [native code] }
n/a
xsHidden = function () { [native code] }
n/a
xsOffset = function () { [native code] }
n/a
xsPull = function () { [native code] }
n/a
xsPush = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = []; _StyleConfig.DEVICE_SIZES.forEach(function (size) { function popProp(propSuffix, modifier) { var propName = '' + size + propSuffix; var propValue = elementProps[propName]; if (propValue != null) { classes.push((0, _bootstrapUtils.prefix)(bsProps, '' + size + modifier + '-' + propValue)); } delete elementProps[propName]; } popProp('', ''); popProp('Offset', '-offset'); popProp('Push', '-push'); popProp('Pull', '-pull'); var hiddenPropName = size + 'Hidden'; if (elementProps[hiddenPropName]) { classes.push('hidden-' + size); } delete elementProps[hiddenPropName]; }); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Collapse(props, context) { (0, _classCallCheck3['default'])(this, Collapse); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEnter = _this.handleEnter.bind(_this); _this.handleEntering = _this.handleEntering.bind(_this); _this.handleEntered = _this.handleEntered.bind(_this); _this.handleExit = _this.handleExit.bind(_this); _this.handleExiting = _this.handleExiting.bind(_this); return _this; }
n/a
function getDimensionValue(dimension, elem) { var value = elem['offset' + (0, _capitalize2['default'])(dimension)]; var margins = MARGINS[dimension]; return value + parseInt((0, _style2['default'])(elem, margins[0]), 10) + parseInt((0, _style2['default'])(elem, margins[1]), 10 ); }
...
};
/* -- Collapsing -- */
Collapse.prototype.handleExit = function handleExit(elem) {
var dimension = this._dimension();
elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px
';
triggerBrowserReflow(elem);
};
Collapse.prototype.handleExiting = function handleExiting(elem) {
var dimension = this._dimension();
elem.style[dimension] = '0';
};
...
dimension = function () { [native code] }
...
Collapse.prototype.handleExiting = function handleExiting(elem) {
var dimension = this._dimension();
elem.style[dimension] = '0';
};
Collapse.prototype._dimension = function _dimension() {
return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;
};
// for testing
Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
return elem['scroll' + (0, _capitalize2['default'])(dimension)] + 'px';
...
getDimensionValue = function () { [native code] }
...
};
/* -- Collapsing -- */
Collapse.prototype.handleExit = function handleExit(elem) {
var dimension = this._dimension();
elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px
';
triggerBrowserReflow(elem);
};
Collapse.prototype.handleExiting = function handleExiting(elem) {
var dimension = this._dimension();
elem.style[dimension] = '0';
};
...
in = function () { [native code] }
n/a
mountOnEnter = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
role = function () { [native code] }
n/a
timeout = function () { [native code] }
n/a
transitionAppear = function () { [native code] }
n/a
unmountOnExit = function () { [native code] }
n/a
function _dimension() { return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; }
...
return _this;
}
/* -- Expanding -- */
Collapse.prototype.handleEnter = function handleEnter(elem) {
var dimension = this._dimension();
elem.style[dimension] = '0';
};
Collapse.prototype.handleEntering = function handleEntering(elem) {
var dimension = this._dimension();
elem.style[dimension] = this._getScrollDimensionValue(elem, dimension);
};
...
function _getScrollDimensionValue(elem, dimension) { return elem['scroll' + (0, _capitalize2['default'])(dimension)] + 'px'; }
...
Collapse.prototype.handleEnter = function handleEnter(elem) {
var dimension = this._dimension();
elem.style[dimension] = '0';
};
Collapse.prototype.handleEntering = function handleEntering(elem) {
var dimension = this._dimension();
elem.style[dimension] = this._getScrollDimensionValue(elem, dimension);
};
Collapse.prototype.handleEntered = function handleEntered(elem) {
var dimension = this._dimension();
elem.style[dimension] = null;
};
...
function handleEnter(elem) { var dimension = this._dimension(); elem.style[dimension] = '0'; }
...
$bs_tabContainer: null
};
};
TabPane.prototype.componentDidMount = function componentDidMount() {
if (this.shouldBeIn()) {
// In lieu of the action event firing.
this.handleEnter();
}
};
TabPane.prototype.componentDidUpdate = function componentDidUpdate() {
if (this['in']) {
if (!this.shouldBeIn()) {
// We shouldn't be active any more. Notify the parent.
...
function handleEntered(elem) { var dimension = this._dimension(); elem.style[dimension] = null; }
n/a
function handleEntering(elem) { var dimension = this._dimension(); elem.style[dimension] = this._getScrollDimensionValue(elem, dimension); }
n/a
function handleExit(elem) { var dimension = this._dimension(); elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px'; triggerBrowserReflow(elem); }
n/a
function handleExiting(elem) { var dimension = this._dimension(); elem.style[dimension] = '0'; }
n/a
function render() { var _props = this.props, onEnter = _props.onEnter, onEntering = _props.onEntering, onEntered = _props.onEntered, onExit = _props.onExit, onExiting = _props.onExiting, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className ']); delete props.dimension; delete props.getDimensionValue; var handleEnter = (0, _createChainedFunction2['default'])(this.handleEnter, onEnter); var handleEntering = (0, _createChainedFunction2['default'])(this.handleEntering, onEntering); var handleEntered = (0, _createChainedFunction2['default'])(this.handleEntered, onEntered); var handleExit = (0, _createChainedFunction2['default'])(this.handleExit, onExit); var handleExiting = (0, _createChainedFunction2['default'])(this.handleExiting, onExiting); var classes = { width: this._dimension() === 'width' }; return _react2['default'].createElement(_Transition2['default'], (0, _extends3['default'])({}, props, { 'aria-expanded': props.role ? props['in'] : null, className: (0, _classnames2['default'])(className, classes), exitedClassName: 'collapse', exitingClassName: 'collapsing', enteredClassName: 'collapse in', enteringClassName: 'collapsing', onEnter: handleEnter, onEntering: handleEntering, onEntered: handleEntered, onExit: handleExit, onExiting: handleExiting })); }
n/a
function ControlLabel() { (0, _classCallCheck3['default'])(this, ControlLabel); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
htmlFor = function () { [native code] }
n/a
srOnly = function () { [native code] }
n/a
function render() { var formGroup = this.context.$bs_formGroup; var controlId = formGroup && formGroup.controlId; var _props = this.props, _props$htmlFor = _props.htmlFor, htmlFor = _props$htmlFor === undefined ? controlId : _props$htmlFor, srOnly = _props.srOnly, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['htmlFor', 'srOnly', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(controlId == null || htmlFor === controlId, '`controlId` is ignored on `<ControlLabel>` when `htmlFor` is specified.') : void 0; var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { 'sr-only': srOnly }); return _react2['default'].createElement('label', (0, _extends3['default'])({}, elementProps, { htmlFor: htmlFor, className: (0, _classnames2['default'])(className, classes) })); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function Dropdown(props, context) { (0, _classCallCheck3['default'])(this, Dropdown); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); _this.handleClose = _this.handleClose.bind(_this); _this._focusInDropdown = false; _this.lastOpenEventType = null; return _this; }
n/a
function DropdownMenu(props) { (0, _classCallCheck3['default'])(this, DropdownMenu); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); _this.handleRootClose = _this.handleRootClose.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); return _this; }
n/a
function DropdownToggle() { (0, _classCallCheck3['default'])(this, DropdownToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
deferControlTo = function (newComponent) { var additions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var nextMethods = arguments[2]; return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); }
n/a
function Dropdown(props, context) { (0, _classCallCheck3['default'])(this, Dropdown); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); _this.handleClose = _this.handleClose.bind(_this); _this._focusInDropdown = false; _this.lastOpenEventType = null; return _this; }
n/a
function componentDidMount() { this.focusNextOnOpen(); }
n/a
function componentDidUpdate(prevProps) { var open = this.props.open; var prevOpen = prevProps.open; if (open && !prevOpen) { this.focusNextOnOpen(); } if (!open && prevOpen) { // if focus hasn't already moved from the menu lets return it // to the toggle if (this._focusInDropdown) { this._focusInDropdown = false; this.focus(); } } }
n/a
function componentWillUpdate(nextProps) { if (!nextProps.open && this.props.open) { this._focusInDropdown = (0, _contains2['default'])(_reactDom2['default'].findDOMNode(this.menu), (0, _activeElement2['default '])(document)); } }
n/a
function focus() { var toggle = _reactDom2['default'].findDOMNode(this.toggle); if (toggle && toggle.focus) { toggle.focus(); } }
...
}
if (!open && prevOpen) {
// if focus hasn't already moved from the menu lets return it
// to the toggle
if (this._focusInDropdown) {
this._focusInDropdown = false;
this.focus();
}
}
};
Dropdown.prototype.handleClick = function handleClick(event) {
if (this.props.disabled) {
return;
...
function focusNextOnOpen() { var menu = this.menu; if (!menu.focusNext) { return; } if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { menu.focusNext(); } }
...
_this._focusInDropdown = false;
_this.lastOpenEventType = null;
return _this;
}
Dropdown.prototype.componentDidMount = function componentDidMount() {
this.focusNextOnOpen();
};
Dropdown.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
if (!nextProps.open && this.props.open) {
this._focusInDropdown = (0, _contains2['default'])(_reactDom2['default'].findDOMNode(this.menu), (0,
_activeElement2['default'])(document));
}
};
...
function handleClick(event) { if (this.props.disabled) { return; } this.toggleOpen(event, { source: 'click' }); }
n/a
function handleClose(event, eventDetails) { if (!this.props.open) { return; } this.toggleOpen(event, eventDetails); }
...
} else if (this.menu.focusNext) {
this.menu.focusNext();
}
event.preventDefault();
break;
case _keycode2['default'].codes.esc:
case _keycode2['default'].codes.tab:
this.handleClose(event, { source: 'keydown' });
break;
default:
}
};
Dropdown.prototype.toggleOpen = function toggleOpen(event, eventDetails) {
var open = !this.props.open;
...
function handleKeyDown(event) { if (this.props.disabled) { return; } switch (event.keyCode) { case _keycode2['default'].codes.down: if (!this.props.open) { this.toggleOpen(event, { source: 'keydown' }); } else if (this.menu.focusNext) { this.menu.focusNext(); } event.preventDefault(); break; case _keycode2['default'].codes.esc: case _keycode2['default'].codes.tab: this.handleClose(event, { source: 'keydown' }); break; default: } }
n/a
function render() { var _classes, _this4 = this; var _props = this.props, Component = _props.componentClass, id = _props.id, dropup = _props.dropup, disabled = _props.disabled, pullRight = _props.pullRight, open = _props.open, onSelect = _props.onSelect, role = _props.role, bsClass = _props.bsClass, className = _props.className, rootCloseEvent = _props.rootCloseEvent, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'id', 'dropup', 'disabled', 'pullRight', 'open ', 'onSelect', 'role', 'bsClass', 'className', 'rootCloseEvent', 'children']); delete props.onToggle; var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); if (dropup) { classes[bsClass] = false; classes.dropup = true; } // This intentionally forwards bsSize and bsStyle (if set) to the // underlying component, to allow it to render size and style variants. return _react2['default'].createElement( Component, (0, _extends3['default'])({}, props, { className: (0, _classnames2['default'])(className, classes) }), _ValidComponentChildren2['default'].map(children, function (child) { switch (child.props.bsRole) { case TOGGLE_ROLE: return _this4.renderToggle(child, { id: id, disabled: disabled, open: open, role: role, bsClass: bsClass }); case MENU_ROLE: return _this4.renderMenu(child, { id: id, open: open, pullRight: pullRight, bsClass: bsClass, onSelect: onSelect, rootCloseEvent: rootCloseEvent }); default: return child; } }) ); }
n/a
function renderMenu(child, _ref) { var _this3 = this; var id = _ref.id, onSelect = _ref.onSelect, rootCloseEvent = _ref.rootCloseEvent, props = (0, _objectWithoutProperties3['default'])(_ref, ['id', 'onSelect', 'rootCloseEvent']); var ref = function ref(c) { _this3.menu = c; }; if (typeof child.ref === 'string') { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(false, 'String refs are not supported on `<Dropdown.Menu>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; } else { ref = (0, _createChainedFunction2['default'])(child.ref, ref); } return (0, _react.cloneElement)(child, (0, _extends3['default'])({}, props, { ref: ref, labelledBy: id, bsClass: (0, _bootstrapUtils.prefix)(props, 'menu'), onClose: (0, _createChainedFunction2['default'])(child.props.onClose, this.handleClose), onSelect: (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect, function (key, event) { return _this3.handleClose(event, { source: 'select' }); }), rootCloseEvent: rootCloseEvent })); }
...
_ValidComponentChildren2['default'].map(children, function (child) {
switch (child.props.bsRole) {
case TOGGLE_ROLE:
return _this4.renderToggle(child, {
id: id, disabled: disabled, open: open, role: role, bsClass: bsClass
});
case MENU_ROLE:
return _this4.renderMenu(child, {
id: id, open: open, pullRight: pullRight, bsClass: bsClass, onSelect: onSelect, rootCloseEvent: rootCloseEvent
});
default:
return child;
}
})
);
...
function renderToggle(child, props) { var _this2 = this; var ref = function ref(c) { _this2.toggle = c; }; if (typeof child.ref === 'string') { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(false, 'String refs are not supported on `<Dropdown.Toggle >` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; } else { ref = (0, _createChainedFunction2['default'])(child.ref, ref); } return (0, _react.cloneElement)(child, (0, _extends3['default'])({}, props, { ref: ref, bsClass: (0, _bootstrapUtils.prefix)(props, 'toggle'), onClick: (0, _createChainedFunction2['default'])(child.props.onClick, this.handleClick), onKeyDown: (0, _createChainedFunction2['default'])(child.props.onKeyDown, this.handleKeyDown) })); }
...
Component,
(0, _extends3['default'])({}, props, {
className: (0, _classnames2['default'])(className, classes)
}),
_ValidComponentChildren2['default'].map(children, function (child) {
switch (child.props.bsRole) {
case TOGGLE_ROLE:
return _this4.renderToggle(child, {
id: id, disabled: disabled, open: open, role: role, bsClass: bsClass
});
case MENU_ROLE:
return _this4.renderMenu(child, {
id: id, open: open, pullRight: pullRight, bsClass: bsClass, onSelect: onSelect, rootCloseEvent: rootCloseEvent
});
default:
...
function toggleOpen(event, eventDetails) { var open = !this.props.open; if (open) { this.lastOpenEventType = eventDetails.source; } if (this.props.onToggle) { this.props.onToggle(open, event, eventDetails); } }
...
};
Dropdown.prototype.handleClick = function handleClick(event) {
if (this.props.disabled) {
return;
}
this.toggleOpen(event, { source: 'click' });
};
Dropdown.prototype.handleKeyDown = function handleKeyDown(event) {
if (this.props.disabled) {
return;
}
...
function DropdownMenu(props) { (0, _classCallCheck3['default'])(this, DropdownMenu); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); _this.handleRootClose = _this.handleRootClose.bind(_this); _this.handleKeyDown = _this.handleKeyDown.bind(_this); return _this; }
n/a
function focusNext() { var _getItemsAndActiveInd = this.getItemsAndActiveIndex(), items = _getItemsAndActiveInd.items, activeIndex = _getItemsAndActiveInd.activeIndex; if (items.length === 0) { return; } var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; items[nextIndex].focus(); }
...
}
switch (event.keyCode) {
case _keycode2['default'].codes.down:
if (!this.props.open) {
this.toggleOpen(event, { source: 'keydown' });
} else if (this.menu.focusNext) {
this.menu.focusNext();
}
event.preventDefault();
break;
case _keycode2['default'].codes.esc:
case _keycode2['default'].codes.tab:
this.handleClose(event, { source: 'keydown' });
break;
...
function focusPrevious() { var _getItemsAndActiveInd2 = this.getItemsAndActiveIndex(), items = _getItemsAndActiveInd2.items, activeIndex = _getItemsAndActiveInd2.activeIndex; if (items.length === 0) { return; } var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; items[prevIndex].focus(); }
...
DropdownMenu.prototype.handleKeyDown = function handleKeyDown(event) {
switch (event.keyCode) {
case _keycode2['default'].codes.down:
this.focusNext();
event.preventDefault();
break;
case _keycode2['default'].codes.up:
this.focusPrevious();
event.preventDefault();
break;
case _keycode2['default'].codes.esc:
case _keycode2['default'].codes.tab:
this.props.onClose(event, { source: 'keydown' });
break;
default:
...
function getFocusableMenuItems() { var node = _reactDom2['default'].findDOMNode(this); if (!node) { return []; } return (0, _from2['default'])(node.querySelectorAll('[tabIndex="-1"]')); }
...
this.props.onClose(event, { source: 'keydown' });
break;
default:
}
};
DropdownMenu.prototype.getItemsAndActiveIndex = function getItemsAndActiveIndex() {
var items = this.getFocusableMenuItems();
var activeIndex = items.indexOf(document.activeElement);
return { items: items, activeIndex: activeIndex };
};
DropdownMenu.prototype.getFocusableMenuItems = function getFocusableMenuItems() {
var node = _reactDom2['default'].findDOMNode(this);
...
function getItemsAndActiveIndex() { var items = this.getFocusableMenuItems(); var activeIndex = items.indexOf(document.activeElement); return { items: items, activeIndex: activeIndex }; }
...
return [];
}
return (0, _from2['default'])(node.querySelectorAll('[tabIndex="-1"]'));
};
DropdownMenu.prototype.focusNext = function focusNext() {
var _getItemsAndActiveInd = this.getItemsAndActiveIndex(),
items = _getItemsAndActiveInd.items,
activeIndex = _getItemsAndActiveInd.activeIndex;
if (items.length === 0) {
return;
}
...
function handleKeyDown(event) { switch (event.keyCode) { case _keycode2['default'].codes.down: this.focusNext(); event.preventDefault(); break; case _keycode2['default'].codes.up: this.focusPrevious(); event.preventDefault(); break; case _keycode2['default'].codes.esc: case _keycode2['default'].codes.tab: this.props.onClose(event, { source: 'keydown' }); break; default: } }
n/a
function handleRootClose(event) { this.props.onClose(event, { source: 'rootClose' }); }
n/a
function render() { var _extends2, _this2 = this; var _props = this.props, open = _props.open, pullRight = _props.pullRight, labelledBy = _props.labelledBy, onSelect = _props.onSelect, className = _props.className, rootCloseEvent = _props.rootCloseEvent, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['open', 'pullRight', 'labelledBy', 'onSelect', 'className', 'rootCloseEvent ', 'children']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['onClose']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'right')] = pullRight, _extends2)); return _react2['default'].createElement( _RootCloseWrapper2['default'], { disabled: !open, onRootClose: this.handleRootClose, event: rootCloseEvent }, _react2['default'].createElement( 'ul', (0, _extends4['default'])({}, elementProps, { role: 'menu', className: (0, _classnames2['default'])(className, classes), 'aria-labelledby': labelledBy }), _ValidComponentChildren2['default'].map(children, function (child) { return _react2['default'].cloneElement(child, { onKeyDown: (0, _createChainedFunction2['default'])(child.props.onKeyDown, _this2.handleKeyDown), onSelect: (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect) }); }) ) ); }
n/a
function DropdownToggle() { (0, _classCallCheck3['default'])(this, DropdownToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, noCaret = _props.noCaret, open = _props.open, useAnchor = _props.useAnchor, bsClass = _props.bsClass, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['noCaret', 'open', 'useAnchor', 'bsClass', 'className', 'children ']); delete props.bsRole; var Component = useAnchor ? _SafeAnchor2['default'] : _Button2['default']; var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the // underlying component, to allow it to render size and style variants. // FIXME: Should this really fall back to `title` as children? return _react2['default'].createElement( Component, (0, _extends3['default'])({}, props, { role: 'button', className: (0, _classnames2['default'])(className, bsClass), 'aria-haspopup': true, 'aria-expanded': open }), children || props.title, useCaret && ' ', useCaret && _react2['default'].createElement('span', { className: 'caret' }) ); }
n/a
open = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
...
, iframeDocument;
iframe.style.display = 'none';
__webpack_require__(54).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
...
function componentWillMount() { var _this2 = this; var props = this.props; this._values = {}; controlledProps.forEach(function (key) { _this2._values[key] = props[utils.defaultKey(key)]; }); }
n/a
function componentWillReceiveProps(nextProps) { var _this3 = this; var props = this.props; if (mixin.componentWillReceiveProps) { mixin.componentWillReceiveProps.call(this, nextProps); } controlledProps.forEach(function (key) { if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { _this3._values[key] = nextProps[utils.defaultKey(key)]; } }); }
n/a
function componentWillUnmount() { this.unmounted = true; }
n/a
function getControlledInstance() { return this.refs.inner; }
n/a
function render() { var _this4 = this; var newProps = {}, props = omitProps(this.props); utils.each(controlledValues, function (handle, propName) { var linkPropName = utils.getLinkName(propName), prop = _this4.props[propName]; if (linkPropName && !isProp(_this4.props, propName) && isProp(_this4.props, linkPropName)) { prop = _this4.props[linkPropName].value; } newProps[propName] = prop !== undefined ? prop : _this4._values[propName]; newProps[handle] = setAndNotify.bind(_this4, propName); }); newProps = _extends({}, props, newProps, { ref: isCompositeComponent ? 'inner' : null }); return _react2.default.createElement(Component, newProps); }
n/a
function shouldComponentUpdate() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return !mixin.shouldComponentUpdate || mixin.shouldComponentUpdate.apply(this, args); }
n/a
function DropdownButton() { (0, _classCallCheck3['default'])(this, DropdownButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsSize = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
children = function () { [native code] }
n/a
noCaret = function () { [native code] }
n/a
open = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
...
, iframeDocument;
iframe.style.display = 'none';
__webpack_require__(54).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
...
title = function () { [native code] }
n/a
function render() { var _props = this.props, bsSize = _props.bsSize, bsStyle = _props.bsStyle, title = _props.title, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['bsSize', 'bsStyle', 'title', 'children']); var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Dropdown2['default'].ControlledComponent), dropdownProps = _splitComponentProps[0], toggleProps = _splitComponentProps[1]; return _react2['default'].createElement( _Dropdown2['default'], (0, _extends3['default'])({}, dropdownProps, { bsSize: bsSize, bsStyle: bsStyle }), _react2['default'].createElement( _Dropdown2['default'].Toggle, (0, _extends3['default'])({}, toggleProps, { bsSize: bsSize, bsStyle: bsStyle }), title ), _react2['default'].createElement( _Dropdown2['default'].Menu, null, children ) ); }
n/a
function Fade() { (0, _classCallCheck3['default'])(this, Fade); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
in = function () { [native code] }
n/a
mountOnEnter = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
timeout = function () { [native code] }
n/a
transitionAppear = function () { [native code] }
n/a
unmountOnExit = function () { [native code] }
n/a
function render() { return _react2['default'].createElement(_Transition2['default'], (0, _extends3['default'])({}, this.props, { className: (0, _classnames2['default'])(this.props.className, 'fade'), enteredClassName: 'in', enteringClassName: 'in' })); }
n/a
function Form() { (0, _classCallCheck3['default'])(this, Form); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
horizontal = function () { [native code] }
n/a
inline = function () { [native code] }
n/a
function render() { var _props = this.props, horizontal = _props.horizontal, inline = _props.inline, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['horizontal', 'inline', 'componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = []; if (horizontal) { classes.push((0, _bootstrapUtils.prefix)(bsProps, 'horizontal')); } if (inline) { classes.push((0, _bootstrapUtils.prefix)(bsProps, 'inline')); } return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function FormControl() { (0, _classCallCheck3['default'])(this, FormControl); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControlFeedback() { (0, _classCallCheck3['default'])(this, FormControlFeedback); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControlStatic() { (0, _classCallCheck3['default'])(this, FormControlStatic); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function FormControlFeedback() { (0, _classCallCheck3['default'])(this, FormControlFeedback); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function getGlyph(validationState) { switch (validationState) { case 'success': return 'ok'; case 'warning': return 'warning-sign'; case 'error': return 'remove'; default: return null; } }
...
return 'remove';
default:
return null;
}
};
FormControlFeedback.prototype.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps
) {
var glyph = this.getGlyph(formGroup && formGroup.validationState);
if (!glyph) {
return null;
}
return React.createElement(Glyphicon, _extends({}, elementProps, {
glyph: glyph,
className: classNames(className, classes)
...
function render() { var _props = this.props, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); if (!children) { return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps); } var child = _react2['default'].Children.only(children); return _react2['default'].cloneElement(child, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(child.props.className, className, classes) })); }
n/a
function renderDefaultFeedback(formGroup, className, classes, elementProps) { var glyph = this.getGlyph(formGroup && formGroup.validationState); if (!glyph) { return null; } return _react2['default'].createElement(_Glyphicon2['default'], (0, _extends3['default'])({}, elementProps, { glyph: glyph, className: (0, _classnames2['default'])(className, classes) })); }
...
var _splitBsProps = splitBsProps(props),
bsProps = _splitBsProps[0],
elementProps = _splitBsProps[1];
var classes = getClassSet(bsProps);
if (!children) {
return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes,
elementProps);
}
var child = React.Children.only(children);
return React.cloneElement(child, _extends({}, elementProps, {
className: classNames(child.props.className, className, classes)
}));
};
...
function FormControlStatic() { (0, _classCallCheck3['default'])(this, FormControlStatic); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
id = function () { [native code] }
n/a
inputRef = function () { [native code] }
n/a
type = function () { [native code] }
n/a
function render() { var formGroup = this.context.$bs_formGroup; var controlId = formGroup && formGroup.controlId; var _props = this.props, Component = _props.componentClass, type = _props.type, _props$id = _props.id, id = _props$id === undefined ? controlId : _props$id, inputRef = _props.inputRef, className = _props.className, bsSize = _props.bsSize, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'type', 'id', 'inputRef', 'className', 'bsSize ']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(controlId == null || id === controlId, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0; // input[type="file"] should not have .form-control. var classes = void 0; if (type !== 'file') { classes = (0, _bootstrapUtils.getClassSet)(bsProps); } // If user provides a size, make sure to append it to classes as input- // e.g. if bsSize is small, it will append input-sm if (bsSize) { var size = _StyleConfig.SIZE_MAP[bsSize] || bsSize; classes[(0, _bootstrapUtils.prefix)({ bsClass: 'input' }, size)] = true; } return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { type: type, id: id, ref: inputRef, className: (0, _classnames2['default'])(className, classes) })); }
n/a
function FormGroup() { (0, _classCallCheck3['default'])(this, FormGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
controlId = function () { [native code] }
n/a
validationState = function () { [native code] }
n/a
function getChildContext() { var _props = this.props, controlId = _props.controlId, validationState = _props.validationState; return { $bs_formGroup: { controlId: controlId, validationState: validationState } }; }
n/a
function hasFeedback(children) { var _this2 = this; return _ValidComponentChildren2['default'].some(children, function (child) { return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children); }); }
...
};
};
FormGroup.prototype.hasFeedback = function hasFeedback(children) {
var _this2 = this;
return ValidComponentChildren.some(children, function (child) {
return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children);
});
};
FormGroup.prototype.render = function render() {
var _props2 = this.props,
validationState = _props2.validationState,
className = _props2.className,
...
function render() { var _props2 = this.props, validationState = _props2.validationState, className = _props2.className, children = _props2.children, props = (0, _objectWithoutProperties3['default'])(_props2, ['validationState', 'className', 'children']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['controlId']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { 'has-feedback': this.hasFeedback(children) }); if (validationState) { classes['has-' + validationState] = true; } return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), children ); }
n/a
function Glyphicon() { (0, _classCallCheck3['default'])(this, Glyphicon); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
glyph = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, glyph = _props.glyph, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['glyph', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, glyph)] = true, _extends2)); return _react2['default'].createElement('span', (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Grid() { (0, _classCallCheck3['default'])(this, Grid); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
fluid = function () { [native code] }
n/a
function render() { var _props = this.props, fluid = _props.fluid, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['fluid', 'componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.prefix)(bsProps, fluid && 'fluid'); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function HelpBlock() { (0, _classCallCheck3['default'])(this, HelpBlock); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Image() { (0, _classCallCheck3['default'])(this, Image); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
circle = function () { [native code] }
n/a
responsive = function () { [native code] }
n/a
rounded = function () { [native code] }
n/a
thumbnail = function () { [native code] }
n/a
function render() { var _classes; var _props = this.props, responsive = _props.responsive, rounded = _props.rounded, circle = _props.circle, thumbnail = _props.thumbnail, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['responsive', 'rounded', 'circle', 'thumbnail', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (_classes = {}, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'responsive')] = responsive, _classes[(0, _bootstrapUtils .prefix)(bsProps, 'rounded')] = rounded, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'circle')] = circle, _classes[(0, _bootstrapUtils .prefix)(bsProps, 'thumbnail')] = thumbnail, _classes); return _react2['default'].createElement('img', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function InputGroup() { (0, _classCallCheck3['default'])(this, InputGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroupAddon() { (0, _classCallCheck3['default'])(this, InputGroupAddon); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroupButton() { (0, _classCallCheck3['default'])(this, InputGroupButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function InputGroupAddon() { (0, _classCallCheck3['default'])(this, InputGroupAddon); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function InputGroupButton() { (0, _classCallCheck3['default'])(this, InputGroupButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Jumbotron() { (0, _classCallCheck3['default'])(this, Jumbotron); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Label() { (0, _classCallCheck3['default'])(this, Label); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
function hasContent(children) { var result = false; _react2['default'].Children.forEach(children, function (child) { if (result) { return; } if (child || child === 0) { result = true; } }); return result; }
...
bsProps = _splitBsProps[0],
elementProps = _splitBsProps[1];
var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), {
'pull-right': pullRight,
// Hack for collapsing on IE8.
hidden: !this.hasContent(children)
});
return _react2['default'].createElement(
'span',
(0, _extends3['default'])({}, elementProps, {
className: (0, _classnames2['default'])(className, classes)
}),
...
function render() { var _props = this.props, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { // Hack for collapsing on IE8. hidden: !this.hasContent(children) }); return _react2['default'].createElement( 'span', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), children ); }
n/a
function ListGroup() { (0, _classCallCheck3['default'])(this, ListGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, children = _props.children, _props$componentClass = _props.componentClass, Component = _props$componentClass === undefined ? getDefaultComponent(children) : _props$componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['children', 'componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); var useListItem = Component === 'ul' && _ValidComponentChildren2['default'].every(children, function (child) { return child.type === _ListGroupItem2['default']; }); return _react2['default'].createElement( Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), useListItem ? _ValidComponentChildren2['default'].map(children, function (child) { return (0, _react.cloneElement)(child, { listItem: true }); }) : children ); }
n/a
function ListGroupItem() { (0, _classCallCheck3['default'])(this, ListGroupItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
active = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
header = function () { [native code] }
n/a
href = function () { [native code] }
n/a
listItem = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
type = function () { [native code] }
n/a
function render() { var _props = this.props, active = _props.active, disabled = _props.disabled, className = _props.className, header = _props.header, listItem = _props.listItem, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'disabled', 'className', 'header', 'listItem', 'children ']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { active: active, disabled: disabled }); var Component = void 0; if (elementProps.href) { Component = 'a'; } else if (elementProps.onClick) { Component = 'button'; elementProps.type = elementProps.type || 'button'; } else if (listItem) { Component = 'li'; } else { Component = 'span'; } elementProps.className = (0, _classnames2['default'])(className, classes); // TODO: Deprecate `header` prop. if (header) { return _react2['default'].createElement( Component, elementProps, this.renderHeader(header, (0, _bootstrapUtils.prefix)(bsProps, 'heading')), _react2['default'].createElement( 'p', { className: (0, _bootstrapUtils.prefix)(bsProps, 'text') }, children ) ); } return _react2['default'].createElement( Component, elementProps, children ); }
n/a
function renderHeader(header, headingClassName) { if (_react2['default'].isValidElement(header)) { return (0, _react.cloneElement)(header, { className: (0, _classnames2['default'])(header.props.className, headingClassName) }); } return _react2['default'].createElement( 'h4', { className: headingClassName }, header ); }
...
elementProps.className = classNames(className, classes);
// TODO: Deprecate `header` prop.
if (header) {
return React.createElement(
Component,
elementProps,
this.renderHeader(header, prefix(bsProps, 'heading')),
React.createElement(
'p',
{ className: prefix(bsProps, 'text') },
children
)
);
}
...
function Media() { (0, _classCallCheck3['default'])(this, Media); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaBody() { (0, _classCallCheck3['default'])(this, MediaBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaHeading() { (0, _classCallCheck3['default'])(this, MediaHeading); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaLeft() { (0, _classCallCheck3['default'])(this, MediaLeft); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaList() { (0, _classCallCheck3['default'])(this, MediaList); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaListItem() { (0, _classCallCheck3['default'])(this, MediaListItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaRight() { (0, _classCallCheck3['default'])(this, MediaRight); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function MediaBody() { (0, _classCallCheck3['default'])(this, MediaBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MediaHeading() { (0, _classCallCheck3['default'])(this, MediaHeading); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MediaLeft() { (0, _classCallCheck3['default'])(this, MediaLeft); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, align = _props.align, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['align', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); if (align) { // The class is e.g. `media-top`, not `media-left-top`. classes[(0, _bootstrapUtils.prefix)(_Media2['default'].defaultProps, align)] = true; } return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MediaList() { (0, _classCallCheck3['default'])(this, MediaList); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('ul', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MediaListItem() { (0, _classCallCheck3['default'])(this, MediaListItem); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MediaRight() { (0, _classCallCheck3['default'])(this, MediaRight); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, align = _props.align, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['align', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); if (align) { // The class is e.g. `media-top`, not `media-right-top`. classes[(0, _bootstrapUtils.prefix)(_Media2['default'].defaultProps, align)] = true; } return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function MenuItem(props, context) { (0, _classCallCheck3['default'])(this, MenuItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
active = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
divider = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
header = function () { [native code] }
n/a
href = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
function handleClick(event) { var _props = this.props, href = _props.href, disabled = _props.disabled, onSelect = _props.onSelect, eventKey = _props.eventKey; if (!href || disabled) { event.preventDefault(); } if (disabled) { return; } if (onSelect) { onSelect(eventKey, event); } }
n/a
function render() { var _props2 = this.props, active = _props2.active, disabled = _props2.disabled, divider = _props2.divider, header = _props2.header, onClick = _props2.onClick, className = _props2.className, style = _props2.style, props = (0, _objectWithoutProperties3['default'])(_props2, ['active', 'disabled', 'divider', 'header', 'onClick', 'className ', 'style']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['eventKey', 'onSelect']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; if (divider) { // Forcibly blank out the children; separators shouldn't render any. elementProps.children = undefined; return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { role: 'separator', className: (0, _classnames2['default'])(className, 'divider'), style: style })); } if (header) { return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { role: 'heading', className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(bsProps, 'header')), style: style })); } return _react2['default'].createElement( 'li', { role: 'presentation', className: (0, _classnames2['default'])(className, { active: active, disabled: disabled }), style: style }, _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3['default'])({}, elementProps, { role: 'menuitem', tabIndex: '-1', onClick: (0, _createChainedFunction2['default'])(onClick, this.handleClick) })) ); }
n/a
function Modal(props, context) { (0, _classCallCheck3['default'])(this, Modal); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEntering = _this.handleEntering.bind(_this); _this.handleExited = _this.handleExited.bind(_this); _this.handleWindowResize = _this.handleWindowResize.bind(_this); _this.handleDialogClick = _this.handleDialogClick.bind(_this); _this.state = { style: {} }; return _this; }
n/a
function ModalBody() { (0, _classCallCheck3['default'])(this, ModalBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalDialog() { (0, _classCallCheck3['default'])(this, ModalDialog); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalFooter() { (0, _classCallCheck3['default'])(this, ModalFooter); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalHeader() { (0, _classCallCheck3['default'])(this, ModalHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalTitle() { (0, _classCallCheck3['default'])(this, ModalTitle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function ModalDialog() { (0, _classCallCheck3['default'])(this, ModalDialog); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _extends2; var _props = this.props, dialogClassName = _props.dialogClassName, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['dialogClassName', 'className', 'style', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var bsClassName = (0, _bootstrapUtils.prefix)(bsProps); var modalStyle = (0, _extends4['default'])({ display: 'block' }, style); var dialogClasses = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[bsClassName ] = false, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'dialog')] = true, _extends2)); return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, elementProps, { tabIndex: '-1', role: 'dialog', style: modalStyle, className: (0, _classnames2['default'])(className, bsClassName) }), _react2['default'].createElement( 'div', { className: (0, _classnames2['default'])(dialogClassName, dialogClasses) }, _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'content'), role: 'document' }, children ) ) ); }
n/a
function ModalDialog() { (0, _classCallCheck3['default'])(this, ModalDialog); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function onHide() {}
...
};
Modal.prototype.handleDialogClick = function handleDialogClick(e) {
if (e.target !== e.currentTarget) {
return;
}
this.props.onHide();
};
Modal.prototype.updateStyle = function updateStyle() {
if (!canUseDOM) {
return;
}
...
function renderBackdrop(props) { return _react2.default.createElement('div', props); }
n/a
animation = function () { [native code] }
n/a
autoFocus = function () { [native code] }
n/a
backdrop = function () { [native code] }
n/a
backdropClassName = function () { [native code] }
n/a
backdropStyle = function () { [native code] }
n/a
backdropTransitionTimeout = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
container = function () { [native code] }
n/a
containerClassName = function () { [native code] }
n/a
dialogClassName = function () { [native code] }
n/a
dialogComponentClass = function () { [native code] }
n/a
dialogTransitionTimeout = function () { [native code] }
n/a
enforceFocus = function () { [native code] }
n/a
keyboard = function () { [native code] }
n/a
manager = function () { [native code] }
n/a
onBackdropClick = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onEscapeKeyUp = function () { [native code] }
n/a
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
onHide = function () { [native code] }
...
};
Modal.prototype.handleDialogClick = function handleDialogClick(e) {
if (e.target !== e.currentTarget) {
return;
}
this.props.onHide();
};
Modal.prototype.updateStyle = function updateStyle() {
if (!canUseDOM) {
return;
}
...
onShow = function () { [native code] }
n/a
renderBackdrop = function () { [native code] }
n/a
restoreFocus = function () { [native code] }
n/a
show = function () { [native code] }
...
clearTimeout(this._hoverHideDelay);
};
OverlayTrigger.prototype.handleToggle = function handleToggle() {
if (this.state.show) {
this.hide();
} else {
this.show();
}
};
OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
var _this2 = this;
if (this._hoverHideDelay != null) {
...
transition = function () { [native code] }
n/a
function componentWillUnmount() { // Clean up the listener if we need to. this.handleExited(); }
n/a
function getChildContext() { return { $bs_modal: { onHide: this.props.onHide } }; }
n/a
function handleDialogClick(e) { if (e.target !== e.currentTarget) { return; } this.props.onHide(); }
n/a
function handleEntering() { // FIXME: This should work even when animation is disabled. _events2['default'].on(window, 'resize', this.handleWindowResize); this.updateStyle(); }
n/a
function handleExited() { // FIXME: This should work even when animation is disabled. _events2['default'].off(window, 'resize', this.handleWindowResize); }
...
onHide: this.props.onHide
}
};
};
Modal.prototype.componentWillUnmount = function componentWillUnmount() {
// Clean up the listener if we need to.
this.handleExited();
};
Modal.prototype.handleEntering = function handleEntering() {
// FIXME: This should work even when animation is disabled.
events.on(window, 'resize', this.handleWindowResize);
this.updateStyle();
};
...
function handleWindowResize() { this.updateStyle(); }
n/a
function render() { var _this2 = this; var _props = this.props, backdrop = _props.backdrop, animation = _props.animation, show = _props.show, Dialog = _props.dialogComponentClass, className = _props.className, style = _props.style, children = _props.children, onEntering = _props.onEntering, onExited = _props.onExited, props = (0, _objectWithoutProperties3['default'])(_props, ['backdrop', 'animation', 'show', 'dialogComponentClass', 'className ', 'style', 'children', 'onEntering', 'onExited']); var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Modal2['default']), baseModalProps = _splitComponentProps[0], dialogProps = _splitComponentProps[1]; var inClassName = show && !animation && 'in'; return _react2['default'].createElement( _Modal2['default'], (0, _extends3['default'])({}, baseModalProps, { ref: function ref(c) { _this2._modal = c; }, show: show, onEntering: (0, _createChainedFunction2['default'])(onEntering, this.handleEntering), onExited: (0, _createChainedFunction2['default'])(onExited, this.handleExited), backdrop: backdrop, backdropClassName: (0, _classnames2['default'])((0, _bootstrapUtils.prefix)(props, 'backdrop'), inClassName), containerClassName: (0, _bootstrapUtils.prefix)(props, 'open'), transition: animation ? _Fade2['default'] : undefined, dialogTransitionTimeout: Modal.TRANSITION_DURATION, backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION }), _react2['default'].createElement( Dialog, (0, _extends3['default'])({}, dialogProps, { style: (0, _extends3['default'])({}, this.state.style, style), className: (0, _classnames2['default'])(className, inClassName), onClick: backdrop === true ? this.handleDialogClick : null }), children ) ); }
n/a
function updateStyle() { if (!_inDOM2['default']) { return; } var dialogNode = this._modal.getDialogElement(); var dialogHeight = dialogNode.scrollHeight; var document = (0, _ownerDocument2['default'])(dialogNode); var bodyIsOverflowing = (0, _isOverflowing2['default'])(_reactDom2['default'].findDOMNode(this.props.container || document.body )); var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; this.setState({ style: { paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2['default'])() : undefined, paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2['default'])() : undefined } }); }
...
// Clean up the listener if we need to.
this.handleExited();
};
Modal.prototype.handleEntering = function handleEntering() {
// FIXME: This should work even when animation is disabled.
events.on(window, 'resize', this.handleWindowResize);
this.updateStyle();
};
Modal.prototype.handleExited = function handleExited() {
// FIXME: This should work even when animation is disabled.
events.off(window, 'resize', this.handleWindowResize);
};
...
function ModalBody() { (0, _classCallCheck3['default'])(this, ModalBody); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function ModalFooter() { (0, _classCallCheck3['default'])(this, ModalFooter); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function ModalHeader() { (0, _classCallCheck3['default'])(this, ModalHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
closeButton = function () { [native code] }
n/a
closeLabel = function () { [native code] }
n/a
onHide = function () { [native code] }
...
};
Modal.prototype.handleDialogClick = function handleDialogClick(e) {
if (e.target !== e.currentTarget) {
return;
}
this.props.onHide();
};
Modal.prototype.updateStyle = function updateStyle() {
if (!canUseDOM) {
return;
}
...
function render() { var _props = this.props, closeLabel = _props.closeLabel, closeButton = _props.closeButton, onHide = _props.onHide, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['closeLabel', 'closeButton', 'onHide', 'className', 'children']); var modal = this.context.$bs_modal; var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), closeButton && _react2['default'].createElement(_CloseButton2['default'], { label: closeLabel, onClick: (0, _createChainedFunction2['default'])(modal && modal.onHide, onHide) }), children ); }
n/a
function ModalTitle() { (0, _classCallCheck3['default'])(this, ModalTitle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function Nav() { (0, _classCallCheck3['default'])(this, Nav); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
activeHref = function () { [native code] }
n/a
activeKey = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
justified = function () { [native code] }
n/a
navbar = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
pullLeft = function () { [native code] }
n/a
pullRight = function () { [native code] }
n/a
role = function () { [native code] }
n/a
stacked = function () { [native code] }
n/a
function componentDidUpdate() { var _this2 = this; if (!this._needsRefocus) { return; } this._needsRefocus = false; var children = this.props.children; var _getActiveProps = this.getActiveProps(), activeKey = _getActiveProps.activeKey, activeHref = _getActiveProps.activeHref; var activeChild = _ValidComponentChildren2['default'].find(children, function (child) { return _this2.isActive(child, activeKey, activeHref); }); var childrenArray = _ValidComponentChildren2['default'].toArray(children); var activeChildIndex = childrenArray.indexOf(activeChild); var childNodes = _reactDom2['default'].findDOMNode(this).children; var activeNode = childNodes && childNodes[activeChildIndex]; if (!activeNode || !activeNode.firstChild) { return; } activeNode.firstChild.focus(); }
n/a
function getActiveProps() { var tabContainer = this.context.$bs_tabContainer; if (tabContainer) { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(this.props.activeKey == null && !this.props.activeHref, 'Specifying a `<Nav>` `activeKey` or `activeHref` in the context of ' + 'a `<TabContainer>` is not supported. Instead use `<TabContainer ' + (' activeKey={' + this.props.activeKey + '} />`.')) : void 0; return tabContainer; } return this.props; }
...
return;
}
this._needsRefocus = false;
var children = this.props.children;
var _getActiveProps = this.getActiveProps(),
activeKey = _getActiveProps.activeKey,
activeHref = _getActiveProps.activeHref;
var activeChild = ValidComponentChildren.find(children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
});
...
function getNextActiveChild(offset) { var _this3 = this; var children = this.props.children; var validChildren = children.filter(function (child) { return child.props.eventKey != null && !child.props.disabled; }); var _getActiveProps2 = this.getActiveProps(), activeKey = _getActiveProps2.activeKey, activeHref = _getActiveProps2.activeHref; var activeChild = _ValidComponentChildren2['default'].find(children, function (child) { return _this3.isActive(child, activeKey, activeHref); }); // This assumes the active child is not disabled. var activeChildIndex = validChildren.indexOf(activeChild); if (activeChildIndex === -1) { // Something has gone wrong. Select the first valid child we can find. return validChildren[0]; } var nextIndex = activeChildIndex + offset; var numValidChildren = validChildren.length; if (nextIndex >= numValidChildren) { nextIndex = 0; } else if (nextIndex < 0) { nextIndex = numValidChildren - 1; } return validChildren[nextIndex]; }
...
Nav.prototype.handleTabKeyDown = function handleTabKeyDown(onSelect, event) {
var nextActiveChild = void 0;
switch (event.keyCode) {
case keycode.codes.left:
case keycode.codes.up:
nextActiveChild = this.getNextActiveChild(-1);
break;
case keycode.codes.right:
case keycode.codes.down:
nextActiveChild = this.getNextActiveChild(1);
break;
default:
// It was a different key; don't handle this keypress.
...
function getTabProps(child, tabContainer, navRole, active, onSelect) { var _this4 = this; if (!tabContainer && navRole !== 'tablist') { // No tab props here. return null; } var _child$props = child.props, id = _child$props.id, controls = _child$props['aria-controls'], eventKey = _child$props.eventKey, role = _child$props.role, onKeyDown = _child$props.onKeyDown, tabIndex = _child$props.tabIndex; if (tabContainer) { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!id && !controls, 'In the context of a `<TabContainer>`, `< NavItem>`s are given ' + 'generated `id` and `aria-controls` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly, provide a `generateChildId` ' + 'prop to the parent `< TabContainer>`.') : void 0; id = tabContainer.getTabId(eventKey); controls = tabContainer.getPaneId(eventKey); } if (navRole === 'tablist') { role = role || 'tab'; onKeyDown = (0, _createChainedFunction2['default'])(function (event) { return _this4.handleTabKeyDown(onSelect, event); }, onKeyDown); tabIndex = active ? tabIndex : -1; } return { id: id, role: role, onKeyDown: onKeyDown, 'aria-controls': controls, tabIndex: tabIndex }; }
...
role: role,
className: classNames(className, classes)
}),
ValidComponentChildren.map(children, function (child) {
var active = _this5.isActive(child, activeKey, activeHref);
var childOnSelect = createChainedFunction(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer
x26;& tabContainer.onSelect);
return cloneElement(child, _extends({}, _this5.getTabProps(child, tabContainer, role
, active, childOnSelect), {
active: active,
activeKey: activeKey,
activeHref: activeHref,
onSelect: childOnSelect
}));
})
);
...
function handleTabKeyDown(onSelect, event) { var nextActiveChild = void 0; switch (event.keyCode) { case _keycode2['default'].codes.left: case _keycode2['default'].codes.up: nextActiveChild = this.getNextActiveChild(-1); break; case _keycode2['default'].codes.right: case _keycode2['default'].codes.down: nextActiveChild = this.getNextActiveChild(1); break; default: // It was a different key; don't handle this keypress. return; } event.preventDefault(); if (onSelect && nextActiveChild && nextActiveChild.props.eventKey != null) { onSelect(nextActiveChild.props.eventKey); } this._needsRefocus = true; }
...
id = tabContainer.getTabId(eventKey);
controls = tabContainer.getPaneId(eventKey);
}
if (navRole === 'tablist') {
role = role || 'tab';
onKeyDown = createChainedFunction(function (event) {
return _this4.handleTabKeyDown(onSelect, event);
}, onKeyDown);
tabIndex = active ? tabIndex : -1;
}
return {
id: id,
role: role,
...
function isActive(_ref2, activeKey, activeHref) { var props = _ref2.props; if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) { return true; } return props.active; }
...
var _this2 = this;
if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref
) {
return true;
}
if (ValidComponentChildren.some(props.children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
})) {
return true;
}
return props.active;
};
...
function render() { var _extends2, _this5 = this; var _props = this.props, stacked = _props.stacked, justified = _props.justified, onSelect = _props.onSelect, propsRole = _props.role, propsNavbar = _props.navbar, pullRight = _props.pullRight, pullLeft = _props.pullLeft, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['stacked', 'justified', 'onSelect', 'role', 'navbar', 'pullRight ', 'pullLeft', 'className', 'children']); var tabContainer = this.context.$bs_tabContainer; var role = propsRole || (tabContainer ? 'tablist' : null); var _getActiveProps3 = this.getActiveProps(), activeKey = _getActiveProps3.activeKey, activeHref = _getActiveProps3.activeHref; delete props.activeKey; // Accessed via this.getActiveProps(). delete props.activeHref; // Accessed via this.getActiveProps(). var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'stacked')] = stacked, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'justified')] = justified, _extends2)); var navbar = propsNavbar != null ? propsNavbar : this.context.$bs_navbar; var pullLeftClassName = void 0; var pullRightClassName = void 0; if (navbar) { var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; classes[(0, _bootstrapUtils.prefix)(navbarProps, 'nav')] = true; pullRightClassName = (0, _bootstrapUtils.prefix)(navbarProps, 'right'); pullLeftClassName = (0, _bootstrapUtils.prefix)(navbarProps, 'left'); } else { pullRightClassName = 'pull-right'; pullLeftClassName = 'pull-left'; } classes[pullRightClassName] = pullRight; classes[pullLeftClassName] = pullLeft; return _react2['default'].createElement( 'ul', (0, _extends4['default'])({}, elementProps, { role: role, className: (0, _classnames2['default'])(className, classes) }), _ValidComponentChildren2['default'].map(children, function (child) { var active = _this5.isActive(child, activeKey, activeHref); var childOnSelect = (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer && tabContainer.onSelect); return (0, _react.cloneElement)(child, (0, _extends4['default'])({}, _this5.getTabProps(child, tabContainer, role, active, childOnSelect), { active: active, activeKey: activeKey, activeHref: activeHref, onSelect: childOnSelect })); }) ); }
n/a
function NavDropdown() { (0, _classCallCheck3['default'])(this, NavDropdown); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
active = function () { [native code] }
n/a
children = function () { [native code] }
n/a
noCaret = function () { [native code] }
n/a
open = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
...
, iframeDocument;
iframe.style.display = 'none';
__webpack_require__(54).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
...
title = function () { [native code] }
n/a
function isActive(_ref, activeKey, activeHref) { var props = _ref.props; var _this2 = this; if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) { return true; } if (_ValidComponentChildren2['default'].some(props.children, function (child) { return _this2.isActive(child, activeKey, activeHref); })) { return true; } return props.active; }
...
var _this2 = this;
if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref
) {
return true;
}
if (ValidComponentChildren.some(props.children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
})) {
return true;
}
return props.active;
};
...
function render() { var _this3 = this; var _props = this.props, title = _props.title, activeKey = _props.activeKey, activeHref = _props.activeHref, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['title', 'activeKey', 'activeHref', 'className', 'style', 'children ']); var active = this.isActive(this, activeKey, activeHref); delete props.active; // Accessed via this.isActive(). delete props.eventKey; // Accessed via this.isActive(). var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Dropdown2['default'].ControlledComponent), dropdownProps = _splitComponentProps[0], toggleProps = _splitComponentProps[1]; // Unlike for the other dropdowns, styling needs to go to the `<Dropdown>` // rather than the `<Dropdown.Toggle>`. return _react2['default'].createElement( _Dropdown2['default'], (0, _extends3['default'])({}, dropdownProps, { componentClass: 'li', className: (0, _classnames2['default'])(className, { active: active }), style: style }), _react2['default'].createElement( _Dropdown2['default'].Toggle, (0, _extends3['default'])({}, toggleProps, { useAnchor: true }), title ), _react2['default'].createElement( _Dropdown2['default'].Menu, null, _ValidComponentChildren2['default'].map(children, function (child) { return _react2['default'].cloneElement(child, { active: _this3.isActive(child, activeKey, activeHref) }); }) ) ); }
n/a
function NavItem(props, context) { (0, _classCallCheck3['default'])(this, NavItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
active = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
href = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
role = function () { [native code] }
n/a
function handleClick(e) { if (this.props.onSelect) { e.preventDefault(); if (!this.props.disabled) { this.props.onSelect(this.props.eventKey, e); } } }
n/a
function render() { var _props = this.props, active = _props.active, disabled = _props.disabled, onClick = _props.onClick, className = _props.className, style = _props.style, props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'disabled', 'onClick', 'className', 'style']); delete props.onSelect; delete props.eventKey; // These are injected down by `<Nav>` for building `<SubNav>`s. delete props.activeKey; delete props.activeHref; if (!props.role) { if (props.href === '#') { props.role = 'button'; } } else if (props.role === 'tab') { props['aria-selected'] = active; } return _react2['default'].createElement( 'li', { role: 'presentation', className: (0, _classnames2['default'])(className, { active: active, disabled: disabled }), style: style }, _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3['default'])({}, props, { disabled: disabled, onClick: (0, _createChainedFunction2['default'])(onClick, this.handleClick) })) ); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function NavbarBrand() { (0, _classCallCheck3['default'])(this, NavbarBrand); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function NavbarCollapse() { (0, _classCallCheck3['default'])(this, NavbarCollapse); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Navbar(props, context) { (0, _classCallCheck3['default'])(this, Navbar); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleToggle = _this.handleToggle.bind(_this); _this.handleCollapse = _this.handleCollapse.bind(_this); return _this; }
n/a
function Wrapper(_ref, _ref2) { var _ref2$$bs_navbar = _ref2.$bs_navbar, navbarProps = _ref2$$bs_navbar === undefined ? { bsClass: 'navbar' } : _ref2$$bs_navbar; var Component = _ref.componentClass, className = _ref.className, pullRight = _ref.pullRight, pullLeft = _ref.pullLeft, props = (0, _objectWithoutProperties3['default'])(_ref, ['componentClass', 'className', 'pullRight', 'pullLeft']); return _react2['default'].createElement(Component, (0, _extends4['default'])({}, props, { className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(navbarProps, suffix), pullRight && (0, _bootstrapUtils .prefix)(navbarProps, 'right'), pullLeft && (0, _bootstrapUtils.prefix)(navbarProps, 'left')) })); }
n/a
function NavbarHeader() { (0, _classCallCheck3['default'])(this, NavbarHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Wrapper(_ref, _ref2) { var _ref2$$bs_navbar = _ref2.$bs_navbar, navbarProps = _ref2$$bs_navbar === undefined ? { bsClass: 'navbar' } : _ref2$$bs_navbar; var Component = _ref.componentClass, className = _ref.className, pullRight = _ref.pullRight, pullLeft = _ref.pullLeft, props = (0, _objectWithoutProperties3['default'])(_ref, ['componentClass', 'className', 'pullRight', 'pullLeft']); return _react2['default'].createElement(Component, (0, _extends4['default'])({}, props, { className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(navbarProps, suffix), pullRight && (0, _bootstrapUtils .prefix)(navbarProps, 'right'), pullLeft && (0, _bootstrapUtils.prefix)(navbarProps, 'left')) })); }
n/a
function Wrapper(_ref, _ref2) { var _ref2$$bs_navbar = _ref2.$bs_navbar, navbarProps = _ref2$$bs_navbar === undefined ? { bsClass: 'navbar' } : _ref2$$bs_navbar; var Component = _ref.componentClass, className = _ref.className, pullRight = _ref.pullRight, pullLeft = _ref.pullLeft, props = (0, _objectWithoutProperties3['default'])(_ref, ['componentClass', 'className', 'pullRight', 'pullLeft']); return _react2['default'].createElement(Component, (0, _extends4['default'])({}, props, { className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(navbarProps, suffix), pullRight && (0, _bootstrapUtils .prefix)(navbarProps, 'right'), pullLeft && (0, _bootstrapUtils.prefix)(navbarProps, 'left')) })); }
n/a
function NavbarToggle() { (0, _classCallCheck3['default'])(this, NavbarToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
deferControlTo = function (newComponent) { var additions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var nextMethods = arguments[2]; return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); }
n/a
function NavbarCollapse() { (0, _classCallCheck3['default'])(this, NavbarCollapse); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['children']); var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; var bsClassName = (0, _bootstrapUtils.prefix)(navbarProps, 'collapse'); return _react2['default'].createElement( _Collapse2['default'], (0, _extends3['default'])({ 'in': navbarProps.expanded }, props), _react2['default'].createElement( 'div', { className: bsClassName }, children ) ); }
n/a
function Navbar(props, context) { (0, _classCallCheck3['default'])(this, Navbar); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleToggle = _this.handleToggle.bind(_this); _this.handleCollapse = _this.handleCollapse.bind(_this); return _this; }
n/a
function getChildContext() { var _props = this.props, bsClass = _props.bsClass, expanded = _props.expanded, onSelect = _props.onSelect, collapseOnSelect = _props.collapseOnSelect; return { $bs_navbar: { bsClass: bsClass, expanded: expanded, onToggle: this.handleToggle, onSelect: (0, _createChainedFunction2['default'])(onSelect, collapseOnSelect ? this.handleCollapse : null) } }; }
n/a
function handleCollapse() { var _props2 = this.props, onToggle = _props2.onToggle, expanded = _props2.expanded; if (expanded) { onToggle(false); } }
n/a
function handleToggle() { var _props3 = this.props, onToggle = _props3.onToggle, expanded = _props3.expanded; onToggle(!expanded); }
n/a
function render() { var _extends2; var _props4 = this.props, Component = _props4.componentClass, fixedTop = _props4.fixedTop, fixedBottom = _props4.fixedBottom, staticTop = _props4.staticTop, inverse = _props4.inverse, fluid = _props4.fluid, className = _props4.className, children = _props4.children, props = (0, _objectWithoutProperties3['default'])(_props4, ['componentClass', 'fixedTop', 'fixedBottom', 'staticTop', 'inverse ', 'fluid', 'className', 'children']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect ']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; // will result in some false positives but that seems better // than false negatives. strict `undefined` check allows explicit // "nulling" of the role if the user really doesn't want one if (elementProps.role === undefined && Component !== 'nav') { elementProps.role = 'navigation'; } if (inverse) { bsProps.bsStyle = _StyleConfig.Style.INVERSE; } var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'fixed-top')] = fixedTop, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'fixed-bottom')] = fixedBottom, _extends2 [(0, _bootstrapUtils.prefix)(bsProps, 'static-top')] = staticTop, _extends2)); return _react2['default'].createElement( Component, (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), _react2['default'].createElement( _Grid2['default'], { fluid: fluid }, children ) ); }
n/a
function NavbarHeader() { (0, _classCallCheck3['default'])(this, NavbarHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; var bsClassName = (0, _bootstrapUtils.prefix)(navbarProps, 'header'); return _react2['default'].createElement('div', (0, _extends3['default'])({}, props, { className: (0, _classnames2['default'])( className, bsClassName) })); }
n/a
function NavbarToggle() { (0, _classCallCheck3['default'])(this, NavbarToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, onClick = _props.onClick, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['onClick', 'className', 'children']); var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; var buttonProps = (0, _extends3['default'])({ type: 'button' }, props, { onClick: (0, _createChainedFunction2['default'])(onClick, navbarProps.onToggle), className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(navbarProps, 'toggle'), !navbarProps.expanded && 'collapsed') }); if (children) { return _react2['default'].createElement( 'button', buttonProps, children ); } return _react2['default'].createElement( 'button', buttonProps, _react2['default'].createElement( 'span', { className: 'sr-only' }, 'Toggle navigation' ), _react2['default'].createElement('span', { className: 'icon-bar' }), _react2['default'].createElement('span', { className: 'icon-bar' }), _react2['default'].createElement('span', { className: 'icon-bar' }) ); }
n/a
bsStyle = function () { [native code] }
n/a
expanded = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
n/a
function componentWillMount() { var _this2 = this; var props = this.props; this._values = {}; controlledProps.forEach(function (key) { _this2._values[key] = props[utils.defaultKey(key)]; }); }
n/a
function componentWillReceiveProps(nextProps) { var _this3 = this; var props = this.props; if (mixin.componentWillReceiveProps) { mixin.componentWillReceiveProps.call(this, nextProps); } controlledProps.forEach(function (key) { if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { _this3._values[key] = nextProps[utils.defaultKey(key)]; } }); }
n/a
function componentWillUnmount() { this.unmounted = true; }
n/a
function getControlledInstance() { return this.refs.inner; }
n/a
function render() { var _this4 = this; var newProps = {}, props = omitProps(this.props); utils.each(controlledValues, function (handle, propName) { var linkPropName = utils.getLinkName(propName), prop = _this4.props[propName]; if (linkPropName && !isProp(_this4.props, propName) && isProp(_this4.props, linkPropName)) { prop = _this4.props[linkPropName].value; } newProps[propName] = prop !== undefined ? prop : _this4._values[propName]; newProps[handle] = setAndNotify.bind(_this4, propName); }); newProps = _extends({}, props, newProps, { ref: isCompositeComponent ? 'inner' : null }); return _react2.default.createElement(Component, newProps); }
n/a
function shouldComponentUpdate() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return !mixin.shouldComponentUpdate || mixin.shouldComponentUpdate.apply(this, args); }
n/a
function NavbarBrand() { (0, _classCallCheck3['default'])(this, NavbarBrand); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; var bsClassName = (0, _bootstrapUtils.prefix)(navbarProps, 'brand'); if (_react2['default'].isValidElement(children)) { return _react2['default'].cloneElement(children, { className: (0, _classnames2['default'])(children.props.className, className, bsClassName) }); } return _react2['default'].createElement( 'span', (0, _extends3['default'])({}, props, { className: (0, _classnames2['default'])(className, bsClassName) }), children ); }
n/a
function Overlay() { (0, _classCallCheck3['default'])(this, Overlay); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function Fade() { (0, _classCallCheck3['default'])(this, Fade); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
animation = function () { [native code] }
n/a
container = function () { [native code] }
n/a
containerPadding = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
onHide = function () { [native code] }
...
};
Modal.prototype.handleDialogClick = function handleDialogClick(e) {
if (e.target !== e.currentTarget) {
return;
}
this.props.onHide();
};
Modal.prototype.updateStyle = function updateStyle() {
if (!canUseDOM) {
return;
}
...
placement = function () { [native code] }
n/a
rootClose = function () { [native code] }
n/a
shouldUpdatePosition = function () { [native code] }
n/a
show = function () { [native code] }
...
clearTimeout(this._hoverHideDelay);
};
OverlayTrigger.prototype.handleToggle = function handleToggle() {
if (this.state.show) {
this.hide();
} else {
this.show();
}
};
OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
var _this2 = this;
if (this._hoverHideDelay != null) {
...
target = function () { [native code] }
n/a
transition = function () { [native code] }
n/a
function render() { var _props = this.props, animation = _props.animation, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['animation', 'children']); var transition = animation === true ? _Fade2['default'] : animation || null; var child = void 0; if (!transition) { child = (0, _react.cloneElement)(children, { className: (0, _classnames2['default'])(children.props.className, 'in') }); } else { child = children; } return _react2['default'].createElement( _Overlay2['default'], (0, _extends3['default'])({}, props, { transition: transition }), child ); }
n/a
function OverlayTrigger(props, context) { (0, _classCallCheck3['default'])(this, OverlayTrigger); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleToggle = _this.handleToggle.bind(_this); _this.handleDelayedShow = _this.handleDelayedShow.bind(_this); _this.handleDelayedHide = _this.handleDelayedHide.bind(_this); _this.handleHide = _this.handleHide.bind(_this); _this.handleMouseOver = function (e) { return _this.handleMouseOverOut(_this.handleDelayedShow, e); }; _this.handleMouseOut = function (e) { return _this.handleMouseOverOut(_this.handleDelayedHide, e); }; _this._mountNode = null; _this.state = { show: props.defaultOverlayShown }; return _this; }
n/a
animation = function () { [native code] }
n/a
container = function () { [native code] }
n/a
containerPadding = function () { [native code] }
n/a
defaultOverlayShown = function () { [native code] }
n/a
delay = function () { [native code] }
n/a
delayHide = function () { [native code] }
n/a
delayShow = function () { [native code] }
n/a
onBlur = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
onFocus = function () { [native code] }
n/a
onHide = function () { [native code] }
...
};
Modal.prototype.handleDialogClick = function handleDialogClick(e) {
if (e.target !== e.currentTarget) {
return;
}
this.props.onHide();
};
Modal.prototype.updateStyle = function updateStyle() {
if (!canUseDOM) {
return;
}
...
onMouseOut = function () { [native code] }
n/a
onMouseOver = function () { [native code] }
n/a
overlay = function () { [native code] }
n/a
placement = function () { [native code] }
n/a
rootClose = function () { [native code] }
n/a
shouldUpdatePosition = function () { [native code] }
n/a
show = function () { [native code] }
...
clearTimeout(this._hoverHideDelay);
};
OverlayTrigger.prototype.handleToggle = function handleToggle() {
if (this.state.show) {
this.hide();
} else {
this.show();
}
};
OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
var _this2 = this;
if (this._hoverHideDelay != null) {
...
target = function () { [native code] }
n/a
transition = function () { [native code] }
n/a
trigger = function () { [native code] }
n/a
function componentDidMount() { this._mountNode = document.createElement('div'); this.renderOverlay(); }
n/a
function componentDidUpdate() { this.renderOverlay(); }
n/a
function componentWillUnmount() { _reactDom2['default'].unmountComponentAtNode(this._mountNode); this._mountNode = null; clearTimeout(this._hoverShowDelay); clearTimeout(this._hoverHideDelay); }
n/a
function handleDelayedHide() { var _this3 = this; if (this._hoverShowDelay != null) { clearTimeout(this._hoverShowDelay); this._hoverShowDelay = null; return; } if (!this.state.show || this._hoverHideDelay != null) { return; } var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay; if (!delay) { this.hide(); return; } this._hoverHideDelay = setTimeout(function () { _this3._hoverHideDelay = null; _this3.hide(); }, delay); }
n/a
function handleDelayedShow() { var _this2 = this; if (this._hoverHideDelay != null) { clearTimeout(this._hoverHideDelay); this._hoverHideDelay = null; return; } if (this.state.show || this._hoverShowDelay != null) { return; } var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay; if (!delay) { this.show(); return; } this._hoverShowDelay = setTimeout(function () { _this2._hoverShowDelay = null; _this2.show(); }, delay); }
n/a
function handleHide() { this.hide(); }
n/a
function handleMouseOverOut(handler, e) { var target = e.currentTarget; var related = e.relatedTarget || e.nativeEvent.toElement; if (!related || related !== target && !(0, _contains2['default'])(target, related)) { handler(e); } }
...
_this.handleToggle = _this.handleToggle.bind(_this);
_this.handleDelayedShow = _this.handleDelayedShow.bind(_this);
_this.handleDelayedHide = _this.handleDelayedHide.bind(_this);
_this.handleHide = _this.handleHide.bind(_this);
_this.handleMouseOver = function (e) {
return _this.handleMouseOverOut(_this.handleDelayedShow, e);
};
_this.handleMouseOut = function (e) {
return _this.handleMouseOverOut(_this.handleDelayedHide, e);
};
_this._mountNode = null;
...
function handleToggle() { if (this.state.show) { this.hide(); } else { this.show(); } }
n/a
function hide() { this.setState({ show: false }); }
...
clearTimeout(this._hoverShowDelay);
clearTimeout(this._hoverHideDelay);
};
OverlayTrigger.prototype.handleToggle = function handleToggle() {
if (this.state.show) {
this.hide();
} else {
this.show();
}
};
OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
var _this2 = this;
...
function makeOverlay(overlay, props) { return _react2['default'].createElement( _Overlay2['default'], (0, _extends3['default'])({}, props, { show: this.state.show, onHide: this.handleHide, target: this }), overlay ); }
...
}
if (isOneOf('focus', trigger)) {
triggerProps.onFocus = createChainedFunction(childProps.onFocus, onFocus, this.handleDelayedShow);
triggerProps.onBlur = createChainedFunction(childProps.onBlur, onBlur, this.handleDelayedHide);
}
this._overlay = this.makeOverlay(overlay, props);
return cloneElement(child, triggerProps);
};
return OverlayTrigger;
}(React.Component);
...
function render() { var _props = this.props, trigger = _props.trigger, overlay = _props.overlay, children = _props.children, onBlur = _props.onBlur, onClick = _props.onClick, onFocus = _props.onFocus, onMouseOut = _props.onMouseOut, onMouseOver = _props.onMouseOver, props = (0, _objectWithoutProperties3['default'])(_props, ['trigger', 'overlay', 'children', 'onBlur', 'onClick', 'onFocus ', 'onMouseOut', 'onMouseOver']); delete props.delay; delete props.delayShow; delete props.delayHide; delete props.defaultOverlayShown; var child = _react2['default'].Children.only(children); var childProps = child.props; var triggerProps = {}; if (this.state.show) { triggerProps['aria-describedby'] = overlay.props.id; } // FIXME: The logic here for passing through handlers on this component is // inconsistent. We shouldn't be passing any of these props through. triggerProps.onClick = (0, _createChainedFunction2['default'])(childProps.onClick, onClick); if (isOneOf('click', trigger)) { triggerProps.onClick = (0, _createChainedFunction2['default'])(triggerProps.onClick, this.handleToggle); } if (isOneOf('hover', trigger)) { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and keyboard only ' + 'users can see the overlay as well.') : void 0; triggerProps.onMouseOver = (0, _createChainedFunction2['default'])(childProps.onMouseOver, onMouseOver, this.handleMouseOver ); triggerProps.onMouseOut = (0, _createChainedFunction2['default'])(childProps.onMouseOut, onMouseOut, this.handleMouseOut); } if (isOneOf('focus', trigger)) { triggerProps.onFocus = (0, _createChainedFunction2['default'])(childProps.onFocus, onFocus, this.handleDelayedShow); triggerProps.onBlur = (0, _createChainedFunction2['default'])(childProps.onBlur, onBlur, this.handleDelayedHide); } this._overlay = this.makeOverlay(overlay, props); return (0, _react.cloneElement)(child, triggerProps); }
n/a
function renderOverlay() { _reactDom2['default'].unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode); }
...
show: props.defaultOverlayShown
};
return _this;
}
OverlayTrigger.prototype.componentDidMount = function componentDidMount() {
this._mountNode = document.createElement('div');
this.renderOverlay();
};
OverlayTrigger.prototype.componentDidUpdate = function componentDidUpdate() {
this.renderOverlay();
};
OverlayTrigger.prototype.componentWillUnmount = function componentWillUnmount() {
...
function show() { this.setState({ show: true }); }
...
clearTimeout(this._hoverHideDelay);
};
OverlayTrigger.prototype.handleToggle = function handleToggle() {
if (this.state.show) {
this.hide();
} else {
this.show();
}
};
OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
var _this2 = this;
if (this._hoverHideDelay != null) {
...
function PageHeader() { (0, _classCallCheck3['default'])(this, PageHeader); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), _react2['default'].createElement( 'h1', null, children ) ); }
n/a
function DeprecatedComponent() { (0, _classCallCheck3['default'])(this, DeprecatedComponent); return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); }
n/a
function componentWillMount() { deprecationWarning.apply(undefined, args); if (_Component.prototype.componentWillMount) { var _Component$prototype$; for (var _len2 = arguments.length, methodArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { methodArgs[_key2] = arguments[_key2]; } (_Component$prototype$ = _Component.prototype.componentWillMount).call.apply(_Component$prototype$, [this].concat(methodArgs )); } }
n/a
function Pager() { (0, _classCallCheck3['default'])(this, Pager); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function PagerItem(props, context) { (0, _classCallCheck3['default'])(this, PagerItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleSelect = _this.handleSelect.bind(_this); return _this; }
n/a
function PagerItem(props, context) { (0, _classCallCheck3['default'])(this, PagerItem); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleSelect = _this.handleSelect.bind(_this); return _this; }
n/a
function handleSelect(e) { var _props = this.props, disabled = _props.disabled, onSelect = _props.onSelect, eventKey = _props.eventKey; if (onSelect || disabled) { e.preventDefault(); } if (disabled) { return; } if (onSelect) { onSelect(eventKey, e); } }
n/a
function render() { var _props2 = this.props, disabled = _props2.disabled, previous = _props2.previous, next = _props2.next, onClick = _props2.onClick, className = _props2.className, style = _props2.style, props = (0, _objectWithoutProperties3['default'])(_props2, ['disabled', 'previous', 'next', 'onClick', 'className', 'style ']); delete props.onSelect; delete props.eventKey; return _react2['default'].createElement( 'li', { className: (0, _classnames2['default'])(className, { disabled: disabled, previous: previous, next: next }), style: style }, _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3['default'])({}, props, { disabled: disabled, onClick: (0, _createChainedFunction2['default'])(onClick, this.handleSelect) })) ); }
n/a
bsClass = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
function render() { var _props = this.props, onSelect = _props.onSelect, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['onSelect', 'className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( 'ul', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), _ValidComponentChildren2['default'].map(children, function (child) { return (0, _react.cloneElement)(child, { onSelect: (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect) }); }) ); }
n/a
function Pagination() { (0, _classCallCheck3['default'])(this, Pagination); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
activePage = function () { [native code] }
n/a
boundaryLinks = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
buttonComponentClass = function () { [native code] }
n/a
ellipsis = function () { [native code] }
n/a
first = function () { [native code] }
n/a
items = function () { [native code] }
n/a
last = function () { [native code] }
n/a
maxButtons = function () { [native code] }
n/a
next = function () { [native code] }
...
'use strict';
var $at = __webpack_require__(46)(true);
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(47)(String, 'String', function(iterated){
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function(){
var O = this._t
, index = this._i
, point;
if(index >= O.length)return {value: undefined, done: true};
point = $at(O, index);
this._i += point.length;
...
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
prev = function () { [native code] }
n/a
function render() { var _props = this.props, activePage = _props.activePage, items = _props.items, maxButtons = _props.maxButtons, boundaryLinks = _props.boundaryLinks, ellipsis = _props.ellipsis, first = _props.first, last = _props.last, prev = _props.prev, next = _props.next, onSelect = _props.onSelect, buttonComponentClass = _props.buttonComponentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['activePage', 'items', 'maxButtons', 'boundaryLinks', 'ellipsis ', 'first', 'last', 'prev', 'next', 'onSelect', 'buttonComponentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); var buttonProps = { onSelect: onSelect, componentClass: buttonComponentClass }; return _react2['default'].createElement( 'ul', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), first && _react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { eventKey: 1, disabled: activePage === 1 }), _react2['default'].createElement( 'span', { 'aria-label': 'First' }, first === true ? '\xAB' : first ) ), prev && _react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { eventKey: activePage - 1, disabled: activePage === 1 }), _react2['default'].createElement( 'span', { 'aria-label': 'Previous' }, prev === true ? '\u2039' : prev ) ), this.renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps), next && _react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { eventKey: activePage + 1, disabled: activePage >= items }), _react2['default'].createElement( 'span', { 'aria-label': 'Next' }, next === true ? '\u203A' : next ) ), last && _react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { eventKey: items, disabled: activePage >= items }), _react2['default'].createElement( 'span', { 'aria-label': 'Last' }, last === true ? '\xBB' : last ) ) ); }
n/a
function renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps) { var pageButtons = []; var startPage = void 0; var endPage = void 0; if (maxButtons && maxButtons < items) { startPage = Math.max(Math.min(activePage - Math.floor(maxButtons / 2, 10), items - maxButtons + 1), 1); endPage = startPage + maxButtons - 1; } else { startPage = 1; endPage = items; } for (var page = startPage; page <= endPage; ++page) { pageButtons.push(_react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { key: page, eventKey: page, active: page === activePage }), page )); } if (ellipsis && boundaryLinks && startPage > 1) { if (startPage > 2) { pageButtons.unshift(_react2['default'].createElement( _PaginationButton2['default'], { key: 'ellipsisFirst', disabled: true, componentClass: buttonProps.componentClass }, _react2['default'].createElement( 'span', { 'aria-label': 'More' }, ellipsis === true ? '\u2026' : ellipsis ) )); } pageButtons.unshift(_react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { key: 1, eventKey: 1, active: false }), '1' )); } if (ellipsis && endPage < items) { if (!boundaryLinks || endPage < items - 1) { pageButtons.push(_react2['default'].createElement( _PaginationButton2['default'], { key: 'ellipsis', disabled: true, componentClass: buttonProps.componentClass }, _react2['default'].createElement( 'span', { 'aria-label': 'More' }, ellipsis === true ? '\u2026' : ellipsis ) )); } if (boundaryLinks) { pageButtons.push(_react2['default'].createElement( _PaginationButton2['default'], (0, _extends3['default'])({}, buttonProps, { key: items, eventKey: items, active: false }), items )); } } return pageButtons; }
...
}),
React.createElement(
'span',
{ 'aria-label': 'Previous' },
prev === true ? '\u2039' : prev
)
),
this.renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps
),
next && React.createElement(
PaginationButton,
_extends({}, buttonProps, {
eventKey: activePage + 1,
disabled: activePage >= items
}),
React.createElement(
...
function PaginationButton(props, context) { (0, _classCallCheck3['default'])(this, PaginationButton); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
function SafeAnchor(props, context) { (0, _classCallCheck3['default'])(this, SafeAnchor); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
active = function () { [native code] }
n/a
className = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
function handleClick(event) { var _props = this.props, disabled = _props.disabled, onSelect = _props.onSelect, eventKey = _props.eventKey; if (disabled) { return; } if (onSelect) { onSelect(eventKey, event); } }
n/a
function render() { var _props2 = this.props, Component = _props2.componentClass, active = _props2.active, disabled = _props2.disabled, onClick = _props2.onClick, className = _props2.className, style = _props2.style, props = (0, _objectWithoutProperties3['default'])(_props2, ['componentClass', 'active', 'disabled', 'onClick', 'className', ' style']); if (Component === _SafeAnchor2['default']) { // Assume that custom components want `eventKey`. delete props.eventKey; } delete props.onSelect; return _react2['default'].createElement( 'li', { className: (0, _classnames2['default'])(className, { active: active, disabled: disabled }), style: style }, _react2['default'].createElement(Component, (0, _extends3['default'])({}, props, { disabled: disabled, onClick: (0, _createChainedFunction2['default'])(onClick, this.handleClick) })) ); }
n/a
function Panel(props, context) { (0, _classCallCheck3['default'])(this, Panel); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClickTitle = _this.handleClickTitle.bind(_this); _this.state = { expanded: _this.props.defaultExpanded }; return _this; }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
collapsible = function () { [native code] }
n/a
defaultExpanded = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
expanded = function () { [native code] }
n/a
footer = function () { [native code] }
n/a
header = function () { [native code] }
n/a
headerRole = function () { [native code] }
n/a
id = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
panelRole = function () { [native code] }
n/a
function handleClickTitle(e) { // FIXME: What the heck? This API is horrible. This needs to go away! e.persist(); e.selected = true; if (this.props.onSelect) { this.props.onSelect(this.props.eventKey, e); } else { e.preventDefault(); } if (e.selected) { this.setState({ expanded: !this.state.expanded }); } }
n/a
function render() { var _props = this.props, collapsible = _props.collapsible, header = _props.header, id = _props.id, footer = _props.footer, propsExpanded = _props.expanded, headerRole = _props.headerRole, panelRole = _props.panelRole, className = _props.className, children = _props.children, onEnter = _props.onEnter, onEntering = _props.onEntering, onEntered = _props.onEntered, onExit = _props.onExit, onExiting = _props.onExiting, onExited = _props.onExited, props = (0, _objectWithoutProperties3['default'])(_props, ['collapsible', 'header', 'id', 'footer', 'expanded', 'headerRole ', 'panelRole', 'className', 'children', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['defaultExpanded', 'eventKey', 'onSelect']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var expanded = propsExpanded != null ? propsExpanded : this.state.expanded; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes), id: collapsible ? null : id }), header && _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'heading') }, this.renderHeader(collapsible, header, id, headerRole, expanded, bsProps) ), collapsible ? this.renderCollapsibleBody(id, expanded, panelRole, children, bsProps, { onEnter: onEnter, onEntering: onEntering , onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited }) : this.renderBody(children, bsProps), footer && _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'footer') }, footer ) ); }
n/a
function renderAnchor(header, id, role, expanded) { return _react2['default'].createElement( 'a', { role: role, href: id && '#' + id, onClick: this.handleClickTitle, 'aria-controls': id, 'aria-expanded': expanded, 'aria-selected': expanded, className: expanded ? null : 'collapsed' }, header ); }
...
var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {
active: active
}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'block')] = block, _extends2));
var fullClassName = (0, _classnames2['default'])(className, classes);
if (elementProps.href) {
return this.renderAnchor(elementProps, fullClassName);
}
return this.renderButton(elementProps, fullClassName);
};
return Button;
}(_react2['default'].Component);
...
function renderBody(rawChildren, bsProps) { var children = []; var bodyChildren = []; var bodyClassName = (0, _bootstrapUtils.prefix)(bsProps, 'body'); function maybeAddBody() { if (!bodyChildren.length) { return; } // Derive the key from the index here, since we need to make one up. children.push(_react2['default'].createElement( 'div', { key: children.length, className: bodyClassName }, bodyChildren )); bodyChildren = []; } // Convert to array so we can re-use keys. _react2['default'].Children.toArray(rawChildren).forEach(function (child) { if (_react2['default'].isValidElement(child) && child.props.fill) { maybeAddBody(); // Remove the child's unknown `fill` prop. children.push((0, _react.cloneElement)(child, { fill: undefined })); return; } bodyChildren.push(child); }); maybeAddBody(); return children; }
...
'div',
{
id: id,
role: role,
className: prefix(bsProps, 'collapse'),
'aria-hidden': !expanded
},
this.renderBody(children, bsProps)
)
);
};
Panel.prototype.renderBody = function renderBody(rawChildren, bsProps) {
var children = [];
var bodyChildren = [];
...
function renderCollapsibleBody(id, expanded, role, children, bsProps, animationHooks) { return _react2['default'].createElement( _Collapse2['default'], (0, _extends3['default'])({ 'in': expanded }, animationHooks), _react2['default'].createElement( 'div', { id: id, role: role, className: (0, _bootstrapUtils.prefix)(bsProps, 'collapse'), 'aria-hidden': !expanded }, this.renderBody(children, bsProps) ) ); }
...
id: collapsible ? null : id
}),
header && React.createElement(
'div',
{ className: prefix(bsProps, 'heading') },
this.renderHeader(collapsible, header, id, headerRole, expanded, bsProps)
),
collapsible ? this.renderCollapsibleBody(id, expanded, panelRole, children, bsProps
, { onEnter: onEnter, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited }) :
this.renderBody(children, bsProps),
footer && React.createElement(
'div',
{ className: prefix(bsProps, 'footer') },
footer
)
);
};
...
function renderHeader(collapsible, header, id, role, expanded, bsProps) { var titleClassName = (0, _bootstrapUtils.prefix)(bsProps, 'title'); if (!collapsible) { if (!_react2['default'].isValidElement(header)) { return header; } return (0, _react.cloneElement)(header, { className: (0, _classnames2['default'])(header.props.className, titleClassName) }); } if (!_react2['default'].isValidElement(header)) { return _react2['default'].createElement( 'h4', { role: 'presentation', className: titleClassName }, this.renderAnchor(header, id, role, expanded) ); } return (0, _react.cloneElement)(header, { className: (0, _classnames2['default'])(header.props.className, titleClassName), children: this.renderAnchor(header.props.children, id, role, expanded) }); }
...
elementProps.className = classNames(className, classes);
// TODO: Deprecate `header` prop.
if (header) {
return React.createElement(
Component,
elementProps,
this.renderHeader(header, prefix(bsProps, 'heading')),
React.createElement(
'p',
{ className: prefix(bsProps, 'text') },
children
)
);
}
...
function PanelGroup(props, context) { (0, _classCallCheck3['default'])(this, PanelGroup); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleSelect = _this.handleSelect.bind(_this); _this.state = { activeKey: props.defaultActiveKey }; return _this; }
n/a
accordion = function () { [native code] }
n/a
activeKey = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
defaultActiveKey = function () { [native code] }
n/a
onSelect = function () { [native code] }
...
return _this;
}
PanelGroup.prototype.handleSelect = function handleSelect(key, e) {
e.preventDefault();
if (this.props.onSelect) {
this.props.onSelect(key, e);
}
if (this.state.activeKey === key) {
key = null;
}
this.setState({ activeKey: key });
...
role = function () { [native code] }
n/a
function handleSelect(key, e) { e.preventDefault(); if (this.props.onSelect) { this.props.onSelect(key, e); } if (this.state.activeKey === key) { key = null; } this.setState({ activeKey: key }); }
n/a
function render() { var _this2 = this; var _props = this.props, accordion = _props.accordion, propsActiveKey = _props.activeKey, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['accordion', 'activeKey', 'className', 'children']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['defaultActiveKey', 'onSelect']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var activeKey = void 0; if (accordion) { activeKey = propsActiveKey != null ? propsActiveKey : this.state.activeKey; elementProps.role = elementProps.role || 'tablist'; } var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( 'div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), _ValidComponentChildren2['default'].map(children, function (child) { var childProps = { bsStyle: child.props.bsStyle || bsProps.bsStyle }; if (accordion) { (0, _assign2['default'])(childProps, { headerRole: 'tab', panelRole: 'tabpanel', collapsible: true, expanded: child.props.eventKey === activeKey, onSelect: (0, _createChainedFunction2['default'])(_this2.handleSelect, child.props.onSelect) }); } return (0, _react.cloneElement)(child, childProps); }) ); }
n/a
function Popover() { (0, _classCallCheck3['default'])(this, Popover); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
arrowOffsetLeft = function () { [native code] }
n/a
arrowOffsetTop = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
function validate(props, propName, componentName, location, propFullName) { var componentNameSafe = componentName || '<<anonymous>>'; var propFullNameSafe = propFullName || propName; if (props[propName] == null) { return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); } for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { args[_key - 5] = arguments[_key]; } return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); }
n/a
placement = function () { [native code] }
n/a
positionLeft = function () { [native code] }
n/a
positionTop = function () { [native code] }
n/a
title = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, placement = _props.placement, positionTop = _props.positionTop, positionLeft = _props.positionLeft, arrowOffsetTop = _props.arrowOffsetTop, arrowOffsetLeft = _props.arrowOffsetLeft, title = _props.title, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', ' arrowOffsetLeft', 'title', 'className', 'style', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2)); var outerStyle = (0, _extends4['default'])({ display: 'block', top: positionTop, left: positionLeft }, style); var arrowStyle = { top: arrowOffsetTop, left: arrowOffsetLeft }; return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, elementProps, { role: 'tooltip', className: (0, _classnames2['default'])(className, classes), style: outerStyle }), _react2['default'].createElement('div', { className: 'arrow', style: arrowStyle }), title && _react2['default'].createElement( 'h3', { className: (0, _bootstrapUtils.prefix)(bsProps, 'title') }, title ), _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'content') }, children ) ); }
n/a
function ProgressBar() { (0, _classCallCheck3['default'])(this, ProgressBar); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
active = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
function onlyProgressBar(props, propName, componentName) { var children = props[propName]; if (!children) { return null; } var error = null; _react2['default'].Children.forEach(children, function (child) { if (error) { return; } if (child.type === ProgressBar) { // eslint-disable-line no-use-before-define return; } var childIdentifier = _react2['default'].isValidElement(child) ? child.type.displayName || child.type.name || child.type : child ; error = new Error('Children of ' + componentName + ' can contain only ProgressBar ' + ('components. Found ' + childIdentifier + '.')); }); return error; }
n/a
isChild = function () { [native code] }
n/a
label = function () { [native code] }
n/a
max = function () { [native code] }
...
Pagination.prototype.renderPageButtons = function renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps
) {
var pageButtons = [];
var startPage = void 0;
var endPage = void 0;
if (maxButtons && maxButtons < items) {
startPage = Math.max(Math.min(activePage - Math.floor(maxButtons / 2, 10), items -
maxButtons + 1), 1);
endPage = startPage + maxButtons - 1;
} else {
startPage = 1;
endPage = items;
}
for (var page = startPage; page <= endPage; ++page) {
...
min = function () { [native code] }
...
Pagination.prototype.renderPageButtons = function renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps
) {
var pageButtons = [];
var startPage = void 0;
var endPage = void 0;
if (maxButtons && maxButtons < items) {
startPage = Math.max(Math.min(activePage - Math.floor(maxButtons / 2, 10), items -
maxButtons + 1), 1);
endPage = startPage + maxButtons - 1;
} else {
startPage = 1;
endPage = items;
}
for (var page = startPage; page <= endPage; ++page) {
...
now = function () { [native code] }
n/a
srOnly = function () { [native code] }
n/a
striped = function () { [native code] }
n/a
function render() { var _props = this.props, isChild = _props.isChild, props = (0, _objectWithoutProperties3['default'])(_props, ['isChild']); if (isChild) { return this.renderProgressBar(props); } var min = props.min, now = props.now, max = props.max, label = props.label, srOnly = props.srOnly, striped = props.striped, active = props.active, bsClass = props.bsClass, bsStyle = props.bsStyle, className = props.className, children = props.children, wrapperProps = (0, _objectWithoutProperties3['default'])(props, ['min', 'now', 'max', 'label', 'srOnly', 'striped', 'active ', 'bsClass', 'bsStyle', 'className', 'children']); return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, wrapperProps, { className: (0, _classnames2['default'])(className, 'progress') }), children ? _ValidComponentChildren2['default'].map(children, function (child) { return (0, _react.cloneElement)(child, { isChild: true }); }) : this.renderProgressBar({ min: min, now: now, max: max, label: label, srOnly: srOnly, striped: striped, active: active, bsClass: bsClass, bsStyle: bsStyle }) ); }
n/a
function renderProgressBar(_ref) { var _extends2; var min = _ref.min, now = _ref.now, max = _ref.max, label = _ref.label, srOnly = _ref.srOnly, striped = _ref.striped, active = _ref.active, className = _ref.className, style = _ref.style, props = (0, _objectWithoutProperties3['default'])(_ref, ['min', 'now', 'max', 'label', 'srOnly', 'striped', 'active', 'className ', 'style']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = { active: active }, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'striped')] = active || striped, _extends2)); return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, elementProps, { role: 'progressbar', className: (0, _classnames2['default'])(className, classes), style: (0, _extends4['default'])({ width: getPercentage(now, min, max) + '%' }, style), 'aria-valuenow': now, 'aria-valuemin': min, 'aria-valuemax': max }), srOnly ? _react2['default'].createElement( 'span', { className: 'sr-only' }, label ) : label ); }
...
ProgressBar.prototype.render = function render() {
var _props = this.props,
isChild = _props.isChild,
props = _objectWithoutProperties(_props, ['isChild']);
if (isChild) {
return this.renderProgressBar(props);
}
var min = props.min,
now = props.now,
max = props.max,
label = props.label,
srOnly = props.srOnly,
...
function exclusiveRoles() { for (var _len2 = arguments.length, roles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { roles[_key2] = arguments[_key2]; } return (0, _createChainableTypeChecker2['default'])(function (props, propName, component) { var duplicate = void 0; roles.every(function (role) { var childrenWithRole = _ValidComponentChildren2['default'].filter(props.children, function (child) { return child.props.bsRole === role; }); if (childrenWithRole.length > 1) { duplicate = role; return false; } return true; }); if (duplicate) { return new Error('(children) ' + component + ' - Duplicate children detected of bsRole: ' + (duplicate + '. Only one child each allowed with the following ') + ('bsRoles: ' + roles.join(', '))); } return null; }); }
n/a
function requiredRoles() { for (var _len = arguments.length, roles = Array(_len), _key = 0; _key < _len; _key++) { roles[_key] = arguments[_key]; } return (0, _createChainableTypeChecker2['default'])(function (props, propName, component) { var missing = void 0; roles.every(function (role) { if (!_ValidComponentChildren2['default'].some(props.children, function (child) { return child.props.bsRole === role; })) { missing = role; return false; } return true; }); if (missing) { return new Error('(children) ' + component + ' - Missing a required child with bsRole: ' + (missing + '. ' + component + ' must have at least one child of each of ') + ('the following bsRoles: ' + roles.join(', '))); } return null; }); }
n/a
function Radio() { (0, _classCallCheck3['default'])(this, Radio); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
inline = function () { [native code] }
n/a
inputRef = function () { [native code] }
n/a
validationState = function () { [native code] }
n/a
function render() { var _props = this.props, inline = _props.inline, disabled = _props.disabled, validationState = _props.validationState, inputRef = _props.inputRef, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className ', 'style', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var input = _react2['default'].createElement('input', (0, _extends3['default'])({}, elementProps, { ref: inputRef, type: 'radio', disabled: disabled })); if (inline) { var _classes2; var _classes = (_classes2 = {}, _classes2[(0, _bootstrapUtils.prefix)(bsProps, 'inline')] = true, _classes2.disabled = disabled , _classes2); // Use a warning here instead of in propTypes to get better-looking // generated documentation. process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!validationState, '`validationState` is ignored on `<Radio inline>`. To display ' + 'validation state on an inline radio, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : void 0; return _react2['default'].createElement( 'label', { className: (0, _classnames2['default'])(className, _classes), style: style }, input, children ); } var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { disabled: disabled }); if (validationState) { classes['has-' + validationState] = true; } return _react2['default'].createElement( 'div', { className: (0, _classnames2['default'])(className, classes), style: style }, _react2['default'].createElement( 'label', null, input, children ) ); }
n/a
function ResponsiveEmbed() { (0, _classCallCheck3['default'])(this, ResponsiveEmbed); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
a16by9 = function () { [native code] }
n/a
a4by3 = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
children = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, a16by9 = _props.a16by9, a4by3 = _props.a4by3, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['a16by9', 'a4by3', 'className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(a16by9 || a4by3, 'Either `a16by9` or `a4by3` must be set.') : void 0; process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!(a16by9 && a4by3), 'Only one of `a16by9` or `a4by3` can be set.') : void 0; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, '16by9')] = a16by9, _extends2[(0, _bootstrapUtils.prefix)(bsProps, '4by3')] = a4by3, _extends2)); return _react2['default'].createElement( 'div', { className: (0, _classnames2['default'])(classes) }, (0, _react.cloneElement)(children, (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(bsProps, 'item')) })) ); }
n/a
function Row() { (0, _classCallCheck3['default'])(this, Row); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
function render() { var _props = this.props, Component = _props.componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function SafeAnchor(props, context) { (0, _classCallCheck3['default'])(this, SafeAnchor); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleClick = _this.handleClick.bind(_this); return _this; }
n/a
componentClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
href = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
role = function () { [native code] }
n/a
tabIndex = function () { [native code] }
n/a
function handleClick(event) { var _props = this.props, disabled = _props.disabled, href = _props.href, onClick = _props.onClick; if (disabled || isTrivialHref(href)) { event.preventDefault(); } if (disabled) { event.stopPropagation(); return; } if (onClick) { onClick(event); } }
n/a
function render() { var _props2 = this.props, Component = _props2.componentClass, disabled = _props2.disabled, props = (0, _objectWithoutProperties3['default'])(_props2, ['componentClass', 'disabled']); if (isTrivialHref(props.href)) { props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node // otherwise, the cursor incorrectly styled (except with role='button') props.href = props.href || '#'; } if (disabled) { props.tabIndex = -1; props.style = (0, _extends3['default'])({ pointerEvents: 'none' }, props.style); } return _react2['default'].createElement(Component, (0, _extends3['default'])({}, props, { onClick: this.handleClick })); }
n/a
function SplitButton() { (0, _classCallCheck3['default'])(this, SplitButton); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function SplitToggle() { (0, _classCallCheck3['default'])(this, SplitToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function SplitToggle() { (0, _classCallCheck3['default'])(this, SplitToggle); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { return _react2['default'].createElement(_DropdownToggle2['default'], (0, _extends3['default'])({}, this.props, { useAnchor: false, noCaret: false })); }
n/a
bsSize = function () { [native code] }
n/a
bsStyle = function () { [native code] }
n/a
children = function () { [native code] }
n/a
href = function () { [native code] }
n/a
onClick = function () { [native code] }
n/a
open = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
...
, iframeDocument;
iframe.style.display = 'none';
__webpack_require__(54).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
...
title = function () { [native code] }
n/a
toggleLabel = function () { [native code] }
n/a
function render() { var _props = this.props, bsSize = _props.bsSize, bsStyle = _props.bsStyle, title = _props.title, toggleLabel = _props.toggleLabel, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['bsSize', 'bsStyle', 'title', 'toggleLabel', 'children']); var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Dropdown2['default'].ControlledComponent), dropdownProps = _splitComponentProps[0], buttonProps = _splitComponentProps[1]; return _react2['default'].createElement( _Dropdown2['default'], (0, _extends3['default'])({}, dropdownProps, { bsSize: bsSize, bsStyle: bsStyle }), _react2['default'].createElement( _Button2['default'], (0, _extends3['default'])({}, buttonProps, { disabled: props.disabled, bsSize: bsSize, bsStyle: bsStyle }), title ), _react2['default'].createElement(_SplitToggle2['default'], { 'aria-label': toggleLabel || title, bsSize: bsSize, bsStyle: bsStyle }), _react2['default'].createElement( _Dropdown2['default'].Menu, null, children ) ); }
n/a
function Tab() { (0, _classCallCheck3['default'])(this, Tab); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function TabContent(props, context) { (0, _classCallCheck3['default'])(this, TabContent); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handlePaneEnter = _this.handlePaneEnter.bind(_this); _this.handlePaneExited = _this.handlePaneExited.bind(_this); // Active entries in state will be `null` unless `animation` is set. Need // to track active child in case keys swap and the active child changes // but the active key does not. _this.state = { activeKey: null, activeChild: null }; return _this; }
n/a
function TabPane(props, context) { (0, _classCallCheck3['default'])(this, TabPane); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEnter = _this.handleEnter.bind(_this); _this.handleExited = _this.handleExited.bind(_this); _this['in'] = false; return _this; }
n/a
animation = function () { [native code] }
n/a
aria-labelledby = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
disabled = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
id = function () { [native code] }
n/a
mountOnEnter = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
tabClassName = function () { [native code] }
n/a
title = function () { [native code] }
n/a
unmountOnExit = function () { [native code] }
n/a
function render() { var props = (0, _extends3['default'])({}, this.props); // These props are for the parent `<Tabs>` rather than the `<TabPane>`. delete props.title; delete props.disabled; delete props.tabClassName; return _react2['default'].createElement(_TabPane2['default'], props); }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function TabContainer() { (0, _classCallCheck3['default'])(this, TabContainer); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
deferControlTo = function (newComponent) { var additions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var nextMethods = arguments[2]; return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); }
n/a
function TabContainer() { (0, _classCallCheck3['default'])(this, TabContainer); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function getChildContext() { var _props = this.props, activeKey = _props.activeKey, onSelect = _props.onSelect, generateChildId = _props.generateChildId, id = _props.id; var getId = generateChildId || function (key, type) { return id ? id + '-' + type + '-' + key : null; }; return { $bs_tabContainer: { activeKey: activeKey, onSelect: onSelect, getTabId: function getTabId(key) { return getId(key, TAB); }, getPaneId: function getPaneId(key) { return getId(key, PANE); } } }; }
n/a
function render() { var _props2 = this.props, children = _props2.children, props = (0, _objectWithoutProperties3['default'])(_props2, ['children']); delete props.generateChildId; delete props.onSelect; delete props.activeKey; return _react2['default'].cloneElement(_react2['default'].Children.only(children), props); }
n/a
activeKey = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
n/a
function componentWillMount() { var _this2 = this; var props = this.props; this._values = {}; controlledProps.forEach(function (key) { _this2._values[key] = props[utils.defaultKey(key)]; }); }
n/a
function componentWillReceiveProps(nextProps) { var _this3 = this; var props = this.props; if (mixin.componentWillReceiveProps) { mixin.componentWillReceiveProps.call(this, nextProps); } controlledProps.forEach(function (key) { if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { _this3._values[key] = nextProps[utils.defaultKey(key)]; } }); }
n/a
function componentWillUnmount() { this.unmounted = true; }
n/a
function getControlledInstance() { return this.refs.inner; }
n/a
function render() { var _this4 = this; var newProps = {}, props = omitProps(this.props); utils.each(controlledValues, function (handle, propName) { var linkPropName = utils.getLinkName(propName), prop = _this4.props[propName]; if (linkPropName && !isProp(_this4.props, propName) && isProp(_this4.props, linkPropName)) { prop = _this4.props[linkPropName].value; } newProps[propName] = prop !== undefined ? prop : _this4._values[propName]; newProps[handle] = setAndNotify.bind(_this4, propName); }); newProps = _extends({}, props, newProps, { ref: isCompositeComponent ? 'inner' : null }); return _react2.default.createElement(Component, newProps); }
n/a
function shouldComponentUpdate() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return !mixin.shouldComponentUpdate || mixin.shouldComponentUpdate.apply(this, args); }
n/a
function TabContent(props, context) { (0, _classCallCheck3['default'])(this, TabContent); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handlePaneEnter = _this.handlePaneEnter.bind(_this); _this.handlePaneExited = _this.handlePaneExited.bind(_this); // Active entries in state will be `null` unless `animation` is set. Need // to track active child in case keys swap and the active child changes // but the active key does not. _this.state = { activeKey: null, activeChild: null }; return _this; }
n/a
animation = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
componentClass = function () { [native code] }
n/a
mountOnEnter = function () { [native code] }
n/a
unmountOnExit = function () { [native code] }
n/a
function componentWillReceiveProps(nextProps) { if (!nextProps.animation && this.state.activeChild) { this.setState({ activeKey: null, activeChild: null }); } }
n/a
function componentWillUnmount() { this.isUnmounted = true; }
n/a
function getChildContext() { var _props = this.props, bsClass = _props.bsClass, animation = _props.animation, mountOnEnter = _props.mountOnEnter, unmountOnExit = _props.unmountOnExit; var stateActiveKey = this.state.activeKey; var containerActiveKey = this.getContainerActiveKey(); var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey; var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey; return { $bs_tabContent: { bsClass: bsClass, animation: animation, activeKey: activeKey, mountOnEnter: mountOnEnter, unmountOnExit: unmountOnExit, onPaneEnter: this.handlePaneEnter, onPaneExited: this.handlePaneExited, exiting: exiting } }; }
n/a
function getContainerActiveKey() { var tabContainer = this.context.$bs_tabContainer; return tabContainer && tabContainer.activeKey; }
...
bsClass = _props.bsClass,
animation = _props.animation,
mountOnEnter = _props.mountOnEnter,
unmountOnExit = _props.unmountOnExit;
var stateActiveKey = this.state.activeKey;
var containerActiveKey = this.getContainerActiveKey();
var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey;
var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey;
return {
$bs_tabContent: {
bsClass: bsClass,
...
function handlePaneEnter(child, childKey) { if (!this.props.animation) { return false; } // It's possible that this child should be transitioning out. if (childKey !== this.getContainerActiveKey()) { return false; } this.setState({ activeKey: childKey, activeChild: child }); return true; }
n/a
function handlePaneExited(child) { // This might happen as everything is unmounting. if (this.isUnmounted) { return; } this.setState(function (_ref) { var activeChild = _ref.activeChild; if (activeChild !== child) { return null; } return { activeKey: null, activeChild: null }; }); }
n/a
function render() { var _props2 = this.props, Component = _props2.componentClass, className = _props2.className, props = (0, _objectWithoutProperties3['default'])(_props2, ['componentClass', 'className']); var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['animation', 'mountOnEnter', 'unmountOnExit']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(bsProps, 'content')) })); }
n/a
function TabPane(props, context) { (0, _classCallCheck3['default'])(this, TabPane); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); _this.handleEnter = _this.handleEnter.bind(_this); _this.handleExited = _this.handleExited.bind(_this); _this['in'] = false; return _this; }
n/a
animation = function () { [native code] }
n/a
aria-labelledby = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
eventKey = function () { [native code] }
n/a
id = function () { [native code] }
n/a
mountOnEnter = function () { [native code] }
n/a
onEnter = function () { [native code] }
...
if (_this.nextStatus !== null) {
(function () {
// nextStatus will always be ENTERING or EXITING.
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
...
onEntered = function () { [native code] }
...
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
...
onEntering = function () { [native code] }
...
_this.cancelNextCallback();
var node = _reactDom2.default.findDOMNode(_this);
if (_this.nextStatus === ENTERING) {
_this.props.onEnter(node);
_this.safeSetState({ status: ENTERING }, function () {
_this.props.onEntering(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
...
onExit = function () { [native code] }
...
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: ENTERED }, function () {
_this.props.onEntered(node);
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
...
onExited = function () { [native code] }
...
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
}
_this.nextStatus = null;
})();
...
onExiting = function () { [native code] }
...
});
});
});
} else {
_this.props.onExit(node);
_this.safeSetState({ status: EXITING }, function () {
_this.props.onExiting(node);
_this.onTransitionEnd(node, function () {
_this.safeSetState({ status: EXITED }, function () {
_this.props.onExited(node);
});
});
});
...
unmountOnExit = function () { [native code] }
n/a
function componentDidMount() { if (this.shouldBeIn()) { // In lieu of the action event firing. this.handleEnter(); } }
n/a
function componentDidUpdate() { if (this['in']) { if (!this.shouldBeIn()) { // We shouldn't be active any more. Notify the parent. this.handleExited(); } } else if (this.shouldBeIn()) { // We are the active child. Notify the parent. this.handleEnter(); } }
n/a
function componentWillUnmount() { if (this['in']) { // In lieu of the action event firing. this.handleExited(); } }
n/a
function getAnimation() { if (this.props.animation != null) { return this.props.animation; } var tabContent = this.context.$bs_tabContent; return tabContent && tabContent.animation; }
...
var tabContent = this.context.$bs_tabContent;
var activeKey = tabContent && tabContent.activeKey;
return this.props.eventKey === activeKey;
};
TabPane.prototype.shouldBeIn = function shouldBeIn() {
return this.getAnimation() && this.isActive();
};
TabPane.prototype.render = function render() {
var _props = this.props,
eventKey = _props.eventKey,
className = _props.className,
onEnter = _props.onEnter,
...
function getChildContext() { return { $bs_tabContainer: null }; }
n/a
function handleEnter() { var tabContent = this.context.$bs_tabContent; if (!tabContent) { return; } this['in'] = tabContent.onPaneEnter(this, this.props.eventKey); }
...
$bs_tabContainer: null
};
};
TabPane.prototype.componentDidMount = function componentDidMount() {
if (this.shouldBeIn()) {
// In lieu of the action event firing.
this.handleEnter();
}
};
TabPane.prototype.componentDidUpdate = function componentDidUpdate() {
if (this['in']) {
if (!this.shouldBeIn()) {
// We shouldn't be active any more. Notify the parent.
...
function handleExited() { var tabContent = this.context.$bs_tabContent; if (!tabContent) { return; } tabContent.onPaneExited(this); this['in'] = false; }
...
onHide: this.props.onHide
}
};
};
Modal.prototype.componentWillUnmount = function componentWillUnmount() {
// Clean up the listener if we need to.
this.handleExited();
};
Modal.prototype.handleEntering = function handleEntering() {
// FIXME: This should work even when animation is disabled.
events.on(window, 'resize', this.handleWindowResize);
this.updateStyle();
};
...
function isActive() { var tabContent = this.context.$bs_tabContent; var activeKey = tabContent && tabContent.activeKey; return this.props.eventKey === activeKey; }
...
var _this2 = this;
if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref
) {
return true;
}
if (ValidComponentChildren.some(props.children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
})) {
return true;
}
return props.active;
};
...
function render() { var _props = this.props, eventKey = _props.eventKey, className = _props.className, onEnter = _props.onEnter, onEntering = _props.onEntering, onEntered = _props.onEntered, onExit = _props.onExit, onExiting = _props.onExiting, onExited = _props.onExited, propsMountOnEnter = _props.mountOnEnter, propsUnmountOnExit = _props.unmountOnExit, props = (0, _objectWithoutProperties3['default'])(_props, ['eventKey', 'className', 'onEnter', 'onEntering', 'onEntered', ' onExit', 'onExiting', 'onExited', 'mountOnEnter', 'unmountOnExit']); var _context = this.context, tabContent = _context.$bs_tabContent, tabContainer = _context.$bs_tabContainer; var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['animation']), bsProps = _splitBsPropsAndOmit[0], elementProps = _splitBsPropsAndOmit[1]; var active = this.isActive(); var animation = this.getAnimation(); var mountOnEnter = propsMountOnEnter != null ? propsMountOnEnter : tabContent && tabContent.mountOnEnter; var unmountOnExit = propsUnmountOnExit != null ? propsUnmountOnExit : tabContent && tabContent.unmountOnExit; if (!active && !animation && unmountOnExit) { return null; } var Transition = animation === true ? _Fade2['default'] : animation || null; if (tabContent) { bsProps.bsClass = (0, _bootstrapUtils.prefix)(tabContent, 'pane'); } var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { active: active }); if (tabContainer) { process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(!elementProps.id && !elementProps['aria-labelledby'], 'In the context of a `<TabContainer>`, `<TabPanes>` are given ' + 'generated `id` and `aria-labelledby` attributes for the sake of ' + ' proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly provide a `generateChildId ` ' + 'prop to the parent `<TabContainer>`.') : void 0; elementProps.id = tabContainer.getPaneId(eventKey); elementProps['aria-labelledby'] = tabContainer.getTabId(eventKey); } var pane = _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { role: 'tabpanel', 'aria-hidden': !active, className: (0, _classnames2['default'])(className, classes) })); if (Transition) { var exiting = tabContent && tabContent.exiting; return _react2['default'].createElement( Transition, { 'in': active && !exiting, onEnter: (0, _createChainedFunction2['default'])(this.handleEnter, onEnter), onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: (0, _createChainedFunction2['default'])(this.handleExited, onExited), mountOnEnter: mountOnEnter, unmountOnExit: unmountOnExit }, pane ); } return pane; }
n/a
function shouldBeIn() { return this.getAnimation() && this.isActive(); }
...
TabPane.prototype.getChildContext = function getChildContext() {
return {
$bs_tabContainer: null
};
};
TabPane.prototype.componentDidMount = function componentDidMount() {
if (this.shouldBeIn()) {
// In lieu of the action event firing.
this.handleEnter();
}
};
TabPane.prototype.componentDidUpdate = function componentDidUpdate() {
if (this['in']) {
...
function Table() { (0, _classCallCheck3['default'])(this, Table); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bordered = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
condensed = function () { [native code] }
n/a
hover = function () { [native code] }
n/a
responsive = function () { [native code] }
n/a
striped = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, striped = _props.striped, bordered = _props.bordered, condensed = _props.condensed, hover = _props.hover, responsive = _props.responsive, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['striped', 'bordered', 'condensed', 'hover', 'responsive', 'className ']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'striped')] = striped, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'bordered')] = bordered, _extends2[(0, _bootstrapUtils .prefix)(bsProps, 'condensed')] = condensed, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'hover')] = hover, _extends2)); var table = _react2['default'].createElement('table', (0, _extends4['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); if (responsive) { return _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'responsive') }, table ); } return table; }
n/a
function component() { _classCallCheck(this, component); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); }
n/a
function Tabs() { (0, _classCallCheck3['default'])(this, Tabs); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
deferControlTo = function (newComponent) { var additions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var nextMethods = arguments[2]; return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); }
n/a
function Tabs() { (0, _classCallCheck3['default'])(this, Tabs); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
function render() { var _props = this.props, id = _props.id, onSelect = _props.onSelect, animation = _props.animation, mountOnEnter = _props.mountOnEnter, unmountOnExit = _props.unmountOnExit, bsClass = _props.bsClass, className = _props.className, style = _props.style, children = _props.children, _props$activeKey = _props.activeKey, activeKey = _props$activeKey === undefined ? getDefaultActiveKey(children) : _props$activeKey, props = (0, _objectWithoutProperties3['default'])(_props, ['id', 'onSelect', 'animation', 'mountOnEnter', 'unmountOnExit', ' bsClass', 'className', 'style', 'children', 'activeKey']); return _react2['default'].createElement( TabContainer, { id: id, activeKey: activeKey, onSelect: onSelect, className: className, style: style }, _react2['default'].createElement( 'div', null, _react2['default'].createElement( _Nav2['default'], (0, _extends3['default'])({}, props, { role: 'tablist' }), _ValidComponentChildren2['default'].map(children, this.renderTab) ), _react2['default'].createElement( _TabContent2['default'], { bsClass: bsClass, animation: animation, mountOnEnter: mountOnEnter, unmountOnExit: unmountOnExit }, children ) ) ); }
n/a
function renderTab(child) { var _child$props = child.props, title = _child$props.title, eventKey = _child$props.eventKey, disabled = _child$props.disabled, tabClassName = _child$props.tabClassName; if (title == null) { return null; } return _react2['default'].createElement( _NavItem2['default'], { eventKey: eventKey, disabled: disabled, className: tabClassName }, title ); }
n/a
activeKey = function (props, propName) { if (props[propName] !== undefined) { if (!props[handler]) { return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); } } }
n/a
function componentWillMount() { var _this2 = this; var props = this.props; this._values = {}; controlledProps.forEach(function (key) { _this2._values[key] = props[utils.defaultKey(key)]; }); }
n/a
function componentWillReceiveProps(nextProps) { var _this3 = this; var props = this.props; if (mixin.componentWillReceiveProps) { mixin.componentWillReceiveProps.call(this, nextProps); } controlledProps.forEach(function (key) { if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { _this3._values[key] = nextProps[utils.defaultKey(key)]; } }); }
n/a
function componentWillUnmount() { this.unmounted = true; }
n/a
function getControlledInstance() { return this.refs.inner; }
n/a
function render() { var _this4 = this; var newProps = {}, props = omitProps(this.props); utils.each(controlledValues, function (handle, propName) { var linkPropName = utils.getLinkName(propName), prop = _this4.props[propName]; if (linkPropName && !isProp(_this4.props, propName) && isProp(_this4.props, linkPropName)) { prop = _this4.props[linkPropName].value; } newProps[propName] = prop !== undefined ? prop : _this4._values[propName]; newProps[handle] = setAndNotify.bind(_this4, propName); }); newProps = _extends({}, props, newProps, { ref: isCompositeComponent ? 'inner' : null }); return _react2.default.createElement(Component, newProps); }
n/a
function shouldComponentUpdate() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return !mixin.shouldComponentUpdate || mixin.shouldComponentUpdate.apply(this, args); }
n/a
function Thumbnail() { (0, _classCallCheck3['default'])(this, Thumbnail); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
alt = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
href = function () { [native code] }
n/a
src = function () { [native code] }
n/a
function render() { var _props = this.props, src = _props.src, alt = _props.alt, className = _props.className, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['src', 'alt', 'className', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var Component = elementProps.href ? _SafeAnchor2['default'] : 'div'; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement( Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), _react2['default'].createElement('img', { src: src, alt: alt }), children && _react2['default'].createElement( 'div', { className: 'caption' }, children ) ); }
n/a
function Tooltip() { (0, _classCallCheck3['default'])(this, Tooltip); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
arrowOffsetLeft = function () { [native code] }
n/a
arrowOffsetTop = function () { [native code] }
n/a
bsClass = function () { [native code] }
n/a
function validate(props, propName, componentName, location, propFullName) { var componentNameSafe = componentName || '<<anonymous>>'; var propFullNameSafe = propFullName || propName; if (props[propName] == null) { return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); } for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { args[_key - 5] = arguments[_key]; } return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); }
n/a
placement = function () { [native code] }
n/a
positionLeft = function () { [native code] }
n/a
positionTop = function () { [native code] }
n/a
function render() { var _extends2; var _props = this.props, placement = _props.placement, positionTop = _props.positionTop, positionLeft = _props.positionLeft, arrowOffsetTop = _props.arrowOffsetTop, arrowOffsetLeft = _props.arrowOffsetLeft, className = _props.className, style = _props.style, children = _props.children, props = (0, _objectWithoutProperties3['default'])(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', ' arrowOffsetLeft', 'className', 'style', 'children']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2)); var outerStyle = (0, _extends4['default'])({ top: positionTop, left: positionLeft }, style); var arrowStyle = { top: arrowOffsetTop, left: arrowOffsetLeft }; return _react2['default'].createElement( 'div', (0, _extends4['default'])({}, elementProps, { role: 'tooltip', className: (0, _classnames2['default'])(className, classes), style: outerStyle }), _react2['default'].createElement('div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'arrow'), style: arrowStyle }), _react2['default'].createElement( 'div', { className: (0, _bootstrapUtils.prefix)(bsProps, 'inner') }, children ) ); }
n/a
function addEndEventListener(node, eventListener) { if (endEvents.length === 0) { // If CSS transitions are not supported, trigger an "end animation" // event immediately. window.setTimeout(eventListener, 0); return; } endEvents.forEach(function (endEvent) { addEventListener(node, endEvent, eventListener); }); }
...
var _this2 = this;
var active = this.props.active;
var prevActive = prevProps.active;
if (!active && prevActive) {
_TransitionEvents2['default'].addEndEventListener(_reactDom2['default
'].findDOMNode(this), this.handleAnimateOutEnd);
}
if (active !== prevActive) {
setTimeout(function () {
return _this2.startAnimation();
}, 20);
}
...
function removeEndEventListener(node, eventListener) { if (endEvents.length === 0) { return; } endEvents.forEach(function (endEvent) { removeEventListener(node, endEvent, eventListener); }); }
n/a
function Well() { (0, _classCallCheck3['default'])(this, Well); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); }
n/a
bsClass = function () { [native code] }
n/a
bsSize = function () { [native code] }
n/a
function render() { var _props = this.props, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) })); }
n/a
function _resetWarned() { warned = {}; }
n/a
function deprecationWarning(oldname, newname, link) { var message = void 0; if ((typeof oldname === 'undefined' ? 'undefined' : (0, _typeof3['default'])(oldname)) === 'object') { message = oldname.message; } else { message = oldname + ' is deprecated. Use ' + newname + ' instead.'; if (link) { message += '\nYou can read more about it at ' + link; } } if (warned[message]) { return; } process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(false, message) : void 0; warned[message] = true; }
n/a
function createChainedFunction() { for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { funcs[_key] = arguments[_key]; } return funcs.filter(function (f) { return f != null; }).reduce(function (acc, f) { if (typeof f !== 'function') { throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); } if (acc === null) { return f; } return function chainedFunction() { for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } acc.apply(this, args); f.apply(this, args); }; }, null); }
n/a
function count(children) { var result = 0; _react2['default'].Children.forEach(children, function (child) { if (!_react2['default'].isValidElement(child)) { return; } ++result; }); return result; }
...
Carousel.prototype.handlePrev = function handlePrev(e) {
var index = this.getActiveIndex() - 1;
if (index < 0) {
if (!this.props.wrap) {
return;
}
index = _ValidComponentChildren2['default'].count(this.props.children
) - 1;
}
this.select(index, e, 'prev');
};
Carousel.prototype.handleNext = function handleNext(e) {
var index = this.getActiveIndex() + 1;
...
function every(children, func, context) { var index = 0; var result = true; _react2['default'].Children.forEach(children, function (child) { if (!result) { return; } if (!_react2['default'].isValidElement(child)) { return; } if (!func.call(context, child, index++)) { result = false; } }); return result; }
...
case 'string':
case 'undefined':
return true;
case 'boolean':
return !propValue;
case 'object':
if (Array.isArray(propValue)) {
return propValue.every(isNode);
}
if (propValue === null || isValidElement(propValue)) {
return true;
}
var iteratorFn = getIteratorFn(propValue);
if (iteratorFn) {
...
function filter(children, func, context) { var index = 0; var result = []; _react2['default'].Children.forEach(children, function (child) { if (!_react2['default'].isValidElement(child)) { return; } if (func.call(context, child, index++)) { result.push(child); } }); return result; }
...
* @returns {function|null}
*/
function createChainedFunction() {
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
funcs[_key] = arguments[_key];
}
return funcs.filter(function (f) {
return f != null;
}).reduce(function (acc, f) {
if (typeof f !== 'function') {
throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
}
if (acc === null) {
...
function find(children, func, context) { var index = 0; var result = undefined; _react2['default'].Children.forEach(children, function (child) { if (result) { return; } if (!_react2['default'].isValidElement(child)) { return; } if (func.call(context, child, index++)) { result = child; } }); return result; }
...
var children = this.props.children;
var _getActiveProps = this.getActiveProps(),
activeKey = _getActiveProps.activeKey,
activeHref = _getActiveProps.activeHref;
var activeChild = ValidComponentChildren.find(children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
});
var childrenArray = ValidComponentChildren.toArray(children);
var activeChildIndex = childrenArray.indexOf(activeChild);
var childNodes = ReactDOM.findDOMNode(this).children;
...
function forEach(children, func, context) { var index = 0; _react2['default'].Children.forEach(children, function (child) { if (!_react2['default'].isValidElement(child)) { return; } func.call(context, child, index++); }); }
...
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(17)(function(){
var A = {}
, B = {}
, S = Symbol()
, K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function(k){ B[k] = k; });
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
var T = toObject(target)
, aLen = arguments.length
, index = 1
, getSymbols = gOPS.f
, isEnum = pIE.f;
...
function map(children, func, context) { var index = 0; return _react2['default'].Children.map(children, function (child) { if (!_react2['default'].isValidElement(child)) { return child; } return func.call(context, child, index++); }); }
...
var classes = (0, _bootstrapUtils.getClassSet)(bsProps);
return _react2['default'].createElement(
'div',
(0, _extends3['default'])({}, elementProps, {
className: (0, _classnames2['default'])(className, classes)
}),
_ValidComponentChildren2['default'].map(children, function (child) {
var childProps = {
bsStyle: child.props.bsStyle || bsProps.bsStyle
};
if (accordion) {
(0, _assign2['default'])(childProps, {
headerRole: 'tab',
...
function some(children, func, context) { var index = 0; var result = false; _react2['default'].Children.forEach(children, function (child) { if (result) { return; } if (!_react2['default'].isValidElement(child)) { return; } if (func.call(context, child, index++)) { result = true; } }); return result; }
...
}
};
};
FormGroup.prototype.hasFeedback = function hasFeedback(children) {
var _this2 = this;
return ValidComponentChildren.some(children, function (child) {
return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children
);
});
};
FormGroup.prototype.render = function render() {
var _props2 = this.props,
validationState = _props2.validationState,
...
function toArray(children) { var result = []; _react2['default'].Children.forEach(children, function (child) { if (!_react2['default'].isValidElement(child)) { return; } result.push(child); }); return result; }
...
activeKey = _getActiveProps.activeKey,
activeHref = _getActiveProps.activeHref;
var activeChild = ValidComponentChildren.find(children, function (child) {
return _this2.isActive(child, activeKey, activeHref);
});
var childrenArray = ValidComponentChildren.toArray(children);
var activeChildIndex = childrenArray.indexOf(activeChild);
var childNodes = ReactDOM.findDOMNode(this).children;
var activeNode = childNodes && childNodes[activeChildIndex];
if (!activeNode || !activeNode.firstChild) {
return;
...
function curry(fn) { return function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var last = args[args.length - 1]; if (typeof last === 'function') { return fn.apply(undefined, args); } return function (Component) { return fn.apply(undefined, args.concat([Component])); }; }; }
n/a
function addStyle(Component) { for (var _len2 = arguments.length, styleVariant = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { styleVariant[_key2 - 1] = arguments[_key2]; } bsStyles(styleVariant, Component); }
...
v0.21.0 - Tue, 21 Apr 2015 13:38:38 GMT
---------------------------------------
- [e92a64b](../../commit/e92a64b) [fixed] Handle multiple children in Badge
- [c1b189f](../../commit/c1b189f) [changed] Updated babel* tools. dev-dependency
- [a58eab5](../../commit/a58eab5) [fixed] Fix 'import from' => 'import'
- [276c2bc](../../commit/276c2bc) [fixed] ProgressBar percentage issue when stacked
- [e1c95b3](../../commit/e1c95b3) [changed] Renamed constants to styleMaps and added styleMaps.addStyle()
- [20b608f](../../commit/20b608f) [fixed] Add missed semicolons.
- [2111799](../../commit/2111799) [fixed] Remove unused variables.
- [0e6b62a](../../commit/0e6b62a) [fixed] typo
- [0c87128](../../commit/0c87128) [fixed] `ListGroup` outputs `<ul>` or `<div>` depending on `ListGroupItem` (
defaults to `<ul>` if no `ListGroupItem`). `ListGroupItem` outputs `<li>` or `<a>` if `href` prop
is set.
v0.20.3 - Fri, 10 Apr 2015 19:50:22 GMT
...
bsClass = function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var last = args[args.length - 1]; if (typeof last === 'function') { return fn.apply(undefined, args); } return function (Component) { return fn.apply(undefined, args.concat([Component])); }; }
n/a
bsSizes = function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var last = args[args.length - 1]; if (typeof last === 'function') { return fn.apply(undefined, args); } return function (Component) { return fn.apply(undefined, args.concat([Component])); }; }
n/a
bsStyles = function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var last = args[args.length - 1]; if (typeof last === 'function') { return fn.apply(undefined, args); } return function (Component) { return fn.apply(undefined, args.concat([Component])); }; }
n/a
function getClassSet(props) { var _classes; var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); if (props.bsSize) { var bsSize = _StyleConfig.SIZE_MAP[props.bsSize] || props.bsSize; classes[prefix(props, bsSize)] = true; } if (props.bsStyle) { classes[prefix(props, props.bsStyle)] = true; } return classes; }
n/a
function prefix(props, variant) { !(props.bsClass != null) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2['default'])(false, 'A `bsClass` prop is required for this component') : (0, _invariant2['default'])(false) : void 0; return props.bsClass + (variant ? '-' + variant : ''); }
n/a
function splitBsProps(props) { var elementProps = {}; (0, _entries2['default'])(props).forEach(function (_ref) { var propName = _ref[0], propValue = _ref[1]; if (!isBsProp(propName)) { elementProps[propName] = propValue; } }); return [getBsProps(props), elementProps]; }
n/a
function splitBsPropsAndOmit(props, omittedPropNames) { var isOmittedProp = {}; omittedPropNames.forEach(function (propName) { isOmittedProp[propName] = true; }); var elementProps = {}; (0, _entries2['default'])(props).forEach(function (_ref2) { var propName = _ref2[0], propValue = _ref2[1]; if (!isBsProp(propName) && !isOmittedProp[propName]) { elementProps[propName] = propValue; } }); return [getBsProps(props), elementProps]; }
n/a