react-bootstrap 0.32.3 → 0.32.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-bootstrap.js +7546 -8855
- package/dist/react-bootstrap.min.js +3 -4
- package/es/Accordion.js +2 -2
- package/es/Alert.js +10 -10
- package/es/Badge.js +8 -8
- package/es/Breadcrumb.js +6 -6
- package/es/BreadcrumbItem.js +10 -10
- package/es/Button.js +10 -10
- package/es/ButtonGroup.js +9 -9
- package/es/ButtonToolbar.js +6 -6
- package/es/Carousel.js +29 -29
- package/es/CarouselCaption.js +7 -7
- package/es/CarouselItem.js +12 -12
- package/es/Checkbox.js +13 -13
- package/es/Clearfix.js +7 -7
- package/es/CloseButton.js +4 -4
- package/es/Col.js +7 -7
- package/es/Collapse.js +33 -21
- package/es/ControlLabel.js +9 -9
- package/es/Dropdown.js +22 -22
- package/es/DropdownButton.js +9 -9
- package/es/DropdownMenu.js +22 -22
- package/es/DropdownToggle.js +11 -11
- package/es/Fade.js +7 -7
- package/es/Form.js +9 -9
- package/es/FormControl.js +12 -12
- package/es/FormControlFeedback.js +7 -7
- package/es/FormControlStatic.js +7 -7
- package/es/FormGroup.js +11 -11
- package/es/Glyphicon.js +7 -7
- package/es/Grid.js +8 -8
- package/es/HelpBlock.js +6 -6
- package/es/Image.js +10 -10
- package/es/InputGroup.js +6 -6
- package/es/InputGroupAddon.js +6 -6
- package/es/InputGroupButton.js +6 -6
- package/es/Jumbotron.js +7 -7
- package/es/Label.js +8 -8
- package/es/ListGroup.js +9 -9
- package/es/ListGroupItem.js +12 -12
- package/es/Media.js +7 -7
- package/es/MediaBody.js +8 -8
- package/es/MediaHeading.js +7 -7
- package/es/MediaLeft.js +7 -7
- package/es/MediaList.js +6 -6
- package/es/MediaListItem.js +6 -6
- package/es/MediaRight.js +7 -7
- package/es/MenuItem.js +19 -19
- package/es/Modal.js +21 -21
- package/es/ModalBody.js +7 -7
- package/es/ModalDialog.js +9 -9
- package/es/ModalFooter.js +7 -7
- package/es/ModalHeader.js +10 -10
- package/es/ModalTitle.js +7 -7
- package/es/Nav.js +23 -23
- package/es/NavDropdown.js +11 -11
- package/es/NavItem.js +12 -12
- package/es/Navbar.js +28 -28
- package/es/NavbarBrand.js +7 -7
- package/es/NavbarCollapse.js +7 -7
- package/es/NavbarHeader.js +6 -6
- package/es/NavbarToggle.js +8 -8
- package/es/Overlay.js +7 -7
- package/es/OverlayTrigger.js +20 -19
- package/es/PageHeader.js +7 -7
- package/es/Pager.js +8 -8
- package/es/PagerItem.js +17 -17
- package/es/Pagination.js +7 -7
- package/es/PaginationItem.js +9 -9
- package/es/Panel.js +17 -14
- package/es/PanelBody.js +6 -6
- package/es/PanelCollapse.js +3 -3
- package/es/PanelFooter.js +5 -5
- package/es/PanelGroup.js +20 -17
- package/es/PanelHeading.js +8 -8
- package/es/PanelTitle.js +9 -9
- package/es/PanelToggle.js +9 -9
- package/es/Popover.js +14 -14
- package/es/ProgressBar.js +9 -9
- package/es/Radio.js +13 -13
- package/es/ResponsiveEmbed.js +9 -9
- package/es/Row.js +7 -7
- package/es/SafeAnchor.js +15 -15
- package/es/SplitButton.js +10 -10
- package/es/SplitToggle.js +2 -2
- package/es/Tab.js +2 -2
- package/es/TabContainer.js +10 -10
- package/es/TabContent.js +15 -15
- package/es/TabPane.js +23 -23
- package/es/Table.js +11 -11
- package/es/Tabs.js +16 -16
- package/es/Thumbnail.js +11 -11
- package/es/ToggleButton.js +11 -11
- package/es/ToggleButtonGroup.js +11 -11
- package/es/Tooltip.js +13 -13
- package/es/Well.js +6 -6
- package/es/utils/bootstrapUtils.js +2 -2
- package/es/utils/deprecationWarning.js +1 -1
- package/es/utils/splitComponentProps.js +1 -1
- package/lib/Accordion.js +3 -3
- package/lib/Alert.js +11 -11
- package/lib/Badge.js +9 -9
- package/lib/Breadcrumb.js +7 -7
- package/lib/BreadcrumbItem.js +11 -11
- package/lib/Button.js +11 -11
- package/lib/ButtonGroup.js +10 -10
- package/lib/ButtonToolbar.js +7 -7
- package/lib/Carousel.js +30 -30
- package/lib/CarouselCaption.js +8 -8
- package/lib/CarouselItem.js +13 -13
- package/lib/Checkbox.js +14 -14
- package/lib/Clearfix.js +8 -8
- package/lib/CloseButton.js +5 -5
- package/lib/Col.js +8 -8
- package/lib/Collapse.js +35 -23
- package/lib/ControlLabel.js +10 -10
- package/lib/Dropdown.js +24 -24
- package/lib/DropdownButton.js +10 -10
- package/lib/DropdownMenu.js +23 -23
- package/lib/DropdownToggle.js +12 -12
- package/lib/Fade.js +9 -9
- package/lib/Form.js +10 -10
- package/lib/FormControl.js +13 -13
- package/lib/FormControlFeedback.js +8 -8
- package/lib/FormControlStatic.js +8 -8
- package/lib/FormGroup.js +12 -12
- package/lib/Glyphicon.js +8 -8
- package/lib/Grid.js +9 -9
- package/lib/HelpBlock.js +7 -7
- package/lib/Image.js +11 -11
- package/lib/InputGroup.js +7 -7
- package/lib/InputGroupAddon.js +7 -7
- package/lib/InputGroupButton.js +7 -7
- package/lib/Jumbotron.js +8 -8
- package/lib/Label.js +9 -9
- package/lib/ListGroup.js +11 -11
- package/lib/ListGroupItem.js +14 -14
- package/lib/Media.js +8 -8
- package/lib/MediaBody.js +9 -9
- package/lib/MediaHeading.js +8 -8
- package/lib/MediaLeft.js +8 -8
- package/lib/MediaList.js +7 -7
- package/lib/MediaListItem.js +7 -7
- package/lib/MediaRight.js +8 -8
- package/lib/MenuItem.js +20 -20
- package/lib/Modal.js +22 -22
- package/lib/ModalBody.js +8 -8
- package/lib/ModalDialog.js +10 -10
- package/lib/ModalFooter.js +8 -8
- package/lib/ModalHeader.js +11 -11
- package/lib/ModalTitle.js +8 -8
- package/lib/Nav.js +25 -25
- package/lib/NavDropdown.js +12 -12
- package/lib/NavItem.js +13 -13
- package/lib/Navbar.js +29 -29
- package/lib/NavbarBrand.js +8 -8
- package/lib/NavbarCollapse.js +8 -8
- package/lib/NavbarHeader.js +7 -7
- package/lib/NavbarToggle.js +9 -9
- package/lib/Overlay.js +9 -9
- package/lib/OverlayTrigger.js +23 -21
- package/lib/PageHeader.js +8 -8
- package/lib/PageItem.js +1 -1
- package/lib/Pager.js +10 -10
- package/lib/PagerItem.js +18 -18
- package/lib/Pagination.js +9 -9
- package/lib/PaginationItem.js +10 -10
- package/lib/Panel.js +18 -16
- package/lib/PanelBody.js +7 -7
- package/lib/PanelCollapse.js +4 -4
- package/lib/PanelFooter.js +6 -6
- package/lib/PanelGroup.js +22 -20
- package/lib/PanelHeading.js +9 -9
- package/lib/PanelTitle.js +10 -10
- package/lib/PanelToggle.js +10 -10
- package/lib/Popover.js +15 -15
- package/lib/ProgressBar.js +11 -11
- package/lib/Radio.js +14 -14
- package/lib/ResponsiveEmbed.js +11 -11
- package/lib/Row.js +8 -8
- package/lib/SafeAnchor.js +16 -16
- package/lib/SplitButton.js +11 -11
- package/lib/SplitToggle.js +3 -3
- package/lib/Tab.js +3 -3
- package/lib/TabContainer.js +11 -11
- package/lib/TabContent.js +16 -16
- package/lib/TabPane.js +23 -23
- package/lib/Table.js +12 -12
- package/lib/Tabs.js +17 -17
- package/lib/Thumbnail.js +12 -12
- package/lib/ToggleButton.js +12 -12
- package/lib/ToggleButtonGroup.js +12 -12
- package/lib/Tooltip.js +14 -14
- package/lib/Well.js +7 -7
- package/lib/index.js +2 -2
- package/lib/utils/PropTypes.js +1 -1
- package/lib/utils/ValidComponentChildren.js +1 -1
- package/lib/utils/bootstrapUtils.js +3 -3
- package/lib/utils/deprecationWarning.js +2 -2
- package/lib/utils/index.js +2 -2
- package/lib/utils/splitComponentProps.js +2 -2
- package/package.json +17 -17
package/es/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 */
|
|
@@ -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 ? {
|
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],
|
package/es/PaginationItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
-
import
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
|
|
5
5
|
/* eslint-disable react/no-multi-comp */
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -27,7 +27,7 @@ export default function PaginationItem(_ref) {
|
|
|
27
27
|
style = _ref.style,
|
|
28
28
|
activeLabel = _ref.activeLabel,
|
|
29
29
|
children = _ref.children,
|
|
30
|
-
props =
|
|
30
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
31
31
|
|
|
32
32
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
33
33
|
return React.createElement("li", {
|
|
@@ -64,11 +64,11 @@ function createButton(name, defaultValue, label) {
|
|
|
64
64
|
var _proto = _class.prototype;
|
|
65
65
|
|
|
66
66
|
_proto.render = function render() {
|
|
67
|
-
var
|
|
68
|
-
disabled =
|
|
69
|
-
children =
|
|
70
|
-
className =
|
|
71
|
-
props =
|
|
67
|
+
var _this$props = this.props,
|
|
68
|
+
disabled = _this$props.disabled,
|
|
69
|
+
children = _this$props.children,
|
|
70
|
+
className = _this$props.className,
|
|
71
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["disabled", "children", "className"]);
|
|
72
72
|
|
|
73
73
|
var Component = disabled ? 'span' : SafeAnchor;
|
|
74
74
|
return React.createElement("li", _extends({
|
package/es/Panel.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _Object$assign from "@babel/runtime/core-js/object/assign";
|
|
2
|
-
import _Object$values from "@babel/runtime/core-js/object/values";
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import
|
|
5
|
-
import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
|
|
1
|
+
import _Object$assign from "@babel/runtime-corejs2/core-js/object/assign";
|
|
2
|
+
import _Object$values from "@babel/runtime-corejs2/core-js/object/values";
|
|
3
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
4
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import React from 'react';
|
|
@@ -68,13 +67,15 @@ function (_React$Component) {
|
|
|
68
67
|
_inheritsLoose(Panel, _React$Component);
|
|
69
68
|
|
|
70
69
|
function Panel() {
|
|
71
|
-
var
|
|
70
|
+
var _this;
|
|
72
71
|
|
|
73
72
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
74
73
|
args[_key] = arguments[_key];
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
77
|
+
|
|
78
|
+
_this.handleToggle = function (e) {
|
|
78
79
|
var panelGroup = _this.context.$bs_panelGroup;
|
|
79
80
|
var expanded = !_this.getExpanded();
|
|
80
81
|
|
|
@@ -83,15 +84,17 @@ function (_React$Component) {
|
|
|
83
84
|
} else {
|
|
84
85
|
_this.props.onToggle(expanded, e);
|
|
85
86
|
}
|
|
86
|
-
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return _this;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
var _proto = Panel.prototype;
|
|
90
93
|
|
|
91
94
|
_proto.getChildContext = function getChildContext() {
|
|
92
|
-
var
|
|
93
|
-
eventKey =
|
|
94
|
-
id =
|
|
95
|
+
var _this$props = this.props,
|
|
96
|
+
eventKey = _this$props.eventKey,
|
|
97
|
+
id = _this$props.id;
|
|
95
98
|
var idKey = eventKey == null ? id : eventKey;
|
|
96
99
|
var ids;
|
|
97
100
|
|
|
@@ -125,9 +128,9 @@ function (_React$Component) {
|
|
|
125
128
|
};
|
|
126
129
|
|
|
127
130
|
_proto.render = function render() {
|
|
128
|
-
var
|
|
129
|
-
className =
|
|
130
|
-
children =
|
|
131
|
+
var _this$props2 = this.props,
|
|
132
|
+
className = _this$props2.className,
|
|
133
|
+
children = _this$props2.children;
|
|
131
134
|
|
|
132
135
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(this.props, ['onToggle', 'eventKey', 'expanded']),
|
|
133
136
|
bsProps = _splitBsPropsAndOmit[0],
|
package/es/PanelBody.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import cn from 'classnames';
|
|
@@ -40,10 +40,10 @@ function (_React$Component) {
|
|
|
40
40
|
var _proto = PanelBody.prototype;
|
|
41
41
|
|
|
42
42
|
_proto.render = function render() {
|
|
43
|
-
var
|
|
44
|
-
children =
|
|
45
|
-
className =
|
|
46
|
-
collapsible =
|
|
43
|
+
var _this$props = this.props,
|
|
44
|
+
children = _this$props.children,
|
|
45
|
+
className = _this$props.className,
|
|
46
|
+
collapsible = _this$props.collapsible;
|
|
47
47
|
|
|
48
48
|
var _ref = this.context.$bs_panel || {},
|
|
49
49
|
_bsClass = _ref.bsClass;
|
package/es/PanelCollapse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _inheritsLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { prefix, splitBsProps, bsClass } from './utils/bootstrapUtils';
|
|
@@ -77,7 +77,7 @@ function (_React$Component) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
return React.createElement(Collapse, _extends({
|
|
80
|
-
|
|
80
|
+
in: expanded
|
|
81
81
|
}, props), React.createElement("div", {
|
|
82
82
|
className: prefix(bsProps, 'collapse')
|
|
83
83
|
}, children));
|