react-bootstrap 0.32.3 → 0.32.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-bootstrap.js +7546 -8855
- package/dist/react-bootstrap.min.js +3 -4
- package/es/Accordion.js +2 -2
- package/es/Alert.js +10 -10
- package/es/Badge.js +8 -8
- package/es/Breadcrumb.js +6 -6
- package/es/BreadcrumbItem.js +10 -10
- package/es/Button.js +10 -10
- package/es/ButtonGroup.js +9 -9
- package/es/ButtonToolbar.js +6 -6
- package/es/Carousel.js +29 -29
- package/es/CarouselCaption.js +7 -7
- package/es/CarouselItem.js +12 -12
- package/es/Checkbox.js +13 -13
- package/es/Clearfix.js +7 -7
- package/es/CloseButton.js +4 -4
- package/es/Col.js +7 -7
- package/es/Collapse.js +33 -21
- package/es/ControlLabel.js +9 -9
- package/es/Dropdown.js +22 -22
- package/es/DropdownButton.js +9 -9
- package/es/DropdownMenu.js +22 -22
- package/es/DropdownToggle.js +11 -11
- package/es/Fade.js +7 -7
- package/es/Form.js +9 -9
- package/es/FormControl.js +12 -12
- package/es/FormControlFeedback.js +7 -7
- package/es/FormControlStatic.js +7 -7
- package/es/FormGroup.js +11 -11
- package/es/Glyphicon.js +7 -7
- package/es/Grid.js +8 -8
- package/es/HelpBlock.js +6 -6
- package/es/Image.js +10 -10
- package/es/InputGroup.js +6 -6
- package/es/InputGroupAddon.js +6 -6
- package/es/InputGroupButton.js +6 -6
- package/es/Jumbotron.js +7 -7
- package/es/Label.js +8 -8
- package/es/ListGroup.js +9 -9
- package/es/ListGroupItem.js +12 -12
- package/es/Media.js +7 -7
- package/es/MediaBody.js +8 -8
- package/es/MediaHeading.js +7 -7
- package/es/MediaLeft.js +7 -7
- package/es/MediaList.js +6 -6
- package/es/MediaListItem.js +6 -6
- package/es/MediaRight.js +7 -7
- package/es/MenuItem.js +19 -19
- package/es/Modal.js +21 -21
- package/es/ModalBody.js +7 -7
- package/es/ModalDialog.js +9 -9
- package/es/ModalFooter.js +7 -7
- package/es/ModalHeader.js +10 -10
- package/es/ModalTitle.js +7 -7
- package/es/Nav.js +23 -23
- package/es/NavDropdown.js +11 -11
- package/es/NavItem.js +12 -12
- package/es/Navbar.js +28 -28
- package/es/NavbarBrand.js +7 -7
- package/es/NavbarCollapse.js +7 -7
- package/es/NavbarHeader.js +6 -6
- package/es/NavbarToggle.js +8 -8
- package/es/Overlay.js +7 -7
- package/es/OverlayTrigger.js +20 -19
- package/es/PageHeader.js +7 -7
- package/es/Pager.js +8 -8
- package/es/PagerItem.js +17 -17
- package/es/Pagination.js +7 -7
- package/es/PaginationItem.js +9 -9
- package/es/Panel.js +17 -14
- package/es/PanelBody.js +6 -6
- package/es/PanelCollapse.js +3 -3
- package/es/PanelFooter.js +5 -5
- package/es/PanelGroup.js +20 -17
- package/es/PanelHeading.js +8 -8
- package/es/PanelTitle.js +9 -9
- package/es/PanelToggle.js +9 -9
- package/es/Popover.js +14 -14
- package/es/ProgressBar.js +9 -9
- package/es/Radio.js +13 -13
- package/es/ResponsiveEmbed.js +9 -9
- package/es/Row.js +7 -7
- package/es/SafeAnchor.js +15 -15
- package/es/SplitButton.js +10 -10
- package/es/SplitToggle.js +2 -2
- package/es/Tab.js +2 -2
- package/es/TabContainer.js +10 -10
- package/es/TabContent.js +15 -15
- package/es/TabPane.js +23 -23
- package/es/Table.js +11 -11
- package/es/Tabs.js +16 -16
- package/es/Thumbnail.js +11 -11
- package/es/ToggleButton.js +11 -11
- package/es/ToggleButtonGroup.js +11 -11
- package/es/Tooltip.js +13 -13
- package/es/Well.js +6 -6
- package/es/utils/bootstrapUtils.js +2 -2
- package/es/utils/deprecationWarning.js +1 -1
- package/es/utils/splitComponentProps.js +1 -1
- package/lib/Accordion.js +3 -3
- package/lib/Alert.js +11 -11
- package/lib/Badge.js +9 -9
- package/lib/Breadcrumb.js +7 -7
- package/lib/BreadcrumbItem.js +11 -11
- package/lib/Button.js +11 -11
- package/lib/ButtonGroup.js +10 -10
- package/lib/ButtonToolbar.js +7 -7
- package/lib/Carousel.js +30 -30
- package/lib/CarouselCaption.js +8 -8
- package/lib/CarouselItem.js +13 -13
- package/lib/Checkbox.js +14 -14
- package/lib/Clearfix.js +8 -8
- package/lib/CloseButton.js +5 -5
- package/lib/Col.js +8 -8
- package/lib/Collapse.js +35 -23
- package/lib/ControlLabel.js +10 -10
- package/lib/Dropdown.js +24 -24
- package/lib/DropdownButton.js +10 -10
- package/lib/DropdownMenu.js +23 -23
- package/lib/DropdownToggle.js +12 -12
- package/lib/Fade.js +9 -9
- package/lib/Form.js +10 -10
- package/lib/FormControl.js +13 -13
- package/lib/FormControlFeedback.js +8 -8
- package/lib/FormControlStatic.js +8 -8
- package/lib/FormGroup.js +12 -12
- package/lib/Glyphicon.js +8 -8
- package/lib/Grid.js +9 -9
- package/lib/HelpBlock.js +7 -7
- package/lib/Image.js +11 -11
- package/lib/InputGroup.js +7 -7
- package/lib/InputGroupAddon.js +7 -7
- package/lib/InputGroupButton.js +7 -7
- package/lib/Jumbotron.js +8 -8
- package/lib/Label.js +9 -9
- package/lib/ListGroup.js +11 -11
- package/lib/ListGroupItem.js +14 -14
- package/lib/Media.js +8 -8
- package/lib/MediaBody.js +9 -9
- package/lib/MediaHeading.js +8 -8
- package/lib/MediaLeft.js +8 -8
- package/lib/MediaList.js +7 -7
- package/lib/MediaListItem.js +7 -7
- package/lib/MediaRight.js +8 -8
- package/lib/MenuItem.js +20 -20
- package/lib/Modal.js +22 -22
- package/lib/ModalBody.js +8 -8
- package/lib/ModalDialog.js +10 -10
- package/lib/ModalFooter.js +8 -8
- package/lib/ModalHeader.js +11 -11
- package/lib/ModalTitle.js +8 -8
- package/lib/Nav.js +25 -25
- package/lib/NavDropdown.js +12 -12
- package/lib/NavItem.js +13 -13
- package/lib/Navbar.js +29 -29
- package/lib/NavbarBrand.js +8 -8
- package/lib/NavbarCollapse.js +8 -8
- package/lib/NavbarHeader.js +7 -7
- package/lib/NavbarToggle.js +9 -9
- package/lib/Overlay.js +9 -9
- package/lib/OverlayTrigger.js +23 -21
- package/lib/PageHeader.js +8 -8
- package/lib/PageItem.js +1 -1
- package/lib/Pager.js +10 -10
- package/lib/PagerItem.js +18 -18
- package/lib/Pagination.js +9 -9
- package/lib/PaginationItem.js +10 -10
- package/lib/Panel.js +18 -16
- package/lib/PanelBody.js +7 -7
- package/lib/PanelCollapse.js +4 -4
- package/lib/PanelFooter.js +6 -6
- package/lib/PanelGroup.js +22 -20
- package/lib/PanelHeading.js +9 -9
- package/lib/PanelTitle.js +10 -10
- package/lib/PanelToggle.js +10 -10
- package/lib/Popover.js +15 -15
- package/lib/ProgressBar.js +11 -11
- package/lib/Radio.js +14 -14
- package/lib/ResponsiveEmbed.js +11 -11
- package/lib/Row.js +8 -8
- package/lib/SafeAnchor.js +16 -16
- package/lib/SplitButton.js +11 -11
- package/lib/SplitToggle.js +3 -3
- package/lib/Tab.js +3 -3
- package/lib/TabContainer.js +11 -11
- package/lib/TabContent.js +16 -16
- package/lib/TabPane.js +23 -23
- package/lib/Table.js +12 -12
- package/lib/Tabs.js +17 -17
- package/lib/Thumbnail.js +12 -12
- package/lib/ToggleButton.js +12 -12
- package/lib/ToggleButtonGroup.js +12 -12
- package/lib/Tooltip.js +14 -14
- package/lib/Well.js +7 -7
- package/lib/index.js +2 -2
- package/lib/utils/PropTypes.js +1 -1
- package/lib/utils/ValidComponentChildren.js +1 -1
- package/lib/utils/bootstrapUtils.js +3 -3
- package/lib/utils/deprecationWarning.js +2 -2
- package/lib/utils/index.js +2 -2
- package/lib/utils/splitComponentProps.js +2 -2
- package/package.json +17 -17
package/es/PanelFooter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import cn from 'classnames';
|
|
@@ -22,9 +22,9 @@ function (_React$Component) {
|
|
|
22
22
|
var _proto = PanelFooter.prototype;
|
|
23
23
|
|
|
24
24
|
_proto.render = function render() {
|
|
25
|
-
var
|
|
26
|
-
children =
|
|
27
|
-
className =
|
|
25
|
+
var _this$props = this.props,
|
|
26
|
+
children = _this$props.children,
|
|
27
|
+
className = _this$props.className;
|
|
28
28
|
|
|
29
29
|
var _ref = this.context.$bs_panel || {},
|
|
30
30
|
_bsClass = _ref.bsClass;
|
package/es/PanelGroup.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
-
import
|
|
4
|
-
import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import React, { cloneElement } from 'react';
|
|
@@ -69,29 +68,33 @@ function (_React$Component) {
|
|
|
69
68
|
_inheritsLoose(PanelGroup, _React$Component);
|
|
70
69
|
|
|
71
70
|
function PanelGroup() {
|
|
72
|
-
var
|
|
71
|
+
var _this;
|
|
73
72
|
|
|
74
73
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
75
74
|
args[_key] = arguments[_key];
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
78
|
+
|
|
79
|
+
_this.handleSelect = function (key, expanded, e) {
|
|
79
80
|
if (expanded) {
|
|
80
81
|
_this.props.onSelect(key, e);
|
|
81
82
|
} else if (_this.props.activeKey === key) {
|
|
82
83
|
_this.props.onSelect(null, e);
|
|
83
84
|
}
|
|
84
|
-
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return _this;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
var _proto = PanelGroup.prototype;
|
|
88
91
|
|
|
89
92
|
_proto.getChildContext = function getChildContext() {
|
|
90
|
-
var
|
|
91
|
-
activeKey =
|
|
92
|
-
accordion =
|
|
93
|
-
generateChildId =
|
|
94
|
-
id =
|
|
93
|
+
var _this$props = this.props,
|
|
94
|
+
activeKey = _this$props.activeKey,
|
|
95
|
+
accordion = _this$props.accordion,
|
|
96
|
+
generateChildId = _this$props.generateChildId,
|
|
97
|
+
id = _this$props.id;
|
|
95
98
|
var getId = null;
|
|
96
99
|
|
|
97
100
|
if (accordion) {
|
|
@@ -113,11 +116,11 @@ function (_React$Component) {
|
|
|
113
116
|
};
|
|
114
117
|
|
|
115
118
|
_proto.render = function render() {
|
|
116
|
-
var
|
|
117
|
-
accordion =
|
|
118
|
-
className =
|
|
119
|
-
children =
|
|
120
|
-
props =
|
|
119
|
+
var _this$props2 = this.props,
|
|
120
|
+
accordion = _this$props2.accordion,
|
|
121
|
+
className = _this$props2.className,
|
|
122
|
+
children = _this$props2.children,
|
|
123
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["accordion", "className", "children"]);
|
|
121
124
|
|
|
122
125
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']),
|
|
123
126
|
bsProps = _splitBsPropsAndOmit[0],
|
package/es/PanelHeading.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'classnames';
|
|
@@ -31,11 +31,11 @@ function (_React$Component) {
|
|
|
31
31
|
var _proto = PanelHeading.prototype;
|
|
32
32
|
|
|
33
33
|
_proto.render = function render() {
|
|
34
|
-
var
|
|
35
|
-
children =
|
|
36
|
-
className =
|
|
37
|
-
Component =
|
|
38
|
-
props =
|
|
34
|
+
var _this$props = this.props,
|
|
35
|
+
children = _this$props.children,
|
|
36
|
+
className = _this$props.className,
|
|
37
|
+
Component = _this$props.componentClass,
|
|
38
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "componentClass"]);
|
|
39
39
|
|
|
40
40
|
var _ref = this.context.$bs_panel || {},
|
|
41
41
|
headingId = _ref.headingId,
|
package/es/PanelTitle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import React from 'react';
|
|
@@ -37,12 +37,12 @@ function (_React$Component) {
|
|
|
37
37
|
var _proto = PanelTitle.prototype;
|
|
38
38
|
|
|
39
39
|
_proto.render = function render() {
|
|
40
|
-
var
|
|
41
|
-
children =
|
|
42
|
-
className =
|
|
43
|
-
toggle =
|
|
44
|
-
Component =
|
|
45
|
-
props =
|
|
40
|
+
var _this$props = this.props,
|
|
41
|
+
children = _this$props.children,
|
|
42
|
+
className = _this$props.className,
|
|
43
|
+
toggle = _this$props.toggle,
|
|
44
|
+
Component = _this$props.componentClass,
|
|
45
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "toggle", "componentClass"]);
|
|
46
46
|
|
|
47
47
|
var _ref = this.context.$bs_panel || {},
|
|
48
48
|
_bsClass = _ref.bsClass;
|
package/es/PanelToggle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -44,7 +44,7 @@ function (_React$Component) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
47
|
-
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_this));
|
|
47
|
+
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
48
48
|
return _this;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -60,11 +60,11 @@ function (_React$Component) {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
_proto.render = function render() {
|
|
63
|
-
var
|
|
64
|
-
onClick =
|
|
65
|
-
className =
|
|
66
|
-
componentClass =
|
|
67
|
-
props =
|
|
63
|
+
var _this$props = this.props,
|
|
64
|
+
onClick = _this$props.onClick,
|
|
65
|
+
className = _this$props.className,
|
|
66
|
+
componentClass = _this$props.componentClass,
|
|
67
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["onClick", "className", "componentClass"]);
|
|
68
68
|
|
|
69
69
|
var _ref2 = this.context.$bs_panel || {},
|
|
70
70
|
expanded = _ref2.expanded,
|
package/es/Popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -62,17 +62,17 @@ function (_React$Component) {
|
|
|
62
62
|
_proto.render = function render() {
|
|
63
63
|
var _extends2;
|
|
64
64
|
|
|
65
|
-
var
|
|
66
|
-
placement =
|
|
67
|
-
positionTop =
|
|
68
|
-
positionLeft =
|
|
69
|
-
arrowOffsetTop =
|
|
70
|
-
arrowOffsetLeft =
|
|
71
|
-
title =
|
|
72
|
-
className =
|
|
73
|
-
style =
|
|
74
|
-
children =
|
|
75
|
-
props =
|
|
65
|
+
var _this$props = this.props,
|
|
66
|
+
placement = _this$props.placement,
|
|
67
|
+
positionTop = _this$props.positionTop,
|
|
68
|
+
positionLeft = _this$props.positionLeft,
|
|
69
|
+
arrowOffsetTop = _this$props.arrowOffsetTop,
|
|
70
|
+
arrowOffsetLeft = _this$props.arrowOffsetLeft,
|
|
71
|
+
title = _this$props.title,
|
|
72
|
+
className = _this$props.className,
|
|
73
|
+
style = _this$props.style,
|
|
74
|
+
children = _this$props.children,
|
|
75
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "title", "className", "style", "children"]);
|
|
76
76
|
|
|
77
77
|
var _splitBsProps = splitBsProps(props),
|
|
78
78
|
bsProps = _splitBsProps[0],
|
package/es/ProgressBar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _Object$values from "@babel/runtime/core-js/object/values";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
-
import
|
|
4
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _Object$values from "@babel/runtime-corejs2/core-js/object/values";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import React, { cloneElement } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -93,7 +93,7 @@ function (_React$Component) {
|
|
|
93
93
|
active = _ref.active,
|
|
94
94
|
className = _ref.className,
|
|
95
95
|
style = _ref.style,
|
|
96
|
-
props =
|
|
96
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "active", "className", "style"]);
|
|
97
97
|
|
|
98
98
|
var _splitBsProps = splitBsProps(props),
|
|
99
99
|
bsProps = _splitBsProps[0],
|
|
@@ -118,9 +118,9 @@ function (_React$Component) {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
_proto.render = function render() {
|
|
121
|
-
var
|
|
122
|
-
isChild =
|
|
123
|
-
props =
|
|
121
|
+
var _this$props = this.props,
|
|
122
|
+
isChild = _this$props.isChild,
|
|
123
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["isChild"]);
|
|
124
124
|
|
|
125
125
|
if (isChild) {
|
|
126
126
|
return this.renderProgressBar(props);
|
|
@@ -137,7 +137,7 @@ function (_React$Component) {
|
|
|
137
137
|
bsStyle = props.bsStyle,
|
|
138
138
|
className = props.className,
|
|
139
139
|
children = props.children,
|
|
140
|
-
wrapperProps =
|
|
140
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "active", "bsClass", "bsStyle", "className", "children"]);
|
|
141
141
|
|
|
142
142
|
return React.createElement("div", _extends({}, wrapperProps, {
|
|
143
143
|
className: classNames(className, 'progress')
|
package/es/Radio.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
|
|
5
5
|
/* eslint-disable jsx-a11y/label-has-for */
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -45,16 +45,16 @@ function (_React$Component) {
|
|
|
45
45
|
var _proto = Radio.prototype;
|
|
46
46
|
|
|
47
47
|
_proto.render = function render() {
|
|
48
|
-
var
|
|
49
|
-
inline =
|
|
50
|
-
disabled =
|
|
51
|
-
validationState =
|
|
52
|
-
inputRef =
|
|
53
|
-
className =
|
|
54
|
-
style =
|
|
55
|
-
title =
|
|
56
|
-
children =
|
|
57
|
-
props =
|
|
48
|
+
var _this$props = this.props,
|
|
49
|
+
inline = _this$props.inline,
|
|
50
|
+
disabled = _this$props.disabled,
|
|
51
|
+
validationState = _this$props.validationState,
|
|
52
|
+
inputRef = _this$props.inputRef,
|
|
53
|
+
className = _this$props.className,
|
|
54
|
+
style = _this$props.style,
|
|
55
|
+
title = _this$props.title,
|
|
56
|
+
children = _this$props.children,
|
|
57
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);
|
|
58
58
|
|
|
59
59
|
var _splitBsProps = splitBsProps(props),
|
|
60
60
|
bsProps = _splitBsProps[0],
|
package/es/ResponsiveEmbed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import React, { cloneElement } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -42,12 +42,12 @@ function (_React$Component) {
|
|
|
42
42
|
_proto.render = function render() {
|
|
43
43
|
var _extends2;
|
|
44
44
|
|
|
45
|
-
var
|
|
46
|
-
a16by9 =
|
|
47
|
-
a4by3 =
|
|
48
|
-
className =
|
|
49
|
-
children =
|
|
50
|
-
props =
|
|
45
|
+
var _this$props = this.props,
|
|
46
|
+
a16by9 = _this$props.a16by9,
|
|
47
|
+
a4by3 = _this$props.a4by3,
|
|
48
|
+
className = _this$props.className,
|
|
49
|
+
children = _this$props.children,
|
|
50
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["a16by9", "a4by3", "className", "children"]);
|
|
51
51
|
|
|
52
52
|
var _splitBsProps = splitBsProps(props),
|
|
53
53
|
bsProps = _splitBsProps[0],
|
package/es/Row.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
@@ -24,10 +24,10 @@ function (_React$Component) {
|
|
|
24
24
|
var _proto = Row.prototype;
|
|
25
25
|
|
|
26
26
|
_proto.render = function render() {
|
|
27
|
-
var
|
|
28
|
-
Component =
|
|
29
|
-
className =
|
|
30
|
-
props =
|
|
27
|
+
var _this$props = this.props,
|
|
28
|
+
Component = _this$props.componentClass,
|
|
29
|
+
className = _this$props.className,
|
|
30
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
|
31
31
|
|
|
32
32
|
var _splitBsProps = splitBsProps(props),
|
|
33
33
|
bsProps = _splitBsProps[0],
|
package/es/SafeAnchor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
@@ -44,18 +44,18 @@ function (_React$Component) {
|
|
|
44
44
|
var _this;
|
|
45
45
|
|
|
46
46
|
_this = _React$Component.call(this, props, context) || this;
|
|
47
|
-
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
48
|
-
_this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
|
|
47
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
48
|
+
_this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
49
49
|
return _this;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
var _proto = SafeAnchor.prototype;
|
|
53
53
|
|
|
54
54
|
_proto.handleClick = function handleClick(event) {
|
|
55
|
-
var
|
|
56
|
-
disabled =
|
|
57
|
-
href =
|
|
58
|
-
onClick =
|
|
55
|
+
var _this$props = this.props,
|
|
56
|
+
disabled = _this$props.disabled,
|
|
57
|
+
href = _this$props.href,
|
|
58
|
+
onClick = _this$props.onClick;
|
|
59
59
|
|
|
60
60
|
if (disabled || isTrivialHref(href)) {
|
|
61
61
|
event.preventDefault();
|
|
@@ -79,11 +79,11 @@ function (_React$Component) {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
_proto.render = function render() {
|
|
82
|
-
var
|
|
83
|
-
Component =
|
|
84
|
-
disabled =
|
|
85
|
-
onKeyDown =
|
|
86
|
-
props =
|
|
82
|
+
var _this$props2 = this.props,
|
|
83
|
+
Component = _this$props2.componentClass,
|
|
84
|
+
disabled = _this$props2.disabled,
|
|
85
|
+
onKeyDown = _this$props2.onKeyDown,
|
|
86
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]);
|
|
87
87
|
|
|
88
88
|
if (isTrivialHref(props.href)) {
|
|
89
89
|
props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node
|
package/es/SplitButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import Button from './Button';
|
|
@@ -44,13 +44,13 @@ function (_React$Component) {
|
|
|
44
44
|
var _proto = SplitButton.prototype;
|
|
45
45
|
|
|
46
46
|
_proto.render = function render() {
|
|
47
|
-
var
|
|
48
|
-
bsSize =
|
|
49
|
-
bsStyle =
|
|
50
|
-
title =
|
|
51
|
-
toggleLabel =
|
|
52
|
-
children =
|
|
53
|
-
props =
|
|
47
|
+
var _this$props = this.props,
|
|
48
|
+
bsSize = _this$props.bsSize,
|
|
49
|
+
bsStyle = _this$props.bsStyle,
|
|
50
|
+
title = _this$props.title,
|
|
51
|
+
toggleLabel = _this$props.toggleLabel,
|
|
52
|
+
children = _this$props.children,
|
|
53
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "toggleLabel", "children"]);
|
|
54
54
|
|
|
55
55
|
var _splitComponentProps = splitComponentProps(props, Dropdown.ControlledComponent),
|
|
56
56
|
dropdownProps = _splitComponentProps[0],
|
package/es/SplitToggle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import DropdownToggle from './DropdownToggle';
|
|
5
5
|
|
package/es/Tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import TabContainer from './TabContainer';
|
package/es/TabContainer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import uncontrollable from 'uncontrollable';
|
|
@@ -77,11 +77,11 @@ function (_React$Component) {
|
|
|
77
77
|
var _proto = TabContainer.prototype;
|
|
78
78
|
|
|
79
79
|
_proto.getChildContext = function getChildContext() {
|
|
80
|
-
var
|
|
81
|
-
activeKey =
|
|
82
|
-
onSelect =
|
|
83
|
-
generateChildId =
|
|
84
|
-
id =
|
|
80
|
+
var _this$props = this.props,
|
|
81
|
+
activeKey = _this$props.activeKey,
|
|
82
|
+
onSelect = _this$props.onSelect,
|
|
83
|
+
generateChildId = _this$props.generateChildId,
|
|
84
|
+
id = _this$props.id;
|
|
85
85
|
|
|
86
86
|
var getId = generateChildId || function (key, type) {
|
|
87
87
|
return id ? id + "-" + type + "-" + key : null;
|
|
@@ -102,9 +102,9 @@ function (_React$Component) {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
_proto.render = function render() {
|
|
105
|
-
var
|
|
106
|
-
children =
|
|
107
|
-
props =
|
|
105
|
+
var _this$props2 = this.props,
|
|
106
|
+
children = _this$props2.children,
|
|
107
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["children"]);
|
|
108
108
|
|
|
109
109
|
delete props.generateChildId;
|
|
110
110
|
delete props.onSelect;
|
package/es/TabContent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -60,8 +60,8 @@ function (_React$Component) {
|
|
|
60
60
|
var _this;
|
|
61
61
|
|
|
62
62
|
_this = _React$Component.call(this, props, context) || this;
|
|
63
|
-
_this.handlePaneEnter = _this.handlePaneEnter.bind(_assertThisInitialized(_this));
|
|
64
|
-
_this.handlePaneExited = _this.handlePaneExited.bind(_assertThisInitialized(_this)); // Active entries in state will be `null` unless `animation` is set. Need
|
|
63
|
+
_this.handlePaneEnter = _this.handlePaneEnter.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
64
|
+
_this.handlePaneExited = _this.handlePaneExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Active entries in state will be `null` unless `animation` is set. Need
|
|
65
65
|
// to track active child in case keys swap and the active child changes
|
|
66
66
|
// but the active key does not.
|
|
67
67
|
|
|
@@ -75,11 +75,11 @@ function (_React$Component) {
|
|
|
75
75
|
var _proto = TabContent.prototype;
|
|
76
76
|
|
|
77
77
|
_proto.getChildContext = function getChildContext() {
|
|
78
|
-
var
|
|
79
|
-
bsClass =
|
|
80
|
-
animation =
|
|
81
|
-
mountOnEnter =
|
|
82
|
-
unmountOnExit =
|
|
78
|
+
var _this$props = this.props,
|
|
79
|
+
bsClass = _this$props.bsClass,
|
|
80
|
+
animation = _this$props.animation,
|
|
81
|
+
mountOnEnter = _this$props.mountOnEnter,
|
|
82
|
+
unmountOnExit = _this$props.unmountOnExit;
|
|
83
83
|
var stateActiveKey = this.state.activeKey;
|
|
84
84
|
var containerActiveKey = this.getContainerActiveKey();
|
|
85
85
|
var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey;
|
|
@@ -154,10 +154,10 @@ function (_React$Component) {
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
_proto.render = function render() {
|
|
157
|
-
var
|
|
158
|
-
Component =
|
|
159
|
-
className =
|
|
160
|
-
props =
|
|
157
|
+
var _this$props2 = this.props,
|
|
158
|
+
Component = _this$props2.componentClass,
|
|
159
|
+
className = _this$props2.className,
|
|
160
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "className"]);
|
|
161
161
|
|
|
162
162
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['animation', 'mountOnEnter', 'unmountOnExit']),
|
|
163
163
|
bsProps = _splitBsPropsAndOmit[0],
|
package/es/TabPane.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -110,8 +110,8 @@ function (_React$Component) {
|
|
|
110
110
|
var _this;
|
|
111
111
|
|
|
112
112
|
_this = _React$Component.call(this, props, context) || this;
|
|
113
|
-
_this.handleEnter = _this.handleEnter.bind(_assertThisInitialized(_this));
|
|
114
|
-
_this.handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
113
|
+
_this.handleEnter = _this.handleEnter.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
114
|
+
_this.handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
115
115
|
_this.in = false;
|
|
116
116
|
return _this;
|
|
117
117
|
}
|
|
@@ -191,22 +191,22 @@ function (_React$Component) {
|
|
|
191
191
|
};
|
|
192
192
|
|
|
193
193
|
_proto.render = function render() {
|
|
194
|
-
var
|
|
195
|
-
eventKey =
|
|
196
|
-
className =
|
|
197
|
-
onEnter =
|
|
198
|
-
onEntering =
|
|
199
|
-
onEntered =
|
|
200
|
-
onExit =
|
|
201
|
-
onExiting =
|
|
202
|
-
onExited =
|
|
203
|
-
propsMountOnEnter =
|
|
204
|
-
propsUnmountOnExit =
|
|
205
|
-
props =
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
tabContent =
|
|
209
|
-
tabContainer =
|
|
194
|
+
var _this$props = this.props,
|
|
195
|
+
eventKey = _this$props.eventKey,
|
|
196
|
+
className = _this$props.className,
|
|
197
|
+
onEnter = _this$props.onEnter,
|
|
198
|
+
onEntering = _this$props.onEntering,
|
|
199
|
+
onEntered = _this$props.onEntered,
|
|
200
|
+
onExit = _this$props.onExit,
|
|
201
|
+
onExiting = _this$props.onExiting,
|
|
202
|
+
onExited = _this$props.onExited,
|
|
203
|
+
propsMountOnEnter = _this$props.mountOnEnter,
|
|
204
|
+
propsUnmountOnExit = _this$props.unmountOnExit,
|
|
205
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["eventKey", "className", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit"]);
|
|
206
|
+
|
|
207
|
+
var _this$context = this.context,
|
|
208
|
+
tabContent = _this$context.$bs_tabContent,
|
|
209
|
+
tabContainer = _this$context.$bs_tabContainer;
|
|
210
210
|
|
|
211
211
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['animation']),
|
|
212
212
|
bsProps = _splitBsPropsAndOmit[0],
|
|
@@ -246,7 +246,7 @@ function (_React$Component) {
|
|
|
246
246
|
if (Transition) {
|
|
247
247
|
var exiting = tabContent && tabContent.exiting;
|
|
248
248
|
return React.createElement(Transition, {
|
|
249
|
-
|
|
249
|
+
in: active && !exiting,
|
|
250
250
|
onEnter: createChainedFunction(this.handleEnter, onEnter),
|
|
251
251
|
onEntering: onEntering,
|
|
252
252
|
onEntered: onEntered,
|