Skip to content

Commit cd409bf

Browse files
committed
Updated dependencies
2 parents dbf1116 + 3681246 commit cd409bf

File tree

4 files changed

+42
-37
lines changed

4 files changed

+42
-37
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# React Bootstrap 4 Tabs CHANGELOG
2+
3+
## 0.0.1 14 Aug 2016
4+
- Initial release
5+
6+
## 1.0.0 19 Mar 2016
7+
- Dependencies updated
8+
- Added custom styles
9+
- Custom classes now cascade

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You should have Bootstrap 4 installed already in your app.
1313

1414
1. install the package:
1515
```
16-
npm install react-boostrap-tabs --save
16+
npm install react-bootstrap-tabs --save
1717
```
1818

1919
### 2. Import component

dist/index.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
function TabsComponent(props) {
8383
_classCallCheck(this, TabsComponent);
8484

85-
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(TabsComponent).call(this, props));
85+
var _this = _possibleConstructorReturn(this, (TabsComponent.__proto__ || Object.getPrototypeOf(TabsComponent)).call(this, props));
8686

8787
_this._renderHeader = function (tab, index) {
8888
var isActive = false;
@@ -150,8 +150,6 @@
150150
}, {
151151
key: '_renderContent',
152152
value: function _renderContent() {
153-
var _this2 = this;
154-
155153
if (this.props.children === undefined) {
156154
return null;
157155
}
@@ -177,18 +175,16 @@
177175
}
178176
}
179177
} else {
180-
(function () {
181-
// selected is a string - should be the tab label so find the index of that tab
182-
var selectedLabel = _this2.state.selected;
183-
selectedIndex = onlyOneChild ? 0 : _this2.props.children.findIndex(function (child) {
184-
return selectedLabel === child.props.label;
185-
});
186-
if (selectedIndex < 0) {
187-
console.warn('tab \'' + _this2.state.selected + '\' not found, defaulting to first tab');
188-
selectedIndex = 0;
189-
selected = onlyOneChild ? _this2.props.children.props.label : _this2.props.children[selectedIndex].props.label;
190-
}
191-
})();
178+
// selected is a string - should be the tab label so find the index of that tab
179+
var selectedLabel = this.state.selected;
180+
selectedIndex = onlyOneChild ? 0 : this.props.children.findIndex(function (child) {
181+
return selectedLabel === child.props.label;
182+
});
183+
if (selectedIndex < 0) {
184+
console.warn('tab \'' + this.state.selected + '\' not found, defaulting to first tab');
185+
selectedIndex = 0;
186+
selected = onlyOneChild ? this.props.children.props.label : this.props.children[selectedIndex].props.label;
187+
}
192188
}
193189

194190
// If the selected tab has changed then we need to update the state
@@ -296,7 +292,7 @@
296292
function TabComponent(props) {
297293
_classCallCheck(this, TabComponent);
298294

299-
return _possibleConstructorReturn(this, Object.getPrototypeOf(TabComponent).call(this, props));
295+
return _possibleConstructorReturn(this, (TabComponent.__proto__ || Object.getPrototypeOf(TabComponent)).call(this, props));
300296
}
301297

302298
_createClass(TabComponent, [{

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,33 @@
2929
"test-watch": "npm run testonly -- --watch --watch-extensions js"
3030
},
3131
"devDependencies": {
32-
"babel-cli": "^6.6.4",
33-
"babel-core": "^6.7.4",
34-
"babel-eslint": "^6.0.2",
35-
"babel-plugin-transform-es2015-modules-umd": "^6.6.5",
36-
"babel-polyfill": "^6.7.4",
37-
"babel-preset-es2015": "^6.6.0",
38-
"babel-preset-react": "^6.5.0",
39-
"babel-preset-stage-2": "^6.5.0",
32+
"babel-cli": "^6.24.0",
33+
"babel-core": "^6.24.0",
34+
"babel-eslint": "^7.1.1",
35+
"babel-plugin-transform-es2015-modules-umd": "^6.24.0",
36+
"babel-polyfill": "^6.23.0",
37+
"babel-preset-es2015": "^6.24.0",
38+
"babel-preset-react": "^6.23.0",
39+
"babel-preset-stage-2": "^6.22.0",
4040
"chai": "^3.5.0",
41-
"enzyme": "^2.2.0",
42-
"eslint": "^2.7.0",
43-
"eslint-plugin-babel": "^3.1.0",
44-
"eslint-plugin-react": "^4.2.3",
45-
"jsdom": "^8.1.0",
46-
"mocha": "^2.4.5",
47-
"nodemon": "^1.9.1",
48-
"react-addons-test-utils": "^15.0.0",
49-
"react": "^15.0.0",
50-
"react-dom": "^15.0.0",
51-
"sinon": "^1.17.3"
41+
"enzyme": "^2.7.1",
42+
"eslint": "^3.18.0",
43+
"eslint-plugin-babel": "^4.1.1",
44+
"eslint-plugin-react": "^6.10.1",
45+
"jsdom": "^9.12.0",
46+
"mocha": "^3.2.0",
47+
"nodemon": "^1.11.0",
48+
"react-addons-test-utils": "^15.4.2",
49+
"react": "^15.4.2",
50+
"react-dom": "^15.4.2",
51+
"sinon": "^2.0.0"
5252
},
5353
"peerDependencies": {
5454
"react": "~0.14.8 || ^15.0.0",
5555
"react-dom": "~0.14.8 || ^15.0.0"
5656
},
5757
"dependencies": {
58-
"babel-runtime": "^6.6.1",
58+
"babel-runtime": "^6.23.0",
5959
"classnames": "^2.2.5"
6060
}
6161
}

0 commit comments

Comments
 (0)