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.
Files changed (204) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +4 -4
  3. package/dist/react-bootstrap.js +11887 -12938
  4. package/dist/react-bootstrap.min.js +12 -4
  5. package/es/Accordion.js +2 -2
  6. package/es/Alert.js +10 -10
  7. package/es/Badge.js +8 -8
  8. package/es/Breadcrumb.js +6 -6
  9. package/es/BreadcrumbItem.js +10 -10
  10. package/es/Button.js +10 -10
  11. package/es/ButtonGroup.js +9 -9
  12. package/es/ButtonToolbar.js +6 -6
  13. package/es/Carousel.js +31 -30
  14. package/es/CarouselCaption.js +7 -7
  15. package/es/CarouselItem.js +14 -13
  16. package/es/Checkbox.js +13 -13
  17. package/es/Clearfix.js +7 -7
  18. package/es/CloseButton.js +4 -4
  19. package/es/Col.js +7 -7
  20. package/es/Collapse.js +33 -21
  21. package/es/ControlLabel.js +9 -9
  22. package/es/Dropdown.js +25 -24
  23. package/es/DropdownButton.js +9 -9
  24. package/es/DropdownMenu.js +22 -22
  25. package/es/DropdownToggle.js +11 -11
  26. package/es/Fade.js +7 -7
  27. package/es/Form.js +9 -9
  28. package/es/FormControl.js +12 -12
  29. package/es/FormControlFeedback.js +7 -7
  30. package/es/FormControlStatic.js +7 -7
  31. package/es/FormGroup.js +11 -11
  32. package/es/Glyphicon.js +7 -7
  33. package/es/Grid.js +8 -8
  34. package/es/HelpBlock.js +6 -6
  35. package/es/Image.js +10 -10
  36. package/es/InputGroup.js +6 -6
  37. package/es/InputGroupAddon.js +6 -6
  38. package/es/InputGroupButton.js +6 -6
  39. package/es/Jumbotron.js +7 -7
  40. package/es/Label.js +8 -8
  41. package/es/ListGroup.js +9 -9
  42. package/es/ListGroupItem.js +12 -12
  43. package/es/Media.js +7 -7
  44. package/es/MediaBody.js +8 -8
  45. package/es/MediaHeading.js +7 -7
  46. package/es/MediaLeft.js +7 -7
  47. package/es/MediaList.js +6 -6
  48. package/es/MediaListItem.js +6 -6
  49. package/es/MediaRight.js +7 -7
  50. package/es/MenuItem.js +19 -19
  51. package/es/Modal.js +42 -24
  52. package/es/ModalBody.js +7 -7
  53. package/es/ModalDialog.js +12 -10
  54. package/es/ModalFooter.js +7 -7
  55. package/es/ModalHeader.js +10 -10
  56. package/es/ModalTitle.js +7 -7
  57. package/es/Nav.js +24 -24
  58. package/es/NavDropdown.js +11 -11
  59. package/es/NavItem.js +12 -12
  60. package/es/Navbar.js +30 -30
  61. package/es/NavbarBrand.js +7 -7
  62. package/es/NavbarCollapse.js +7 -7
  63. package/es/NavbarHeader.js +6 -6
  64. package/es/NavbarToggle.js +8 -8
  65. package/es/Overlay.js +7 -7
  66. package/es/OverlayTrigger.js +20 -19
  67. package/es/PageHeader.js +7 -7
  68. package/es/Pager.js +8 -8
  69. package/es/PagerItem.js +17 -17
  70. package/es/Pagination.js +7 -7
  71. package/es/PaginationItem.js +9 -9
  72. package/es/Panel.js +18 -15
  73. package/es/PanelBody.js +6 -6
  74. package/es/PanelCollapse.js +3 -3
  75. package/es/PanelFooter.js +5 -5
  76. package/es/PanelGroup.js +21 -18
  77. package/es/PanelHeading.js +8 -8
  78. package/es/PanelTitle.js +9 -9
  79. package/es/PanelToggle.js +9 -9
  80. package/es/Popover.js +14 -14
  81. package/es/ProgressBar.js +9 -9
  82. package/es/Radio.js +13 -13
  83. package/es/ResponsiveEmbed.js +9 -9
  84. package/es/Row.js +7 -7
  85. package/es/SafeAnchor.js +15 -15
  86. package/es/SplitButton.js +10 -10
  87. package/es/SplitToggle.js +2 -2
  88. package/es/Tab.js +2 -2
  89. package/es/TabContainer.js +11 -11
  90. package/es/TabContent.js +17 -16
  91. package/es/TabPane.js +23 -23
  92. package/es/Table.js +11 -11
  93. package/es/Tabs.js +17 -17
  94. package/es/Thumbnail.js +11 -11
  95. package/es/ToggleButton.js +11 -11
  96. package/es/ToggleButtonGroup.js +12 -12
  97. package/es/Tooltip.js +13 -13
  98. package/es/Well.js +6 -6
  99. package/es/utils/bootstrapUtils.js +3 -3
  100. package/es/utils/deprecationWarning.js +5 -4
  101. package/es/utils/splitComponentProps.js +1 -1
  102. package/lib/Accordion.js +3 -3
  103. package/lib/Alert.js +11 -11
  104. package/lib/Badge.js +9 -9
  105. package/lib/Breadcrumb.js +7 -7
  106. package/lib/BreadcrumbItem.js +11 -11
  107. package/lib/Button.js +11 -11
  108. package/lib/ButtonGroup.js +10 -10
  109. package/lib/ButtonToolbar.js +7 -7
  110. package/lib/Carousel.js +32 -31
  111. package/lib/CarouselCaption.js +8 -8
  112. package/lib/CarouselItem.js +15 -14
  113. package/lib/Checkbox.js +14 -14
  114. package/lib/Clearfix.js +8 -8
  115. package/lib/CloseButton.js +5 -5
  116. package/lib/Col.js +8 -8
  117. package/lib/Collapse.js +35 -23
  118. package/lib/ControlLabel.js +10 -10
  119. package/lib/Dropdown.js +28 -27
  120. package/lib/DropdownButton.js +10 -10
  121. package/lib/DropdownMenu.js +23 -23
  122. package/lib/DropdownToggle.js +12 -12
  123. package/lib/Fade.js +9 -9
  124. package/lib/Form.js +10 -10
  125. package/lib/FormControl.js +13 -13
  126. package/lib/FormControlFeedback.js +8 -8
  127. package/lib/FormControlStatic.js +8 -8
  128. package/lib/FormGroup.js +12 -12
  129. package/lib/Glyphicon.js +8 -8
  130. package/lib/Grid.js +9 -9
  131. package/lib/HelpBlock.js +7 -7
  132. package/lib/Image.js +11 -11
  133. package/lib/InputGroup.js +7 -7
  134. package/lib/InputGroupAddon.js +7 -7
  135. package/lib/InputGroupButton.js +7 -7
  136. package/lib/Jumbotron.js +8 -8
  137. package/lib/Label.js +9 -9
  138. package/lib/ListGroup.js +11 -11
  139. package/lib/ListGroupItem.js +14 -14
  140. package/lib/Media.js +8 -8
  141. package/lib/MediaBody.js +9 -9
  142. package/lib/MediaHeading.js +8 -8
  143. package/lib/MediaLeft.js +8 -8
  144. package/lib/MediaList.js +7 -7
  145. package/lib/MediaListItem.js +7 -7
  146. package/lib/MediaRight.js +8 -8
  147. package/lib/MenuItem.js +20 -20
  148. package/lib/Modal.js +43 -25
  149. package/lib/ModalBody.js +8 -8
  150. package/lib/ModalDialog.js +13 -11
  151. package/lib/ModalFooter.js +8 -8
  152. package/lib/ModalHeader.js +11 -11
  153. package/lib/ModalTitle.js +8 -8
  154. package/lib/Nav.js +27 -26
  155. package/lib/NavDropdown.js +12 -12
  156. package/lib/NavItem.js +13 -13
  157. package/lib/Navbar.js +32 -32
  158. package/lib/NavbarBrand.js +8 -8
  159. package/lib/NavbarCollapse.js +8 -8
  160. package/lib/NavbarHeader.js +7 -7
  161. package/lib/NavbarToggle.js +9 -9
  162. package/lib/Overlay.js +9 -9
  163. package/lib/OverlayTrigger.js +23 -21
  164. package/lib/PageHeader.js +8 -8
  165. package/lib/PageItem.js +1 -1
  166. package/lib/Pager.js +10 -10
  167. package/lib/PagerItem.js +18 -18
  168. package/lib/Pagination.js +9 -9
  169. package/lib/PaginationItem.js +10 -10
  170. package/lib/Panel.js +20 -18
  171. package/lib/PanelBody.js +7 -7
  172. package/lib/PanelCollapse.js +4 -4
  173. package/lib/PanelFooter.js +6 -6
  174. package/lib/PanelGroup.js +24 -22
  175. package/lib/PanelHeading.js +9 -9
  176. package/lib/PanelTitle.js +10 -10
  177. package/lib/PanelToggle.js +10 -10
  178. package/lib/Popover.js +15 -15
  179. package/lib/ProgressBar.js +11 -11
  180. package/lib/Radio.js +14 -14
  181. package/lib/ResponsiveEmbed.js +11 -11
  182. package/lib/Row.js +8 -8
  183. package/lib/SafeAnchor.js +16 -16
  184. package/lib/SplitButton.js +11 -11
  185. package/lib/SplitToggle.js +3 -3
  186. package/lib/Tab.js +3 -3
  187. package/lib/TabContainer.js +13 -13
  188. package/lib/TabContent.js +18 -17
  189. package/lib/TabPane.js +23 -23
  190. package/lib/Table.js +12 -12
  191. package/lib/Tabs.js +19 -19
  192. package/lib/Thumbnail.js +12 -12
  193. package/lib/ToggleButton.js +12 -12
  194. package/lib/ToggleButtonGroup.js +14 -14
  195. package/lib/Tooltip.js +14 -14
  196. package/lib/Well.js +7 -7
  197. package/lib/index.js +2 -2
  198. package/lib/utils/PropTypes.js +1 -1
  199. package/lib/utils/ValidComponentChildren.js +1 -1
  200. package/lib/utils/bootstrapUtils.js +4 -4
  201. package/lib/utils/deprecationWarning.js +6 -5
  202. package/lib/utils/index.js +2 -2
  203. package/lib/utils/splitComponentProps.js +2 -2
  204. package/package.json +41 -42
