@banyan_cloud/roots 1.0.154 → 1.0.155

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
@@ -10625,14 +10625,15 @@ var BreadCrumbs = function BreadCrumbs(props) {
10625
10625
  expand = _useState2[0],
10626
10626
  setExpand = _useState2[1];
10627
10627
  var href = '';
10628
- var CrumbsDOM = crumbs !== null && crumbs.map(function (crumb, index) {
10628
+ var crumbsList = crumbs === null || crumbs === void 0 ? void 0 : crumbs.slice(1);
10629
+ var CrumbsDOM = crumbsList !== null && crumbsList.map(function (crumb, index) {
10629
10630
  var title = crumb.title,
10630
10631
  value = crumb.value,
10631
10632
  path = crumb.path,
10632
10633
  search = crumb.search,
10633
10634
  icon = crumb.icon;
10634
- var active = index === crumbs.length - 1;
10635
- var showSeperator = index < crumbs.length - 1;
10635
+ var active = index === crumbsList.length - 1;
10636
+ var showSeperator = index < crumbsList.length - 1;
10636
10637
  href += "/".concat(path);
10637
10638
  return /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
10638
10639
  children: [/*#__PURE__*/jsxRuntime.jsxs(Link, {
@@ -10659,7 +10660,7 @@ var BreadCrumbs = function BreadCrumbs(props) {
10659
10660
  })]
10660
10661
  }, path);
10661
10662
  });
10662
- if (crumbs !== null && CrumbsDOM.length > maxItems && !expand) {
10663
+ if (crumbsList !== null && CrumbsDOM.length > maxItems && !expand) {
10663
10664
  CrumbsDOM.splice(itemsBeforeCollapse, CrumbsDOM.length - (itemsAfterCollapse + itemsBeforeCollapse), /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
10664
10665
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
10665
10666
  className: modules_651f50a9.expand,
@@ -10674,7 +10675,7 @@ var BreadCrumbs = function BreadCrumbs(props) {
10674
10675
  })]
10675
10676
  }, 'expand'));
10676
10677
  }
10677
- return (crumbs === null || crumbs === void 0 ? void 0 : crumbs.length) > 1 && /*#__PURE__*/jsxRuntime.jsxs("div", {
10678
+ return (crumbsList === null || crumbsList === void 0 ? void 0 : crumbsList.length) > 1 && /*#__PURE__*/jsxRuntime.jsxs("div", {
10678
10679
  className: classes(modules_651f50a9.root, modules_651f50a9["theme-".concat(theme)]),
10679
10680
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
10680
10681
  size: "auto",