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";
|
4 | import classNames from 'classnames';
|
5 | import React from 'react';
|
6 | import BreadcrumbItem from './BreadcrumbItem';
|
7 | import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
8 |
|
9 | var Breadcrumb =
|
10 |
|
11 | function (_React$Component) {
|
12 | _inheritsLoose(Breadcrumb, _React$Component);
|
13 |
|
14 | function Breadcrumb() {
|
15 | return _React$Component.apply(this, arguments) || this;
|
16 | }
|
17 |
|
18 | var _proto = Breadcrumb.prototype;
|
19 |
|
20 | _proto.render = function render() {
|
21 | var _this$props = this.props,
|
22 | className = _this$props.className,
|
23 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
24 |
|
25 | var _splitBsProps = splitBsProps(props),
|
26 | bsProps = _splitBsProps[0],
|
27 | elementProps = _splitBsProps[1];
|
28 |
|
29 | var classes = getClassSet(bsProps);
|
30 | return React.createElement("ol", _extends({}, elementProps, {
|
31 | role: "navigation",
|
32 | "aria-label": "breadcrumbs",
|
33 | className: classNames(className, classes)
|
34 | }));
|
35 | };
|
36 |
|
37 | return Breadcrumb;
|
38 | }(React.Component);
|
39 |
|
40 | Breadcrumb.Item = BreadcrumbItem;
|
41 | export default bsClass('breadcrumb', Breadcrumb); |
\ | No newline at end of file |