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/Nav.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 keycode from 'keycode';
|
|
6
6
|
import React, { cloneElement } from 'react';
|
|
@@ -117,9 +117,9 @@ function (_React$Component) {
|
|
|
117
117
|
this._needsRefocus = false;
|
|
118
118
|
var children = this.props.children;
|
|
119
119
|
|
|
120
|
-
var
|
|
121
|
-
activeKey =
|
|
122
|
-
activeHref =
|
|
120
|
+
var _this$getActiveProps = this.getActiveProps(),
|
|
121
|
+
activeKey = _this$getActiveProps.activeKey,
|
|
122
|
+
activeHref = _this$getActiveProps.activeHref;
|
|
123
123
|
|
|
124
124
|
var activeChild = ValidComponentChildren.find(children, function (child) {
|
|
125
125
|
return _this.isActive(child, activeKey, activeHref);
|
|
@@ -151,13 +151,13 @@ function (_React$Component) {
|
|
|
151
151
|
var _this2 = this;
|
|
152
152
|
|
|
153
153
|
var children = this.props.children;
|
|
154
|
-
var validChildren =
|
|
154
|
+
var validChildren = ValidComponentChildren.filter(children, function (child) {
|
|
155
155
|
return child.props.eventKey != null && !child.props.disabled;
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
var
|
|
159
|
-
activeKey =
|
|
160
|
-
activeHref =
|
|
158
|
+
var _this$getActiveProps2 = this.getActiveProps(),
|
|
159
|
+
activeKey = _this$getActiveProps2.activeKey,
|
|
160
|
+
activeHref = _this$getActiveProps2.activeHref;
|
|
161
161
|
|
|
162
162
|
var activeChild = ValidComponentChildren.find(children, function (child) {
|
|
163
163
|
return _this2.isActive(child, activeKey, activeHref);
|
|
@@ -263,24 +263,24 @@ function (_React$Component) {
|
|
|
263
263
|
var _extends2,
|
|
264
264
|
_this4 = this;
|
|
265
265
|
|
|
266
|
-
var
|
|
267
|
-
stacked =
|
|
268
|
-
justified =
|
|
269
|
-
onSelect =
|
|
270
|
-
propsRole =
|
|
271
|
-
propsNavbar =
|
|
272
|
-
pullRight =
|
|
273
|
-
pullLeft =
|
|
274
|
-
className =
|
|
275
|
-
children =
|
|
276
|
-
props =
|
|
266
|
+
var _this$props = this.props,
|
|
267
|
+
stacked = _this$props.stacked,
|
|
268
|
+
justified = _this$props.justified,
|
|
269
|
+
onSelect = _this$props.onSelect,
|
|
270
|
+
propsRole = _this$props.role,
|
|
271
|
+
propsNavbar = _this$props.navbar,
|
|
272
|
+
pullRight = _this$props.pullRight,
|
|
273
|
+
pullLeft = _this$props.pullLeft,
|
|
274
|
+
className = _this$props.className,
|
|
275
|
+
children = _this$props.children,
|
|
276
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["stacked", "justified", "onSelect", "role", "navbar", "pullRight", "pullLeft", "className", "children"]);
|
|
277
277
|
|
|
278
278
|
var tabContainer = this.context.$bs_tabContainer;
|
|
279
279
|
var role = propsRole || (tabContainer ? 'tablist' : null);
|
|
280
280
|
|
|
281
|
-
var
|
|
282
|
-
activeKey =
|
|
283
|
-
activeHref =
|
|
281
|
+
var _this$getActiveProps3 = this.getActiveProps(),
|
|
282
|
+
activeKey = _this$getActiveProps3.activeKey,
|
|
283
|
+
activeHref = _this$getActiveProps3.activeHref;
|
|
284
284
|
|
|
285
285
|
delete props.activeKey; // Accessed via this.getActiveProps().
|
|
286
286
|
|
package/es/NavDropdown.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 classNames from 'classnames';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -55,14 +55,14 @@ function (_React$Component) {
|
|
|
55
55
|
_proto.render = function render() {
|
|
56
56
|
var _this2 = this;
|
|
57
57
|
|
|
58
|
-
var
|
|
59
|
-
title =
|
|
60
|
-
activeKey =
|
|
61
|
-
activeHref =
|
|
62
|
-
className =
|
|
63
|
-
style =
|
|
64
|
-
children =
|
|
65
|
-
props =
|
|
58
|
+
var _this$props = this.props,
|
|
59
|
+
title = _this$props.title,
|
|
60
|
+
activeKey = _this$props.activeKey,
|
|
61
|
+
activeHref = _this$props.activeHref,
|
|
62
|
+
className = _this$props.className,
|
|
63
|
+
style = _this$props.style,
|
|
64
|
+
children = _this$props.children,
|
|
65
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["title", "activeKey", "activeHref", "className", "style", "children"]);
|
|
66
66
|
|
|
67
67
|
var active = this.isActive(this, activeKey, activeHref);
|
|
68
68
|
delete props.active; // Accessed via this.isActive().
|
package/es/NavItem.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.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
33
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
34
34
|
return _this;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -48,13 +48,13 @@ function (_React$Component) {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
_proto.render = function render() {
|
|
51
|
-
var
|
|
52
|
-
active =
|
|
53
|
-
disabled =
|
|
54
|
-
onClick =
|
|
55
|
-
className =
|
|
56
|
-
style =
|
|
57
|
-
props =
|
|
51
|
+
var _this$props = this.props,
|
|
52
|
+
active = _this$props.active,
|
|
53
|
+
disabled = _this$props.disabled,
|
|
54
|
+
onClick = _this$props.onClick,
|
|
55
|
+
className = _this$props.className,
|
|
56
|
+
style = _this$props.style,
|
|
57
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["active", "disabled", "onClick", "className", "style"]);
|
|
58
58
|
|
|
59
59
|
delete props.onSelect;
|
|
60
60
|
delete props.eventKey; // These are injected down by `<Nav>` for building `<SubNav>`s.
|
package/es/Navbar.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
|
// TODO: Remove this pragma once we upgrade eslint-config-airbnb.
|
|
6
6
|
|
|
7
7
|
/* eslint-disable react/no-multi-comp */
|
|
@@ -9,7 +9,7 @@ import classNames from 'classnames';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
12
|
-
import uncontrollable from 'uncontrollable';
|
|
12
|
+
import { uncontrollable } from 'uncontrollable';
|
|
13
13
|
import Grid from './Grid';
|
|
14
14
|
import NavbarBrand from './NavbarBrand';
|
|
15
15
|
import NavbarCollapse from './NavbarCollapse';
|
|
@@ -128,19 +128,19 @@ function (_React$Component) {
|
|
|
128
128
|
var _this;
|
|
129
129
|
|
|
130
130
|
_this = _React$Component.call(this, props, context) || this;
|
|
131
|
-
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_this));
|
|
132
|
-
_this.handleCollapse = _this.handleCollapse.bind(_assertThisInitialized(_this));
|
|
131
|
+
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
132
|
+
_this.handleCollapse = _this.handleCollapse.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
133
133
|
return _this;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
var _proto = Navbar.prototype;
|
|
137
137
|
|
|
138
138
|
_proto.getChildContext = function getChildContext() {
|
|
139
|
-
var
|
|
140
|
-
bsClass =
|
|
141
|
-
expanded =
|
|
142
|
-
onSelect =
|
|
143
|
-
collapseOnSelect =
|
|
139
|
+
var _this$props = this.props,
|
|
140
|
+
bsClass = _this$props.bsClass,
|
|
141
|
+
expanded = _this$props.expanded,
|
|
142
|
+
onSelect = _this$props.onSelect,
|
|
143
|
+
collapseOnSelect = _this$props.collapseOnSelect;
|
|
144
144
|
return {
|
|
145
145
|
$bs_navbar: {
|
|
146
146
|
bsClass: bsClass,
|
|
@@ -152,9 +152,9 @@ function (_React$Component) {
|
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
_proto.handleCollapse = function handleCollapse() {
|
|
155
|
-
var
|
|
156
|
-
onToggle =
|
|
157
|
-
expanded =
|
|
155
|
+
var _this$props2 = this.props,
|
|
156
|
+
onToggle = _this$props2.onToggle,
|
|
157
|
+
expanded = _this$props2.expanded;
|
|
158
158
|
|
|
159
159
|
if (expanded) {
|
|
160
160
|
onToggle(false);
|
|
@@ -162,25 +162,25 @@ function (_React$Component) {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
_proto.handleToggle = function handleToggle() {
|
|
165
|
-
var
|
|
166
|
-
onToggle =
|
|
167
|
-
expanded =
|
|
165
|
+
var _this$props3 = this.props,
|
|
166
|
+
onToggle = _this$props3.onToggle,
|
|
167
|
+
expanded = _this$props3.expanded;
|
|
168
168
|
onToggle(!expanded);
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
_proto.render = function render() {
|
|
172
172
|
var _extends2;
|
|
173
173
|
|
|
174
|
-
var
|
|
175
|
-
Component =
|
|
176
|
-
fixedTop =
|
|
177
|
-
fixedBottom =
|
|
178
|
-
staticTop =
|
|
179
|
-
inverse =
|
|
180
|
-
fluid =
|
|
181
|
-
className =
|
|
182
|
-
children =
|
|
183
|
-
props =
|
|
174
|
+
var _this$props4 = this.props,
|
|
175
|
+
Component = _this$props4.componentClass,
|
|
176
|
+
fixedTop = _this$props4.fixedTop,
|
|
177
|
+
fixedBottom = _this$props4.fixedBottom,
|
|
178
|
+
staticTop = _this$props4.staticTop,
|
|
179
|
+
inverse = _this$props4.inverse,
|
|
180
|
+
fluid = _this$props4.fluid,
|
|
181
|
+
className = _this$props4.className,
|
|
182
|
+
children = _this$props4.children,
|
|
183
|
+
props = _objectWithoutPropertiesLoose(_this$props4, ["componentClass", "fixedTop", "fixedBottom", "staticTop", "inverse", "fluid", "className", "children"]);
|
|
184
184
|
|
|
185
185
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect']),
|
|
186
186
|
bsProps = _splitBsPropsAndOmit[0],
|
|
@@ -223,7 +223,7 @@ function createSimpleWrapper(tag, suffix, displayName) {
|
|
|
223
223
|
className = _ref.className,
|
|
224
224
|
pullRight = _ref.pullRight,
|
|
225
225
|
pullLeft = _ref.pullLeft,
|
|
226
|
-
props =
|
|
226
|
+
props = _objectWithoutPropertiesLoose(_ref, ["componentClass", "className", "pullRight", "pullLeft"]);
|
|
227
227
|
|
|
228
228
|
var _ref2$$bs_navbar = _ref2.$bs_navbar,
|
|
229
229
|
navbarProps = _ref2$$bs_navbar === void 0 ? {
|
|
@@ -261,4 +261,4 @@ UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm');
|
|
|
261
261
|
UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText');
|
|
262
262
|
UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink'); // Set bsStyles here so they can be overridden.
|
|
263
263
|
|
|
264
|
-
export default bsStyles([Style.DEFAULT, Style.INVERSE], Style.DEFAULT
|
|
264
|
+
export default bsStyles([Style.DEFAULT, Style.INVERSE], Style.DEFAULT)(UncontrollableNavbar);
|
package/es/NavbarBrand.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';
|
|
@@ -23,10 +23,10 @@ function (_React$Component) {
|
|
|
23
23
|
var _proto = NavbarBrand.prototype;
|
|
24
24
|
|
|
25
25
|
_proto.render = function render() {
|
|
26
|
-
var
|
|
27
|
-
className =
|
|
28
|
-
children =
|
|
29
|
-
props =
|
|
26
|
+
var _this$props = this.props,
|
|
27
|
+
className = _this$props.className,
|
|
28
|
+
children = _this$props.children,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
|
30
30
|
|
|
31
31
|
var navbarProps = this.context.$bs_navbar || {
|
|
32
32
|
bsClass: 'navbar'
|
package/es/NavbarCollapse.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 React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import Collapse from './Collapse';
|
|
@@ -24,16 +24,16 @@ function (_React$Component) {
|
|
|
24
24
|
var _proto = NavbarCollapse.prototype;
|
|
25
25
|
|
|
26
26
|
_proto.render = function render() {
|
|
27
|
-
var
|
|
28
|
-
children =
|
|
29
|
-
props =
|
|
27
|
+
var _this$props = this.props,
|
|
28
|
+
children = _this$props.children,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["children"]);
|
|
30
30
|
|
|
31
31
|
var navbarProps = this.context.$bs_navbar || {
|
|
32
32
|
bsClass: 'navbar'
|
|
33
33
|
};
|
|
34
34
|
var bsClassName = prefix(navbarProps, 'collapse');
|
|
35
35
|
return React.createElement(Collapse, _extends({
|
|
36
|
-
|
|
36
|
+
in: navbarProps.expanded
|
|
37
37
|
}, props), React.createElement("div", {
|
|
38
38
|
className: bsClassName
|
|
39
39
|
}, children));
|
package/es/NavbarHeader.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';
|
|
@@ -23,9 +23,9 @@ function (_React$Component) {
|
|
|
23
23
|
var _proto = NavbarHeader.prototype;
|
|
24
24
|
|
|
25
25
|
_proto.render = function render() {
|
|
26
|
-
var
|
|
27
|
-
className =
|
|
28
|
-
props =
|
|
26
|
+
var _this$props = this.props,
|
|
27
|
+
className = _this$props.className,
|
|
28
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
29
29
|
|
|
30
30
|
var navbarProps = this.context.$bs_navbar || {
|
|
31
31
|
bsClass: 'navbar'
|
package/es/NavbarToggle.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,11 +34,11 @@ function (_React$Component) {
|
|
|
34
34
|
var _proto = NavbarToggle.prototype;
|
|
35
35
|
|
|
36
36
|
_proto.render = function render() {
|
|
37
|
-
var
|
|
38
|
-
onClick =
|
|
39
|
-
className =
|
|
40
|
-
children =
|
|
41
|
-
props =
|
|
37
|
+
var _this$props = this.props,
|
|
38
|
+
onClick = _this$props.onClick,
|
|
39
|
+
className = _this$props.className,
|
|
40
|
+
children = _this$props.children,
|
|
41
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["onClick", "className", "children"]);
|
|
42
42
|
|
|
43
43
|
var navbarProps = this.context.$bs_navbar || {
|
|
44
44
|
bsClass: 'navbar'
|
package/es/Overlay.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 classNames from 'classnames';
|
|
5
5
|
import React, { cloneElement } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -85,10 +85,10 @@ function (_React$Component) {
|
|
|
85
85
|
var _proto = Overlay.prototype;
|
|
86
86
|
|
|
87
87
|
_proto.render = function render() {
|
|
88
|
-
var
|
|
89
|
-
animation =
|
|
90
|
-
children =
|
|
91
|
-
props =
|
|
88
|
+
var _this$props = this.props,
|
|
89
|
+
animation = _this$props.animation,
|
|
90
|
+
children = _this$props.children,
|
|
91
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["animation", "children"]);
|
|
92
92
|
|
|
93
93
|
var transition = animation === true ? Fade : animation || null;
|
|
94
94
|
var child;
|
package/es/OverlayTrigger.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/
|
|
4
|
-
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 _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
|
|
4
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
5
|
+
import _Array$isArray from "@babel/runtime-corejs2/core-js/array/is-array";
|
|
5
6
|
import contains from 'dom-helpers/query/contains';
|
|
6
7
|
import React, { cloneElement } from 'react';
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
@@ -18,7 +19,7 @@ import createChainedFunction from './utils/createChainedFunction';
|
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
function isOneOf(one, of) {
|
|
21
|
-
if (
|
|
22
|
+
if (_Array$isArray(of)) {
|
|
22
23
|
return of.indexOf(one) >= 0;
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -116,10 +117,10 @@ function (_React$Component) {
|
|
|
116
117
|
var _this;
|
|
117
118
|
|
|
118
119
|
_this = _React$Component.call(this, props, context) || this;
|
|
119
|
-
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_this));
|
|
120
|
-
_this.handleDelayedShow = _this.handleDelayedShow.bind(_assertThisInitialized(_this));
|
|
121
|
-
_this.handleDelayedHide = _this.handleDelayedHide.bind(_assertThisInitialized(_this));
|
|
122
|
-
_this.handleHide = _this.handleHide.bind(_assertThisInitialized(_this));
|
|
120
|
+
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
121
|
+
_this.handleDelayedShow = _this.handleDelayedShow.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
122
|
+
_this.handleDelayedHide = _this.handleDelayedHide.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
123
|
+
_this.handleHide = _this.handleHide.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
123
124
|
|
|
124
125
|
_this.handleMouseOver = function (e) {
|
|
125
126
|
return _this.handleMouseOverOut(_this.handleDelayedShow, e, 'fromElement');
|
|
@@ -258,16 +259,16 @@ function (_React$Component) {
|
|
|
258
259
|
};
|
|
259
260
|
|
|
260
261
|
_proto.render = function render() {
|
|
261
|
-
var
|
|
262
|
-
trigger =
|
|
263
|
-
overlay =
|
|
264
|
-
children =
|
|
265
|
-
onBlur =
|
|
266
|
-
onClick =
|
|
267
|
-
onFocus =
|
|
268
|
-
onMouseOut =
|
|
269
|
-
onMouseOver =
|
|
270
|
-
props =
|
|
262
|
+
var _this$props = this.props,
|
|
263
|
+
trigger = _this$props.trigger,
|
|
264
|
+
overlay = _this$props.overlay,
|
|
265
|
+
children = _this$props.children,
|
|
266
|
+
onBlur = _this$props.onBlur,
|
|
267
|
+
onClick = _this$props.onClick,
|
|
268
|
+
onFocus = _this$props.onFocus,
|
|
269
|
+
onMouseOut = _this$props.onMouseOut,
|
|
270
|
+
onMouseOver = _this$props.onMouseOver,
|
|
271
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["trigger", "overlay", "children", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver"]);
|
|
271
272
|
|
|
272
273
|
delete props.delay;
|
|
273
274
|
delete props.delayShow;
|
package/es/PageHeader.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,10 +17,10 @@ function (_React$Component) {
|
|
|
17
17
|
var _proto = PageHeader.prototype;
|
|
18
18
|
|
|
19
19
|
_proto.render = function render() {
|
|
20
|
-
var
|
|
21
|
-
className =
|
|
22
|
-
children =
|
|
23
|
-
props =
|
|
20
|
+
var _this$props = this.props,
|
|
21
|
+
className = _this$props.className,
|
|
22
|
+
children = _this$props.children,
|
|
23
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
|
24
24
|
|
|
25
25
|
var _splitBsProps = splitBsProps(props),
|
|
26
26
|
bsProps = _splitBsProps[0],
|
package/es/Pager.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';
|
|
@@ -24,11 +24,11 @@ function (_React$Component) {
|
|
|
24
24
|
var _proto = Pager.prototype;
|
|
25
25
|
|
|
26
26
|
_proto.render = function render() {
|
|
27
|
-
var
|
|
28
|
-
onSelect =
|
|
29
|
-
className =
|
|
30
|
-
children =
|
|
31
|
-
props =
|
|
27
|
+
var _this$props = this.props,
|
|
28
|
+
onSelect = _this$props.onSelect,
|
|
29
|
+
className = _this$props.className,
|
|
30
|
+
children = _this$props.children,
|
|
31
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["onSelect", "className", "children"]);
|
|
32
32
|
|
|
33
33
|
var _splitBsProps = splitBsProps(props),
|
|
34
34
|
bsProps = _splitBsProps[0],
|
package/es/PagerItem.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,17 +30,17 @@ function (_React$Component) {
|
|
|
30
30
|
var _this;
|
|
31
31
|
|
|
32
32
|
_this = _React$Component.call(this, props, context) || this;
|
|
33
|
-
_this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));
|
|
33
|
+
_this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
34
34
|
return _this;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
var _proto = PagerItem.prototype;
|
|
38
38
|
|
|
39
39
|
_proto.handleSelect = function handleSelect(e) {
|
|
40
|
-
var
|
|
41
|
-
disabled =
|
|
42
|
-
onSelect =
|
|
43
|
-
eventKey =
|
|
40
|
+
var _this$props = this.props,
|
|
41
|
+
disabled = _this$props.disabled,
|
|
42
|
+
onSelect = _this$props.onSelect,
|
|
43
|
+
eventKey = _this$props.eventKey;
|
|
44
44
|
|
|
45
45
|
if (disabled) {
|
|
46
46
|
e.preventDefault();
|
|
@@ -53,14 +53,14 @@ function (_React$Component) {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
_proto.render = function render() {
|
|
56
|
-
var
|
|
57
|
-
disabled =
|
|
58
|
-
previous =
|
|
59
|
-
next =
|
|
60
|
-
onClick =
|
|
61
|
-
className =
|
|
62
|
-
style =
|
|
63
|
-
props =
|
|
56
|
+
var _this$props2 = this.props,
|
|
57
|
+
disabled = _this$props2.disabled,
|
|
58
|
+
previous = _this$props2.previous,
|
|
59
|
+
next = _this$props2.next,
|
|
60
|
+
onClick = _this$props2.onClick,
|
|
61
|
+
className = _this$props2.className,
|
|
62
|
+
style = _this$props2.style,
|
|
63
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["disabled", "previous", "next", "onClick", "className", "style"]);
|
|
64
64
|
|
|
65
65
|
delete props.onSelect;
|
|
66
66
|
delete props.eventKey;
|
package/es/Pagination.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 PaginationItem, { First, Prev, Ellipsis, Next, Last } from './PaginationItem';
|
|
@@ -18,10 +18,10 @@ function (_React$Component) {
|
|
|
18
18
|
var _proto = Pagination.prototype;
|
|
19
19
|
|
|
20
20
|
_proto.render = function render() {
|
|
21
|
-
var
|
|
22
|
-
className =
|
|
23
|
-
children =
|
|
24
|
-
props =
|
|
21
|
+
var _this$props = this.props,
|
|
22
|
+
className = _this$props.className,
|
|
23
|
+
children = _this$props.children,
|
|
24
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
|
25
25
|
|
|
26
26
|
var _splitBsProps = splitBsProps(props),
|
|
27
27
|
bsProps = _splitBsProps[0],
|