@banyan_cloud/roots 1.0.155 → 1.0.157

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/dist/cjs/index.js CHANGED
@@ -10612,6 +10612,7 @@ Link.defaultProps = _objectSpread2(_objectSpread2({}, Text.defaultProps), {}, {
10612
10612
  });
10613
10613
 
10614
10614
  var BreadCrumbs = function BreadCrumbs(props) {
10615
+ var _crumbs$;
10615
10616
  var crumbs = props.crumbs,
10616
10617
  maxItems = props.maxItems,
10617
10618
  itemsBeforeCollapse = props.itemsBeforeCollapse,
@@ -10624,7 +10625,7 @@ var BreadCrumbs = function BreadCrumbs(props) {
10624
10625
  _useState2 = _slicedToArray(_useState, 2),
10625
10626
  expand = _useState2[0],
10626
10627
  setExpand = _useState2[1];
10627
- var href = '';
10628
+ var href = "/".concat(crumbs === null || crumbs === void 0 || (_crumbs$ = crumbs[0]) === null || _crumbs$ === void 0 ? void 0 : _crumbs$.path);
10628
10629
  var crumbsList = crumbs === null || crumbs === void 0 ? void 0 : crumbs.slice(1);
10629
10630
  var CrumbsDOM = crumbsList !== null && crumbsList.map(function (crumb, index) {
10630
10631
  var title = crumb.title,
@@ -10675,7 +10676,7 @@ var BreadCrumbs = function BreadCrumbs(props) {
10675
10676
  })]
10676
10677
  }, 'expand'));
10677
10678
  }
10678
- return (crumbsList === null || crumbsList === void 0 ? void 0 : crumbsList.length) > 1 && /*#__PURE__*/jsxRuntime.jsxs("div", {
10679
+ return (crumbs === null || crumbs === void 0 ? void 0 : crumbs.length) > 1 && /*#__PURE__*/jsxRuntime.jsxs("div", {
10679
10680
  className: classes(modules_651f50a9.root, modules_651f50a9["theme-".concat(theme)]),
10680
10681
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
10681
10682
  size: "auto",