react-bootstrap 0.31.3 → 0.32.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 (189) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +1 -0
  3. package/dist/react-bootstrap.js +14493 -17076
  4. package/dist/react-bootstrap.min.js +18479 -16
  5. package/es/Alert.js +1 -4
  6. package/es/Badge.js +1 -3
  7. package/es/ButtonGroup.js +1 -3
  8. package/es/Carousel.js +79 -79
  9. package/es/CarouselCaption.js +1 -3
  10. package/es/CarouselItem.js +3 -9
  11. package/es/Checkbox.js +7 -1
  12. package/es/Clearfix.js +1 -3
  13. package/es/CloseButton.js +1 -5
  14. package/es/Col.js +1 -3
  15. package/es/Collapse.js +58 -65
  16. package/es/Dropdown.js +66 -55
  17. package/es/DropdownButton.js +2 -8
  18. package/es/DropdownMenu.js +28 -28
  19. package/es/Fade.js +25 -10
  20. package/es/Form.js +1 -3
  21. package/es/FormControl.js +1 -2
  22. package/es/FormControlStatic.js +1 -3
  23. package/es/FormGroup.js +1 -3
  24. package/es/Glyphicon.js +1 -3
  25. package/es/Grid.js +1 -3
  26. package/es/HelpBlock.js +1 -3
  27. package/es/InputGroup.js +1 -3
  28. package/es/InputGroupAddon.js +1 -3
  29. package/es/InputGroupButton.js +1 -3
  30. package/es/Jumbotron.js +1 -3
  31. package/es/Label.js +1 -3
  32. package/es/ListGroup.js +1 -3
  33. package/es/Media.js +1 -3
  34. package/es/MediaBody.js +16 -5
  35. package/es/MediaHeading.js +1 -3
  36. package/es/MediaLeft.js +1 -3
  37. package/es/MediaList.js +1 -3
  38. package/es/MediaListItem.js +1 -3
  39. package/es/MediaRight.js +1 -3
  40. package/es/Modal.js +30 -19
  41. package/es/ModalBody.js +1 -3
  42. package/es/ModalFooter.js +1 -3
  43. package/es/ModalHeader.js +2 -4
  44. package/es/ModalTitle.js +1 -3
  45. package/es/Nav.js +44 -44
  46. package/es/NavDropdown.js +2 -0
  47. package/es/NavItem.js +5 -4
  48. package/es/Navbar.js +5 -7
  49. package/es/Overlay.js +1 -3
  50. package/es/OverlayTrigger.js +43 -43
  51. package/es/PageHeader.js +1 -3
  52. package/es/Pager.js +1 -3
  53. package/es/PagerItem.js +1 -4
  54. package/es/Pagination.js +15 -224
  55. package/es/PaginationItem.js +102 -0
  56. package/es/Panel.js +114 -173
  57. package/es/PanelBody.js +84 -0
  58. package/es/PanelCollapse.js +94 -0
  59. package/es/PanelFooter.js +53 -0
  60. package/es/PanelGroup.js +95 -52
  61. package/es/PanelHeading.js +75 -0
  62. package/es/PanelTitle.js +83 -0
  63. package/es/PanelToggle.js +94 -0
  64. package/es/ProgressBar.js +12 -8
  65. package/es/Radio.js +7 -1
  66. package/es/Row.js +1 -3
  67. package/es/SplitButton.js +1 -4
  68. package/es/SplitToggle.js +1 -4
  69. package/es/TabContent.js +7 -7
  70. package/es/TabPane.js +18 -18
  71. package/es/Table.js +1 -3
  72. package/es/Tabs.js +4 -10
  73. package/es/Thumbnail.js +3 -3
  74. package/es/ToggleButton.js +1 -4
  75. package/es/Well.js +1 -3
  76. package/es/index.js +0 -2
  77. package/es/utils/PropTypes.js +26 -4
  78. package/es/utils/ValidComponentChildren.js +1 -1
  79. package/es/utils/bootstrapUtils.js +5 -3
  80. package/lib/Accordion.js +9 -9
  81. package/lib/Alert.js +14 -17
  82. package/lib/Badge.js +12 -14
  83. package/lib/Breadcrumb.js +10 -10
  84. package/lib/BreadcrumbItem.js +14 -14
  85. package/lib/Button.js +20 -20
  86. package/lib/ButtonGroup.js +12 -14
  87. package/lib/ButtonToolbar.js +9 -9
  88. package/lib/Carousel.js +121 -121
  89. package/lib/CarouselCaption.js +9 -11
  90. package/lib/CarouselItem.js +17 -22
  91. package/lib/Checkbox.js +25 -21
  92. package/lib/Clearfix.js +14 -16
  93. package/lib/CloseButton.js +12 -16
  94. package/lib/Col.js +29 -31
  95. package/lib/Collapse.js +84 -92
  96. package/lib/ControlLabel.js +14 -14
  97. package/lib/Dropdown.js +106 -95
  98. package/lib/DropdownButton.js +22 -28
  99. package/lib/DropdownMenu.js +51 -51
  100. package/lib/DropdownToggle.js +16 -16
  101. package/lib/Fade.js +43 -25
  102. package/lib/Form.js +11 -13
  103. package/lib/FormControl.js +17 -17
  104. package/lib/FormControlFeedback.js +13 -13
  105. package/lib/FormControlStatic.js +9 -11
  106. package/lib/FormGroup.js +14 -16
  107. package/lib/Glyphicon.js +10 -12
  108. package/lib/Grid.js +10 -12
  109. package/lib/HelpBlock.js +8 -10
  110. package/lib/Image.js +13 -13
  111. package/lib/InputGroup.js +10 -12
  112. package/lib/InputGroupAddon.js +8 -10
  113. package/lib/InputGroupButton.js +8 -10
  114. package/lib/Jumbotron.js +9 -11
  115. package/lib/Label.js +11 -13
  116. package/lib/ListGroup.js +15 -17
  117. package/lib/ListGroupItem.js +22 -22
  118. package/lib/Media.js +15 -17
  119. package/lib/MediaBody.js +28 -11
  120. package/lib/MediaHeading.js +9 -11
  121. package/lib/MediaLeft.js +10 -12
  122. package/lib/MediaList.js +8 -10
  123. package/lib/MediaListItem.js +8 -10
  124. package/lib/MediaRight.js +10 -12
  125. package/lib/MenuItem.js +23 -23
  126. package/lib/Modal.js +80 -69
  127. package/lib/ModalBody.js +9 -11
  128. package/lib/ModalDialog.js +16 -16
  129. package/lib/ModalFooter.js +9 -11
  130. package/lib/ModalHeader.js +20 -22
  131. package/lib/ModalTitle.js +9 -11
  132. package/lib/Nav.js +81 -81
  133. package/lib/NavDropdown.js +27 -25
  134. package/lib/NavItem.js +23 -22
  135. package/lib/Navbar.js +46 -48
  136. package/lib/NavbarBrand.js +14 -14
  137. package/lib/NavbarCollapse.js +14 -14
  138. package/lib/NavbarHeader.js +10 -10
  139. package/lib/NavbarToggle.js +22 -22
  140. package/lib/Overlay.js +25 -27
  141. package/lib/OverlayTrigger.js +79 -79
  142. package/lib/PageHeader.js +10 -12
  143. package/lib/PageItem.js +2 -2
  144. package/lib/Pager.js +13 -15
  145. package/lib/PagerItem.js +18 -21
  146. package/lib/Pagination.js +25 -240
  147. package/lib/PaginationItem.js +135 -0
  148. package/lib/Panel.js +142 -180
  149. package/lib/PanelBody.js +114 -0
  150. package/lib/PanelCollapse.js +120 -0
  151. package/lib/PanelFooter.js +80 -0
  152. package/lib/PanelGroup.js +111 -70
  153. package/lib/PanelHeading.js +107 -0
  154. package/lib/PanelTitle.js +118 -0
  155. package/lib/PanelToggle.js +130 -0
  156. package/lib/Popover.js +22 -22
  157. package/lib/ProgressBar.js +39 -35
  158. package/lib/Radio.js +25 -21
  159. package/lib/ResponsiveEmbed.js +17 -17
  160. package/lib/Row.js +9 -11
  161. package/lib/SafeAnchor.js +17 -17
  162. package/lib/SplitButton.js +26 -29
  163. package/lib/SplitToggle.js +8 -11
  164. package/lib/Tab.js +15 -15
  165. package/lib/TabContainer.js +17 -17
  166. package/lib/TabContent.js +31 -31
  167. package/lib/TabPane.js +59 -59
  168. package/lib/Table.js +15 -17
  169. package/lib/Tabs.js +29 -35
  170. package/lib/Thumbnail.js +18 -20
  171. package/lib/ToggleButton.js +17 -20
  172. package/lib/ToggleButtonGroup.js +20 -20
  173. package/lib/Tooltip.js +20 -20
  174. package/lib/Well.js +8 -10
  175. package/lib/index.js +74 -79
  176. package/lib/utils/PropTypes.js +35 -9
  177. package/lib/utils/ValidComponentChildren.js +19 -19
  178. package/lib/utils/bootstrapUtils.js +13 -11
  179. package/lib/utils/capitalize.js +1 -1
  180. package/lib/utils/createChainedFunction.js +1 -1
  181. package/lib/utils/deprecationWarning.js +7 -7
  182. package/lib/utils/index.js +4 -4
  183. package/lib/utils/splitComponentProps.js +3 -3
  184. package/package.json +54 -64
  185. package/dist/react-bootstrap.min.js.map +0 -1
  186. package/es/PaginationButton.js +0 -98
  187. package/es/utils/TransitionEvents.js +0 -109
  188. package/lib/PaginationButton.js +0 -137
  189. package/lib/utils/TransitionEvents.js +0 -113
