@moderneinc/design-system-components 7.7.0-alpha.6001df → 7.7.0-alpha.734c3e

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/index.js CHANGED
@@ -703,14 +703,17 @@ const ModBanner = ({
703
703
  };
704
704
  ModBanner.displayName = "ModBanner";
705
705
 
706
+ const ITEM = `.${Breadcrumbs.breadcrumbsClasses.li}`;
707
+ const FULL_TRAIL = `.${Breadcrumbs.breadcrumbsClasses.ol}:not(:has(> li > .${ButtonBase.buttonBaseClasses.root})):has(> ${ITEM} ~ ${ITEM} ~ ${ITEM})`;
706
708
  const StyledBreadcrumbs = styles.styled(Breadcrumbs)(({ theme }) => ({
707
709
  [`& .${Breadcrumbs.breadcrumbsClasses.separator}`]: {
708
710
  margin: 0,
709
711
  color: designSystemTokens.semanticColors.color.icon.utility
710
712
  },
711
713
  [`& .${Breadcrumbs.breadcrumbsClasses.ol}`]: {
712
- gap: designSystemTokens.spacing.spacing_1,
713
- // An expanded trail that wraps keeps its lines' hit areas apart.
714
+ gap: designSystemTokens.spacing.spacing_1
715
+ },
716
+ [`& ${FULL_TRAIL}`]: {
714
717
  [theme.breakpoints.down("md")]: { rowGap: designSystemTokens.spacing.spacing_4 }
715
718
  },
716
719
  // The "…" that expands a collapsed trail.
@@ -760,7 +763,7 @@ function ModBreadcrumbs({ children, className }) {
760
763
  return /* @__PURE__ */ jsxRuntime.jsx(
761
764
  StyledBreadcrumbs,
762
765
  {
763
- ...compact && { maxItems: 2, itemsBeforeCollapse: 0, itemsAfterCollapse: 2 },
766
+ ...compact && { maxItems: 3, itemsBeforeCollapse: 0, itemsAfterCollapse: 2 },
764
767
  separator: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 10.67, color: designSystemTokens.semanticColors.color.icon.utility }),
765
768
  className,
766
769
  "aria-label": "breadcrumb",