@m4l/components 9.2.62-B09072025beta.1 → 9.2.62-B10072025beta.1

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.
Files changed (109) hide show
  1. package/@types/types.d.ts +0 -8
  2. package/components/AppBar/AppBar.js +12 -10
  3. package/components/AppBar/constants.d.ts +1 -1
  4. package/components/AppBar/constants.js +1 -1
  5. package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
  6. package/components/AppBar/slots/AppBarEnum.js +0 -4
  7. package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
  8. package/components/AppBar/slots/AppBarSlots.js +3 -27
  9. package/components/AppBar/styles.js +0 -42
  10. package/components/AppBar/types.d.ts +8 -0
  11. package/components/Image/Image.js +2 -4
  12. package/components/Image/image.styles.js +3 -6
  13. package/components/Image/types.d.ts +0 -2
  14. package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
  15. package/components/PropertyValue/PropertyValue.styles.js +1 -1
  16. package/components/SideBar/SideBar.js +6 -2
  17. package/components/SideBar/constants.d.ts +7 -6
  18. package/components/SideBar/constants.js +7 -7
  19. package/components/SideBar/context/sideBarContext/index.js +9 -10
  20. package/components/SideBar/context/sideBarContext/types.d.ts +2 -10
  21. package/components/SideBar/slots/SideBarEnum.d.ts +7 -7
  22. package/components/SideBar/slots/SideBarEnum.js +5 -5
  23. package/components/SideBar/slots/SideBarSlots.d.ts +9 -9
  24. package/components/SideBar/slots/SideBarSlots.js +31 -28
  25. package/components/SideBar/styles.js +3 -3
  26. package/components/SideBar/subcomponents/ContentComponent/index.js +12 -68
  27. package/components/SideBar/subcomponents/ContentComponent/style.js +122 -103
  28. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.d.ts +1 -1
  29. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.js +4 -4
  30. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.js +8 -2
  31. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
  32. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
  33. package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
  34. package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
  35. package/components/SideBar/subcomponents/HeaderComponent/styles.js +44 -0
  36. package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
  37. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +4 -32
  38. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
  39. package/components/SideBar/subcomponents/TreeGroupItems/index.js +4 -3
  40. package/components/SideBar/subcomponents/TreeGroupItems/styles.js +90 -2
  41. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
  42. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
  43. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
  44. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +6 -4
  45. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +1 -0
  46. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +8 -3
  47. package/components/SideBar/types.d.ts +12 -7
  48. package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
  49. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +5 -4
  50. package/components/index.d.ts +0 -1
  51. package/components/mui_extended/Accordion/styles.js +5 -3
  52. package/components/mui_extended/MenuItem/MenuItem.js +1 -1
  53. package/components/mui_extended/TabContent/TabContent.js +2 -2
  54. package/components/mui_extended/TabContent/TabContent.styles.js +1 -4
  55. package/components/mui_extended/TabContent/constants.d.ts +0 -1
  56. package/components/mui_extended/TabContent/constants.js +0 -2
  57. package/components/mui_extended/TabContent/types.d.ts +1 -1
  58. package/components/mui_extended/Typography/Typography.js +1 -3
  59. package/components/mui_extended/Typography/types.d.ts +0 -5
  60. package/components/mui_extended/Typography/typography.styles.js +1 -7
  61. package/index.js +30 -32
  62. package/package.json +3 -3
  63. package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
  64. package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
  65. package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
  66. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
  67. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
  68. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
  69. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
  70. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
  71. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
  72. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
  73. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +1 -0
  74. package/utils/getSizeStyles/getSizeStyles.d.ts +1 -1
  75. package/components/ContainerFlow/ContainerFlow.d.ts +0 -7
  76. package/components/ContainerFlow/ContainerFlow.js +0 -25
  77. package/components/ContainerFlow/ContainerFlow.styles.d.ts +0 -2
  78. package/components/ContainerFlow/ContainerFlow.styles.js +0 -46
  79. package/components/ContainerFlow/constants.d.ts +0 -8
  80. package/components/ContainerFlow/constants.js +0 -19
  81. package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.d.ts +0 -7
  82. package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +0 -10
  83. package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.test.d.ts +0 -1
  84. package/components/ContainerFlow/index.d.ts +0 -2
  85. package/components/ContainerFlow/slots/ContainerFlowEnum.d.ts +0 -4
  86. package/components/ContainerFlow/slots/ContainerFlowEnum.js +0 -8
  87. package/components/ContainerFlow/slots/ContainerFlowSlots.d.ts +0 -6
  88. package/components/ContainerFlow/slots/ContainerFlowSlots.js +0 -16
  89. package/components/ContainerFlow/slots/index.d.ts +0 -0
  90. package/components/ContainerFlow/tests/ContainerFlow.test.d.ts +0 -1
  91. package/components/ContainerFlow/types.d.ts +0 -41
  92. package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -6
  93. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
  94. package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
  95. package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
  96. package/storybook/components/ContainerFlow/ContainerFlow.stories.d.ts +0 -32
  97. package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +0 -5
  98. package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +0 -5
  99. package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +0 -5
  100. package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +0 -5
  101. package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +0 -5
  102. package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +0 -5
  103. package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +0 -10
  104. package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +0 -4
  105. package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +0 -1
  106. /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.d.ts +0 -0
  107. /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/types.d.ts +0 -0
  108. /package/components/{ContainerFlow → SideBar/subcomponents/HeaderComponent}/index.js +0 -0
  109. /package/storybook/components/SideBar/subcomponents/{FooterPromotion → FooterComponentHost}/constants.d.ts +0 -0
