41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
|
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
|
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
|
import classNames from 'classnames';
|
|
import React from 'react';
|
|
import BreadcrumbItem from './BreadcrumbItem';
|
|
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
|
|
|
var Breadcrumb =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inheritsLoose(Breadcrumb, _React$Component);
|
|
|
|
function Breadcrumb() {
|
|
return _React$Component.apply(this, arguments) || this;
|
|
}
|
|
|
|
var _proto = Breadcrumb.prototype;
|
|
|
|
_proto.render = function render() {
|
|
var _this$props = this.props,
|
|
className = _this$props.className,
|
|
props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
|
|
|
var _splitBsProps = splitBsProps(props),
|
|
bsProps = _splitBsProps[0],
|
|
elementProps = _splitBsProps[1];
|
|
|
|
var classes = getClassSet(bsProps);
|
|
return React.createElement("ol", _extends({}, elementProps, {
|
|
role: "navigation",
|
|
"aria-label": "breadcrumbs",
|
|
className: classNames(className, classes)
|
|
}));
|
|
};
|
|
|
|
return Breadcrumb;
|
|
}(React.Component);
|
|
|
|
Breadcrumb.Item = BreadcrumbItem;
|
|
export default bsClass('breadcrumb', Breadcrumb); |