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/Accordion.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 PanelGroup from './PanelGroup';
|
|
5
5
|
|
package/es/Alert.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 from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -30,12 +30,12 @@ function (_React$Component) {
|
|
|
30
30
|
_proto.render = function render() {
|
|
31
31
|
var _extends2;
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
onDismiss =
|
|
35
|
-
closeLabel =
|
|
36
|
-
className =
|
|
37
|
-
children =
|
|
38
|
-
props =
|
|
33
|
+
var _this$props = this.props,
|
|
34
|
+
onDismiss = _this$props.onDismiss,
|
|
35
|
+
closeLabel = _this$props.closeLabel,
|
|
36
|
+
className = _this$props.className,
|
|
37
|
+
children = _this$props.children,
|
|
38
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]);
|
|
39
39
|
|
|
40
40
|
var _splitBsProps = splitBsProps(props),
|
|
41
41
|
bsProps = _splitBsProps[0],
|
package/es/Badge.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';
|
|
@@ -39,11 +39,11 @@ function (_React$Component) {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
_proto.render = function render() {
|
|
42
|
-
var
|
|
43
|
-
pullRight =
|
|
44
|
-
className =
|
|
45
|
-
children =
|
|
46
|
-
props =
|
|
42
|
+
var _this$props = this.props,
|
|
43
|
+
pullRight = _this$props.pullRight,
|
|
44
|
+
className = _this$props.className,
|
|
45
|
+
children = _this$props.children,
|
|
46
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]);
|
|
47
47
|
|
|
48
48
|
var _splitBsProps = splitBsProps(props),
|
|
49
49
|
bsProps = _splitBsProps[0],
|
package/es/Breadcrumb.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 BreadcrumbItem from './BreadcrumbItem';
|
|
@@ -18,9 +18,9 @@ function (_React$Component) {
|
|
|
18
18
|
var _proto = Breadcrumb.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],
|
package/es/BreadcrumbItem.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';
|
|
@@ -42,13 +42,13 @@ function (_React$Component) {
|
|
|
42
42
|
var _proto = BreadcrumbItem.prototype;
|
|
43
43
|
|
|
44
44
|
_proto.render = function render() {
|
|
45
|
-
var
|
|
46
|
-
active =
|
|
47
|
-
href =
|
|
48
|
-
title =
|
|
49
|
-
target =
|
|
50
|
-
className =
|
|
51
|
-
props =
|
|
45
|
+
var _this$props = this.props,
|
|
46
|
+
active = _this$props.active,
|
|
47
|
+
href = _this$props.href,
|
|
48
|
+
title = _this$props.title,
|
|
49
|
+
target = _this$props.target,
|
|
50
|
+
className = _this$props.className,
|
|
51
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active <span>.
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
var linkProps = {
|
package/es/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _Object$values from "@babel/runtime/core-js/object/values";
|
|
2
|
-
import
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _Object$values from "@babel/runtime-corejs2/core-js/object/values";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
4
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -48,7 +48,7 @@ function (_React$Component) {
|
|
|
48
48
|
|
|
49
49
|
_proto.renderButton = function renderButton(_ref, className) {
|
|
50
50
|
var componentClass = _ref.componentClass,
|
|
51
|
-
elementProps =
|
|
51
|
+
elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]);
|
|
52
52
|
|
|
53
53
|
var Component = componentClass || 'button';
|
|
54
54
|
return React.createElement(Component, _extends({}, elementProps, {
|
|
@@ -60,11 +60,11 @@ function (_React$Component) {
|
|
|
60
60
|
_proto.render = function render() {
|
|
61
61
|
var _extends2;
|
|
62
62
|
|
|
63
|
-
var
|
|
64
|
-
active =
|
|
65
|
-
block =
|
|
66
|
-
className =
|
|
67
|
-
props =
|
|
63
|
+
var _this$props = this.props,
|
|
64
|
+
active = _this$props.active,
|
|
65
|
+
block = _this$props.block,
|
|
66
|
+
className = _this$props.className,
|
|
67
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]);
|
|
68
68
|
|
|
69
69
|
var _splitBsProps = splitBsProps(props),
|
|
70
70
|
bsProps = _splitBsProps[0],
|
package/es/ButtonGroup.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';
|
|
@@ -41,12 +41,12 @@ function (_React$Component) {
|
|
|
41
41
|
_proto.render = function render() {
|
|
42
42
|
var _extends2;
|
|
43
43
|
|
|
44
|
-
var
|
|
45
|
-
block =
|
|
46
|
-
justified =
|
|
47
|
-
vertical =
|
|
48
|
-
className =
|
|
49
|
-
props =
|
|
44
|
+
var _this$props = this.props,
|
|
45
|
+
block = _this$props.block,
|
|
46
|
+
justified = _this$props.justified,
|
|
47
|
+
vertical = _this$props.vertical,
|
|
48
|
+
className = _this$props.className,
|
|
49
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]);
|
|
50
50
|
|
|
51
51
|
var _splitBsProps = splitBsProps(props),
|
|
52
52
|
bsProps = _splitBsProps[0],
|
package/es/ButtonToolbar.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, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
@@ -17,9 +17,9 @@ function (_React$Component) {
|
|
|
17
17
|
var _proto = ButtonToolbar.prototype;
|
|
18
18
|
|
|
19
19
|
_proto.render = function render() {
|
|
20
|
-
var
|
|
21
|
-
className =
|
|
22
|
-
props =
|
|
20
|
+
var _this$props = this.props,
|
|
21
|
+
className = _this$props.className,
|
|
22
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
23
23
|
|
|
24
24
|
var _splitBsProps = splitBsProps(props),
|
|
25
25
|
bsProps = _splitBsProps[0],
|
package/es/Carousel.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, { cloneElement } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -85,11 +85,11 @@ function (_React$Component) {
|
|
|
85
85
|
var _this;
|
|
86
86
|
|
|
87
87
|
_this = _React$Component.call(this, props, context) || this;
|
|
88
|
-
_this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_this));
|
|
89
|
-
_this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_this));
|
|
90
|
-
_this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_this));
|
|
91
|
-
_this.handleNext = _this.handleNext.bind(_assertThisInitialized(_this));
|
|
92
|
-
_this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_this));
|
|
88
|
+
_this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
89
|
+
_this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
90
|
+
_this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
91
|
+
_this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
92
|
+
_this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
93
93
|
var defaultActiveIndex = props.defaultActiveIndex;
|
|
94
94
|
_this.state = {
|
|
95
95
|
activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0,
|
|
@@ -106,7 +106,8 @@ function (_React$Component) {
|
|
|
106
106
|
this.waitForNext();
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
_proto.
|
|
109
|
+
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
110
|
+
// eslint-disable-line
|
|
110
111
|
var activeIndex = this.getActiveIndex();
|
|
111
112
|
|
|
112
113
|
if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) {
|
|
@@ -262,10 +263,10 @@ function (_React$Component) {
|
|
|
262
263
|
};
|
|
263
264
|
|
|
264
265
|
_proto.waitForNext = function waitForNext() {
|
|
265
|
-
var
|
|
266
|
-
slide =
|
|
267
|
-
interval =
|
|
268
|
-
activeIndexProp =
|
|
266
|
+
var _this$props = this.props,
|
|
267
|
+
slide = _this$props.slide,
|
|
268
|
+
interval = _this$props.interval,
|
|
269
|
+
activeIndexProp = _this$props.activeIndex;
|
|
269
270
|
|
|
270
271
|
if (!this.isPaused && slide && interval && activeIndexProp == null) {
|
|
271
272
|
this.timeout = setTimeout(this.handleNext, interval);
|
|
@@ -321,22 +322,22 @@ function (_React$Component) {
|
|
|
321
322
|
_proto.render = function render() {
|
|
322
323
|
var _this4 = this;
|
|
323
324
|
|
|
324
|
-
var
|
|
325
|
-
slide =
|
|
326
|
-
indicators =
|
|
327
|
-
controls =
|
|
328
|
-
wrap =
|
|
329
|
-
prevIcon =
|
|
330
|
-
prevLabel =
|
|
331
|
-
nextIcon =
|
|
332
|
-
nextLabel =
|
|
333
|
-
className =
|
|
334
|
-
children =
|
|
335
|
-
props =
|
|
336
|
-
|
|
337
|
-
var
|
|
338
|
-
previousActiveIndex =
|
|
339
|
-
direction =
|
|
325
|
+
var _this$props2 = this.props,
|
|
326
|
+
slide = _this$props2.slide,
|
|
327
|
+
indicators = _this$props2.indicators,
|
|
328
|
+
controls = _this$props2.controls,
|
|
329
|
+
wrap = _this$props2.wrap,
|
|
330
|
+
prevIcon = _this$props2.prevIcon,
|
|
331
|
+
prevLabel = _this$props2.prevLabel,
|
|
332
|
+
nextIcon = _this$props2.nextIcon,
|
|
333
|
+
nextLabel = _this$props2.nextLabel,
|
|
334
|
+
className = _this$props2.className,
|
|
335
|
+
children = _this$props2.children,
|
|
336
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
337
|
+
|
|
338
|
+
var _this$state = this.state,
|
|
339
|
+
previousActiveIndex = _this$state.previousActiveIndex,
|
|
340
|
+
direction = _this$state.direction;
|
|
340
341
|
|
|
341
342
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex().
|
|
342
343
|
'defaultActiveIndex', 'direction']),
|
package/es/CarouselCaption.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 = CarouselCaption.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/CarouselItem.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';
|
|
@@ -30,7 +30,7 @@ function (_React$Component) {
|
|
|
30
30
|
var _this;
|
|
31
31
|
|
|
32
32
|
_this = _React$Component.call(this, props, context) || this;
|
|
33
|
-
_this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_this));
|
|
33
|
+
_this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
34
34
|
_this.state = {
|
|
35
35
|
direction: null
|
|
36
36
|
};
|
|
@@ -40,7 +40,8 @@ function (_React$Component) {
|
|
|
40
40
|
|
|
41
41
|
var _proto = CarouselItem.prototype;
|
|
42
42
|
|
|
43
|
-
_proto.
|
|
43
|
+
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
44
|
+
// eslint-disable-line
|
|
44
45
|
if (this.props.active !== nextProps.active) {
|
|
45
46
|
this.setState({
|
|
46
47
|
direction: null
|
|
@@ -90,13 +91,13 @@ function (_React$Component) {
|
|
|
90
91
|
};
|
|
91
92
|
|
|
92
93
|
_proto.render = function render() {
|
|
93
|
-
var
|
|
94
|
-
direction =
|
|
95
|
-
active =
|
|
96
|
-
animateIn =
|
|
97
|
-
animateOut =
|
|
98
|
-
className =
|
|
99
|
-
props =
|
|
94
|
+
var _this$props = this.props,
|
|
95
|
+
direction = _this$props.direction,
|
|
96
|
+
active = _this$props.active,
|
|
97
|
+
animateIn = _this$props.animateIn,
|
|
98
|
+
animateOut = _this$props.animateOut,
|
|
99
|
+
className = _this$props.className,
|
|
100
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]);
|
|
100
101
|
|
|
101
102
|
delete props.onAnimateOutEnd;
|
|
102
103
|
delete props.index;
|
package/es/Checkbox.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 = Checkbox.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/Clearfix.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';
|
|
@@ -63,10 +63,10 @@ function (_React$Component) {
|
|
|
63
63
|
var _proto = Clearfix.prototype;
|
|
64
64
|
|
|
65
65
|
_proto.render = function render() {
|
|
66
|
-
var
|
|
67
|
-
Component =
|
|
68
|
-
className =
|
|
69
|
-
props =
|
|
66
|
+
var _this$props = this.props,
|
|
67
|
+
Component = _this$props.componentClass,
|
|
68
|
+
className = _this$props.className,
|
|
69
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
|
70
70
|
|
|
71
71
|
var _splitBsProps = splitBsProps(props),
|
|
72
72
|
bsProps = _splitBsProps[0],
|
package/es/CloseButton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
var propTypes = {
|
|
@@ -21,9 +21,9 @@ function (_React$Component) {
|
|
|
21
21
|
var _proto = CloseButton.prototype;
|
|
22
22
|
|
|
23
23
|
_proto.render = function render() {
|
|
24
|
-
var
|
|
25
|
-
label =
|
|
26
|
-
onClick =
|
|
24
|
+
var _this$props = this.props,
|
|
25
|
+
label = _this$props.label,
|
|
26
|
+
onClick = _this$props.onClick;
|
|
27
27
|
return React.createElement("button", {
|
|
28
28
|
type: "button",
|
|
29
29
|
className: "close",
|
package/es/Col.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';
|
|
@@ -206,10 +206,10 @@ function (_React$Component) {
|
|
|
206
206
|
var _proto = Col.prototype;
|
|
207
207
|
|
|
208
208
|
_proto.render = function render() {
|
|
209
|
-
var
|
|
210
|
-
Component =
|
|
211
|
-
className =
|
|
212
|
-
props =
|
|
209
|
+
var _this$props = this.props,
|
|
210
|
+
Component = _this$props.componentClass,
|
|
211
|
+
className = _this$props.className,
|
|
212
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
|
213
213
|
|
|
214
214
|
var _splitBsProps = splitBsProps(props),
|
|
215
215
|
bsProps = _splitBsProps[0],
|
package/es/Collapse.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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 _parseInt from "@babel/runtime-corejs2/core-js/parse-int";
|
|
5
5
|
|
|
6
6
|
var _collapseStyles;
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ function triggerBrowserReflow(node) {
|
|
|
25
25
|
function getDimensionValue(dimension, elem) {
|
|
26
26
|
var value = elem["offset" + capitalize(dimension)];
|
|
27
27
|
var margins = MARGINS[dimension];
|
|
28
|
-
return value +
|
|
28
|
+
return value + _parseInt(css(elem, margins[0]), 10) + _parseInt(css(elem, margins[1]), 10);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse in', _collapseStyles);
|
|
@@ -127,28 +127,40 @@ function (_React$Component) {
|
|
|
127
127
|
_inheritsLoose(Collapse, _React$Component);
|
|
128
128
|
|
|
129
129
|
function Collapse() {
|
|
130
|
-
var
|
|
130
|
+
var _this;
|
|
131
131
|
|
|
132
132
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
133
133
|
args[_key] = arguments[_key];
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
137
|
+
|
|
138
|
+
_this.handleEnter = function (elem) {
|
|
137
139
|
elem.style[_this.getDimension()] = '0';
|
|
138
|
-
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
_this.handleEntering = function (elem) {
|
|
139
143
|
var dimension = _this.getDimension();
|
|
140
144
|
|
|
141
145
|
elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension);
|
|
142
|
-
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
_this.handleEntered = function (elem) {
|
|
143
149
|
elem.style[_this.getDimension()] = null;
|
|
144
|
-
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
_this.handleExit = function (elem) {
|
|
145
153
|
var dimension = _this.getDimension();
|
|
146
154
|
|
|
147
155
|
elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px";
|
|
148
156
|
triggerBrowserReflow(elem);
|
|
149
|
-
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
_this.handleExiting = function (elem) {
|
|
150
160
|
elem.style[_this.getDimension()] = '0';
|
|
151
|
-
}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
return _this;
|
|
152
164
|
}
|
|
153
165
|
|
|
154
166
|
var _proto = Collapse.prototype;
|
|
@@ -167,15 +179,15 @@ function (_React$Component) {
|
|
|
167
179
|
_proto.render = function render() {
|
|
168
180
|
var _this2 = this;
|
|
169
181
|
|
|
170
|
-
var
|
|
171
|
-
onEnter =
|
|
172
|
-
onEntering =
|
|
173
|
-
onEntered =
|
|
174
|
-
onExit =
|
|
175
|
-
onExiting =
|
|
176
|
-
className =
|
|
177
|
-
children =
|
|
178
|
-
props =
|
|
182
|
+
var _this$props = this.props,
|
|
183
|
+
onEnter = _this$props.onEnter,
|
|
184
|
+
onEntering = _this$props.onEntering,
|
|
185
|
+
onEntered = _this$props.onEntered,
|
|
186
|
+
onExit = _this$props.onExit,
|
|
187
|
+
onExiting = _this$props.onExiting,
|
|
188
|
+
className = _this$props.className,
|
|
189
|
+
children = _this$props.children,
|
|
190
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]);
|
|
179
191
|
|
|
180
192
|
delete props.dimension;
|
|
181
193
|
delete props.getDimensionValue;
|
package/es/ControlLabel.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';
|
|
@@ -35,12 +35,12 @@ function (_React$Component) {
|
|
|
35
35
|
var formGroup = this.context.$bs_formGroup;
|
|
36
36
|
var controlId = formGroup && formGroup.controlId;
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
htmlFor =
|
|
41
|
-
srOnly =
|
|
42
|
-
className =
|
|
43
|
-
props =
|
|
38
|
+
var _this$props = this.props,
|
|
39
|
+
_this$props$htmlFor = _this$props.htmlFor,
|
|
40
|
+
htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor,
|
|
41
|
+
srOnly = _this$props.srOnly,
|
|
42
|
+
className = _this$props.className,
|
|
43
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]);
|
|
44
44
|
|
|
45
45
|
var _splitBsProps = splitBsProps(props),
|
|
46
46
|
bsProps = _splitBsProps[0],
|