@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.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -701,14 +701,17 @@ const ModBanner = ({
|
|
|
701
701
|
};
|
|
702
702
|
ModBanner.displayName = "ModBanner";
|
|
703
703
|
|
|
704
|
+
const ITEM = `.${breadcrumbsClasses.li}`;
|
|
705
|
+
const FULL_TRAIL = `.${breadcrumbsClasses.ol}:not(:has(> li > .${buttonBaseClasses.root})):has(> ${ITEM} ~ ${ITEM} ~ ${ITEM})`;
|
|
704
706
|
const StyledBreadcrumbs = styled(Breadcrumbs)(({ theme }) => ({
|
|
705
707
|
[`& .${breadcrumbsClasses.separator}`]: {
|
|
706
708
|
margin: 0,
|
|
707
709
|
color: semanticColors.color.icon.utility
|
|
708
710
|
},
|
|
709
711
|
[`& .${breadcrumbsClasses.ol}`]: {
|
|
710
|
-
gap: spacing.spacing_1
|
|
711
|
-
|
|
712
|
+
gap: spacing.spacing_1
|
|
713
|
+
},
|
|
714
|
+
[`& ${FULL_TRAIL}`]: {
|
|
712
715
|
[theme.breakpoints.down("md")]: { rowGap: spacing.spacing_4 }
|
|
713
716
|
},
|
|
714
717
|
// The "…" that expands a collapsed trail.
|
|
@@ -758,7 +761,7 @@ function ModBreadcrumbs({ children, className }) {
|
|
|
758
761
|
return /* @__PURE__ */ jsx(
|
|
759
762
|
StyledBreadcrumbs,
|
|
760
763
|
{
|
|
761
|
-
...compact && { maxItems:
|
|
764
|
+
...compact && { maxItems: 3, itemsBeforeCollapse: 0, itemsAfterCollapse: 2 },
|
|
762
765
|
separator: /* @__PURE__ */ jsx(ChevronRight, { size: 10.67, color: semanticColors.color.icon.utility }),
|
|
763
766
|
className,
|
|
764
767
|
"aria-label": "breadcrumb",
|