@@ -1,7 +1,6 @@
1
1
  var SideBarDesktopSlots = /* @__PURE__ */ ((SideBarDesktopSlots2) => {
2
2
  SideBarDesktopSlots2["containerDesktopRoot"] = "containerDesktopRoot";
3
3
  SideBarDesktopSlots2["containerDesktopContent"] = "containerDesktopContent";
4
- SideBarDesktopSlots2["containerBtnAnchored"] = "containerBtnAnchored";
5
4
  return SideBarDesktopSlots2;
6
5
  })(SideBarDesktopSlots || {});
7
6
  var SideBarMobileSlots = /* @__PURE__ */ ((SideBarMobileSlots2) => {
@@ -15,11 +14,13 @@ var ContentGroupsSlots = /* @__PURE__ */ ((ContentGroupsSlots2) => {
15
14
  ContentGroupsSlots2["containerContentNavItems"] = "containerContentNavItems";
16
15
  ContentGroupsSlots2["containerContentItem"] = "containerContentItem";
17
16
  ContentGroupsSlots2["containerArrowIconRoot"] = "containerArrowIconRoot";
17
+ ContentGroupsSlots2["containerAdornmentIcon"] = "containerAdornmentIcon";
18
+ ContentGroupsSlots2["backgroundAdornmentIcon"] = "backgroundAdornmentIcon";
18
19
  return ContentGroupsSlots2;
19
20
  })(ContentGroupsSlots || {});
20
21
  var HeaderSidebarSlots = /* @__PURE__ */ ((HeaderSidebarSlots2) => {
21
- HeaderSidebarSlots2["containerHeaderSidebarRoot"] = "containerHeaderSidebarRoot";
22
- HeaderSidebarSlots2["containerTitleSubtitle"] = "containerTitleSubtitle";
22
+ HeaderSidebarSlots2["headerContainerComponent"] = "headerContainerComponent";
23
+ HeaderSidebarSlots2["buttonAnchored"] = "buttonAnchored";
23
24
  return HeaderSidebarSlots2;
24
25
  })(HeaderSidebarSlots || {});
25
26
  var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
@@ -28,8 +29,7 @@ var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
28
29
  })(SideBarFooterSlots || {});