package/es/Nav.js CHANGED
@@ -1,6 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _getActiveProps = this.getActiveProps(),
121
- activeKey = _getActiveProps.activeKey,
122
- activeHref = _getActiveProps.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 = children.filter(function (child) {
154
+ var validChildren = ValidComponentChildren.filter(children, function (child) {
155
155
  return child.props.eventKey != null && !child.props.disabled;
156
156
  });
157
157
 
158
- var _getActiveProps2 = this.getActiveProps(),
159
- activeKey = _getActiveProps2.activeKey,
160
- activeHref = _getActiveProps2.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 _props = this.props,
267
- stacked = _props.stacked,
268
- justified = _props.justified,
269
- onSelect = _props.onSelect,
270
- propsRole = _props.role,
271
- propsNavbar = _props.navbar,
272
- pullRight = _props.pullRight,
273
- pullLeft = _props.pullLeft,
274
- className = _props.className,
275
- children = _props.children,
276
- props = _objectWithoutProperties(_props, ["stacked", "justified", "onSelect", "role", "navbar", "pullRight", "pullLeft", "className", "children"]);
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 _getActiveProps3 = this.getActiveProps(),
282
- activeKey = _getActiveProps3.activeKey,
283
- activeHref = _getActiveProps3.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 _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
2
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
3
- import _extends from "@babel/runtime/helpers/es6/extends";
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 _props = this.props,
59
- title = _props.title,
60
- activeKey = _props.activeKey,
61
- activeHref = _props.activeHref,
62
- className = _props.className,
63
- style = _props.style,
64
- children = _props.children,
65
- props = _objectWithoutProperties(_props, ["title", "activeKey", "activeHref", "className", "style", "children"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
4
- import _assertThisInitialized from "@babel/runtime/helpers/es6/assertThisInitialized";
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 _props = this.props,
52
- active = _props.active,
53
- disabled = _props.disabled,
54
- onClick = _props.onClick,
55
- className = _props.className,
56
- style = _props.style,
57
- props = _objectWithoutProperties(_props, ["active", "disabled", "onClick", "className", "style"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
4
- import _assertThisInitialized from "@babel/runtime/helpers/es6/assertThisInitialized";
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 _props = this.props,
140
- bsClass = _props.bsClass,
141
- expanded = _props.expanded,
142
- onSelect = _props.onSelect,
143
- collapseOnSelect = _props.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 _props2 = this.props,
156
- onToggle = _props2.onToggle,
157
- expanded = _props2.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 _props3 = this.props,
166
- onToggle = _props3.onToggle,
167
- expanded = _props3.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 _props4 = this.props,
175
- Component = _props4.componentClass,
176
- fixedTop = _props4.fixedTop,
177
- fixedBottom = _props4.fixedBottom,
178
- staticTop = _props4.staticTop,
179
- inverse = _props4.inverse,
180
- fluid = _props4.fluid,
181
- className = _props4.className,
182
- children = _props4.children,
183
- props = _objectWithoutProperties(_props4, ["componentClass", "fixedTop", "fixedBottom", "staticTop", "inverse", "fluid", "className", "children"]);
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 = _objectWithoutProperties(_ref, ["componentClass", "className", "pullRight", "pullLeft"]);
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, UncontrollableNavbar);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
27
- className = _props.className,
28
- children = _props.children,
29
- props = _objectWithoutProperties(_props, ["className", "children"]);
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'
@@ -1,6 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
28
- children = _props.children,
29
- props = _objectWithoutProperties(_props, ["children"]);
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
- "in": navbarProps.expanded
36
+ in: navbarProps.expanded
37
37
  }, props), React.createElement("div", {
38
38
  className: bsClassName
39
39
  }, children));
@@ -1,6 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
27
- className = _props.className,
28
- props = _objectWithoutProperties(_props, ["className"]);
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'
@@ -1,6 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
38
- onClick = _props.onClick,
39
- className = _props.className,
40
- children = _props.children,
41
- props = _objectWithoutProperties(_props, ["onClick", "className", "children"]);
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 _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
2
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
3
- import _extends from "@babel/runtime/helpers/es6/extends";
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 _props = this.props,
89
- animation = _props.animation,
90
- children = _props.children,
91
- props = _objectWithoutProperties(_props, ["animation", "children"]);
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;
@@ -1,7 +1,8 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
2
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
3
- import _assertThisInitialized from "@babel/runtime/helpers/es6/assertThisInitialized";
4
- import _extends from "@babel/runtime/helpers/es6/extends";
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 (Array.isArray(of)) {
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 _props = this.props,
262
- trigger = _props.trigger,
263
- overlay = _props.overlay,
264
- children = _props.children,
265
- onBlur = _props.onBlur,
266
- onClick = _props.onClick,
267
- onFocus = _props.onFocus,
268
- onMouseOut = _props.onMouseOut,
269
- onMouseOver = _props.onMouseOver,
270
- props = _objectWithoutProperties(_props, ["trigger", "overlay", "children", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
21
- className = _props.className,
22
- children = _props.children,
23
- props = _objectWithoutProperties(_props, ["className", "children"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
28
- onSelect = _props.onSelect,
29
- className = _props.className,
30
- children = _props.children,
31
- props = _objectWithoutProperties(_props, ["onSelect", "className", "children"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
4
- import _assertThisInitialized from "@babel/runtime/helpers/es6/assertThisInitialized";
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 _props = this.props,
41
- disabled = _props.disabled,
42
- onSelect = _props.onSelect,
43
- eventKey = _props.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 _props2 = this.props,
57
- disabled = _props2.disabled,
58
- previous = _props2.previous,
59
- next = _props2.next,
60
- onClick = _props2.onClick,
61
- className = _props2.className,
62
- style = _props2.style,
63
- props = _objectWithoutProperties(_props2, ["disabled", "previous", "next", "onClick", "className", "style"]);
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/es6/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
3
- import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
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 _props = this.props,
22
- className = _props.className,
23
- children = _props.children,
24
- props = _objectWithoutProperties(_props, ["className", "children"]);
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],