react-bootstrap 0.32.2 → 0.33.1
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/CHANGELOG.md +13 -0
- package/README.md +4 -4
- package/dist/react-bootstrap.js +11887 -12938
- package/dist/react-bootstrap.min.js +12 -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 +31 -30
- package/es/CarouselCaption.js +7 -7
- package/es/CarouselItem.js +14 -13
- 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 +25 -24
- 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 +42 -24
- package/es/ModalBody.js +7 -7
- package/es/ModalDialog.js +12 -10
- package/es/ModalFooter.js +7 -7
- package/es/ModalHeader.js +10 -10
- package/es/ModalTitle.js +7 -7
- package/es/Nav.js +24 -24
- package/es/NavDropdown.js +11 -11
- package/es/NavItem.js +12 -12
- package/es/Navbar.js +30 -30
- 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 +18 -15
- package/es/PanelBody.js +6 -6
- package/es/PanelCollapse.js +3 -3
- package/es/PanelFooter.js +5 -5
- package/es/PanelGroup.js +21 -18
- 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 +11 -11
- package/es/TabContent.js +17 -16
- package/es/TabPane.js +23 -23
- package/es/Table.js +11 -11
- package/es/Tabs.js +17 -17
- package/es/Thumbnail.js +11 -11
- package/es/ToggleButton.js +11 -11
- package/es/ToggleButtonGroup.js +12 -12
- package/es/Tooltip.js +13 -13
- package/es/Well.js +6 -6
- package/es/utils/bootstrapUtils.js +3 -3
- package/es/utils/deprecationWarning.js +5 -4
- 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 +32 -31
- package/lib/CarouselCaption.js +8 -8
- package/lib/CarouselItem.js +15 -14
- 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 +28 -27
- 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 +43 -25
- package/lib/ModalBody.js +8 -8
- package/lib/ModalDialog.js +13 -11
- package/lib/ModalFooter.js +8 -8
- package/lib/ModalHeader.js +11 -11
- package/lib/ModalTitle.js +8 -8
- package/lib/Nav.js +27 -26
- package/lib/NavDropdown.js +12 -12
- package/lib/NavItem.js +13 -13
- package/lib/Navbar.js +32 -32
- 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 +20 -18
- package/lib/PanelBody.js +7 -7
- package/lib/PanelCollapse.js +4 -4
- package/lib/PanelFooter.js +6 -6
- package/lib/PanelGroup.js +24 -22
- 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 +13 -13
- package/lib/TabContent.js +18 -17
- package/lib/TabPane.js +23 -23
- package/lib/Table.js +12 -12
- package/lib/Tabs.js +19 -19
- package/lib/Thumbnail.js +12 -12
- package/lib/ToggleButton.js +12 -12
- package/lib/ToggleButtonGroup.js +14 -14
- 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 +4 -4
- package/lib/utils/deprecationWarning.js +6 -5
- package/lib/utils/index.js +2 -2
- package/lib/utils/splitComponentProps.js +2 -2
- package/package.json +41 -42
package/es/TabContainer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import uncontrollable from 'uncontrollable';
|
|
5
|
+
import { uncontrollable } from 'uncontrollable';
|
|
6
6
|
var TAB = 'tab';
|
|
7
7
|
var PANE = 'pane';
|
|
8
8
|
var idPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
|
|
@@ -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;
|
|
@@ -98,7 +98,8 @@ function (_React$Component) {
|
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
_proto.
|
|
101
|
+
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
102
|
+
// eslint-disable-line
|
|
102
103
|
if (!nextProps.animation && this.state.activeChild) {
|
|
103
104
|
this.setState({
|
|
104
105
|
activeKey: null,
|
|
@@ -154,10 +155,10 @@ function (_React$Component) {
|
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
_proto.render = function render() {
|
|
157
|
-
var
|
|
158
|
-
Component =
|
|
159
|
-
className =
|
|
160
|
-
props =
|
|
158
|
+
var _this$props2 = this.props,
|
|
159
|
+
Component = _this$props2.componentClass,
|
|
160
|
+
className = _this$props2.className,
|
|
161
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "className"]);
|
|
161
162
|
|
|
162
163
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['animation', 'mountOnEnter', 'unmountOnExit']),
|
|
163
164
|
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,
|
package/es/Table.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';
|
|
@@ -34,14 +34,14 @@ function (_React$Component) {
|
|
|
34
34
|
_proto.render = function render() {
|
|
35
35
|
var _extends2;
|
|
36
36
|
|
|
37
|
-
var
|
|
38
|
-
striped =
|
|
39
|
-
bordered =
|
|
40
|
-
condensed =
|
|
41
|
-
hover =
|
|
42
|
-
responsive =
|
|
43
|
-
className =
|
|
44
|
-
props =
|
|
37
|
+
var _this$props = this.props,
|
|
38
|
+
striped = _this$props.striped,
|
|
39
|
+
bordered = _this$props.bordered,
|
|
40
|
+
condensed = _this$props.condensed,
|
|
41
|
+
hover = _this$props.hover,
|
|
42
|
+
responsive = _this$props.responsive,
|
|
43
|
+
className = _this$props.className,
|
|
44
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["striped", "bordered", "condensed", "hover", "responsive", "className"]);
|
|
45
45
|
|
|
46
46
|
var _splitBsProps = splitBsProps(props),
|
|
47
47
|
bsProps = _splitBsProps[0],
|
package/es/Tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import requiredForA11y from 'prop-types-extra/lib/isRequiredForA11y';
|
|
7
|
-
import uncontrollable from 'uncontrollable';
|
|
7
|
+
import { uncontrollable } from 'uncontrollable';
|
|
8
8
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
9
9
|
import Nav from './Nav';
|
|
10
10
|
import NavItem from './NavItem';
|
|
@@ -105,19 +105,19 @@ function (_React$Component) {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
_proto.render = function render() {
|
|
108
|
-
var
|
|
109
|
-
id =
|
|
110
|
-
onSelect =
|
|
111
|
-
animation =
|
|
112
|
-
mountOnEnter =
|
|
113
|
-
unmountOnExit =
|
|
114
|
-
bsClass =
|
|
115
|
-
className =
|
|
116
|
-
style =
|
|
117
|
-
children =
|
|
118
|
-
|
|
119
|
-
activeKey =
|
|
120
|
-
props =
|
|
108
|
+
var _this$props = this.props,
|
|
109
|
+
id = _this$props.id,
|
|
110
|
+
onSelect = _this$props.onSelect,
|
|
111
|
+
animation = _this$props.animation,
|
|
112
|
+
mountOnEnter = _this$props.mountOnEnter,
|
|
113
|
+
unmountOnExit = _this$props.unmountOnExit,
|
|
114
|
+
bsClass = _this$props.bsClass,
|
|
115
|
+
className = _this$props.className,
|
|
116
|
+
style = _this$props.style,
|
|
117
|
+
children = _this$props.children,
|
|
118
|
+
_this$props$activeKey = _this$props.activeKey,
|
|
119
|
+
activeKey = _this$props$activeKey === void 0 ? getDefaultActiveKey(children) : _this$props$activeKey,
|
|
120
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["id", "onSelect", "animation", "mountOnEnter", "unmountOnExit", "bsClass", "className", "style", "children", "activeKey"]);
|
|
121
121
|
|
|
122
122
|
return React.createElement(TabContainer, {
|
|
123
123
|
id: id,
|
package/es/Thumbnail.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/alt-text */
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -47,14 +47,14 @@ function (_React$Component) {
|
|
|
47
47
|
var _proto = Thumbnail.prototype;
|
|
48
48
|
|
|
49
49
|
_proto.render = function render() {
|
|
50
|
-
var
|
|
51
|
-
src =
|
|
52
|
-
alt =
|
|
53
|
-
onError =
|
|
54
|
-
onLoad =
|
|
55
|
-
className =
|
|
56
|
-
children =
|
|
57
|
-
props =
|
|
50
|
+
var _this$props = this.props,
|
|
51
|
+
src = _this$props.src,
|
|
52
|
+
alt = _this$props.alt,
|
|
53
|
+
onError = _this$props.onError,
|
|
54
|
+
onLoad = _this$props.onLoad,
|
|
55
|
+
className = _this$props.className,
|
|
56
|
+
children = _this$props.children,
|
|
57
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["src", "alt", "onError", "onLoad", "className", "children"]);
|
|
58
58
|
|
|
59
59
|
var _splitBsProps = splitBsProps(props),
|
|
60
60
|
bsProps = _splitBsProps[0],
|
package/es/ToggleButton.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 Button from './Button';
|
|
@@ -50,14 +50,14 @@ function (_React$Component) {
|
|
|
50
50
|
var _proto = ToggleButton.prototype;
|
|
51
51
|
|
|
52
52
|
_proto.render = function render() {
|
|
53
|
-
var
|
|
54
|
-
children =
|
|
55
|
-
name =
|
|
56
|
-
checked =
|
|
57
|
-
type =
|
|
58
|
-
onChange =
|
|
59
|
-
value =
|
|
60
|
-
props =
|
|
53
|
+
var _this$props = this.props,
|
|
54
|
+
children = _this$props.children,
|
|
55
|
+
name = _this$props.name,
|
|
56
|
+
checked = _this$props.checked,
|
|
57
|
+
type = _this$props.type,
|
|
58
|
+
onChange = _this$props.onChange,
|
|
59
|
+
value = _this$props.value,
|
|
60
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["children", "name", "checked", "type", "onChange", "value"]);
|
|
61
61
|
|
|
62
62
|
var disabled = props.disabled;
|
|
63
63
|
return React.createElement(Button, _extends({}, props, {
|
package/es/ToggleButtonGroup.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 invariant from 'invariant';
|
|
7
|
-
import uncontrollable from 'uncontrollable';
|
|
7
|
+
import { uncontrollable } from 'uncontrollable';
|
|
8
8
|
import chainFunction from './utils/createChainedFunction';
|
|
9
9
|
import ValidChildren from './utils/ValidComponentChildren';
|
|
10
10
|
import ButtonGroup from './ButtonGroup';
|
|
@@ -60,9 +60,9 @@ function (_React$Component) {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
_proto.handleToggle = function handleToggle(value) {
|
|
63
|
-
var
|
|
64
|
-
type =
|
|
65
|
-
onChange =
|
|
63
|
+
var _this$props = this.props,
|
|
64
|
+
type = _this$props.type,
|
|
65
|
+
onChange = _this$props.onChange;
|
|
66
66
|
var values = this.getValues();
|
|
67
67
|
var isActive = values.indexOf(value) !== -1;
|
|
68
68
|
|
|
@@ -86,11 +86,11 @@ function (_React$Component) {
|
|
|
86
86
|
_proto.render = function render() {
|
|
87
87
|
var _this = this;
|
|
88
88
|
|
|
89
|
-
var
|
|
90
|
-
children =
|
|
91
|
-
type =
|
|
92
|
-
name =
|
|
93
|
-
props =
|
|
89
|
+
var _this$props2 = this.props,
|
|
90
|
+
children = _this$props2.children,
|
|
91
|
+
type = _this$props2.type,
|
|
92
|
+
name = _this$props2.name,
|
|
93
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["children", "type", "name"]);
|
|
94
94
|
|
|
95
95
|
var values = this.getValues();
|
|
96
96
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant(false) : void 0;
|
package/es/Tooltip.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';
|
|
@@ -57,16 +57,16 @@ function (_React$Component) {
|
|
|
57
57
|
_proto.render = function render() {
|
|
58
58
|
var _extends2;
|
|
59
59
|
|
|
60
|
-
var
|
|
61
|
-
placement =
|
|
62
|
-
positionTop =
|
|
63
|
-
positionLeft =
|
|
64
|
-
arrowOffsetTop =
|
|
65
|
-
arrowOffsetLeft =
|
|
66
|
-
className =
|
|
67
|
-
style =
|
|
68
|
-
children =
|
|
69
|
-
props =
|
|
60
|
+
var _this$props = this.props,
|
|
61
|
+
placement = _this$props.placement,
|
|
62
|
+
positionTop = _this$props.positionTop,
|
|
63
|
+
positionLeft = _this$props.positionLeft,
|
|
64
|
+
arrowOffsetTop = _this$props.arrowOffsetTop,
|
|
65
|
+
arrowOffsetLeft = _this$props.arrowOffsetLeft,
|
|
66
|
+
className = _this$props.className,
|
|
67
|
+
style = _this$props.style,
|
|
68
|
+
children = _this$props.children,
|
|
69
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "className", "style", "children"]);
|
|
70
70
|
|
|
71
71
|
var _splitBsProps = splitBsProps(props),
|
|
72
72
|
bsProps = _splitBsProps[0],
|
package/es/Well.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 { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
@@ -18,9 +18,9 @@ function (_React$Component) {
|
|
|
18
18
|
var _proto = Well.prototype;
|
|
19
19
|
|
|
20
20
|
_proto.render = function render() {
|
|
21
|
-
var
|
|
22
|
-
className =
|
|
23
|
-
props =
|
|
21
|
+
var _this$props = this.props,
|
|
22
|
+
className = _this$props.className,
|
|
23
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
24
24
|
|
|
25
25
|
var _splitBsProps = splitBsProps(props),
|
|
26
26
|
bsProps = _splitBsProps[0],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Object$entries from "@babel/runtime/core-js/object/entries";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _Object$entries from "@babel/runtime-corejs2/core-js/object/entries";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
3
|
// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
|
|
4
4
|
import invariant from 'invariant';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -176,6 +176,6 @@ export function addStyle(Component) {
|
|
|
176
176
|
styleVariant[_key2 - 1] = arguments[_key2];
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
bsStyles(styleVariant
|
|
179
|
+
bsStyles(styleVariant)(Component);
|
|
180
180
|
}
|
|
181
181
|
export var _curry = curry;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
2
2
|
import warning from 'warning';
|
|
3
3
|
var warned = {};
|
|
4
4
|
|
|
@@ -39,17 +39,18 @@ deprecationWarning.wrapper = function (Component) {
|
|
|
39
39
|
|
|
40
40
|
var _proto = DeprecatedComponent.prototype;
|
|
41
41
|
|
|
42
|
-
_proto.
|
|
42
|
+
_proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {
|
|
43
|
+
// eslint-disable-line
|
|
43
44
|
deprecationWarning.apply(void 0, args);
|
|
44
45
|
|
|
45
|
-
if (_Component.prototype.
|
|
46
|
+
if (_Component.prototype.UNSAFE_componentWillMount) {
|
|
46
47
|
var _Component$prototype$;
|
|
47
48
|
|
|
48
49
|
for (var _len2 = arguments.length, methodArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
49
50
|
methodArgs[_key2] = arguments[_key2];
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
(_Component$prototype$ = _Component.prototype.
|
|
53
|
+
(_Component$prototype$ = _Component.prototype.UNSAFE_componentWillMount).call.apply(_Component$prototype$, [this].concat(methodArgs));
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _Object$entries from "@babel/runtime/core-js/object/entries";
|
|
1
|
+
import _Object$entries from "@babel/runtime-corejs2/core-js/object/entries";
|
|
2
2
|
export default function splitComponentProps(props, Component) {
|
|
3
3
|
var componentPropTypes = Component.propTypes;
|
|
4
4
|
var parentProps = {};
|
package/lib/Accordion.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/extends"));
|
|
9
9
|
|
|
10
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose"));
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
package/lib/Alert.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _values = _interopRequireDefault(require("@babel/runtime/core-js/object/values"));
|
|
8
|
+
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
9
9
|
|
|
10
|
-
var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _extends3 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/objectWithoutPropertiesLoose"));
|
|
13
13
|
|
|
14
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
14
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose"));
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
@@ -47,12 +47,12 @@ function (_React$Component) {
|
|
|
47
47
|
_proto.render = function render() {
|
|
48
48
|
var _extends2;
|
|
49
49
|
|
|
50
|
-
var
|
|
51
|
-
onDismiss =
|
|
52
|
-
closeLabel =
|
|
53
|
-
className =
|
|
54
|
-
children =
|
|
55
|
-
props = (0,
|
|
50
|
+
var _this$props = this.props,
|
|
51
|
+
onDismiss = _this$props.onDismiss,
|
|
52
|
+
closeLabel = _this$props.closeLabel,
|
|
53
|
+
className = _this$props.className,
|
|
54
|
+
children = _this$props.children,
|
|
55
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["onDismiss", "closeLabel", "className", "children"]);
|
|
56
56
|
|
|
57
57
|
var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props),
|
|
58
58
|
bsProps = _splitBsProps[0],
|
package/lib/Badge.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/extends"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
|
|
12
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
12
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose"));
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
@@ -55,11 +55,11 @@ function (_React$Component) {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
_proto.render = function render() {
|
|
58
|
-
var
|
|
59
|
-
pullRight =
|
|
60
|
-
className =
|
|
61
|
-
children =
|
|
62
|
-
props = (0,
|
|
58
|
+
var _this$props = this.props,
|
|
59
|
+
pullRight = _this$props.pullRight,
|
|
60
|
+
className = _this$props.className,
|
|
61
|
+
children = _this$props.children,
|
|
62
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["pullRight", "className", "children"]);
|
|
63
63
|
|
|
64
64
|
var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props),
|
|
65
65
|
bsProps = _splitBsProps[0],
|
package/lib/Breadcrumb.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/extends"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
|
|
12
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
12
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose"));
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
@@ -31,9 +31,9 @@ function (_React$Component) {
|
|
|
31
31
|
var _proto = Breadcrumb.prototype;
|
|
32
32
|
|
|
33
33
|
_proto.render = function render() {
|
|
34
|
-
var
|
|
35
|
-
className =
|
|
36
|
-
props = (0,
|
|
34
|
+
var _this$props = this.props,
|
|
35
|
+
className = _this$props.className,
|
|
36
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["className"]);
|
|
37
37
|
|
|
38
38
|
var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props),
|
|
39
39
|
bsProps = _splitBsProps[0],
|