You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
10 years ago
|
define(["exports", "module", "react", "classnames", "./BootstrapMixin"], function (exports, module, _react, _classnames, _BootstrapMixin) {
|
||
|
"use strict";
|
||
|
|
||
|
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
|
||
|
|
||
|
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; };
|
||
|
|
||
|
var React = _interopRequire(_react);
|
||
|
|
||
|
var classNames = _interopRequire(_classnames);
|
||
|
|
||
|
var BootstrapMixin = _interopRequire(_BootstrapMixin);
|
||
|
|
||
|
var Label = React.createClass({
|
||
|
displayName: "Label",
|
||
|
|
||
|
mixins: [BootstrapMixin],
|
||
|
|
||
|
getDefaultProps: function getDefaultProps() {
|
||
|
return {
|
||
|
bsClass: "label",
|
||
|
bsStyle: "default"
|
||
|
};
|
||
|
},
|
||
|
|
||
|
render: function render() {
|
||
|
var classes = this.getBsClassSet();
|
||
|
|
||
|
return React.createElement(
|
||
|
"span",
|
||
|
_extends({}, this.props, { className: classNames(this.props.className, classes) }),
|
||
|
this.props.children
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = Label;
|
||
|
});
|