29
30
  var ContentComponentSlots = /* @__PURE__ */ ((ContentComponentSlots2) => {
30
31
  ContentComponentSlots2["contentComponentRoot"] = "contentComponentRoot";
31
- ContentComponentSlots2["contentComponentHide"] = "contentComponentHide";
32
- ContentComponentSlots2["containerTreeItemsAndPromotion"] = "containerTreeItemsAndPromotion";
32
+ ContentComponentSlots2["containerTreeItemsHeaderFooter"] = "containerTreeItemsHeaderFooter";
33
33
  ContentComponentSlots2["containerNodeMenuItem"] = "containerNodeMenuItem";
34
34
  ContentComponentSlots2["containerNodeMenuItemMain"] = "containerNodeMenuItemMain";
35
35
  ContentComponentSlots2["menuItemMain"] = "menuItemMain";
@@ -4,9 +4,6 @@ export declare const ContainerDesktopRootStyled: import('@emotion/styled').Style
4
4
  export declare const ContainerDesktopContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
5
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
6
6
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
- export declare const ContainerBtnAnchoredStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
- ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
9
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
7
  export declare const ContainerTreeGroupItemsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
8
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
12
9
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
@@ -25,12 +22,18 @@ export declare const ContainerContentItemStyled: import('@emotion/styled').Style
25
22
  export declare const ContainerArrowIconRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
26
23
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
27
24
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
28
- export declare const ContainerHeaderSidebarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
25
+ export declare const HeaderContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
29
26
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
30
27
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
31
- export declare const ContainerTitleSubtitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
28
+ export declare const ContainerAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
29
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
30
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
31
+ export declare const BackgroundAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
32
32
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
33
33
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
34
+ export declare const ButtonAnchoredStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "placement" | "rotationAngle" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
35
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
36
+ }, {}, {}>;
34
37
  export declare const ContainerFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
35
38
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
36
39
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -40,10 +43,7 @@ export declare const ContainerSideBarMobileStyled: import('@emotion/styled').Sty
40
43
  export declare const ContentComponentRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
41
44
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
42
45
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
43
- export declare const ContentComponentHideStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
44
- ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
45
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
46
- export declare const ContainerTreeItemsAndPromotionStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
46
+ export declare const ContainerTreeItemsHeaderFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
47
47
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
48
48
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
49
49
  export declare const ContainerNodeMenuItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -1,7 +1,8 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { c as SideBarDesktopSlots, b as SideBarMobileSlots, C as ContentComponentSlots, S as SideBarFooterSlots, a as ContentGroupsSlots, H as HeaderSidebarSlots } from "./SideBarEnum.js";
2
+ import { c as SideBarDesktopSlots, b as SideBarMobileSlots, C as ContentComponentSlots, S as SideBarFooterSlots, H as HeaderSidebarSlots, a as ContentGroupsSlots } from "./SideBarEnum.js";
3
3
  import { S as SIDEBAR_KEY_COMPONENT } from "../constants.js";
4
4
  import { s as sideBarStyles } from "../styles.js";
5
+ import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
5
6
  import { M as MenuItem } from "../../mui_extended/MenuItem/MenuItem.js";
6
7
  const ContainerDesktopRootStyled = styled("section", {
7
8
  name: SIDEBAR_KEY_COMPONENT,
@@ -11,10 +12,6 @@ const ContainerDesktopContentStyled = styled("div", {
11
12
  name: SIDEBAR_KEY_COMPONENT,
12
13
  slot: SideBarDesktopSlots.containerDesktopContent
13
14
  })(sideBarStyles?.containerDesktopContent);
14
- const ContainerBtnAnchoredStyled = styled("div", {
15
- name: SIDEBAR_KEY_COMPONENT,
16
- slot: SideBarDesktopSlots.containerBtnAnchored
17
- })(sideBarStyles?.containerBtnAnchored);
18
15
  const ContainerTreeGroupItemsStyled = styled("section", {
19
16
  name: SIDEBAR_KEY_COMPONENT,
20
17
  slot: ContentGroupsSlots.containerTreeGroupItems
@@ -39,14 +36,22 @@ const ContainerArrowIconRootStyled = styled("div", {
39
36
  name: SIDEBAR_KEY_COMPONENT,
40
37
  slot: ContentGroupsSlots.containerArrowIconRoot
41
38
  })(sideBarStyles?.containerArrowIconRoot);
42
- styled("section", {
39
+ const HeaderContainerComponentStyled = styled("section", {
43
40
  name: SIDEBAR_KEY_COMPONENT,
44
- slot: HeaderSidebarSlots.containerHeaderSidebarRoot
45
- })(sideBarStyles?.containerHeaderSidebarRoot);
46
- styled("div", {
41
+ slot: HeaderSidebarSlots.headerContainerComponent
42
+ })(sideBarStyles?.headerContainerComponent);
43
+ const ContainerAdornmentIconStyled = styled("div", {
44
+ name: SIDEBAR_KEY_COMPONENT,
45
+ slot: ContentGroupsSlots.containerAdornmentIcon
46
+ })(sideBarStyles?.containerAdornmentIcon);
47
+ const BackgroundAdornmentIconStyled = styled("div", {
47
48
  name: SIDEBAR_KEY_COMPONENT,
48
- slot: HeaderSidebarSlots.containerTitleSubtitle
49
- })(sideBarStyles?.containerTitleSubtitle);
49
+ slot: ContentGroupsSlots.backgroundAdornmentIcon
50
+ })(sideBarStyles?.backgroundAdornmentIcon);
51
+ const ButtonAnchoredStyled = styled(IconButton, {
52
+ name: SIDEBAR_KEY_COMPONENT,
53
+ slot: HeaderSidebarSlots.buttonAnchored
54
+ })(sideBarStyles?.buttonAnchored);
50
55
  const ContainerFooterStyled = styled("div", {
51
56
  name: SIDEBAR_KEY_COMPONENT,
52
57
  slot: SideBarFooterSlots.containerFooter
@@ -59,14 +64,10 @@ const ContentComponentRootStyled = styled("div", {
59
64
  name: SIDEBAR_KEY_COMPONENT,
60
65
  slot: ContentComponentSlots.contentComponentRoot
61
66
  })(sideBarStyles?.contentComponentRoot);
62
- const ContentComponentHideStyled = styled("div", {
63
- name: SIDEBAR_KEY_COMPONENT,
64
- slot: ContentComponentSlots.contentComponentHide
65
- })(sideBarStyles?.contentComponentHide);
66
- const ContainerTreeItemsAndPromotionStyled = styled("div", {
67
+ const ContainerTreeItemsHeaderFooterStyled = styled("div", {
67
68
  name: SIDEBAR_KEY_COMPONENT,
68
- slot: ContentComponentSlots.containerTreeItemsAndPromotion
69
- })(sideBarStyles?.containerTreeItemsAndPromotion);
69
+ slot: ContentComponentSlots.containerTreeItemsHeaderFooter
70
+ })(sideBarStyles?.containerTreeItemsHeaderFooter);
70
71
  const ContainerNodeMenuItemStyled = styled("div", {
71
72
  name: SIDEBAR_KEY_COMPONENT,
72
73
  slot: ContentComponentSlots.containerNodeMenuItem
@@ -80,18 +81,20 @@ const MenuItemMainStyled = styled(MenuItem, {
80
81
  slot: ContentComponentSlots.menuItemMain
81
82
  })(sideBarStyles?.menuItemMain);
82
83
  export {
84
+ ButtonAnchoredStyled as B,
83
85
  ContentComponentRootStyled as C,
86
+ HeaderContainerComponentStyled as H,
84
87
  MenuItemMainStyled as M,
85
- ContainerBtnAnchoredStyled as a,
86
- ContentComponentHideStyled as b,
87
- ContainerTreeItemsAndPromotionStyled as c,
88
- ContainerFooterStyled as d,
89
- ContainerDesktopContentStyled as e,
90
- ContainerDesktopRootStyled as f,
91
- ContainerSideBarMobileStyled as g,
92
- ContainerTreeGroupItemsStyled as h,
93
- ContainerContentGroupsStyled as i,
94
- ContainerContentTitleStyled as j,
88
+ ContainerTreeItemsHeaderFooterStyled as a,
89
+ ContainerFooterStyled as b,
90
+ ContainerDesktopContentStyled as c,
91
+ ContainerDesktopRootStyled as d,
92
+ ContainerSideBarMobileStyled as e,
93
+ ContainerTreeGroupItemsStyled as f,
94
+ ContainerContentGroupsStyled as g,
95
+ ContainerContentTitleStyled as h,
96
+ ContainerAdornmentIconStyled as i,
97
+ BackgroundAdornmentIconStyled as j,
95
98
  ContainerArrowIconRootStyled as k,
96
99
  ContainerNodeMenuItemStyled as l,
97
100
  ContainerNodeMenuItemMainStyled as m
@@ -1,14 +1,14 @@
1
1
  import { s as sideBarDesktopStyles } from "./subcomponents/SideBarDesktop/styles.js";
2
2
  import { c as contentGroupStyles } from "./subcomponents/TreeGroupItems/styles.js";
3
- import { h as headerSidebarStyles } from "./subcomponents/HeaderSidebar/styles.js";
4
- import { f as footerSideBarStyles } from "./subcomponents/Promotion/styles.js";
3
+ import { h as headerComponentStyles } from "./subcomponents/HeaderComponent/styles.js";
4
+ import { f as footerSideBarStyles } from "./subcomponents/FooterComponent/styles.js";
5
5
  import { c as contentComponentStyles } from "./subcomponents/ContentComponent/style.js";
6
6
  import { s as sideBarMobileStyles } from "./subcomponents/SideBarMobile/styles.js";
7
7
  const sideBarStyles = {
8
8
  ...sideBarDesktopStyles,
9
9
  ...sideBarMobileStyles,
10
10
  ...contentGroupStyles,
11
- ...headerSidebarStyles,
11
+ ...headerComponentStyles,
12
12
  ...footerSideBarStyles,
13
13
  ...contentComponentStyles
14
14
  };
@@ -1,79 +1,23 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useIsMobile } from "@m4l/graphics";
3
- import { useEnvironment } from "@m4l/core";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
4
2
  import { u as useSideBar } from "../../hooks/useSideBar/index.js";
5
- import { C as ContentComponentRootStyled, a as ContainerBtnAnchoredStyled, b as ContentComponentHideStyled, c as ContainerTreeItemsAndPromotionStyled } from "../../slots/SideBarSlots.js";
3
+ import { C as ContentComponentRootStyled, a as ContainerTreeItemsHeaderFooterStyled } from "../../slots/SideBarSlots.js";
6
4
  import { T as TreeGroupItems } from "../TreeGroupItems/index.js";
7
- import { P as Promotion } from "../Promotion/index.js";
8
- import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
9
- import { a as PATH_ARROW_RIGHT_ICON, C as CONTAINER_BTN_ANCHORED } from "../../constants.js";
10
- import { useRef } from "react";
5
+ import { F as FooterComponent } from "../FooterComponent/index.js";
11
6
  import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
12
- import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
7
+ import { H as HeaderComponent } from "../HeaderComponent/HeaderComponent.js";
13
8
  const ContentComponent = () => {
14
- const { anchored, onToggleAnchored, expandedWidth, size, classes, isHover, setIsHover } = useSideBar();
9
+ const { anchored, onToggleAnchored, expandedWidth, size, variant } = useSideBar();
15
10
  const ownerState = {
16
11
  expandedWidth,
17
- anchored
12
+ anchored,
13
+ variant
18
14
  };
19
- const btnAnchoredRef = useRef(null);
20
- const contentRef = useRef(null);
21
- const { host_static_assets, environment_assets } = useEnvironment();
22
- const isDesktop = !useIsMobile();
23
15
  const { currentSize } = useComponentSize(size);
24
- const classRootBtnAnchored = getComponentSlotRoot(CONTAINER_BTN_ANCHORED);
25
- const handlerAnchoredButton = () => {
26
- onToggleAnchored(!anchored);
27
- };
28
- return /* @__PURE__ */ jsxs(ContentComponentRootStyled, { ownerState, children: [
29
- isDesktop && /* @__PURE__ */ jsx(
30
- ContainerBtnAnchoredStyled,
31
- {
32
- ref: btnAnchoredRef,
33
- className: classRootBtnAnchored,
34
- ownerState,
35
- onMouseLeave: (event) => {
36
- if (!anchored && contentRef.current && !contentRef.current.contains(event.relatedTarget)) {
37
- setIsHover(false);
38
- }
39
- },
40
- children: /* @__PURE__ */ jsx(
41
- IconButton,
42
- {
43
- role: "anchored-button",
44
- variant: anchored ? "contained" : "outline",
45
- rotationAngle: !anchored ? 0 : 180,
46
- onClick: handlerAnchoredButton,
47
- src: `${host_static_assets}/${environment_assets}/${PATH_ARROW_RIGHT_ICON}`,
48
- color: anchored ? "primary" : "default"
49
- }
50
- )
51
- }
52
- ),
53
- /* @__PURE__ */ jsx(
54
- ContentComponentHideStyled,
55
- {
56
- ref: contentRef,
57
- ownerState: { ...ownerState, isDesktop, isHover },
58
- className: classes.contentComponentHide,
59
- role: "complementary",
60
- "aria-label": "hidden content",
61
- onMouseEnter: () => {
62
- !anchored && setIsHover(true);
63
- },
64
- onMouseLeave: (event) => {
65
- if (!anchored && btnAnchoredRef.current && btnAnchoredRef.current.contains(event.relatedTarget)) {
66
- return;
67
- }
68
- setIsHover(false);
69
- },
70
- children: /* @__PURE__ */ jsxs(ContainerTreeItemsAndPromotionStyled, { ownerState, children: [
71
- /* @__PURE__ */ jsx(TreeGroupItems, { size: currentSize }),
72
- /* @__PURE__ */ jsx(Promotion, { onToggleAnchored, anchored })
73
- ] })
74
- }
75
- )
76
- ] });
16
+ return /* @__PURE__ */ jsx(ContentComponentRootStyled, { ownerState, children: /* @__PURE__ */ jsxs(ContainerTreeItemsHeaderFooterStyled, { ownerState, children: [
17
+ /* @__PURE__ */ jsx(HeaderComponent, {}),
18
+ /* @__PURE__ */ jsx(TreeGroupItems, { size: currentSize }),
19
+ /* @__PURE__ */ jsx(FooterComponent, { onToggleAnchored, anchored })
20
+ ] }) });
77
21
  };
78
22
  export {
79
23
  ContentComponent as C
@@ -1,6 +1,5 @@
1
- import { b as CLASS_NAME_IS_ROOT, c as CLASS_NAME_MENU_ACTIVE, d as CLASS_NAME_ITEM_IN_TREE_ACTIVE, e as CLASS_NAME_HAS_CHILDREN } from "../../constants.js";
1
+ import { C as CLASS_NAME_IS_ROOT, a as CLASS_NAME_MENU_ACTIVE, b as CLASS_NAME_HAS_CHILDREN, c as CLASS_NAME_ITEM_CLOSED, d as CLASS_NAME_ITEM_IN_TREE_ACTIVE } from "../../constants.js";
2
2
  import { g as getTypographyStyles } from "../../../../utils/getTypographyStyles.js";
3
- import { g as getSizeStyles } from "../../../../utils/getSizeStyles/getSizeStyles.js";
4
3
  const contentComponentStyles = {
5
4
  /**
6
5
  * Estilos del contenedor principal del sidebar
@@ -10,68 +9,48 @@ const contentComponentStyles = {
10
9
  display: "flex",
11
10
  flexDirection: "column",
12
11
  height: "100%",
13
- width: "fit-content",
12
+ width: "100%",
14
13
  backgroundColor: theme.vars.palette.background.default
15
14
  }),
16
- /**
17
- * Estilos del contenedor que oculta el contenido cuando se encuentra des anclado.
18
- */
19
- contentComponentHide: ({ theme, ownerState }) => {
20
- const width = ownerState?.anchored ? ownerState?.expandedWidth : theme.vars.size.baseSpacings.sp4;
21
- return {
22
- width: "100%",
23
- height: "100%",
24
- overflow: "hidden",
25
- flex: 1,
26
- display: "flex",
27
- flexDirection: "column",
28
- transition: "all 0.5s",
29
- ...!ownerState?.anchored && !theme.generalSettings.isMobile && {
30
- width: ownerState?.anchored && ownerState?.isDesktop ? ownerState?.expandedWidth : !ownerState?.isDesktop ? "100%" : theme.vars.size.baseSpacings.sp4,
31
- minWidth: width,
32
- maxWidth: width,
33
- ...ownerState?.isHover && !theme.generalSettings.isMobile && {
34
- transition: "all 0.5s",
35
- width: `${ownerState?.expandedWidth}!important`,
36
- maxWidth: `${ownerState?.expandedWidth}!important`,
37
- contentVisibility: "visible",
38
- '& [class*="containerFooter"]': {
39
- borderWidth: theme.vars.size.baseSpacings["sp0-5"]
40
- }
41
- }
42
- }
43
- };
44
- },
45
15
  /**
46
16
  * Contenedor que abraza el contenido del menu en primer lugar.
47
17
  */
48
- containerTreeItemsAndPromotion: ({ theme, ownerState }) => ({
18
+ containerTreeItemsHeaderFooter: ({ theme, ownerState }) => ({
49
19
  height: "100%",
50
- width: ownerState?.expandedWidth,
20
+ width: "100%",
51
21
  flex: 1,
52
22
  overflow: "hidden",
53
23
  display: "flex",
54
24
  flexDirection: "column",
55
- paddingLeft: theme.vars.size.baseSpacings.sp4,
56
- paddingRight: theme.vars.size.baseSpacings.sp4,
25
+ gap: theme.vars.size.baseSpacings.sp4,
26
+ padding: "3px",
27
+ paddingBottom: theme.vars.size.baseSpacings.sp4,
28
+ ...!ownerState?.anchored && ownerState?.variant !== "host" && {
29
+ transition: "all 0.5s",
30
+ paddingLeft: "unset",
31
+ paddingRight: "unset"
32
+ },
57
33
  '& [class*="M4LMenuItem-root"], & [class*="M4LMenuItem-skeletonMenuItem"]': {
58
- ...getSizeStyles(
59
- theme,
60
- ownerState?.size || "medium",
61
- "container",
62
- (size) => ({
63
- height: size,
64
- minHeight: size,
65
- maxHeight: size
66
- })
67
- )
34
+ height: "fit-content"
68
35
  },
69
36
  "& .M4LMenuItem-root": {
70
37
  border: "unset",
38
+ paddingTop: theme.vars.size.baseSpacings.sp2,
39
+ paddingBottom: theme.vars.size.baseSpacings.sp2,
71
40
  paddingLeft: theme.vars.size.baseSpacings.sp2,
72
41
  paddingRight: theme.vars.size.baseSpacings.sp2,
42
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
43
+ '& [class*="M4LMenuItem-menuItemContainer"]': {
44
+ gap: theme.vars.size.baseSpacings["sp2-5"],
45
+ overflow: "visible"
46
+ },
47
+ "&.menu-active": {
48
+ "& .M4LTypography-root": {
49
+ color: `${theme.vars.palette.primary.semanticText}!important`
50
+ }
51
+ },
73
52
  "& .M4LTypography-root": {
74
- paddingLeft: `${theme.vars.size.baseSpacings.sp2} !important`,
53
+ paddingLeft: 0,
75
54
  ...getTypographyStyles(
76
55
  theme.generalSettings.isMobile,
77
56
  ownerState?.size || "medium",
@@ -83,82 +62,90 @@ const contentComponentStyles = {
83
62
  /**
84
63
  * Contenedor que contiene grupo menu item desplegable.
85
64
  */
86
- containerNodeMenuItem: ({ theme, ownerState }) => ({
87
- marginLeft: theme.vars.size.baseSpacings.sp4,
65
+ containerNodeMenuItem: ({ theme }) => ({
66
+ marginLeft: theme.vars.size.baseSpacings.sp6,
88
67
  display: "flex",
89
68
  flexDirection: "column",
90
69
  overflow: "visible",
70
+ position: "relative",
71
+ gap: theme.vars.size.baseSpacings.sp1,
91
72
  '& [class*="M4LMenuItem-root"]:not(.menu-active)': {
92
73
  "& .M4LTypography-root": {
93
74
  color: `${theme.vars.palette.text.secondary}!important`
94
- },
95
- "& .M4LIcon-icon": {
96
- backgroundColor: `${theme.vars.palette.text.secondary}!important`
97
75
  }
98
76
  },
99
77
  [`&.${CLASS_NAME_IS_ROOT}`]: {
100
- margin: "unset"
101
- },
102
- [`& > .M4LMenuItem-root:first-of-type:not(.${CLASS_NAME_MENU_ACTIVE}).${CLASS_NAME_ITEM_IN_TREE_ACTIVE}`]: {
103
- borderColor: theme.vars.palette.divider,
104
- // Linea de referencia vertical
105
- "&::before": {
106
- content: '""',
107
- position: "absolute",
108
- top: "-25%",
109
- bottom: "-25%",
110
- height: "150%",
111
- left: 0,
112
- width: 2,
113
- borderLeft: theme.vars.size.borderStroke.container,
114
- borderColor: theme.vars.palette.border.default,
115
- ...ownerState?.isLastSibling && !ownerState?.hasChildren && {
116
- height: "75%"
117
- }
118
- },
119
- // Linea de referencia horizontal
120
- [`&:not(.${CLASS_NAME_HAS_CHILDREN}):after`]: {
121
- content: '""',
122
- position: "absolute",
123
- margin: "0",
124
- left: 1,
125
- width: 4,
126
- height: 1,
127
- borderTop: theme.vars.size.borderStroke.container,
128
- borderColor: theme.vars.palette.border.default
78
+ margin: "unset",
79
+ border: theme.vars.size.borderStroke.container,
80
+ borderColor: "transparent",
81
+ "& > .MuiCollapse-root": {
82
+ paddingRight: theme.vars.size.baseSpacings["sp0-5"]
129
83
  }
130
84
  },
131
85
  [`&.M4LSidebar-containerNodeMenuItem > .M4LMenuItem-root[class*="${CLASS_NAME_ITEM_IN_TREE_ACTIVE}"] .M4LIconClass-root`]: {
132
86
  background: theme.vars.palette.text.primary
133
87
  },
88
+ [`& > .MuiCollapse-root > .MuiCollapse-wrapper .MuiCollapse-wrapperInner > .M4LSideBar-containerNodeMenuItem:last-child > .M4LMenuItem-root:not(.${CLASS_NAME_IS_ROOT}).${CLASS_NAME_MENU_ACTIVE}`]: {
89
+ "& .M4LMenuItem-menuItemContainer": {
90
+ "&::before": {
91
+ content: '""',
92
+ borderLeft: "3px solid",
93
+ borderColor: theme.vars.palette.background.default,
94
+ width: "3px",
95
+ height: "50%",
96
+ bottom: 0,
97
+ position: "absolute",
98
+ left: "-5px",
99
+ zIndex: 1
100
+ }
101
+ }
102
+ },
134
103
  [`& > .M4LMenuItem-root:not(.${CLASS_NAME_IS_ROOT}).${CLASS_NAME_MENU_ACTIVE}`]: {
104
+ [`&.${CLASS_NAME_HAS_CHILDREN}:not(.${CLASS_NAME_ITEM_CLOSED})`]: {
105
+ '& [class*="M4LMenuItem-menuItemContainer"]:before': {
106
+ content: '""',
107
+ borderLeft: "3px solid",
108
+ borderColor: theme.vars.palette.background.default,
109
+ width: "3px",
110
+ height: "50%",
111
+ bottom: 0,
112
+ position: "absolute",
113
+ left: "-5px",
114
+ zIndex: 1
115
+ }
116
+ },
135
117
  "&::before": {
136
118
  content: '""',
137
119
  position: "absolute",
138
- height: "25%",
139
- top: "25%",
140
- bottom: 0,
141
- left: 0,
142
- width: 2,
143
- borderLeft: theme.vars.size.borderStroke.container,
144
- borderColor: theme.vars.palette.primary.enabled,
145
- ...!ownerState?.isLastSibling && !ownerState?.hasChildren && {
146
- height: "50%"
147
- }
120
+ width: "5px",
121
+ height: "5px",
122
+ top: "50%",
123
+ transform: "translateY(-50%)",
124
+ left: "-6px",
125
+ borderRadius: theme.vars.size.borderRadius["r0-5"],
126
+ backgroundColor: theme.vars.palette.primary.focus,
127
+ zIndex: 2
148
128
  },
149
- "&:after": {
129
+ "&::after": {
150
130
  content: '""',
151
131
  position: "absolute",
152
- margin: "0",
153
- left: 0,
154
- width: theme.vars.size.baseSpacings.sp1,
155
- height: 1,
156
- borderTop: theme.vars.size.borderStroke.container,
157
- borderColor: theme.vars.palette.primary.enabled
132
+ width: "1px",
133
+ top: "0px",
134
+ bottom: "0px",
135
+ left: "-4px",
136
+ backgroundImage: `linear-gradient(180deg,
137
+ transparent 0%,
138
+ ${theme.vars.palette.primary.opacityGradient1} 50%,
139
+ transparent 100%)`
158
140
  }
159
141
  },
142
+ [`& > .M4LMenuItem-root.${CLASS_NAME_IS_ROOT}`]: {
143
+ paddingRight: "11px"
144
+ },
160
145
  [`& > .M4LMenuItem-root.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}`]: {
161
- backgroundColor: theme.vars.palette.primary.opacity
146
+ backgroundColor: theme.vars.palette.primary.opacity,
147
+ borderBottomLeftRadius: 0,
148
+ borderBottomRightRadius: 0
162
149
  },
163
150
  "& .MuiCollapse-wrapperInner": {
164
151
  display: "flex",
@@ -166,14 +153,46 @@ const contentComponentStyles = {
166
153
  paddingLeft: 0,
167
154
  paddingBottom: theme.vars.size.baseSpacings.sp1,
168
155
  paddingTop: 0,
169
- paddingRight: theme.vars.size.baseSpacings.sp1
156
+ "&:before": {
157
+ content: '""',
158
+ position: "absolute",
159
+ width: "1px",
160
+ top: "-4px",
161
+ bottom: "-4px",
162
+ left: "-4px",
163
+ backgroundColor: theme.vars.palette.background.default,
164
+ zIndex: 1
165
+ }
170
166
  },
171
167
  [`&.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}`]: {
172
- backgroundColor: theme.vars.palette.background.base,
173
- borderRadius: theme.vars.size.borderRadius["r1-5"]
168
+ backgroundColor: theme.vars.palette.background.default,
169
+ borderRadius: theme.vars.size.borderRadius.r2,
170
+ border: theme.vars.size.borderStroke.container,
171
+ borderColor: theme.vars.palette.primary.selectedOpacity,
172
+ boxShadow: theme.vars.customShadows.z2,
173
+ overflow: "hidden"
174
+ },
175
+ "& .MuiCollapse-root:first-of-type": {
176
+ position: "relative"
177
+ },
178
+ "&.menu-active .MuiCollapse-wrapper.MuiCollapse-vertical:first-of-type:before": {
179
+ content: '""',
180
+ position: "absolute",
181
+ width: "1px",
182
+ top: "5px",
183
+ bottom: "5px",
184
+ left: "20px",
185
+ borderLeft: theme.vars.size.borderStroke.container,
186
+ borderColor: theme.vars.palette.border.secondary,
187
+ zIndex: 1
174
188
  }
175
189
  }),
176
- containerNodeMenuItemMain: {},
190
+ /**
191
+ * Contenedor que contiene el menu item principal.
192
+ */
193
+ containerNodeMenuItemMain: ({ theme }) => ({
194
+ gap: theme.vars.size.baseSpacings.sp1
195
+ }),
177
196
  /**
178
197
  * Estilos del menu item principal.
179
198
  */
@@ -6,4 +6,4 @@ import { PromotionProps } from './types';
6
6
  * @param {VoidFunction} props.collapsed - Variable que guarda el estado de colapsado en desktop
7
7
  * @returns
8
8
  */
9
- export default function Promotion({ anchored }: PromotionProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export default function FooterComponent({ anchored }: PromotionProps): import("react/jsx-runtime").JSX.Element | null;
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { u as useSideBar } from "../../hooks/useSideBar/index.js";
3
3
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
4
4
  import { g as getNameDataTestId } from "../../tests/utils.js";
5
- import { d as ContainerFooterStyled } from "../../slots/SideBarSlots.js";
6
- function Promotion({ anchored }) {
7
- const { promotion } = useSideBar();
5
+ import { b as ContainerFooterStyled } from "../../slots/SideBarSlots.js";
6
+ function FooterComponent({ anchored }) {
7
+ const { footerComponent: promotion } = useSideBar();
8
8
  const ownerState = {
9
9
  anchored
10
10
  };
@@ -22,5 +22,5 @@ function Promotion({ anchored }) {
22
22
  );
23
23
  }
24
24
  export {
25
- Promotion as P
25
+ FooterComponent as F
26
26
  };