react-bootstrap 0.29.1 → 0.29.5
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 +47 -0
- package/dist/react-bootstrap.js +229 -78
- package/dist/react-bootstrap.min.js +9 -9
- package/dist/react-bootstrap.min.js.map +1 -1
- package/lib/Checkbox.js +19 -4
- package/lib/Dropdown.js +36 -10
- package/lib/MenuItem.js +2 -0
- package/lib/Nav.js +4 -4
- package/lib/OverlayTrigger.js +1 -1
- package/lib/PaginationButton.js +0 -1
- package/lib/Panel.js +1 -0
- package/lib/Radio.js +19 -4
- package/lib/SafeAnchor.js +1 -2
- package/lib/TabContainer.js +12 -2
- package/lib/TabContent.js +28 -5
- package/lib/TabPane.js +21 -4
- package/lib/Tabs.js +10 -2
- package/package.json +1 -1
- package/README.md +0 -80
package/dist/react-bootstrap.js
CHANGED
|
@@ -1652,16 +1652,27 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1652
1652
|
|
|
1653
1653
|
var _warning2 = _interopRequireDefault(_warning);
|
|
1654
1654
|
|
|
1655
|
+
var warned = {};
|
|
1656
|
+
|
|
1655
1657
|
function deprecated(propType, explanation) {
|
|
1656
1658
|
return function validate(props, propName, componentName) {
|
|
1657
1659
|
if (props[propName] != null) {
|
|
1658
|
-
|
|
1660
|
+
var message = '"' + propName + '" property of "' + componentName + '" has been deprecated.\n' + explanation;
|
|
1661
|
+
if (!warned[message]) {
|
|
1662
|
+
_warning2['default'](false, message);
|
|
1663
|
+
warned[message] = true;
|
|
1664
|
+
}
|
|
1659
1665
|
}
|
|
1660
1666
|
|
|
1661
1667
|
return propType(props, propName, componentName);
|
|
1662
1668
|
};
|
|
1663
1669
|
}
|
|
1664
1670
|
|
|
1671
|
+
function _resetWarned() {
|
|
1672
|
+
warned = {};
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
deprecated._resetWarned = _resetWarned;
|
|
1665
1676
|
module.exports = exports['default'];
|
|
1666
1677
|
|
|
1667
1678
|
/***/ },
|
|
@@ -2045,8 +2056,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2045
2056
|
role: role,
|
|
2046
2057
|
href: href,
|
|
2047
2058
|
style: style,
|
|
2048
|
-
|
|
2049
|
-
tabIndex: tabIndex || 0,
|
|
2059
|
+
tabIndex: tabIndex,
|
|
2050
2060
|
onClick: this.handleClick
|
|
2051
2061
|
}));
|
|
2052
2062
|
};
|
|
@@ -2514,13 +2524,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2514
2524
|
|
|
2515
2525
|
/***/ },
|
|
2516
2526
|
/* 53 */
|
|
2517
|
-
/***/ function(module, exports) {
|
|
2527
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
2518
2528
|
|
|
2519
2529
|
'use strict';
|
|
2520
2530
|
|
|
2521
2531
|
exports.__esModule = true;
|
|
2522
2532
|
exports['default'] = all;
|
|
2523
2533
|
|
|
2534
|
+
var _common = __webpack_require__(50);
|
|
2535
|
+
|
|
2524
2536
|
function all() {
|
|
2525
2537
|
for (var _len = arguments.length, propTypes = Array(_len), _key = 0; _key < _len; _key++) {
|
|
2526
2538
|
propTypes[_key] = arguments[_key];
|
|
@@ -2540,7 +2552,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2540
2552
|
throw new Error('No validations provided');
|
|
2541
2553
|
}
|
|
2542
2554
|
|
|
2543
|
-
|
|
2555
|
+
function validate(props, propName, componentName) {
|
|
2544
2556
|
for (var i = 0; i < propTypes.length; i++) {
|
|
2545
2557
|
var result = propTypes[i](props, propName, componentName);
|
|
2546
2558
|
|
|
@@ -2548,7 +2560,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2548
2560
|
return result;
|
|
2549
2561
|
}
|
|
2550
2562
|
}
|
|
2551
|
-
}
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
return _common.createChainableTypeChecker(validate);
|
|
2552
2566
|
}
|
|
2553
2567
|
|
|
2554
2568
|
module.exports = exports['default'];
|
|
@@ -3178,7 +3192,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3178
3192
|
arrOfProps[_key] = arguments[_key];
|
|
3179
3193
|
}
|
|
3180
3194
|
|
|
3181
|
-
function validate(props, propName
|
|
3195
|
+
function validate(props, propName) {
|
|
3182
3196
|
var usedPropCount = arrOfProps.map(function (listedProp) {
|
|
3183
3197
|
return props[listedProp];
|
|
3184
3198
|
}).reduce(function (acc, curr) {
|
|
@@ -4030,7 +4044,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4030
4044
|
/**
|
|
4031
4045
|
* Only valid if `inline` is not set.
|
|
4032
4046
|
*/
|
|
4033
|
-
validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error'])
|
|
4047
|
+
validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error']),
|
|
4048
|
+
/**
|
|
4049
|
+
* Attaches a ref to the `<input>` element. Only functions can be used here.
|
|
4050
|
+
*
|
|
4051
|
+
* ```js
|
|
4052
|
+
* <Checkbox inputRef={ref => { this.input = ref; }} />
|
|
4053
|
+
* ```
|
|
4054
|
+
*/
|
|
4055
|
+
inputRef: _react2['default'].PropTypes.func
|
|
4034
4056
|
};
|
|
4035
4057
|
|
|
4036
4058
|
var defaultProps = {
|
|
@@ -4052,14 +4074,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4052
4074
|
var inline = _props.inline;
|
|
4053
4075
|
var disabled = _props.disabled;
|
|
4054
4076
|
var validationState = _props.validationState;
|
|
4077
|
+
var inputRef = _props.inputRef;
|
|
4055
4078
|
var className = _props.className;
|
|
4056
4079
|
var style = _props.style;
|
|
4057
4080
|
var children = _props.children;
|
|
4058
4081
|
|
|
4059
|
-
var props = _objectWithoutProperties(_props, ['inline', 'disabled', 'validationState', 'className', 'style', 'children']);
|
|
4082
|
+
var props = _objectWithoutProperties(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'children']);
|
|
4060
4083
|
|
|
4061
4084
|
delete props.bsClass;
|
|
4062
4085
|
|
|
4086
|
+
var input = _react2['default'].createElement('input', _extends({}, props, {
|
|
4087
|
+
ref: inputRef,
|
|
4088
|
+
type: 'checkbox',
|
|
4089
|
+
disabled: disabled
|
|
4090
|
+
}));
|
|
4091
|
+
|
|
4063
4092
|
if (inline) {
|
|
4064
4093
|
var _classes;
|
|
4065
4094
|
|
|
@@ -4072,7 +4101,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4072
4101
|
return _react2['default'].createElement(
|
|
4073
4102
|
'label',
|
|
4074
4103
|
{ className: _classnames2['default'](className, _classes2), style: style },
|
|
4075
|
-
|
|
4104
|
+
input,
|
|
4076
4105
|
children
|
|
4077
4106
|
);
|
|
4078
4107
|
}
|
|
@@ -4090,7 +4119,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4090
4119
|
_react2['default'].createElement(
|
|
4091
4120
|
'label',
|
|
4092
4121
|
null,
|
|
4093
|
-
|
|
4122
|
+
input,
|
|
4094
4123
|
children
|
|
4095
4124
|
)
|
|
4096
4125
|
);
|
|
@@ -5535,6 +5564,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5535
5564
|
|
|
5536
5565
|
var _uncontrollable2 = _interopRequireDefault(_uncontrollable);
|
|
5537
5566
|
|
|
5567
|
+
var _warning = __webpack_require__(36);
|
|
5568
|
+
|
|
5569
|
+
var _warning2 = _interopRequireDefault(_warning);
|
|
5570
|
+
|
|
5538
5571
|
var _utilsBootstrapUtils = __webpack_require__(24);
|
|
5539
5572
|
|
|
5540
5573
|
var _utilsCreateChainedFunction = __webpack_require__(84);
|
|
@@ -5561,7 +5594,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5561
5594
|
|
|
5562
5595
|
var _DropdownToggle2 = _interopRequireDefault(_DropdownToggle);
|
|
5563
5596
|
|
|
5564
|
-
var TOGGLE_REF = 'toggle-btn';
|
|
5565
5597
|
var TOGGLE_ROLE = _DropdownToggle2['default'].defaultProps.bsRole;
|
|
5566
5598
|
var MENU_ROLE = _DropdownMenu2['default'].defaultProps.bsRole;
|
|
5567
5599
|
|
|
@@ -5610,7 +5642,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5610
5642
|
|
|
5611
5643
|
Dropdown.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
|
|
5612
5644
|
if (!nextProps.open && this.props.open) {
|
|
5613
|
-
this._focusInDropdown = _domHelpersQueryContains2['default'](_reactDom2['default'].findDOMNode(this.
|
|
5645
|
+
this._focusInDropdown = _domHelpersQueryContains2['default'](_reactDom2['default'].findDOMNode(this.menu), _domHelpersActiveElement2['default'](document));
|
|
5614
5646
|
}
|
|
5615
5647
|
};
|
|
5616
5648
|
|
|
@@ -5635,7 +5667,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5635
5667
|
var children = this.extractChildren();
|
|
5636
5668
|
var Component = this.props.componentClass;
|
|
5637
5669
|
|
|
5638
|
-
var props = _lodashCompatObjectOmit2['default'](this.props, ['id', 'bsClass', 'role']);
|
|
5670
|
+
var props = _lodashCompatObjectOmit2['default'](this.props, ['id', 'bsClass', 'role', 'onSelect']);
|
|
5639
5671
|
var className = _utilsBootstrapUtils.prefix(this.props);
|
|
5640
5672
|
|
|
5641
5673
|
var rootClasses = (_rootClasses = {
|
|
@@ -5683,8 +5715,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5683
5715
|
case _keycode2['default'].codes.down:
|
|
5684
5716
|
if (!this.props.open) {
|
|
5685
5717
|
this.toggleOpen('keydown');
|
|
5686
|
-
} else if (this.
|
|
5687
|
-
this.
|
|
5718
|
+
} else if (this.menu.focusNext) {
|
|
5719
|
+
this.menu.focusNext();
|
|
5688
5720
|
}
|
|
5689
5721
|
event.preventDefault();
|
|
5690
5722
|
break;
|
|
@@ -5705,7 +5737,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5705
5737
|
};
|
|
5706
5738
|
|
|
5707
5739
|
Dropdown.prototype.focusNextOnOpen = function focusNextOnOpen() {
|
|
5708
|
-
var menu = this.
|
|
5740
|
+
var menu = this.menu;
|
|
5709
5741
|
|
|
5710
5742
|
if (!menu.focusNext) {
|
|
5711
5743
|
return;
|
|
@@ -5717,7 +5749,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5717
5749
|
};
|
|
5718
5750
|
|
|
5719
5751
|
Dropdown.prototype.focus = function focus() {
|
|
5720
|
-
var toggle = _reactDom2['default'].findDOMNode(this.
|
|
5752
|
+
var toggle = _reactDom2['default'].findDOMNode(this.toggle);
|
|
5721
5753
|
|
|
5722
5754
|
if (toggle && toggle.focus) {
|
|
5723
5755
|
toggle.focus();
|
|
@@ -5749,8 +5781,20 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5749
5781
|
};
|
|
5750
5782
|
|
|
5751
5783
|
Dropdown.prototype.refineMenu = function refineMenu(menu, open) {
|
|
5784
|
+
var _this2 = this;
|
|
5785
|
+
|
|
5786
|
+
var ref = function ref(r) {
|
|
5787
|
+
return _this2.menu = r;
|
|
5788
|
+
};
|
|
5789
|
+
|
|
5790
|
+
if (typeof menu.ref === 'string') {
|
|
5791
|
+
true ? _warning2['default'](false, 'String refs are not supported on `<Dropdown.Menu>` components. ' + 'To apply a ref to the component use the callback signature: \n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
|
|
5792
|
+
} else {
|
|
5793
|
+
ref = _utilsCreateChainedFunction2['default'](menu.ref, ref);
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5752
5796
|
var menuProps = {
|
|
5753
|
-
ref:
|
|
5797
|
+
ref: ref,
|
|
5754
5798
|
open: open,
|
|
5755
5799
|
labelledBy: this.props.id,
|
|
5756
5800
|
pullRight: this.props.pullRight,
|
|
@@ -5765,10 +5809,22 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5765
5809
|
};
|
|
5766
5810
|
|
|
5767
5811
|
Dropdown.prototype.refineToggle = function refineToggle(toggle, open) {
|
|
5812
|
+
var _this3 = this;
|
|
5813
|
+
|
|
5814
|
+
var ref = function ref(r) {
|
|
5815
|
+
return _this3.toggle = r;
|
|
5816
|
+
};
|
|
5817
|
+
|
|
5818
|
+
if (typeof toggle.ref === 'string') {
|
|
5819
|
+
true ? _warning2['default'](false, 'String refs are not supported on `<Dropdown.Toggle>` components. ' + 'To apply a ref to the component use the callback signature: \n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
|
|
5820
|
+
} else {
|
|
5821
|
+
ref = _utilsCreateChainedFunction2['default'](toggle.ref, ref);
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5768
5824
|
var toggleProps = {
|
|
5825
|
+
ref: ref,
|
|
5769
5826
|
open: open,
|
|
5770
5827
|
id: this.props.id,
|
|
5771
|
-
ref: TOGGLE_REF,
|
|
5772
5828
|
role: this.props.role
|
|
5773
5829
|
};
|
|
5774
5830
|
|
|
@@ -5784,7 +5840,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5784
5840
|
|
|
5785
5841
|
Dropdown.Toggle = _DropdownToggle2['default'];
|
|
5786
5842
|
|
|
5787
|
-
Dropdown.TOGGLE_REF = TOGGLE_REF;
|
|
5788
5843
|
Dropdown.TOGGLE_ROLE = TOGGLE_ROLE;
|
|
5789
5844
|
Dropdown.MENU_ROLE = MENU_ROLE;
|
|
5790
5845
|
|
|
@@ -6013,7 +6068,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6013
6068
|
'insert': 45,
|
|
6014
6069
|
'delete': 46,
|
|
6015
6070
|
'command': 91,
|
|
6016
|
-
'
|
|
6071
|
+
'left command': 91,
|
|
6072
|
+
'right command': 93,
|
|
6017
6073
|
'numpad *': 106,
|
|
6018
6074
|
'numpad +': 107,
|
|
6019
6075
|
'numpad -': 109,
|
|
@@ -6054,7 +6110,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6054
6110
|
'escape': 27,
|
|
6055
6111
|
'spc': 32,
|
|
6056
6112
|
'pgup': 33,
|
|
6057
|
-
'pgdn':
|
|
6113
|
+
'pgdn': 34,
|
|
6058
6114
|
'ins': 45,
|
|
6059
6115
|
'del': 46,
|
|
6060
6116
|
'cmd': 91
|
|
@@ -8833,12 +8889,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8833
8889
|
|
|
8834
8890
|
exports.__esModule = true;
|
|
8835
8891
|
|
|
8836
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
8837
|
-
|
|
8838
8892
|
var _createUncontrollable = __webpack_require__(160);
|
|
8839
8893
|
|
|
8840
8894
|
var _createUncontrollable2 = _interopRequireDefault(_createUncontrollable);
|
|
8841
8895
|
|
|
8896
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8897
|
+
|
|
8842
8898
|
var mixin = {
|
|
8843
8899
|
shouldComponentUpdate: function shouldComponentUpdate() {
|
|
8844
8900
|
//let the forceUpdate trigger the update
|
|
@@ -8858,7 +8914,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8858
8914
|
if (component.isMounted()) component.forceUpdate();
|
|
8859
8915
|
}
|
|
8860
8916
|
|
|
8861
|
-
exports
|
|
8917
|
+
exports.default = (0, _createUncontrollable2.default)([mixin], set);
|
|
8862
8918
|
module.exports = exports['default'];
|
|
8863
8919
|
|
|
8864
8920
|
/***/ },
|
|
@@ -8871,22 +8927,26 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8871
8927
|
|
|
8872
8928
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
8873
8929
|
|
|
8874
|
-
exports
|
|
8875
|
-
|
|
8876
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
|
|
8877
|
-
|
|
8878
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
8879
|
-
|
|
8880
|
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
8930
|
+
exports.default = createUncontrollable;
|
|
8881
8931
|
|
|
8882
8932
|
var _react = __webpack_require__(20);
|
|
8883
8933
|
|
|
8884
8934
|
var _react2 = _interopRequireDefault(_react);
|
|
8885
8935
|
|
|
8936
|
+
var _invariant = __webpack_require__(32);
|
|
8937
|
+
|
|
8938
|
+
var _invariant2 = _interopRequireDefault(_invariant);
|
|
8939
|
+
|
|
8886
8940
|
var _utils = __webpack_require__(161);
|
|
8887
8941
|
|
|
8888
8942
|
var utils = _interopRequireWildcard(_utils);
|
|
8889
8943
|
|
|
8944
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
8945
|
+
|
|
8946
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8947
|
+
|
|
8948
|
+
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
8949
|
+
|
|
8890
8950
|
function createUncontrollable(mixins, set) {
|
|
8891
8951
|
|
|
8892
8952
|
return uncontrollable;
|
|
@@ -8896,10 +8956,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8896
8956
|
|
|
8897
8957
|
var displayName = Component.displayName || Component.name || 'Component',
|
|
8898
8958
|
basePropTypes = utils.getType(Component).propTypes,
|
|
8959
|
+
isCompositeComponent = utils.isReactComponent(Component),
|
|
8899
8960
|
propTypes;
|
|
8900
8961
|
|
|
8901
8962
|
propTypes = utils.uncontrolledPropTypes(controlledValues, basePropTypes, displayName);
|
|
8902
8963
|
|
|
8964
|
+
(0, _invariant2.default)(isCompositeComponent || !methods.length, '[uncontrollable] stateless function components cannot pass through methods ' + 'becasue they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', '));
|
|
8903
8965
|
methods = utils.transform(methods, function (obj, method) {
|
|
8904
8966
|
obj[method] = function () {
|
|
8905
8967
|
var _refs$inner;
|
|
@@ -8908,7 +8970,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8908
8970
|
};
|
|
8909
8971
|
}, {});
|
|
8910
8972
|
|
|
8911
|
-
var component = _react2
|
|
8973
|
+
var component = _react2.default.createClass(_extends({
|
|
8912
8974
|
|
|
8913
8975
|
displayName: 'Uncontrolled(' + displayName + ')',
|
|
8914
8976
|
|
|
@@ -8917,7 +8979,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8917
8979
|
propTypes: propTypes
|
|
8918
8980
|
|
|
8919
8981
|
}, methods, {
|
|
8920
|
-
|
|
8921
8982
|
componentWillMount: function componentWillMount() {
|
|
8922
8983
|
var props = this.props,
|
|
8923
8984
|
keys = Object.keys(controlledValues);
|
|
@@ -8927,9 +8988,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8927
8988
|
}, {});
|
|
8928
8989
|
},
|
|
8929
8990
|
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
*
|
|
8991
|
+
|
|
8992
|
+
/**
|
|
8993
|
+
* If a prop switches from controlled to Uncontrolled
|
|
8994
|
+
* reset its value to the defaultValue
|
|
8933
8995
|
*/
|
|
8934
8996
|
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
|
|
8935
8997
|
var _this = this;
|
|
@@ -8943,7 +9005,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8943
9005
|
}
|
|
8944
9006
|
});
|
|
8945
9007
|
},
|
|
8946
|
-
|
|
8947
9008
|
render: function render() {
|
|
8948
9009
|
var _this2 = this;
|
|
8949
9010
|
|
|
@@ -8967,21 +9028,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
8967
9028
|
newProps[handle] = setAndNotify.bind(_this2, propName);
|
|
8968
9029
|
});
|
|
8969
9030
|
|
|
8970
|
-
newProps = _extends({}, props, newProps, {
|
|
9031
|
+
newProps = _extends({}, props, newProps, {
|
|
9032
|
+
ref: isCompositeComponent ? 'inner' : null
|
|
9033
|
+
});
|
|
8971
9034
|
|
|
8972
|
-
return _react2
|
|
9035
|
+
return _react2.default.createElement(Component, newProps);
|
|
8973
9036
|
}
|
|
8974
|
-
|
|
8975
9037
|
}));
|
|
8976
9038
|
|
|
8977
9039
|
component.ControlledComponent = Component;
|
|
8978
9040
|
|
|
8979
|
-
/**
|
|
8980
|
-
* useful when wrapping a Component and you want to control
|
|
8981
|
-
* everything
|
|
9041
|
+
/**
|
|
9042
|
+
* useful when wrapping a Component and you want to control
|
|
9043
|
+
* everything
|
|
8982
9044
|
*/
|
|
8983
|
-
component.deferControlTo = function (newComponent
|
|
8984
|
-
|
|
9045
|
+
component.deferControlTo = function (newComponent) {
|
|
9046
|
+
var additions = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
|
9047
|
+
var nextMethods = arguments[2];
|
|
8985
9048
|
|
|
8986
9049
|
return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);
|
|
8987
9050
|
};
|
|
@@ -9008,7 +9071,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9008
9071
|
}
|
|
9009
9072
|
}
|
|
9010
9073
|
}
|
|
9011
|
-
|
|
9012
9074
|
module.exports = exports['default'];
|
|
9013
9075
|
|
|
9014
9076
|
/***/ },
|
|
@@ -9018,6 +9080,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9018
9080
|
'use strict';
|
|
9019
9081
|
|
|
9020
9082
|
exports.__esModule = true;
|
|
9083
|
+
exports.version = undefined;
|
|
9021
9084
|
exports.customPropType = customPropType;
|
|
9022
9085
|
exports.uncontrolledPropTypes = uncontrolledPropTypes;
|
|
9023
9086
|
exports.getType = getType;
|
|
@@ -9027,10 +9090,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9027
9090
|
exports.chain = chain;
|
|
9028
9091
|
exports.transform = transform;
|
|
9029
9092
|
exports.each = each;
|
|
9093
|
+
exports.isReactComponent = isReactComponent;
|
|
9030
9094
|
exports.has = has;
|
|
9031
9095
|
|
|
9032
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
9033
|
-
|
|
9034
9096
|
var _react = __webpack_require__(20);
|
|
9035
9097
|
|
|
9036
9098
|
var _react2 = _interopRequireDefault(_react);
|
|
@@ -9039,6 +9101,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9039
9101
|
|
|
9040
9102
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
9041
9103
|
|
|
9104
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9105
|
+
|
|
9042
9106
|
function customPropType(handler, propType, name) {
|
|
9043
9107
|
|
|
9044
9108
|
return function (props, propName) {
|
|
@@ -9060,7 +9124,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9060
9124
|
transform(controlledValues, function (obj, handler, prop) {
|
|
9061
9125
|
var type = basePropTypes[prop];
|
|
9062
9126
|
|
|
9063
|
-
_invariant2
|
|
9127
|
+
(0, _invariant2.default)(typeof handler === 'string' && handler.trim().length, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop);
|
|
9064
9128
|
|
|
9065
9129
|
obj[prop] = customPropType(handler, type, displayName);
|
|
9066
9130
|
|
|
@@ -9071,9 +9135,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9071
9135
|
return propTypes;
|
|
9072
9136
|
}
|
|
9073
9137
|
|
|
9074
|
-
var version = _react2
|
|
9075
|
-
|
|
9076
|
-
exports.version = version;
|
|
9138
|
+
var version = exports.version = _react2.default.version.split('.').map(parseFloat);
|
|
9077
9139
|
|
|
9078
9140
|
function getType(component) {
|
|
9079
9141
|
if (version[0] >= 15 || version[0] === 0 && version[1] >= 13) return component;
|
|
@@ -9120,7 +9182,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
9120
9182
|
function each(obj, cb, thisArg) {
|
|
9121
9183
|
if (Array.isArray(obj)) return obj.forEach(cb, thisArg);
|
|
9122
9184
|
|
|
9123
|
-
for (var key in obj)
|
|
9185
|
+
for (var key in obj) {
|
|
9186
|
+
if (has(obj, key)) cb.call(thisArg, obj[key], key, obj);
|
|
9187
|
+
}
|
|
9188
|
+
}
|
|
9189
|
+
|
|
9190
|
+
/**
|
|
9191
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
9192
|
+
* All rights reserved.
|
|
9193
|
+
*
|
|
9194
|
+
* This source code is licensed under the BSD-style license found in the
|
|
9195
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
9196
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
9197
|
+
*/
|
|
9198
|
+
function isReactComponent(component) {
|
|
9199
|
+
return !!(component && component.prototype && component.prototype.isReactComponent);
|
|
9124
9200
|
}
|
|
9125
9201
|
|
|
9126
9202
|
function has(o, k) {
|
|
@@ -11965,6 +12041,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
11965
12041
|
|
|
11966
12042
|
var props = _objectWithoutProperties(_props, ['className', 'style', 'onClick']);
|
|
11967
12043
|
|
|
12044
|
+
delete props.onSelect;
|
|
12045
|
+
|
|
11968
12046
|
var classes = {
|
|
11969
12047
|
disabled: this.props.disabled,
|
|
11970
12048
|
active: this.props.active
|
|
@@ -14145,7 +14223,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
14145
14223
|
}
|
|
14146
14224
|
|
|
14147
14225
|
var _child$props = child.props;
|
|
14148
|
-
var
|
|
14226
|
+
var id = _child$props.id;
|
|
14149
14227
|
var controls = _child$props['aria-controls'];
|
|
14150
14228
|
var eventKey = _child$props.eventKey;
|
|
14151
14229
|
var role = _child$props.role;
|
|
@@ -14154,9 +14232,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
14154
14232
|
var tabIndex = _child$props$tabIndex === undefined ? 0 : _child$props$tabIndex;
|
|
14155
14233
|
|
|
14156
14234
|
if (context && context.getId) {
|
|
14157
|
-
true ? _warning2['default'](!(
|
|
14235
|
+
true ? _warning2['default'](!(id || controls), 'In the context of a TabContainer, NavItems are given generated `id` and `aria-controls` ' + 'attributes for the sake of proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly provide a `generateChildId` prop to the parent TabContainer.') : undefined;
|
|
14158
14236
|
|
|
14159
|
-
|
|
14237
|
+
id = context.getId(eventKey, _utilsTabUtils.TAB) || null;
|
|
14160
14238
|
controls = context.getId(eventKey, _utilsTabUtils.PANE) || null;
|
|
14161
14239
|
onSelect = _utilsCreateChainedFunction2['default'](onSelect, context.onSelect);
|
|
14162
14240
|
}
|
|
@@ -14169,7 +14247,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
14169
14247
|
|
|
14170
14248
|
return {
|
|
14171
14249
|
onSelect: onSelect,
|
|
14172
|
-
|
|
14250
|
+
id: id,
|
|
14173
14251
|
role: role,
|
|
14174
14252
|
onKeyDown: onKeyDown,
|
|
14175
14253
|
'aria-controls': controls,
|
|
@@ -15986,7 +16064,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
15986
16064
|
delayHide: _react2['default'].PropTypes.number,
|
|
15987
16065
|
|
|
15988
16066
|
/**
|
|
15989
|
-
* The initial visibility state of the Overlay, for more nuanced visibility
|
|
16067
|
+
* The initial visibility state of the Overlay, for more nuanced visibility control consider
|
|
15990
16068
|
* using the Overlay component directly.
|
|
15991
16069
|
*/
|
|
15992
16070
|
defaultOverlayShown: _react2['default'].PropTypes.bool,
|
|
@@ -16790,7 +16868,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
16790
16868
|
var props = _objectWithoutProperties(_props, ['active', 'disabled', 'onClick', 'buttonComponentClass', 'className', 'style']);
|
|
16791
16869
|
|
|
16792
16870
|
delete props.onSelect;
|
|
16793
|
-
delete props.eventKey;
|
|
16794
16871
|
|
|
16795
16872
|
return _react2['default'].createElement(
|
|
16796
16873
|
'li',
|
|
@@ -16875,6 +16952,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
16875
16952
|
},
|
|
16876
16953
|
|
|
16877
16954
|
handleSelect: function handleSelect(e) {
|
|
16955
|
+
e.persist();
|
|
16878
16956
|
e.selected = true;
|
|
16879
16957
|
|
|
16880
16958
|
if (this.props.onSelect) {
|
|
@@ -17460,7 +17538,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17460
17538
|
/**
|
|
17461
17539
|
* Only valid if `inline` is not set.
|
|
17462
17540
|
*/
|
|
17463
|
-
validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error'])
|
|
17541
|
+
validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error']),
|
|
17542
|
+
/**
|
|
17543
|
+
* Attaches a ref to the `<input>` element. Only functions can be used here.
|
|
17544
|
+
*
|
|
17545
|
+
* ```js
|
|
17546
|
+
* <Radio inputRef={ref => { this.input = ref; }} />
|
|
17547
|
+
* ```
|
|
17548
|
+
*/
|
|
17549
|
+
inputRef: _react2['default'].PropTypes.func
|
|
17464
17550
|
};
|
|
17465
17551
|
|
|
17466
17552
|
var defaultProps = {
|
|
@@ -17482,14 +17568,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17482
17568
|
var inline = _props.inline;
|
|
17483
17569
|
var disabled = _props.disabled;
|
|
17484
17570
|
var validationState = _props.validationState;
|
|
17571
|
+
var inputRef = _props.inputRef;
|
|
17485
17572
|
var className = _props.className;
|
|
17486
17573
|
var style = _props.style;
|
|
17487
17574
|
var children = _props.children;
|
|
17488
17575
|
|
|
17489
|
-
var props = _objectWithoutProperties(_props, ['inline', 'disabled', 'validationState', 'className', 'style', 'children']);
|
|
17576
|
+
var props = _objectWithoutProperties(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'children']);
|
|
17490
17577
|
|
|
17491
17578
|
delete props.bsClass;
|
|
17492
17579
|
|
|
17580
|
+
var input = _react2['default'].createElement('input', _extends({}, props, {
|
|
17581
|
+
ref: inputRef,
|
|
17582
|
+
type: 'radio',
|
|
17583
|
+
disabled: disabled
|
|
17584
|
+
}));
|
|
17585
|
+
|
|
17493
17586
|
if (inline) {
|
|
17494
17587
|
var _classes;
|
|
17495
17588
|
|
|
@@ -17502,7 +17595,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17502
17595
|
return _react2['default'].createElement(
|
|
17503
17596
|
'label',
|
|
17504
17597
|
{ className: _classnames2['default'](className, _classes2), style: style },
|
|
17505
|
-
|
|
17598
|
+
input,
|
|
17506
17599
|
children
|
|
17507
17600
|
);
|
|
17508
17601
|
}
|
|
@@ -17520,7 +17613,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17520
17613
|
_react2['default'].createElement(
|
|
17521
17614
|
'label',
|
|
17522
17615
|
null,
|
|
17523
|
-
|
|
17616
|
+
input,
|
|
17524
17617
|
children
|
|
17525
17618
|
)
|
|
17526
17619
|
);
|
|
@@ -18039,19 +18132,26 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18039
18132
|
/**
|
|
18040
18133
|
* Transition onExited callback when animation is not `false`
|
|
18041
18134
|
*/
|
|
18042
|
-
onExited: _react.PropTypes.func
|
|
18135
|
+
onExited: _react.PropTypes.func,
|
|
18136
|
+
|
|
18137
|
+
/**
|
|
18138
|
+
* Unmount the tab (remove it from the DOM) when it is no longer visible
|
|
18139
|
+
*/
|
|
18140
|
+
unmountOnExit: _react.PropTypes.bool
|
|
18043
18141
|
},
|
|
18044
18142
|
|
|
18045
18143
|
contextTypes: {
|
|
18046
18144
|
$bs_tabcontainer: _react.PropTypes.shape({
|
|
18047
|
-
getId: _react.PropTypes.func
|
|
18145
|
+
getId: _react.PropTypes.func,
|
|
18146
|
+
unmountOnExit: _react.PropTypes.bool
|
|
18048
18147
|
}),
|
|
18049
18148
|
$bs_tabcontent: _react.PropTypes.shape({
|
|
18050
18149
|
bsClass: _react.PropTypes.string,
|
|
18051
18150
|
animation: _react.PropTypes.oneOfType([_react.PropTypes.bool, _reactPropTypesLibElementType2['default']]),
|
|
18052
18151
|
activeKey: _react.PropTypes.any,
|
|
18053
18152
|
onExited: _react.PropTypes.func,
|
|
18054
|
-
register: _react.PropTypes.func
|
|
18153
|
+
register: _react.PropTypes.func,
|
|
18154
|
+
unmountOnExit: _react.PropTypes.bool
|
|
18055
18155
|
})
|
|
18056
18156
|
},
|
|
18057
18157
|
|
|
@@ -18108,6 +18208,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18108
18208
|
return props.animation != null ? props.animation : context.animation;
|
|
18109
18209
|
},
|
|
18110
18210
|
|
|
18211
|
+
getUnmountOnExit: function getUnmountOnExit() {
|
|
18212
|
+
var context = this.getContext('$bs_tabcontent', this.context);
|
|
18213
|
+
return this.props.unmountOnExit != null ? this.props.unmountOnExit : context.unmountOnExit;
|
|
18214
|
+
},
|
|
18215
|
+
|
|
18111
18216
|
isActive: function isActive() {
|
|
18112
18217
|
var props = arguments.length <= 0 || arguments[0] === undefined ? this.props : arguments[0];
|
|
18113
18218
|
var context = arguments.length <= 1 || arguments[1] === undefined ? this.context : arguments[1];
|
|
@@ -18125,6 +18230,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18125
18230
|
|
|
18126
18231
|
var Transition = this.getTransition();
|
|
18127
18232
|
|
|
18233
|
+
if (!visible && !Transition && this.getUnmountOnExit()) {
|
|
18234
|
+
return null;
|
|
18235
|
+
}
|
|
18236
|
+
|
|
18128
18237
|
var classes = (_classes = {
|
|
18129
18238
|
active: visible
|
|
18130
18239
|
}, _classes[_utilsBootstrapUtils.prefix({ bsClass: bsClass }, 'pane')] = true, _classes);
|
|
@@ -18172,7 +18281,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18172
18281
|
onExited: _utilsCreateChainedFunction2['default'](this.handleExited, onExited),
|
|
18173
18282
|
onEnter: _utilsCreateChainedFunction2['default'](this.handleEnter, onEnter),
|
|
18174
18283
|
onEntering: onEntering,
|
|
18175
|
-
onEntered: onEntered
|
|
18284
|
+
onEntered: onEntered,
|
|
18285
|
+
unmountOnExit: this.getUnmountOnExit()
|
|
18176
18286
|
},
|
|
18177
18287
|
tabPane
|
|
18178
18288
|
);
|
|
@@ -18314,14 +18424,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18314
18424
|
getChildContext: function getChildContext() {
|
|
18315
18425
|
var _props = this.props;
|
|
18316
18426
|
var activeKey = _props.activeKey;
|
|
18317
|
-
var onSelect = _props.onSelect;
|
|
18318
18427
|
var generateChildId = _props.generateChildId;
|
|
18319
18428
|
var id = _props.id;
|
|
18320
18429
|
|
|
18321
18430
|
return {
|
|
18322
18431
|
$bs_tabcontainer: {
|
|
18323
18432
|
activeKey: activeKey,
|
|
18324
|
-
onSelect:
|
|
18433
|
+
onSelect: this.handleSelect,
|
|
18325
18434
|
getId: generateChildId || function (key, type) {
|
|
18326
18435
|
return id ? id + '-' + type + '-' + key : null;
|
|
18327
18436
|
}
|
|
@@ -18329,6 +18438,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18329
18438
|
};
|
|
18330
18439
|
},
|
|
18331
18440
|
|
|
18441
|
+
componentWillUnmount: function componentWillUnmount() {
|
|
18442
|
+
// isMounted() isn't `true` at this point;
|
|
18443
|
+
this.unmounting = true;
|
|
18444
|
+
},
|
|
18445
|
+
|
|
18446
|
+
handleSelect: function handleSelect(key) {
|
|
18447
|
+
if (!this.unmounting) {
|
|
18448
|
+
this.props.onSelect(key);
|
|
18449
|
+
}
|
|
18450
|
+
},
|
|
18451
|
+
|
|
18332
18452
|
render: function render() {
|
|
18333
18453
|
var _props2 = this.props;
|
|
18334
18454
|
var children = _props2.children;
|
|
@@ -18391,7 +18511,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18391
18511
|
* Use `false` to disable, `true` to enable the default "Fade"
|
|
18392
18512
|
* animation or any `<Transition>` component.
|
|
18393
18513
|
*/
|
|
18394
|
-
animation: _react.PropTypes.oneOfType([_react.PropTypes.bool, _reactPropTypesLibElementType2['default']])
|
|
18514
|
+
animation: _react.PropTypes.oneOfType([_react.PropTypes.bool, _reactPropTypesLibElementType2['default']]),
|
|
18515
|
+
|
|
18516
|
+
/**
|
|
18517
|
+
* Unmount the tab (remove it from the DOM) when it is no longer visible
|
|
18518
|
+
*/
|
|
18519
|
+
unmountOnExit: _react.PropTypes.bool
|
|
18395
18520
|
},
|
|
18396
18521
|
|
|
18397
18522
|
contextTypes: {
|
|
@@ -18407,14 +18532,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18407
18532
|
animation: animationPropType,
|
|
18408
18533
|
activeKey: _react.PropTypes.any,
|
|
18409
18534
|
onExited: _react.PropTypes.func,
|
|
18410
|
-
register: _react.PropTypes.func
|
|
18535
|
+
register: _react.PropTypes.func,
|
|
18536
|
+
unmountOnExit: _react.PropTypes.bool
|
|
18411
18537
|
})
|
|
18412
18538
|
},
|
|
18413
18539
|
|
|
18414
18540
|
getDefaultProps: function getDefaultProps() {
|
|
18415
18541
|
return {
|
|
18416
18542
|
componentClass: 'div',
|
|
18417
|
-
animation: true
|
|
18543
|
+
animation: true,
|
|
18544
|
+
unmountOnExit: false
|
|
18418
18545
|
};
|
|
18419
18546
|
},
|
|
18420
18547
|
|
|
@@ -18433,11 +18560,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18433
18560
|
animation: this.props.animation,
|
|
18434
18561
|
activeKey: exitingPane ? undefined : this.getActiveKey(),
|
|
18435
18562
|
onExited: this.handlePaneExited,
|
|
18436
|
-
register: this.registerPane
|
|
18563
|
+
register: this.registerPane,
|
|
18564
|
+
unmountOnExit: this.props.unmountOnExit
|
|
18437
18565
|
}
|
|
18438
18566
|
};
|
|
18439
18567
|
},
|
|
18440
18568
|
|
|
18569
|
+
componentWillMount: function componentWillMount() {
|
|
18570
|
+
this.panes = [];
|
|
18571
|
+
},
|
|
18572
|
+
|
|
18441
18573
|
/**
|
|
18442
18574
|
* This belongs in `componentWillReceiveProps()` but
|
|
18443
18575
|
* 0.14.x contains a bug where cwrp isn't called when only context changes.
|
|
@@ -18486,7 +18618,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18486
18618
|
registerPane: function registerPane(eventKey) {
|
|
18487
18619
|
var _this = this;
|
|
18488
18620
|
|
|
18489
|
-
var panes = this.panes
|
|
18621
|
+
var panes = this.panes;
|
|
18490
18622
|
|
|
18491
18623
|
!(panes.indexOf(eventKey) === -1) ? true ? _invariant2['default'](false, 'You cannot have multiple TabPanes of with the same `eventKey` in the same ' + 'TabContent component. Duplicate eventKey: ' + eventKey) : _invariant2['default'](false) : undefined;
|
|
18492
18624
|
|
|
@@ -18494,6 +18626,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18494
18626
|
|
|
18495
18627
|
return function () {
|
|
18496
18628
|
panes.splice(panes.indexOf(eventKey), 1);
|
|
18629
|
+
|
|
18630
|
+
// #1892
|
|
18631
|
+
// new active state can propagate down _before_
|
|
18632
|
+
// the tab actually unmounts, so it will map be exiting.
|
|
18633
|
+
// since an exiting tab won't complete, clear the bad state
|
|
18634
|
+
if (eventKey === _this._exitingPane) {
|
|
18635
|
+
_this.handlePaneExited();
|
|
18636
|
+
}
|
|
18637
|
+
|
|
18638
|
+
// If the tab was active, we need to tell the container
|
|
18639
|
+
// that it no longer exists and as such is not active.
|
|
18497
18640
|
if (eventKey === _this.getActiveKey()) {
|
|
18498
18641
|
_this.getContext('$bs_tabcontainer').onSelect();
|
|
18499
18642
|
}
|
|
@@ -18696,6 +18839,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18696
18839
|
*/
|
|
18697
18840
|
onSelect: _react2['default'].PropTypes.func,
|
|
18698
18841
|
|
|
18842
|
+
/**
|
|
18843
|
+
* Unmount tabs (remove it from the DOM) when it is no longer visible
|
|
18844
|
+
*/
|
|
18845
|
+
unmountOnExit: _react2['default'].PropTypes.bool,
|
|
18846
|
+
|
|
18699
18847
|
/**
|
|
18700
18848
|
* @deprecated Use TabContainer to create differently shaped tab layouts.
|
|
18701
18849
|
*/
|
|
@@ -18733,7 +18881,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18733
18881
|
animation: true,
|
|
18734
18882
|
tabWidth: 2,
|
|
18735
18883
|
position: 'top',
|
|
18736
|
-
standalone: false
|
|
18884
|
+
standalone: false,
|
|
18885
|
+
unmountOnExit: false
|
|
18737
18886
|
};
|
|
18738
18887
|
},
|
|
18739
18888
|
|
|
@@ -18770,11 +18919,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
18770
18919
|
ref: 'tabs',
|
|
18771
18920
|
role: 'tablist'
|
|
18772
18921
|
});
|
|
18922
|
+
|
|
18773
18923
|
var childTabs = _utilsValidComponentChildren2['default'].map(children, this.renderTab);
|
|
18774
18924
|
|
|
18775
18925
|
var panesProps = {
|
|
18776
18926
|
ref: 'panes',
|
|
18777
|
-
animation: props.animation
|
|
18927
|
+
animation: props.animation,
|
|
18928
|
+
unmountOnExit: props.unmountOnExit
|
|
18778
18929
|
};
|
|
18779
18930
|
|
|
18780
18931
|
var childPanes = children;
|