@@ -6,7 +6,7 @@ var _react = require('react');
6
6
 
7
7
  var _react2 = _interopRequireDefault(_react);
8
8
 
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
 
11
11
  /**
12
12
  * Iterates through children that are typically specified as `props.children`,
@@ -23,8 +23,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
23
23
  function map(children, func, context) {
24
24
  var index = 0;
25
25
 
26
- return _react2['default'].Children.map(children, function (child) {
27
- if (!_react2['default'].isValidElement(child)) {
26
+ return _react2.default.Children.map(children, function (child) {
27
+ if (!_react2.default.isValidElement(child)) {
28
28
  return child;
29
29
  }
30
30
 
@@ -47,8 +47,8 @@ function map(children, func, context) {
47
47
  function forEach(children, func, context) {
48
48
  var index = 0;
49
49
 
50
- _react2['default'].Children.forEach(children, function (child) {
51
- if (!_react2['default'].isValidElement(child)) {
50
+ _react2.default.Children.forEach(children, function (child) {
51
+ if (!_react2.default.isValidElement(child)) {
52
52
  return;
53
53
  }
54
54
 
@@ -65,8 +65,8 @@ function forEach(children, func, context) {
65
65
  function count(children) {
66
66
  var result = 0;
67
67
 
68
- _react2['default'].Children.forEach(children, function (child) {
69
- if (!_react2['default'].isValidElement(child)) {
68
+ _react2.default.Children.forEach(children, function (child) {
69
+ if (!_react2.default.isValidElement(child)) {
70
70
  return;
71
71
  }
72
72
 
@@ -92,8 +92,8 @@ function filter(children, func, context) {
92
92
  var index = 0;
93
93
  var result = [];
94
94
 
95
- _react2['default'].Children.forEach(children, function (child) {
96
- if (!_react2['default'].isValidElement(child)) {
95
+ _react2.default.Children.forEach(children, function (child) {
96
+ if (!_react2.default.isValidElement(child)) {
97
97
  return;
98
98
  }
99
99
 
@@ -107,13 +107,13 @@ function filter(children, func, context) {
107
107
 
108
108
  function find(children, func, context) {
109
109
  var index = 0;
110
- var result = undefined;
110
+ var result = void 0;
111
111
 
112
- _react2['default'].Children.forEach(children, function (child) {
112
+ _react2.default.Children.forEach(children, function (child) {
113
113
  if (result) {
114
114
  return;
115
115
  }
116
- if (!_react2['default'].isValidElement(child)) {
116
+ if (!_react2.default.isValidElement(child)) {
117
117
  return;
118
118
  }
119
119
 
@@ -129,11 +129,11 @@ function every(children, func, context) {
129
129
  var index = 0;
130
130
  var result = true;
131
131
 
132
- _react2['default'].Children.forEach(children, function (child) {
132
+ _react2.default.Children.forEach(children, function (child) {
133
133
  if (!result) {
134
134
  return;
135
135
  }
136
- if (!_react2['default'].isValidElement(child)) {
136
+ if (!_react2.default.isValidElement(child)) {
137
137
  return;
138
138
  }
139
139
 
@@ -149,11 +149,11 @@ function some(children, func, context) {
149
149
  var index = 0;
150
150
  var result = false;
151
151
 
152
- _react2['default'].Children.forEach(children, function (child) {
152
+ _react2.default.Children.forEach(children, function (child) {
153
153
  if (result) {
154
154
  return;
155
155
  }
156
- if (!_react2['default'].isValidElement(child)) {
156
+ if (!_react2.default.isValidElement(child)) {
157
157
  return;
158
158
  }
159
159
 
@@ -168,8 +168,8 @@ function some(children, func, context) {
168
168
  function toArray(children) {
169
169
  var result = [];
170
170
 
171
- _react2['default'].Children.forEach(children, function (child) {
172
- if (!_react2['default'].isValidElement(child)) {
171
+ _react2.default.Children.forEach(children, function (child) {
172
+ if (!_react2.default.isValidElement(child)) {
173
173
  return;
174
174
  }
175
175
 
@@ -179,7 +179,7 @@ function toArray(children) {
179
179
  return result;
180
180
  }
181
181
 
182
- exports['default'] = {
182
+ exports.default = {
183
183
  map: map,
184
184
  forEach: forEach,
185
185
  count: count,
@@ -27,7 +27,7 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
27
27
 
28
28
  var _StyleConfig = require('./StyleConfig');
29
29
 
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
31
 
32
32
  function curry(fn) {
33
33
  return function () {
@@ -46,15 +46,16 @@ function curry(fn) {
46
46
  } // TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
47
47
 
48
48
  function prefix(props, variant) {
49
- !(props.bsClass != null) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2['default'])(false, 'A `bsClass` prop is required for this component') : (0, _invariant2['default'])(false) : void 0;
50
- return props.bsClass + (variant ? '-' + variant : '');
49
+ var bsClass = (props.bsClass || '').trim();
50
+ !(bsClass != null) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'A `bsClass` prop is required for this component') : (0, _invariant2.default)(false) : void 0;
51
+ return bsClass + (variant ? '-' + variant : '');
51
52
  }
52
53
 
53
54
  var bsClass = exports.bsClass = curry(function (defaultClass, Component) {
54
55
  var propTypes = Component.propTypes || (Component.propTypes = {});
55
56
  var defaultProps = Component.defaultProps || (Component.defaultProps = {});
56
57
 
57
- propTypes.bsClass = _propTypes2['default'].string;
58
+ propTypes.bsClass = _propTypes2.default.string;
58
59
  defaultProps.bsClass = defaultClass;
59
60
 
60
61
  return Component;
@@ -75,12 +76,13 @@ var bsStyles = exports.bsStyles = curry(function (styles, defaultStyle, Componen
75
76
  }
76
77
  });
77
78
 
78
- var propType = _propTypes2['default'].oneOf(existing);
79
+ var propType = _propTypes2.default.oneOf(existing);
79
80
 
80
81
  // expose the values on the propType function for documentation
81
- Component.STYLES = propType._values = existing;
82
+ Component.STYLES = existing;
83
+ propType._values = existing;
82
84
 
83
- Component.propTypes = (0, _extends3['default'])({}, propTypes, {
85
+ Component.propTypes = (0, _extends3.default)({}, propTypes, {
84
86
  bsStyle: propType
85
87
  });
86
88
 
@@ -117,13 +119,13 @@ var bsSizes = exports.bsSizes = curry(function (sizes, defaultSize, Component) {
117
119
  values.push(size);
118
120
  });
119
121
 
120
- var propType = _propTypes2['default'].oneOf(values);
122
+ var propType = _propTypes2.default.oneOf(values);
121
123
  propType._values = values;
122
124
 
123
125
  // expose the values on the propType function for documentation
124
126
  Component.SIZES = existing;
125
127
 
126
- Component.propTypes = (0, _extends3['default'])({}, propTypes, {
128
+ Component.propTypes = (0, _extends3.default)({}, propTypes, {
127
129
  bsSize: propType
128
130
  });
129
131
 
@@ -169,7 +171,7 @@ function isBsProp(propName) {
169
171
 
170
172
  function splitBsProps(props) {
171
173
  var elementProps = {};
172
- (0, _entries2['default'])(props).forEach(function (_ref) {
174
+ (0, _entries2.default)(props).forEach(function (_ref) {
173
175
  var propName = _ref[0],
174
176
  propValue = _ref[1];
175
177
 
@@ -188,7 +190,7 @@ function splitBsPropsAndOmit(props, omittedPropNames) {
188
190
  });
189
191
 
190
192
  var elementProps = {};
191
- (0, _entries2['default'])(props).forEach(function (_ref2) {
193
+ (0, _entries2.default)(props).forEach(function (_ref2) {
192
194
  var propName = _ref2[0],
193
195
  propValue = _ref2[1];
194
196
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports["default"] = capitalize;
4
+ exports.default = capitalize;
5
5
  function capitalize(string) {
6
6
  return "" + string.charAt(0).toUpperCase() + string.slice(1);
7
7
  }
@@ -37,5 +37,5 @@ function createChainedFunction() {
37
37
  }, null);
38
38
  }
39
39
 
40
- exports['default'] = createChainedFunction;
40
+ exports.default = createChainedFunction;
41
41
  module.exports = exports['default'];
@@ -24,14 +24,14 @@ var _warning = require('warning');
24
24
 
25
25
  var _warning2 = _interopRequireDefault(_warning);
26
26
 
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
28
 
29
29
  var warned = {};
30
30
 
31
31
  function deprecationWarning(oldname, newname, link) {
32
32
  var message = void 0;
33
33
 
34
- if ((typeof oldname === 'undefined' ? 'undefined' : (0, _typeof3['default'])(oldname)) === 'object') {
34
+ if ((typeof oldname === 'undefined' ? 'undefined' : (0, _typeof3.default)(oldname)) === 'object') {
35
35
  message = oldname.message;
36
36
  } else {
37
37
  message = oldname + ' is deprecated. Use ' + newname + ' instead.';
@@ -45,7 +45,7 @@ function deprecationWarning(oldname, newname, link) {
45
45
  return;
46
46
  }
47
47
 
48
- process.env.NODE_ENV !== 'production' ? (0, _warning2['default'])(false, message) : void 0;
48
+ process.env.NODE_ENV !== 'production' ? (0, _warning2.default)(false, message) : void 0;
49
49
  warned[message] = true;
50
50
  }
51
51
 
@@ -55,11 +55,11 @@ deprecationWarning.wrapper = function (Component) {
55
55
  }
56
56
 
57
57
  return function (_Component) {
58
- (0, _inherits3['default'])(DeprecatedComponent, _Component);
58
+ (0, _inherits3.default)(DeprecatedComponent, _Component);
59
59
 
60
60
  function DeprecatedComponent() {
61
- (0, _classCallCheck3['default'])(this, DeprecatedComponent);
62
- return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));
61
+ (0, _classCallCheck3.default)(this, DeprecatedComponent);
62
+ return (0, _possibleConstructorReturn3.default)(this, _Component.apply(this, arguments));
63
63
  }
64
64
 
65
65
  DeprecatedComponent.prototype.componentWillMount = function componentWillMount() {
@@ -80,7 +80,7 @@ deprecationWarning.wrapper = function (Component) {
80
80
  }(Component);
81
81
  };
82
82
 
83
- exports['default'] = deprecationWarning;
83
+ exports.default = deprecationWarning;
84
84
  function _resetWarned() {
85
85
  warned = {};
86
86
  }
@@ -15,10 +15,10 @@ var _ValidComponentChildren2 = require('./ValidComponentChildren');
15
15
 
16
16
  var _ValidComponentChildren3 = _interopRequireDefault(_ValidComponentChildren2);
17
17
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- 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; } }
20
+ 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; } }
21
21
 
22
22
  exports.bootstrapUtils = _bootstrapUtils;
23
- exports.createChainedFunction = _createChainedFunction3['default'];
24
- exports.ValidComponentChildren = _ValidComponentChildren3['default'];
23
+ exports.createChainedFunction = _createChainedFunction3.default;
24
+ exports.ValidComponentChildren = _ValidComponentChildren3.default;
@@ -6,9 +6,9 @@ var _entries = require("babel-runtime/core-js/object/entries");
6
6
 
7
7
  var _entries2 = _interopRequireDefault(_entries);
8
8
 
9
- exports["default"] = splitComponentProps;
9
+ exports.default = splitComponentProps;
10
10
 
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
 
13
13
  function splitComponentProps(props, Component) {
14
14
  var componentPropTypes = Component.propTypes;
@@ -16,7 +16,7 @@ function splitComponentProps(props, Component) {
16
16
  var parentProps = {};
17
17
  var childProps = {};
18
18
 
19
- (0, _entries2["default"])(props).forEach(function (_ref) {
19
+ (0, _entries2.default)(props).forEach(function (_ref) {
20
20
  var propName = _ref[0],
21
21
  propValue = _ref[1];
22
22
 
package/package.json CHANGED
@@ -1,28 +1,38 @@
1
1
  {
2
2
  "name": "react-bootstrap",
3
- "version": "0.31.3",
3
+ "version": "0.32.1",
4
4
  "description": "Bootstrap 3 components built with React",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "react-bootstrap/react-bootstrap"
8
8
  },
9
9
  "homepage": "https://react-bootstrap.github.io/",
10
+ "main": "lib/index.js",
11
+ "jsnext:main": "es/index.js",
12
+ "module": "es/index.js",
10
13
  "scripts": {
11
- "build": "babel-node tools/build-cli.js",
12
- "docs": "babel-node docs/dev-run.js",
13
- "docs-build": "babel-node tools/build-cli.js --docs-only",
14
- "docs-prod": "npm run docs-build && cross-env NODE_ENV=production babel-node docs/server.js",
15
- "docs-prod-unoptimized": "npm run docs-build -- --dev && cross-env NODE_ENV=production babel-node docs/server.js",
16
- "lint": "eslint docs src test tools webpack *.js",
17
- "release": "release",
14
+ "bootstrap-docs": "npm run build lib && cd www && yarn install && cd ..",
15
+ "build": "node tools/build.js",
16
+ "build-docs": "npm run bootstrap-docs && npm -C www run build",
17
+ "ci-lint": "eslint --rule 'prettier/prettier: 2'",
18
+ "format": "npm run ci-lint -- --fix",
19
+ "lint": "npm run ci-lint .",
20
+ "precommit": "lint-staged",
21
+ "release": "npm run build-docs && release",
18
22
  "tdd": "karma start",
19
23
  "test": "npm run lint && npm run test-browser && npm run test-node",
20
24
  "test-browser": "cross-env NODE_ENV=test karma start --single-run",
21
- "test-node": "mocha --compilers js:babel-register test/server/*Spec.js"
25
+ "test-node": "mocha --compilers js:tools/babel-register.js test/server/*Spec.js"
26
+ },
27
+ "lint-staged": {
28
+ "*.js": [
29
+ "format",
30
+ "git add"
31
+ ]
32
+ },
33
+ "prettier": {
34
+ "singleQuote": true
22
35
  },
23
- "main": "lib/index.js",
24
- "jsnext:main": "es/index.js",
25
- "module": "es/index.js",
26
36
  "files": [
27
37
  "CHANGELOG.md",
28
38
  "lib",
@@ -42,44 +52,36 @@
42
52
  "react-dom": "^0.14.9 || >=15.3.0"
43
53
  },
44
54
  "devDependencies": {
45
- "babel-cli": "^6.11.4",
46
55
  "babel-core": "^6.13.2",
47
- "babel-eslint": "^6.1.2",
48
- "babel-loader": "^6.2.5",
56
+ "babel-eslint": "^7.2.3",
57
+ "babel-loader": "^7.1.2",
49
58
  "babel-plugin-add-module-exports": "^0.2.1",
50
59
  "babel-plugin-dev-expression": "^0.2.1",
51
- "babel-plugin-istanbul": "^1.0.3",
52
- "babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
53
- "babel-plugin-transform-es3-property-literals": "^6.8.0",
60
+ "babel-plugin-istanbul": "^4.1.5",
61
+ "babel-plugin-transform-class-properties": "^6.24.1",
62
+ "babel-plugin-transform-export-extensions": "^6.22.0",
63
+ "babel-plugin-transform-object-rest-spread": "^6.26.0",
54
64
  "babel-plugin-transform-runtime": "^6.12.0",
55
- "babel-preset-es2015": "^6.13.2",
65
+ "babel-preset-env": "^1.6.0",
56
66
  "babel-preset-react": "^6.11.1",
57
- "babel-preset-stage-1": "^6.13.0",
58
- "babel-register": "^6.11.6",
59
- "babel-standalone": "^6.21.1",
60
- "bootstrap": "^3.3.6",
61
- "brfs": "^1.4.3",
67
+ "babel-register": "^6.26.0",
62
68
  "chai": "^3.5.0",
63
- "child-process-promise": "^2.0.3",
64
- "codecov": "^1.0.1",
65
- "codemirror": "^5.16.0",
69
+ "codecov": "^2.2.0",
66
70
  "colors": "^1.1.2",
71
+ "create-react-class": "^15.5.3",
67
72
  "cross-env": "^2.0.0",
68
- "css-loader": "^0.23.1",
69
- "eslint": "^1.10.3",
70
- "eslint-config-airbnb": "^0.1.1",
71
- "eslint-plugin-babel": "^3.3.0",
72
- "eslint-plugin-mocha": "^1.1.0",
73
- "eslint-plugin-react": "^3.16.1",
74
- "express": "^4.14.0",
75
- "extract-text-webpack-plugin": "^1.0.1",
76
- "file-loader": "^0.9.0",
77
- "fs-extra": "^0.30.0",
78
- "fs-promise": "^0.5.0",
79
- "glob": "^7.1.0",
80
- "http-proxy": "^1.14.0",
81
- "ip": "^1.1.3",
82
- "json-loader": "^0.5.4",
73
+ "enzyme": "^3.1.0",
74
+ "enzyme-adapter-react-15": "^1.0.1",
75
+ "eslint": "^4.8.0",
76
+ "eslint-config-airbnb": "^15.1.0",
77
+ "eslint-config-prettier": "^2.9.0",
78
+ "eslint-plugin-import": "^2.7.0",
79
+ "eslint-plugin-jsx-a11y": "^5.1.1",
80
+ "eslint-plugin-mocha": "^4.11.0",
81
+ "eslint-plugin-prettier": "^2.4.0",
82
+ "eslint-plugin-react": "^7.5.1",
83
+ "fs-extra": "^4.0.2",
84
+ "husky": "^0.14.3",
83
85
  "karma": "^1.1.1",
84
86
  "karma-chrome-launcher": "^1.0.1",
85
87
  "karma-cli": "^1.0.1",
@@ -89,33 +91,19 @@
89
91
  "karma-mocha-reporter": "^2.0.4",
90
92
  "karma-sinon-chai": "^1.2.2",
91
93
  "karma-sourcemap-loader": "^0.3.7",
92
- "karma-webpack": "^1.7.0",
93
- "less": "^2.7.1",
94
- "less-loader": "^2.2.3",
94
+ "karma-webpack": "^2.0.4",
95
+ "lint-staged": "^6.0.0",
95
96
  "lodash": "^4.13.1",
96
- "marked": "^0.3.6",
97
97
  "mocha": "^2.5.3",
98
- "node-libs-browser": "^1.0.0",
99
- "nodemon": "^1.9.2",
100
- "output-file-sync": "^1.1.2",
101
- "portfinder": "^1.0.3",
98
+ "prettier": "^1.9.2",
102
99
  "react": "^15.5.4",
103
- "react-component-metadata": "^3.1.0",
104
100
  "react-dom": "^15.5.4",
105
- "react-hot-loader": "^1.3.0",
106
- "react-router": "^2.6.1",
107
- "react-waypoint": "^3.0.0",
101
+ "react-test-renderer": "^15.6.2",
108
102
  "release-script": "^1.0.2",
109
- "rimraf": "^2.5.3",
110
- "semver": "^5.2.0",
111
103
  "sinon": "^2.3.2",
112
104
  "sinon-chai": "^2.8.0",
113
- "style-loader": "^0.13.1",
114
- "teaspoon": "^6.4.2",
115
- "transform-loader": "^0.2.3",
116
- "webpack": "^1.13.1",
117
- "webpack-dev-server": "^1.14.1",
118
- "yargs": "^4.7.1"
105
+ "webpack": "^3.6.0",
106
+ "webpack-atoms": "^4.1.2"
119
107
  },
120
108
  "dependencies": {
121
109
  "babel-runtime": "^6.11.6",
@@ -125,13 +113,15 @@
125
113
  "keycode": "^2.1.2",
126
114
  "prop-types": "^15.5.10",
127
115
  "prop-types-extra": "^1.0.1",
128
- "react-overlays": "^0.7.0",
116
+ "react-overlays": "^0.8.0",
129
117
  "react-prop-types": "^0.4.0",
118
+ "react-transition-group": "^2.0.0",
130
119
  "uncontrollable": "^4.1.0",
131
120
  "warning": "^3.0.0"
132
121
  },
133
122
  "release-script": {
134
123
  "bowerRepo": "git@github.com:react-bootstrap/react-bootstrap-bower.git",
135
- "docsRepo": "git@github.com:react-bootstrap/react-bootstrap.github.io.git"
124
+ "docsRepo": "git@github.com:react-bootstrap/react-bootstrap.github.io.git",
125
+ "docsRoot": "www/public/"
136
126
  }
137
127
  }