@redsift/design-system 9.4.0-muiv5 → 9.4.1-muiv5
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/index.d.ts +0 -1
- package/index.js +14 -16
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1008,7 +1008,6 @@ interface SideNavigationMenuItemProps extends ComponentProps<'a'> {
|
|
|
1008
1008
|
isSecondLevel?: boolean;
|
|
1009
1009
|
}
|
|
1010
1010
|
type StyledSideNavigationMenuItemProps = Omit<SideNavigationMenuItemProps, 'isCurrent' | 'isDisabled' | 'isSecondLevel' | 'hasBorder'> & {
|
|
1011
|
-
$hasBorder: SideNavigationMenuItemProps['hasBorder'];
|
|
1012
1011
|
$isCurrent: SideNavigationMenuItemProps['isCurrent'];
|
|
1013
1012
|
$isDisabled: SideNavigationMenuItemProps['isDisabled'];
|
|
1014
1013
|
$isSecondLevel: SideNavigationMenuItemProps['isSecondLevel'];
|
package/index.js
CHANGED
|
@@ -2528,6 +2528,14 @@ const StyledSideNavigationMenuItemIndicator = styled.div`
|
|
|
2528
2528
|
border-radius: 0px 4px 4px 0px;
|
|
2529
2529
|
background-color: var(--redsift-color-neutral-black);
|
|
2530
2530
|
`;
|
|
2531
|
+
const StyledSideNavigationMenuItemBorder = styled.div`
|
|
2532
|
+
position: relative;
|
|
2533
|
+
width: 100%;
|
|
2534
|
+
height: 1px;
|
|
2535
|
+
background-color: var(--redsift-color-neutral-lightgrey);
|
|
2536
|
+
margin-left: 62px;
|
|
2537
|
+
margin-top: -1px;
|
|
2538
|
+
`;
|
|
2531
2539
|
|
|
2532
2540
|
/**
|
|
2533
2541
|
* Component style.
|
|
@@ -2621,7 +2629,6 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2621
2629
|
transition: opacity 300ms ease-out;
|
|
2622
2630
|
opacity: ${$variant === SideNavigationMenuBarVariant.shrinked ? '0' : '1'};
|
|
2623
2631
|
overflow: hidden;
|
|
2624
|
-
text-overflow: ellipsis;
|
|
2625
2632
|
white-space: nowrap;
|
|
2626
2633
|
}
|
|
2627
2634
|
`;
|
|
@@ -2655,8 +2662,8 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2655
2662
|
background-color: var(--redsift-side-navigation-color-menu-item-background-secondary);
|
|
2656
2663
|
font-size: var(--redsift-typography-caption-font-size);
|
|
2657
2664
|
padding-bottom: 7px;
|
|
2658
|
-
|
|
2659
|
-
|
|
2665
|
+
padding-left: 62px;
|
|
2666
|
+
padding-right: 8px;
|
|
2660
2667
|
padding-top: 7px;
|
|
2661
2668
|
border-radius: 0;
|
|
2662
2669
|
|
|
@@ -2667,15 +2674,6 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2667
2674
|
}
|
|
2668
2675
|
`;
|
|
2669
2676
|
}}
|
|
2670
|
-
|
|
2671
|
-
${_ref6 => {
|
|
2672
|
-
let {
|
|
2673
|
-
$hasBorder
|
|
2674
|
-
} = _ref6;
|
|
2675
|
-
return $hasBorder ? css`
|
|
2676
|
-
border-bottom: 1px solid var(--redsift-color-neutral-lightgrey);
|
|
2677
|
-
` : '';
|
|
2678
|
-
}}
|
|
2679
2677
|
`;
|
|
2680
2678
|
|
|
2681
2679
|
/**
|
|
@@ -2863,13 +2861,15 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2863
2861
|
}, [menuItems]);
|
|
2864
2862
|
const sideNavigationVariant = sideNavigationMenuBarContext === null || sideNavigationMenuBarContext === void 0 ? void 0 : sideNavigationMenuBarContext.sideNavigationMenuBarVariant;
|
|
2865
2863
|
return /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
2864
|
+
flexDirection: "column",
|
|
2865
|
+
gap: "0px"
|
|
2866
|
+
}, /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
2866
2867
|
flexDirection: "row",
|
|
2867
2868
|
gap: "0px"
|
|
2868
2869
|
}, !isSecondLevel ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicatorContainer, null, isCurrent ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicator, null) : null) : null, /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItem, _extends$1({
|
|
2869
2870
|
as: as,
|
|
2870
2871
|
role: "menuitem"
|
|
2871
2872
|
}, forwardedProps, {
|
|
2872
|
-
$hasBorder: hasBorder,
|
|
2873
2873
|
$isCurrent: isCurrent,
|
|
2874
2874
|
$isDisabled: isDisabled,
|
|
2875
2875
|
$isSecondLevel: isSecondLevel,
|
|
@@ -2894,7 +2894,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2894
2894
|
}, children), badge ? /*#__PURE__*/React__default.createElement(Badge, _extends$1({
|
|
2895
2895
|
variant: BadgeVariant.standard,
|
|
2896
2896
|
color: "error"
|
|
2897
|
-
}, badgeProps), badge) : null));
|
|
2897
|
+
}, badgeProps), badge) : null)), isSecondLevel && hasBorder ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemBorder, null) : null);
|
|
2898
2898
|
});
|
|
2899
2899
|
SideNavigationMenuItem.className = CLASSNAME$F;
|
|
2900
2900
|
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$F;
|
|
@@ -2991,10 +2991,8 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
2991
2991
|
|
|
2992
2992
|
.content {
|
|
2993
2993
|
transition: opacity 300ms ease-out;
|
|
2994
|
-
max-width: 140px;
|
|
2995
2994
|
opacity: ${$variant === SideNavigationMenuBarVariant.shrinked ? '0' : '1'};
|
|
2996
2995
|
overflow: hidden;
|
|
2997
|
-
text-overflow: ellipsis;
|
|
2998
2996
|
white-space: nowrap;
|
|
2999
2997
|
}
|
|
3000
2998
|
`;
|