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.
- package/CHANGELOG.md +57 -0
- package/README.md +1 -0
- package/dist/react-bootstrap.js +14493 -17076
- package/dist/react-bootstrap.min.js +18479 -16
- package/es/Alert.js +1 -4
- package/es/Badge.js +1 -3
- package/es/ButtonGroup.js +1 -3
- package/es/Carousel.js +79 -79
- package/es/CarouselCaption.js +1 -3
- package/es/CarouselItem.js +3 -9
- package/es/Checkbox.js +7 -1
- package/es/Clearfix.js +1 -3
- package/es/CloseButton.js +1 -5
- package/es/Col.js +1 -3
- package/es/Collapse.js +58 -65
- package/es/Dropdown.js +66 -55
- package/es/DropdownButton.js +2 -8
- package/es/DropdownMenu.js +28 -28
- package/es/Fade.js +25 -10
- package/es/Form.js +1 -3
- package/es/FormControl.js +1 -2
- package/es/FormControlStatic.js +1 -3
- package/es/FormGroup.js +1 -3
- package/es/Glyphicon.js +1 -3
- package/es/Grid.js +1 -3
- package/es/HelpBlock.js +1 -3
- package/es/InputGroup.js +1 -3
- package/es/InputGroupAddon.js +1 -3
- package/es/InputGroupButton.js +1 -3
- package/es/Jumbotron.js +1 -3
- package/es/Label.js +1 -3
- package/es/ListGroup.js +1 -3
- package/es/Media.js +1 -3
- package/es/MediaBody.js +16 -5
- package/es/MediaHeading.js +1 -3
- package/es/MediaLeft.js +1 -3
- package/es/MediaList.js +1 -3
- package/es/MediaListItem.js +1 -3
- package/es/MediaRight.js +1 -3
- package/es/Modal.js +30 -19
- package/es/ModalBody.js +1 -3
- package/es/ModalFooter.js +1 -3
- package/es/ModalHeader.js +2 -4
- package/es/ModalTitle.js +1 -3
- package/es/Nav.js +44 -44
- package/es/NavDropdown.js +2 -0
- package/es/NavItem.js +5 -4
- package/es/Navbar.js +5 -7
- package/es/Overlay.js +1 -3
- package/es/OverlayTrigger.js +43 -43
- package/es/PageHeader.js +1 -3
- package/es/Pager.js +1 -3
- package/es/PagerItem.js +1 -4
- package/es/Pagination.js +15 -224
- package/es/PaginationItem.js +102 -0
- package/es/Panel.js +114 -173
- package/es/PanelBody.js +84 -0
- package/es/PanelCollapse.js +94 -0
- package/es/PanelFooter.js +53 -0
- package/es/PanelGroup.js +95 -52
- package/es/PanelHeading.js +75 -0
- package/es/PanelTitle.js +83 -0
- package/es/PanelToggle.js +94 -0
- package/es/ProgressBar.js +12 -8
- package/es/Radio.js +7 -1
- package/es/Row.js +1 -3
- package/es/SplitButton.js +1 -4
- package/es/SplitToggle.js +1 -4
- package/es/TabContent.js +7 -7
- package/es/TabPane.js +18 -18
- package/es/Table.js +1 -3
- package/es/Tabs.js +4 -10
- package/es/Thumbnail.js +3 -3
- package/es/ToggleButton.js +1 -4
- package/es/Well.js +1 -3
- package/es/index.js +0 -2
- package/es/utils/PropTypes.js +26 -4
- package/es/utils/ValidComponentChildren.js +1 -1
- package/es/utils/bootstrapUtils.js +5 -3
- package/lib/Accordion.js +9 -9
- package/lib/Alert.js +14 -17
- package/lib/Badge.js +12 -14
- package/lib/Breadcrumb.js +10 -10
- package/lib/BreadcrumbItem.js +14 -14
- package/lib/Button.js +20 -20
- package/lib/ButtonGroup.js +12 -14
- package/lib/ButtonToolbar.js +9 -9
- package/lib/Carousel.js +121 -121
- package/lib/CarouselCaption.js +9 -11
- package/lib/CarouselItem.js +17 -22
- package/lib/Checkbox.js +25 -21
- package/lib/Clearfix.js +14 -16
- package/lib/CloseButton.js +12 -16
- package/lib/Col.js +29 -31
- package/lib/Collapse.js +84 -92
- package/lib/ControlLabel.js +14 -14
- package/lib/Dropdown.js +106 -95
- package/lib/DropdownButton.js +22 -28
- package/lib/DropdownMenu.js +51 -51
- package/lib/DropdownToggle.js +16 -16
- package/lib/Fade.js +43 -25
- package/lib/Form.js +11 -13
- package/lib/FormControl.js +17 -17
- package/lib/FormControlFeedback.js +13 -13
- package/lib/FormControlStatic.js +9 -11
- package/lib/FormGroup.js +14 -16
- package/lib/Glyphicon.js +10 -12
- package/lib/Grid.js +10 -12
- package/lib/HelpBlock.js +8 -10
- package/lib/Image.js +13 -13
- package/lib/InputGroup.js +10 -12
- package/lib/InputGroupAddon.js +8 -10
- package/lib/InputGroupButton.js +8 -10
- package/lib/Jumbotron.js +9 -11
- package/lib/Label.js +11 -13
- package/lib/ListGroup.js +15 -17
- package/lib/ListGroupItem.js +22 -22
- package/lib/Media.js +15 -17
- package/lib/MediaBody.js +28 -11
- package/lib/MediaHeading.js +9 -11
- package/lib/MediaLeft.js +10 -12
- package/lib/MediaList.js +8 -10
- package/lib/MediaListItem.js +8 -10
- package/lib/MediaRight.js +10 -12
- package/lib/MenuItem.js +23 -23
- package/lib/Modal.js +80 -69
- package/lib/ModalBody.js +9 -11
- package/lib/ModalDialog.js +16 -16
- package/lib/ModalFooter.js +9 -11
- package/lib/ModalHeader.js +20 -22
- package/lib/ModalTitle.js +9 -11
- package/lib/Nav.js +81 -81
- package/lib/NavDropdown.js +27 -25
- package/lib/NavItem.js +23 -22
- package/lib/Navbar.js +46 -48
- package/lib/NavbarBrand.js +14 -14
- package/lib/NavbarCollapse.js +14 -14
- package/lib/NavbarHeader.js +10 -10
- package/lib/NavbarToggle.js +22 -22
- package/lib/Overlay.js +25 -27
- package/lib/OverlayTrigger.js +79 -79
- package/lib/PageHeader.js +10 -12
- package/lib/PageItem.js +2 -2
- package/lib/Pager.js +13 -15
- package/lib/PagerItem.js +18 -21
- package/lib/Pagination.js +25 -240
- package/lib/PaginationItem.js +135 -0
- package/lib/Panel.js +142 -180
- package/lib/PanelBody.js +114 -0
- package/lib/PanelCollapse.js +120 -0
- package/lib/PanelFooter.js +80 -0
- package/lib/PanelGroup.js +111 -70
- package/lib/PanelHeading.js +107 -0
- package/lib/PanelTitle.js +118 -0
- package/lib/PanelToggle.js +130 -0
- package/lib/Popover.js +22 -22
- package/lib/ProgressBar.js +39 -35
- package/lib/Radio.js +25 -21
- package/lib/ResponsiveEmbed.js +17 -17
- package/lib/Row.js +9 -11
- package/lib/SafeAnchor.js +17 -17
- package/lib/SplitButton.js +26 -29
- package/lib/SplitToggle.js +8 -11
- package/lib/Tab.js +15 -15
- package/lib/TabContainer.js +17 -17
- package/lib/TabContent.js +31 -31
- package/lib/TabPane.js +59 -59
- package/lib/Table.js +15 -17
- package/lib/Tabs.js +29 -35
- package/lib/Thumbnail.js +18 -20
- package/lib/ToggleButton.js +17 -20
- package/lib/ToggleButtonGroup.js +20 -20
- package/lib/Tooltip.js +20 -20
- package/lib/Well.js +8 -10
- package/lib/index.js +74 -79
- package/lib/utils/PropTypes.js +35 -9
- package/lib/utils/ValidComponentChildren.js +19 -19
- package/lib/utils/bootstrapUtils.js +13 -11
- package/lib/utils/capitalize.js +1 -1
- package/lib/utils/createChainedFunction.js +1 -1
- package/lib/utils/deprecationWarning.js +7 -7
- package/lib/utils/index.js +4 -4
- package/lib/utils/splitComponentProps.js +3 -3
- package/package.json +54 -64
- package/dist/react-bootstrap.min.js.map +0 -1
- package/es/PaginationButton.js +0 -98
- package/es/utils/TransitionEvents.js +0 -109
- package/lib/PaginationButton.js +0 -137
- 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 : {
|
|
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
|
|
27
|
-
if (!_react2
|
|
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
|
|
51
|
-
if (!_react2
|
|
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
|
|
69
|
-
if (!_react2
|
|
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
|
|
96
|
-
if (!_react2
|
|
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 =
|
|
110
|
+
var result = void 0;
|
|
111
111
|
|
|
112
|
-
_react2
|
|
112
|
+
_react2.default.Children.forEach(children, function (child) {
|
|
113
113
|
if (result) {
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
if (!_react2
|
|
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
|
|
132
|
+
_react2.default.Children.forEach(children, function (child) {
|
|
133
133
|
if (!result) {
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
-
if (!_react2
|
|
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
|
|
152
|
+
_react2.default.Children.forEach(children, function (child) {
|
|
153
153
|
if (result) {
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
if (!_react2
|
|
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
|
|
172
|
-
if (!_react2
|
|
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
|
|
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 : {
|
|
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
|
-
|
|
50
|
-
|
|
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
|
|
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
|
|
79
|
+
var propType = _propTypes2.default.oneOf(existing);
|
|
79
80
|
|
|
80
81
|
// expose the values on the propType function for documentation
|
|
81
|
-
Component.STYLES =
|
|
82
|
+
Component.STYLES = existing;
|
|
83
|
+
propType._values = existing;
|
|
82
84
|
|
|
83
|
-
Component.propTypes = (0, _extends3
|
|
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
|
|
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
|
|
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
|
|
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
|
|
193
|
+
(0, _entries2.default)(props).forEach(function (_ref2) {
|
|
192
194
|
var propName = _ref2[0],
|
|
193
195
|
propValue = _ref2[1];
|
|
194
196
|
|
package/lib/utils/capitalize.js
CHANGED
|
@@ -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 : {
|
|
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
|
|
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
|
|
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
|
|
58
|
+
(0, _inherits3.default)(DeprecatedComponent, _Component);
|
|
59
59
|
|
|
60
60
|
function DeprecatedComponent() {
|
|
61
|
-
(0, _classCallCheck3
|
|
62
|
-
return (0, _possibleConstructorReturn3
|
|
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
|
|
83
|
+
exports.default = deprecationWarning;
|
|
84
84
|
function _resetWarned() {
|
|
85
85
|
warned = {};
|
|
86
86
|
}
|
package/lib/utils/index.js
CHANGED
|
@@ -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 : {
|
|
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
|
|
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
|
|
24
|
-
exports.ValidComponentChildren = _ValidComponentChildren3
|
|
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
|
|
9
|
+
exports.default = splitComponentProps;
|
|
10
10
|
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? 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
|
|
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.
|
|
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
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"docs
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"lint": "
|
|
17
|
-
"
|
|
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": "^
|
|
48
|
-
"babel-loader": "^
|
|
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.
|
|
52
|
-
"babel-plugin-transform-
|
|
53
|
-
"babel-plugin-transform-
|
|
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-
|
|
65
|
+
"babel-preset-env": "^1.6.0",
|
|
56
66
|
"babel-preset-react": "^6.11.1",
|
|
57
|
-
"babel-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"eslint
|
|
71
|
-
"eslint-
|
|
72
|
-
"eslint-
|
|
73
|
-
"eslint-plugin-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"fs-
|
|
79
|
-
"
|
|
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": "^
|
|
93
|
-
"
|
|
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
|
-
"
|
|
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-
|
|
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
|
-
"
|
|
114
|
-
"
|
|
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.
|
|
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
|
}
|