1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
3 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
4 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
5 | import _inherits from 'babel-runtime/helpers/inherits';
|
6 | import classNames from 'classnames';
|
7 | import React from 'react';
|
8 |
|
9 | import BreadcrumbItem from './BreadcrumbItem';
|
10 | import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
11 |
|
12 | var Breadcrumb = function (_React$Component) {
|
13 | _inherits(Breadcrumb, _React$Component);
|
14 |
|
15 | function Breadcrumb() {
|
16 | _classCallCheck(this, Breadcrumb);
|
17 |
|
18 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
19 | }
|
20 |
|
21 | Breadcrumb.prototype.render = function render() {
|
22 | var _props = this.props,
|
23 | className = _props.className,
|
24 | props = _objectWithoutProperties(_props, ['className']);
|
25 |
|
26 | var _splitBsProps = splitBsProps(props),
|
27 | bsProps = _splitBsProps[0],
|
28 | elementProps = _splitBsProps[1];
|
29 |
|
30 | var classes = getClassSet(bsProps);
|
31 |
|
32 | return React.createElement('ol', _extends({}, elementProps, {
|
33 | role: 'navigation',
|
34 | 'aria-label': 'breadcrumbs',
|
35 | className: classNames(className, classes)
|
36 | }));
|
37 | };
|
38 |
|
39 | return Breadcrumb;
|
40 | }(React.Component);
|
41 |
|
42 | Breadcrumb.Item = BreadcrumbItem;
|
43 |
|
44 | export default bsClass('breadcrumb', Breadcrumb); |
\ | No newline at end of file |