@redsift/design-system 9.0.0-alpha.3 → 9.0.0-alpha.5

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.js CHANGED
@@ -1464,7 +1464,8 @@ const DEFAULT_PROPS$L = {
1464
1464
  * For a semantic button that looks like a link, please use the LinkButton component.
1465
1465
  */
1466
1466
  const Button = /*#__PURE__*/forwardRef((props, ref) => {
1467
- const buttonRef = ref || useRef();
1467
+ const _ref = useRef();
1468
+ const buttonRef = ref || _ref;
1468
1469
  const {
1469
1470
  children,
1470
1471
  className,
@@ -2213,6 +2214,7 @@ const StyledAppSidePanel = styled.div`
2213
2214
  align-items: center;
2214
2215
  background-color: var(--redsift-side-navigation-color-background);
2215
2216
  border-right: 4px solid #e1e1e1;
2217
+ box-sizing: content-box;
2216
2218
  flex-direction: column;
2217
2219
  height: 100%;
2218
2220
  left: 0px;
@@ -2568,10 +2570,11 @@ const StyledSideNavigationMenuItem = styled.a`
2568
2570
  */
2569
2571
 
2570
2572
  background-color: var(--redsift-side-navigation-color-background);
2571
- height: 30px;
2573
+ height: 38px;
2572
2574
  margin-bottom: 16px;
2575
+ margin-left: -4px;
2573
2576
  transition: padding 300ms ease-out;
2574
- padding: 5px 16px 5px ${$variant === SideNavigationMenuBarVariant.shrinked ? '12px' : '20px'};
2577
+ padding: 5px 16px 5px ${$variant === SideNavigationMenuBarVariant.shrinked ? '16px' : '24px'};
2575
2578
 
2576
2579
  .redsift-icon.first {
2577
2580
  box-sizing: unset;
@@ -2608,6 +2611,7 @@ const BadgeVariant = {
2608
2611
  */
2609
2612
  const StyledBadge = styled.div`
2610
2613
  ${baseStyling}
2614
+ box-sizing: content-box;
2611
2615
 
2612
2616
  ${_ref => {
2613
2617
  let {
@@ -2833,8 +2837,6 @@ const StyledSideNavigationMenu = styled.div`
2833
2837
  } = _ref;
2834
2838
  return css`
2835
2839
  .redsift-side-navigation-menu__menu-container > button {
2836
- background-color: var(--redsift-side-navigation-color-background);
2837
- border: none;
2838
2840
  ${!$isDisabled ? css`
2839
2841
  &,
2840
2842
  .redsift-icon.first {
@@ -2847,6 +2849,8 @@ const StyledSideNavigationMenu = styled.div`
2847
2849
  }
2848
2850
  `}
2849
2851
  align-items: center;
2852
+ background-color: var(--redsift-side-navigation-color-background);
2853
+ border: none;
2850
2854
  border-radius: 0 4px 4px 0;
2851
2855
  display: flex;
2852
2856
  font-family: var(--redsift-typography-body-font-family);
@@ -2860,7 +2864,7 @@ const StyledSideNavigationMenu = styled.div`
2860
2864
  padding: 5px 16px 5px ${$variant === SideNavigationMenuBarVariant.shrinked ? '16px' : '24px'};
2861
2865
  text-decoration: none;
2862
2866
  text-transform: uppercase;
2863
- width: calc(100% + 4px);
2867
+ width: calc(100% + ${$variant === SideNavigationMenuBarVariant.shrinked ? '0px' : '4px'});
2864
2868
 
2865
2869
  :hover,
2866
2870
  :focus-visible {
@@ -2976,16 +2980,24 @@ const StyledSideNavigationMenu = styled.div`
2976
2980
  margin: unset;
2977
2981
  padding: unset;
2978
2982
  margin-left: -4px;
2979
- width: calc(100% + 4px);
2983
+
2984
+ ${_ref5 => {
2985
+ let {
2986
+ $variant
2987
+ } = _ref5;
2988
+ return css`
2989
+ width: calc(100% + ${$variant === SideNavigationMenuBarVariant.shrinked ? '0px' : '4px'});
2990
+ `;
2991
+ }}
2980
2992
  margin-bottom: 16px;
2981
2993
  max-width: 241px;
2982
2994
  transition: height 300ms ease-out;
2983
2995
  overflow: hidden;
2984
- ${_ref5 => {
2996
+ ${_ref6 => {
2985
2997
  let {
2986
2998
  $isExpanded,
2987
2999
  $numberOfChildren
2988
- } = _ref5;
3000
+ } = _ref6;
2989
3001
  return $isExpanded ? css`
2990
3002
  height: ${$numberOfChildren * 38}px;
2991
3003
  ` : css`
@@ -3019,7 +3031,9 @@ const SideNavigationMenuReducer = (state, action) => {
3019
3031
  /**
3020
3032
  * Component style.
3021
3033
  */
3022
- const StyledAppContainer = styled.div``;
3034
+ const StyledAppContainer = styled.div`
3035
+ box-sizing: content-box;
3036
+ `;
3023
3037
 
3024
3038
  const _excluded$C = ["children", "className", "locale", "product"];
3025
3039
  const COMPONENT_NAME$C = 'AppContainer';
@@ -3410,6 +3424,7 @@ SideNavigationMenu.displayName = COMPONENT_NAME$B;
3410
3424
  */
3411
3425
  const StyledSideNavigationMenuBar = styled.nav`
3412
3426
  background-color: var(--redsift-side-navigation-color-background);
3427
+ box-sizing: content-box;
3413
3428
  overflow-x: hidden;
3414
3429
  overflow-y: auto;
3415
3430
  scrollbar-gutter: stable;
@@ -5461,6 +5476,7 @@ const StyledDetailedCard = styled.div`
5461
5476
  background-color: var(--redsift-color-neutral-white);
5462
5477
  border-radius: 4px;
5463
5478
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
5479
+ box-sizing: content-box;
5464
5480
  padding: 16px;
5465
5481
 
5466
5482
  .redsift-detailed-card__banner {
@@ -10353,9 +10369,9 @@ const Grid = Object.assign(BaseGrid, {
10353
10369
  * Component style.
10354
10370
  */
10355
10371
  const StyledItem = styled.div`
10356
- height: 20px;
10372
+ height: 36px;
10357
10373
  position: relative;
10358
- width: calc(100% - 32px);
10374
+ width: 100%;
10359
10375
  padding: 8px 16px;
10360
10376
 
10361
10377
  ${baseStyling}
@@ -10363,6 +10379,7 @@ const StyledItem = styled.div`
10363
10379
  align-items: center;
10364
10380
  background: none;
10365
10381
  border: none;
10382
+ box-sizing: border-box;
10366
10383
  display: inline-flex;
10367
10384
 
10368
10385
  ${_ref => {