react-bootstrap 0.32.0 → 0.32.4
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 +38 -0
- package/README.md +11 -7
- package/dist/react-bootstrap.js +13464 -13723
- package/dist/react-bootstrap.min.js +10 -18464
- package/es/Accordion.js +13 -16
- package/es/Alert.js +26 -31
- package/es/Badge.js +21 -31
- package/es/Breadcrumb.js +17 -20
- package/es/BreadcrumbItem.js +30 -30
- package/es/Button.js +23 -27
- package/es/ButtonGroup.js +20 -22
- package/es/ButtonToolbar.js +16 -18
- package/es/Carousel.js +120 -157
- package/es/CarouselCaption.js +18 -21
- package/es/CarouselItem.js +34 -33
- package/es/Checkbox.js +43 -54
- package/es/Clearfix.js +24 -24
- package/es/CloseButton.js +21 -30
- package/es/Col.js +42 -26
- package/es/Collapse.js +68 -68
- package/es/ControlLabel.js +19 -24
- package/es/Dropdown.js +93 -91
- package/es/DropdownButton.js +25 -35
- package/es/DropdownMenu.js +65 -65
- package/es/DropdownToggle.js +28 -40
- package/es/Fade.js +26 -29
- package/es/Form.js +22 -22
- package/es/FormControl.js +32 -33
- package/es/FormControlFeedback.js +21 -21
- package/es/FormControlStatic.js +18 -21
- package/es/FormGroup.js +27 -34
- package/es/Glyphicon.js +18 -19
- package/es/Grid.js +20 -22
- package/es/HelpBlock.js +17 -17
- package/es/Image.js +19 -24
- package/es/InputGroup.js +17 -18
- package/es/InputGroupAddon.js +17 -17
- package/es/InputGroupButton.js +17 -17
- package/es/Jumbotron.js +18 -21
- package/es/Label.js +21 -27
- package/es/ListGroup.js +24 -29
- package/es/ListGroupItem.js +30 -48
- package/es/Media.js +18 -22
- package/es/MediaBody.js +19 -22
- package/es/MediaHeading.js +18 -21
- package/es/MediaLeft.js +18 -19
- package/es/MediaList.js +17 -17
- package/es/MediaListItem.js +17 -17
- package/es/MediaRight.js +18 -19
- package/es/MenuItem.js +44 -49
- package/es/Modal.js +63 -74
- package/es/ModalBody.js +18 -21
- package/es/ModalDialog.js +31 -39
- package/es/ModalFooter.js +18 -21
- package/es/ModalHeader.js +25 -35
- package/es/ModalTitle.js +18 -21
- package/es/Nav.js +73 -92
- package/es/NavDropdown.js +40 -52
- package/es/NavItem.js +34 -38
- package/es/Navbar.js +62 -73
- package/es/NavbarBrand.js +20 -24
- package/es/NavbarCollapse.js +21 -28
- package/es/NavbarHeader.js +19 -20
- package/es/NavbarToggle.js +30 -38
- package/es/Overlay.js +21 -25
- package/es/OverlayTrigger.js +71 -68
- package/es/PageHeader.js +18 -26
- package/es/PageItem.js +0 -1
- package/es/Pager.js +23 -30
- package/es/PagerItem.js +36 -40
- package/es/Pagination.js +18 -24
- package/es/PaginationItem.js +47 -57
- package/es/Panel.js +51 -54
- package/es/PanelBody.js +18 -29
- package/es/PanelCollapse.js +20 -23
- package/es/PanelFooter.js +16 -23
- package/es/PanelGroup.js +44 -45
- package/es/PanelHeading.js +19 -28
- package/es/PanelTitle.js +22 -34
- package/es/PanelToggle.js +21 -24
- package/es/Popover.js +36 -46
- package/es/ProgressBar.js +59 -62
- package/es/Radio.js +43 -54
- package/es/ResponsiveEmbed.js +27 -32
- package/es/Row.js +18 -21
- package/es/SafeAnchor.js +32 -32
- package/es/SplitButton.js +33 -46
- package/es/SplitToggle.js +14 -13
- package/es/Tab.js +12 -18
- package/es/TabContainer.js +24 -30
- package/es/TabContent.js +36 -43
- package/es/TabPane.js +58 -68
- package/es/Table.js +25 -29
- package/es/Tabs.js +56 -71
- package/es/Thumbnail.js +34 -34
- package/es/ToggleButton.js +32 -37
- package/es/ToggleButtonGroup.js +45 -57
- package/es/Tooltip.js +33 -40
- package/es/Well.js +17 -17
- package/es/index.js +2 -0
- package/es/utils/PropTypes.js +13 -19
- package/es/utils/StyleConfig.js +0 -4
- package/es/utils/ValidComponentChildren.js +11 -20
- package/es/utils/bootstrapUtils.js +17 -31
- package/es/utils/createChainedFunction.js +2 -2
- package/es/utils/deprecationWarning.js +28 -30
- package/es/utils/splitComponentProps.js +1 -2
- package/lib/Accordion.js +23 -36
- package/lib/Alert.js +43 -65
- package/lib/Badge.js +36 -56
- package/lib/Breadcrumb.js +32 -47
- package/lib/BreadcrumbItem.js +48 -63
- package/lib/Button.js +49 -71
- package/lib/ButtonGroup.js +39 -57
- package/lib/ButtonToolbar.js +29 -42
- package/lib/Carousel.js +161 -214
- package/lib/CarouselCaption.js +32 -46
- package/lib/CarouselItem.js +54 -73
- package/lib/Checkbox.js +64 -87
- package/lib/Clearfix.js +45 -58
- package/lib/CloseButton.js +33 -50
- package/lib/Col.js +78 -73
- package/lib/Collapse.js +104 -125
- package/lib/ControlLabel.js +38 -59
- package/lib/Dropdown.js +153 -192
- package/lib/DropdownButton.js +44 -70
- package/lib/DropdownMenu.js +96 -120
- package/lib/DropdownToggle.js +48 -77
- package/lib/Fade.js +49 -68
- package/lib/Form.js +39 -52
- package/lib/FormControl.js +58 -79
- package/lib/FormControlFeedback.js +42 -54
- package/lib/FormControlStatic.js +32 -46
- package/lib/FormGroup.js +47 -67
- package/lib/Glyphicon.js +33 -46
- package/lib/Grid.js +36 -51
- package/lib/HelpBlock.js +29 -40
- package/lib/Image.js +37 -53
- package/lib/InputGroup.js +34 -49
- package/lib/InputGroupAddon.js +29 -40
- package/lib/InputGroupButton.js +29 -40
- package/lib/Jumbotron.js +32 -46
- package/lib/Label.js +35 -53
- package/lib/ListGroup.js +45 -61
- package/lib/ListGroupItem.js +55 -85
- package/lib/Media.js +43 -70
- package/lib/MediaBody.js +37 -55
- package/lib/MediaHeading.js +32 -46
- package/lib/MediaLeft.js +34 -48
- package/lib/MediaList.js +29 -40
- package/lib/MediaListItem.js +29 -40
- package/lib/MediaRight.js +34 -48
- package/lib/MenuItem.js +70 -92
- package/lib/Modal.js +130 -186
- package/lib/ModalBody.js +32 -46
- package/lib/ModalDialog.js +47 -69
- package/lib/ModalFooter.js +32 -46
- package/lib/ModalHeader.js +43 -70
- package/lib/ModalTitle.js +32 -46
- package/lib/Nav.js +122 -160
- package/lib/NavDropdown.js +63 -97
- package/lib/NavItem.js +54 -77
- package/lib/Navbar.js +115 -152
- package/lib/NavbarBrand.js +37 -55
- package/lib/NavbarCollapse.js +36 -57
- package/lib/NavbarHeader.js +33 -48
- package/lib/NavbarToggle.js +52 -77
- package/lib/Overlay.js +50 -75
- package/lib/OverlayTrigger.js +114 -129
- package/lib/PageHeader.js +30 -49
- package/lib/PageItem.js +9 -10
- package/lib/Pager.js +41 -63
- package/lib/PagerItem.js +55 -78
- package/lib/Pagination.js +32 -50
- package/lib/PaginationItem.js +67 -91
- package/lib/Panel.js +93 -127
- package/lib/PanelBody.js +35 -57
- package/lib/PanelCollapse.js +44 -56
- package/lib/PanelFooter.js +31 -48
- package/lib/PanelGroup.js +73 -88
- package/lib/PanelHeading.js +37 -59
- package/lib/PanelTitle.js +41 -68
- package/lib/PanelToggle.js +45 -66
- package/lib/Popover.js +59 -84
- package/lib/ProgressBar.js +86 -103
- package/lib/Radio.js +64 -87
- package/lib/ResponsiveEmbed.js +45 -63
- package/lib/Row.js +32 -46
- package/lib/SafeAnchor.js +53 -69
- package/lib/SplitButton.js +57 -90
- package/lib/SplitToggle.js +25 -34
- package/lib/Tab.js +32 -55
- package/lib/TabContainer.js +45 -61
- package/lib/TabContent.js +67 -87
- package/lib/TabPane.js +103 -131
- package/lib/Table.js +44 -59
- package/lib/Tabs.js +82 -119
- package/lib/Thumbnail.js +55 -67
- package/lib/ToggleButton.js +49 -68
- package/lib/ToggleButtonGroup.js +67 -104
- package/lib/Tooltip.js +55 -77
- package/lib/Well.js +30 -41
- package/lib/index.js +147 -214
- package/lib/utils/PropTypes.js +24 -31
- package/lib/utils/StyleConfig.js +13 -11
- package/lib/utils/ValidComponentChildren.js +34 -29
- package/lib/utils/bootstrapUtils.js +41 -52
- package/lib/utils/capitalize.js +2 -0
- package/lib/utils/createChainedFunction.js +8 -5
- package/lib/utils/deprecationWarning.js +37 -47
- package/lib/utils/index.js +11 -15
- package/lib/utils/splitComponentProps.js +5 -10
- package/package.json +58 -50
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _extends from
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
|
-
|
|
10
7
|
import Glyphicon from './Glyphicon';
|
|
11
8
|
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
12
|
-
|
|
13
9
|
var defaultProps = {
|
|
14
10
|
bsRole: 'feedback'
|
|
15
11
|
};
|
|
16
|
-
|
|
17
12
|
var contextTypes = {
|
|
18
13
|
$bs_formGroup: PropTypes.object
|
|
19
14
|
};
|
|
20
15
|
|
|
21
|
-
var FormControlFeedback =
|
|
22
|
-
|
|
16
|
+
var FormControlFeedback =
|
|
17
|
+
/*#__PURE__*/
|
|
18
|
+
function (_React$Component) {
|
|
19
|
+
_inheritsLoose(FormControlFeedback, _React$Component);
|
|
23
20
|
|
|
24
21
|
function FormControlFeedback() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
22
|
+
return _React$Component.apply(this, arguments) || this;
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
FormControlFeedback.prototype
|
|
25
|
+
var _proto = FormControlFeedback.prototype;
|
|
26
|
+
|
|
27
|
+
_proto.getGlyph = function getGlyph(validationState) {
|
|
31
28
|
switch (validationState) {
|
|
32
29
|
case 'success':
|
|
33
30
|
return 'ok';
|
|
31
|
+
|
|
34
32
|
case 'warning':
|
|
35
33
|
return 'warning-sign';
|
|
34
|
+
|
|
36
35
|
case 'error':
|
|
37
36
|
return 'remove';
|
|
37
|
+
|
|
38
38
|
default:
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
_proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) {
|
|
44
44
|
var glyph = this.getGlyph(formGroup && formGroup.validationState);
|
|
45
|
+
|
|
45
46
|
if (!glyph) {
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
@@ -52,11 +53,11 @@ var FormControlFeedback = function (_React$Component) {
|
|
|
52
53
|
}));
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
var
|
|
57
|
-
className =
|
|
58
|
-
children =
|
|
59
|
-
props =
|
|
56
|
+
_proto.render = function render() {
|
|
57
|
+
var _this$props = this.props,
|
|
58
|
+
className = _this$props.className,
|
|
59
|
+
children = _this$props.children,
|
|
60
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
|
60
61
|
|
|
61
62
|
var _splitBsProps = splitBsProps(props),
|
|
62
63
|
bsProps = _splitBsProps[0],
|
|
@@ -79,5 +80,4 @@ var FormControlFeedback = function (_React$Component) {
|
|
|
79
80
|
|
|
80
81
|
FormControlFeedback.defaultProps = defaultProps;
|
|
81
82
|
FormControlFeedback.contextTypes = contextTypes;
|
|
82
|
-
|
|
83
83
|
export default bsClass('form-control-feedback', FormControlFeedback);
|
package/es/FormControlStatic.js
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
9
|
-
|
|
10
7
|
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
11
|
-
|
|
12
8
|
var propTypes = {
|
|
13
9
|
componentClass: elementType
|
|
14
10
|
};
|
|
15
|
-
|
|
16
11
|
var defaultProps = {
|
|
17
12
|
componentClass: 'p'
|
|
18
13
|
};
|
|
19
14
|
|
|
20
|
-
var FormControlStatic =
|
|
21
|
-
|
|
15
|
+
var FormControlStatic =
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
function (_React$Component) {
|
|
18
|
+
_inheritsLoose(FormControlStatic, _React$Component);
|
|
22
19
|
|
|
23
20
|
function FormControlStatic() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
21
|
+
return _React$Component.apply(this, arguments) || this;
|
|
27
22
|
}
|
|
28
23
|
|
|
29
|
-
FormControlStatic.prototype
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
var _proto = FormControlStatic.prototype;
|
|
25
|
+
|
|
26
|
+
_proto.render = function render() {
|
|
27
|
+
var _this$props = this.props,
|
|
28
|
+
Component = _this$props.componentClass,
|
|
29
|
+
className = _this$props.className,
|
|
30
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
|
34
31
|
|
|
35
32
|
var _splitBsProps = splitBsProps(props),
|
|
36
33
|
bsProps = _splitBsProps[0],
|
|
37
34
|
elementProps = _splitBsProps[1];
|
|
38
35
|
|
|
39
36
|
var classes = getClassSet(bsProps);
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
return React.createElement(Component, _extends({}, elementProps, {
|
|
38
|
+
className: classNames(className, classes)
|
|
39
|
+
}));
|
|
42
40
|
};
|
|
43
41
|
|
|
44
42
|
return FormControlStatic;
|
|
@@ -46,5 +44,4 @@ var FormControlStatic = function (_React$Component) {
|
|
|
46
44
|
|
|
47
45
|
FormControlStatic.propTypes = propTypes;
|
|
48
46
|
FormControlStatic.defaultProps = defaultProps;
|
|
49
|
-
|
|
50
47
|
export default bsClass('form-control-static', FormControlStatic);
|
package/es/FormGroup.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
|
-
|
|
10
7
|
import { bsClass, bsSizes, getClassSet, splitBsPropsAndOmit } from './utils/bootstrapUtils';
|
|
11
8
|
import { Size } from './utils/StyleConfig';
|
|
12
9
|
import ValidComponentChildren from './utils/ValidComponentChildren';
|
|
13
|
-
|
|
14
10
|
var propTypes = {
|
|
15
11
|
/**
|
|
16
12
|
* Sets `id` on `<FormControl>` and `htmlFor` on `<FormGroup.Label>`.
|
|
@@ -18,26 +14,25 @@ var propTypes = {
|
|
|
18
14
|
controlId: PropTypes.string,
|
|
19
15
|
validationState: PropTypes.oneOf(['success', 'warning', 'error', null])
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
var childContextTypes = {
|
|
23
18
|
$bs_formGroup: PropTypes.object.isRequired
|
|
24
19
|
};
|
|
25
20
|
|
|
26
|
-
var FormGroup =
|
|
27
|
-
|
|
21
|
+
var FormGroup =
|
|
22
|
+
/*#__PURE__*/
|
|
23
|
+
function (_React$Component) {
|
|
24
|
+
_inheritsLoose(FormGroup, _React$Component);
|
|
28
25
|
|
|
29
26
|
function FormGroup() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
27
|
+
return _React$Component.apply(this, arguments) || this;
|
|
33
28
|
}
|
|
34
29
|
|
|
35
|
-
FormGroup.prototype
|
|
36
|
-
var _props = this.props,
|
|
37
|
-
controlId = _props.controlId,
|
|
38
|
-
validationState = _props.validationState;
|
|
39
|
-
|
|
30
|
+
var _proto = FormGroup.prototype;
|
|
40
31
|
|
|
32
|
+
_proto.getChildContext = function getChildContext() {
|
|
33
|
+
var _this$props = this.props,
|
|
34
|
+
controlId = _this$props.controlId,
|
|
35
|
+
validationState = _this$props.validationState;
|
|
41
36
|
return {
|
|
42
37
|
$bs_formGroup: {
|
|
43
38
|
controlId: controlId,
|
|
@@ -46,20 +41,20 @@ var FormGroup = function (_React$Component) {
|
|
|
46
41
|
};
|
|
47
42
|
};
|
|
48
43
|
|
|
49
|
-
|
|
50
|
-
var
|
|
44
|
+
_proto.hasFeedback = function hasFeedback(children) {
|
|
45
|
+
var _this = this;
|
|
51
46
|
|
|
52
47
|
return ValidComponentChildren.some(children, function (child) {
|
|
53
|
-
return child.props.bsRole === 'feedback' || child.props.children &&
|
|
48
|
+
return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children);
|
|
54
49
|
});
|
|
55
50
|
};
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
validationState =
|
|
60
|
-
className =
|
|
61
|
-
children =
|
|
62
|
-
props =
|
|
52
|
+
_proto.render = function render() {
|
|
53
|
+
var _this$props2 = this.props,
|
|
54
|
+
validationState = _this$props2.validationState,
|
|
55
|
+
className = _this$props2.className,
|
|
56
|
+
children = _this$props2.children,
|
|
57
|
+
props = _objectWithoutPropertiesLoose(_this$props2, ["validationState", "className", "children"]);
|
|
63
58
|
|
|
64
59
|
var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['controlId']),
|
|
65
60
|
bsProps = _splitBsPropsAndOmit[0],
|
|
@@ -68,15 +63,14 @@ var FormGroup = function (_React$Component) {
|
|
|
68
63
|
var classes = _extends({}, getClassSet(bsProps), {
|
|
69
64
|
'has-feedback': this.hasFeedback(children)
|
|
70
65
|
});
|
|
66
|
+
|
|
71
67
|
if (validationState) {
|
|
72
|
-
classes[
|
|
68
|
+
classes["has-" + validationState] = true;
|
|
73
69
|
}
|
|
74
70
|
|
|
75
|
-
return React.createElement(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
children
|
|
79
|
-
);
|
|
71
|
+
return React.createElement("div", _extends({}, elementProps, {
|
|
72
|
+
className: classNames(className, classes)
|
|
73
|
+
}), children);
|
|
80
74
|
};
|
|
81
75
|
|
|
82
76
|
return FormGroup;
|
|
@@ -84,5 +78,4 @@ var FormGroup = function (_React$Component) {
|
|
|
84
78
|
|
|
85
79
|
FormGroup.propTypes = propTypes;
|
|
86
80
|
FormGroup.childContextTypes = childContextTypes;
|
|
87
|
-
|
|
88
81
|
export default bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup));
|
package/es/Glyphicon.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
|
-
|
|
10
7
|
import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils';
|
|
11
|
-
|
|
12
8
|
var propTypes = {
|
|
13
9
|
/**
|
|
14
10
|
* An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons
|
|
@@ -16,22 +12,24 @@ var propTypes = {
|
|
|
16
12
|
glyph: PropTypes.string.isRequired
|
|
17
13
|
};
|
|
18
14
|
|
|
19
|
-
var Glyphicon =
|
|
20
|
-
|
|
15
|
+
var Glyphicon =
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
function (_React$Component) {
|
|
18
|
+
_inheritsLoose(Glyphicon, _React$Component);
|
|
21
19
|
|
|
22
20
|
function Glyphicon() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
21
|
+
return _React$Component.apply(this, arguments) || this;
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
Glyphicon.prototype
|
|
24
|
+
var _proto = Glyphicon.prototype;
|
|
25
|
+
|
|
26
|
+
_proto.render = function render() {
|
|
29
27
|
var _extends2;
|
|
30
28
|
|
|
31
|
-
var
|
|
32
|
-
glyph =
|
|
33
|
-
className =
|
|
34
|
-
props =
|
|
29
|
+
var _this$props = this.props,
|
|
30
|
+
glyph = _this$props.glyph,
|
|
31
|
+
className = _this$props.className,
|
|
32
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]);
|
|
35
33
|
|
|
36
34
|
var _splitBsProps = splitBsProps(props),
|
|
37
35
|
bsProps = _splitBsProps[0],
|
|
@@ -39,12 +37,13 @@ var Glyphicon = function (_React$Component) {
|
|
|
39
37
|
|
|
40
38
|
var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2));
|
|
41
39
|
|
|
42
|
-
return React.createElement(
|
|
40
|
+
return React.createElement("span", _extends({}, elementProps, {
|
|
41
|
+
className: classNames(className, classes)
|
|
42
|
+
}));
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
return Glyphicon;
|
|
46
46
|
}(React.Component);
|
|
47
47
|
|
|
48
48
|
Glyphicon.propTypes = propTypes;
|
|
49
|
-
|
|
50
49
|
export default bsClass('glyphicon', Glyphicon);
|
package/es/Grid.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
7
|
import elementType from 'prop-types-extra/lib/elementType';
|
|
10
|
-
|
|
11
8
|
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
|
|
12
|
-
|
|
13
9
|
var propTypes = {
|
|
14
10
|
/**
|
|
15
11
|
* Turn any fixed-width grid layout into a full-width layout by this property.
|
|
@@ -17,40 +13,43 @@ var propTypes = {
|
|
|
17
13
|
* Adds `container-fluid` class.
|
|
18
14
|
*/
|
|
19
15
|
fluid: PropTypes.bool,
|
|
16
|
+
|
|
20
17
|
/**
|
|
21
18
|
* You can use a custom element for this component
|
|
22
19
|
*/
|
|
23
20
|
componentClass: elementType
|
|
24
21
|
};
|
|
25
|
-
|
|
26
22
|
var defaultProps = {
|
|
27
23
|
componentClass: 'div',
|
|
28
24
|
fluid: false
|
|
29
25
|
};
|
|
30
26
|
|
|
31
|
-
var Grid =
|
|
32
|
-
|
|
27
|
+
var Grid =
|
|
28
|
+
/*#__PURE__*/
|
|
29
|
+
function (_React$Component) {
|
|
30
|
+
_inheritsLoose(Grid, _React$Component);
|
|
33
31
|
|
|
34
32
|
function Grid() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
33
|
+
return _React$Component.apply(this, arguments) || this;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
|
-
Grid.prototype
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
var _proto = Grid.prototype;
|
|
37
|
+
|
|
38
|
+
_proto.render = function render() {
|
|
39
|
+
var _this$props = this.props,
|
|
40
|
+
fluid = _this$props.fluid,
|
|
41
|
+
Component = _this$props.componentClass,
|
|
42
|
+
className = _this$props.className,
|
|
43
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["fluid", "componentClass", "className"]);
|
|
46
44
|
|
|
47
45
|
var _splitBsProps = splitBsProps(props),
|
|
48
46
|
bsProps = _splitBsProps[0],
|
|
49
47
|
elementProps = _splitBsProps[1];
|
|
50
48
|
|
|
51
49
|
var classes = prefix(bsProps, fluid && 'fluid');
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
return React.createElement(Component, _extends({}, elementProps, {
|
|
51
|
+
className: classNames(className, classes)
|
|
52
|
+
}));
|
|
54
53
|
};
|
|
55
54
|
|
|
56
55
|
return Grid;
|
|
@@ -58,5 +57,4 @@ var Grid = function (_React$Component) {
|
|
|
58
57
|
|
|
59
58
|
Grid.propTypes = propTypes;
|
|
60
59
|
Grid.defaultProps = defaultProps;
|
|
61
|
-
|
|
62
60
|
export default bsClass('container', Grid);
|
package/es/HelpBlock.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
|
-
|
|
9
6
|
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
10
7
|
|
|
11
|
-
var HelpBlock =
|
|
12
|
-
|
|
8
|
+
var HelpBlock =
|
|
9
|
+
/*#__PURE__*/
|
|
10
|
+
function (_React$Component) {
|
|
11
|
+
_inheritsLoose(HelpBlock, _React$Component);
|
|
13
12
|
|
|
14
13
|
function HelpBlock() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
14
|
+
return _React$Component.apply(this, arguments) || this;
|
|
18
15
|
}
|
|
19
16
|
|
|
20
|
-
HelpBlock.prototype
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
var _proto = HelpBlock.prototype;
|
|
18
|
+
|
|
19
|
+
_proto.render = function render() {
|
|
20
|
+
var _this$props = this.props,
|
|
21
|
+
className = _this$props.className,
|
|
22
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
24
23
|
|
|
25
24
|
var _splitBsProps = splitBsProps(props),
|
|
26
25
|
bsProps = _splitBsProps[0],
|
|
27
26
|
elementProps = _splitBsProps[1];
|
|
28
27
|
|
|
29
28
|
var classes = getClassSet(bsProps);
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return React.createElement("span", _extends({}, elementProps, {
|
|
30
|
+
className: classNames(className, classes)
|
|
31
|
+
}));
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
return HelpBlock;
|
package/es/Image.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
|
-
|
|
10
7
|
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
|
|
11
|
-
|
|
12
8
|
var propTypes = {
|
|
13
9
|
/**
|
|
14
10
|
* Sets image as responsive image
|
|
@@ -30,7 +26,6 @@ var propTypes = {
|
|
|
30
26
|
*/
|
|
31
27
|
thumbnail: PropTypes.bool
|
|
32
28
|
};
|
|
33
|
-
|
|
34
29
|
var defaultProps = {
|
|
35
30
|
responsive: false,
|
|
36
31
|
rounded: false,
|
|
@@ -38,33 +33,34 @@ var defaultProps = {
|
|
|
38
33
|
thumbnail: false
|
|
39
34
|
};
|
|
40
35
|
|
|
41
|
-
var Image =
|
|
42
|
-
|
|
36
|
+
var Image =
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
function (_React$Component) {
|
|
39
|
+
_inheritsLoose(Image, _React$Component);
|
|
43
40
|
|
|
44
41
|
function Image() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
42
|
+
return _React$Component.apply(this, arguments) || this;
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
Image.prototype
|
|
45
|
+
var _proto = Image.prototype;
|
|
46
|
+
|
|
47
|
+
_proto.render = function render() {
|
|
51
48
|
var _classes;
|
|
52
49
|
|
|
53
|
-
var
|
|
54
|
-
responsive =
|
|
55
|
-
rounded =
|
|
56
|
-
circle =
|
|
57
|
-
thumbnail =
|
|
58
|
-
className =
|
|
59
|
-
props =
|
|
50
|
+
var _this$props = this.props,
|
|
51
|
+
responsive = _this$props.responsive,
|
|
52
|
+
rounded = _this$props.rounded,
|
|
53
|
+
circle = _this$props.circle,
|
|
54
|
+
thumbnail = _this$props.thumbnail,
|
|
55
|
+
className = _this$props.className,
|
|
56
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["responsive", "rounded", "circle", "thumbnail", "className"]);
|
|
60
57
|
|
|
61
58
|
var _splitBsProps = splitBsProps(props),
|
|
62
59
|
bsProps = _splitBsProps[0],
|
|
63
60
|
elementProps = _splitBsProps[1];
|
|
64
61
|
|
|
65
62
|
var classes = (_classes = {}, _classes[prefix(bsProps, 'responsive')] = responsive, _classes[prefix(bsProps, 'rounded')] = rounded, _classes[prefix(bsProps, 'circle')] = circle, _classes[prefix(bsProps, 'thumbnail')] = thumbnail, _classes);
|
|
66
|
-
|
|
67
|
-
return React.createElement('img', _extends({}, elementProps, {
|
|
63
|
+
return React.createElement("img", _extends({}, elementProps, {
|
|
68
64
|
className: classNames(className, classes)
|
|
69
65
|
}));
|
|
70
66
|
};
|
|
@@ -74,5 +70,4 @@ var Image = function (_React$Component) {
|
|
|
74
70
|
|
|
75
71
|
Image.propTypes = propTypes;
|
|
76
72
|
Image.defaultProps = defaultProps;
|
|
77
|
-
|
|
78
73
|
export default bsClass('img', Image);
|
package/es/InputGroup.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import _extends from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
5
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
1
|
+
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
6
4
|
import classNames from 'classnames';
|
|
7
5
|
import React from 'react';
|
|
8
|
-
|
|
9
6
|
import InputGroupAddon from './InputGroupAddon';
|
|
10
7
|
import InputGroupButton from './InputGroupButton';
|
|
11
8
|
import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
12
9
|
import { Size } from './utils/StyleConfig';
|
|
13
10
|
|
|
14
|
-
var InputGroup =
|
|
15
|
-
|
|
11
|
+
var InputGroup =
|
|
12
|
+
/*#__PURE__*/
|
|
13
|
+
function (_React$Component) {
|
|
14
|
+
_inheritsLoose(InputGroup, _React$Component);
|
|
16
15
|
|
|
17
16
|
function InputGroup() {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
17
|
+
return _React$Component.apply(this, arguments) || this;
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
InputGroup.prototype
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
var _proto = InputGroup.prototype;
|
|
21
|
+
|
|
22
|
+
_proto.render = function render() {
|
|
23
|
+
var _this$props = this.props,
|
|
24
|
+
className = _this$props.className,
|
|
25
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
27
26
|
|
|
28
27
|
var _splitBsProps = splitBsProps(props),
|
|
29
28
|
bsProps = _splitBsProps[0],
|
|
30
29
|
elementProps = _splitBsProps[1];
|
|
31
30
|
|
|
32
31
|
var classes = getClassSet(bsProps);
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
return React.createElement("span", _extends({}, elementProps, {
|
|
33
|
+
className: classNames(className, classes)
|
|
34
|
+
}));
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
return InputGroup;
|
|
@@ -39,5 +39,4 @@ var InputGroup = function (_React$Component) {
|
|
|
39
39
|
|
|
40
40
|
InputGroup.Addon = InputGroupAddon;
|
|
41
41
|
InputGroup.Button = InputGroupButton;
|
|
42
|
-
|
|
43
42
|
export default bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup));
|