@m4l/components 9.2.61 → 9.2.62-B07072025beta.2

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 (190) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/AppBar/AppBar.js +12 -10
  3. package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
  4. package/components/AppBar/slots/AppBarEnum.js +0 -4
  5. package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
  6. package/components/AppBar/slots/AppBarSlots.js +3 -27
  7. package/components/AppBar/styles.js +0 -42
  8. package/components/AppBar/types.d.ts +8 -0
  9. package/components/Chip/Chip.js +9 -10
  10. package/components/Chip/ChipStyles.js +13 -2
  11. package/components/Chip/constants.d.ts +9 -0
  12. package/components/Chip/constants.js +6 -2
  13. package/components/Chip/slots/ChipEnum.d.ts +3 -0
  14. package/components/Chip/slots/ChipEnum.js +6 -1
  15. package/components/Chip/slots/ChipSlots.js +1 -1
  16. package/components/DataGrid/Datagrid.styles.js +8 -13
  17. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
  18. package/components/DynamicFilter/DynamicFilter.styles.js +99 -90
  19. package/components/DynamicFilter/slots/SlotsEnum.d.ts +0 -3
  20. package/components/DynamicFilter/slots/SlotsEnum.js +0 -3
  21. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +0 -9
  22. package/components/DynamicFilter/slots/dynamicFilterSlots.js +3 -19
  23. package/components/DynamicFilter/store/DynamicFilterContext.js +6 -7
  24. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +2 -2
  25. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +2 -2
  26. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +2 -2
  27. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +2 -2
  28. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +2 -2
  29. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +2 -2
  30. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +1 -1
  31. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -0
  32. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -1
  33. package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +2 -0
  34. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +24 -18
  35. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +4 -1
  36. package/components/DynamicSort/DynamicSort.styles.js +92 -90
  37. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +0 -9
  38. package/components/DynamicSort/slots/DynamicSortSlots.js +7 -23
  39. package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -4
  40. package/components/DynamicSort/slots/SlotsEnum.js +1 -4
  41. package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +2 -2
  42. package/components/DynamicSort/subcomponents/InputSort/InputSort.js +2 -0
  43. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +22 -17
  44. package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -2
  45. package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +2 -0
  46. package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -1
  47. package/components/LanguagePopover/LanguagePopover.js +7 -5
  48. package/components/LanguagePopover/LanguagePopover.styles.js +32 -4
  49. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +9 -3
  50. package/components/LanguagePopover/slots/LanguagePopoverSlots.js +1 -3
  51. package/components/LanguagePopover/types.d.ts +6 -1
  52. package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
  53. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
  54. package/components/PaperForm/styles.js +2 -1
  55. package/components/PropertyValue/PropertyValue.js +2 -1
  56. package/components/PropertyValue/PropertyValue.styles.js +7 -4
  57. package/components/PropertyValue/types.d.ts +4 -0
  58. package/components/SideBar/SideBar.js +8 -2
  59. package/components/SideBar/constants.d.ts +26 -2
  60. package/components/SideBar/constants.js +20 -10
  61. package/components/SideBar/context/sideBarContext/index.js +17 -4
  62. package/components/SideBar/context/sideBarContext/types.d.ts +14 -1
  63. package/components/SideBar/helpers/getMenuDataWithState/index.js +25 -8
  64. package/components/SideBar/hooks/useCollapse/index.d.ts +1 -0
  65. package/components/SideBar/hooks/useCollapse/index.js +1 -0
  66. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +11 -0
  67. package/components/SideBar/hooks/useCollapse/useCollapse.js +23 -0
  68. package/components/SideBar/slots/SideBarEnum.d.ts +11 -11
  69. package/components/SideBar/slots/SideBarEnum.js +13 -15
  70. package/components/SideBar/slots/SideBarSlots.d.ts +15 -9
  71. package/components/SideBar/slots/SideBarSlots.js +50 -39
  72. package/components/SideBar/styles.js +4 -6
  73. package/components/SideBar/subcomponents/ContentComponent/index.js +13 -49
  74. package/components/SideBar/subcomponents/ContentComponent/style.js +148 -23
  75. package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/index.d.ts +2 -2
  76. package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/index.js +8 -15
  77. package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/styles.js +8 -2
  78. package/components/SideBar/subcomponents/FooterComponent/types.d.ts +5 -0
  79. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
  80. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
  81. package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
  82. package/components/SideBar/subcomponents/HeaderComponent/index.js +1 -0
  83. package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
  84. package/components/SideBar/subcomponents/HeaderComponent/styles.js +43 -0
  85. package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
  86. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +3 -35
  87. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
  88. package/components/SideBar/subcomponents/TreeGroupItems/index.d.ts +5 -0
  89. package/components/SideBar/subcomponents/TreeGroupItems/index.js +51 -0
  90. package/components/SideBar/subcomponents/TreeGroupItems/styles.js +146 -0
  91. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
  92. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
  93. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
  94. package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.js +10 -7
  95. package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems/subcomponents/NodeMenuItem}/index.d.ts +3 -3
  96. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +70 -0
  97. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +10 -0
  98. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.d.ts +5 -0
  99. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +61 -0
  100. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/index.d.ts +1 -0
  101. package/components/SideBar/subcomponents/TreeGroupItems/types.d.ts +4 -0
  102. package/components/SideBar/types.d.ts +17 -8
  103. package/components/WindowBase/WindowBase.js +7 -1
  104. package/components/WindowBase/WindowBase.styles.js +50 -15
  105. package/components/WindowBase/constants.d.ts +1 -0
  106. package/components/WindowBase/constants.js +5 -1
  107. package/components/WindowBase/slots/WindowBaseEnum.d.ts +2 -1
  108. package/components/WindowBase/slots/WindowBaseEnum.js +1 -0
  109. package/components/WindowBase/slots/WindowBaseSlots.d.ts +3 -0
  110. package/components/WindowBase/slots/WindowBaseSlots.js +6 -1
  111. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +11 -5
  112. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  113. package/components/WindowBase/subcomponents/Header/useButtonActions.js +4 -2
  114. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
  115. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
  116. package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +5 -0
  117. package/components/WindowBase/types.d.ts +16 -0
  118. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +13 -0
  119. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +26 -20
  120. package/components/areas/contexts/AreasContext/store.js +2 -2
  121. package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
  122. package/components/extended/React-Resizable/helpers.js +1 -1
  123. package/components/extended/React-resizable-panels/SplitLayout.js +6 -3
  124. package/components/extended/React-resizable-panels/SplitLayout.styles.js +78 -36
  125. package/components/extended/React-resizable-panels/constants.d.ts +6 -0
  126. package/components/extended/React-resizable-panels/constants.js +5 -1
  127. package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.d.ts +2 -1
  128. package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.js +1 -0
  129. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +3 -0
  130. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.js +7 -1
  131. package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
  132. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
  133. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +5 -4
  134. package/components/hook-form/RHFTextField/RHFTextField.js +1 -0
  135. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +3 -38
  136. package/components/mui_extended/Accordion/styles.js +10 -2
  137. package/components/mui_extended/Button/Button.js +3 -1
  138. package/components/mui_extended/Button/ButtonStyles.js +6 -1
  139. package/components/mui_extended/Button/types.d.ts +1 -1
  140. package/components/mui_extended/Divider/index.d.ts +1 -0
  141. package/components/mui_extended/Divider/index.js +1 -0
  142. package/components/mui_extended/NavLink/NavLink.js +3 -1
  143. package/components/mui_extended/NavLink/NavLink.styles.js +2 -1
  144. package/components/mui_extended/NavLink/types.d.ts +3 -1
  145. package/components/mui_extended/Tab/Tab.styles.js +2 -1
  146. package/components/mui_extended/TabContent/TabContent.styles.js +2 -8
  147. package/components/mui_extended/TextField/TextField.js +1 -1
  148. package/components/mui_extended/TextField/TextField.styles.js +20 -18
  149. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  150. package/components/mui_extended/index.d.ts +1 -0
  151. package/hooks/useDynamicFilterAndSort/styles.js +1 -1
  152. package/index.d.ts +1 -0
  153. package/index.js +16 -13
  154. package/package.json +5 -4
  155. package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +27 -11
  156. package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +26 -10
  157. package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
  158. package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
  159. package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
  160. package/storybook/components/SideBar/subcomponents/FooterComponentHost/constants.d.ts +3 -0
  161. package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
  162. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
  163. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
  164. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
  165. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
  166. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
  167. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
  168. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
  169. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +1 -0
  170. package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +1 -0
  171. package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -0
  172. package/utils/index.d.ts +1 -0
  173. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +0 -5
  174. package/components/SideBar/subcomponents/ContentGroups/index.js +0 -52
  175. package/components/SideBar/subcomponents/ContentGroups/styles.js +0 -71
  176. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +0 -63
  177. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +0 -2
  178. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +0 -47
  179. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +0 -7
  180. package/components/SideBar/subcomponents/ContentGroups/types.d.ts +0 -4
  181. package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +0 -5
  182. package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -6
  183. package/components/SideBar/subcomponents/HeaderSidebar/index.js +0 -25
  184. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
  185. package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
  186. package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
  187. /package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/styles.d.ts +0 -0
  188. /package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/styles.d.ts +0 -0
  189. /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.d.ts +0 -0
  190. /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/types.d.ts +0 -0
@@ -4,10 +4,7 @@ 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
- export declare const ContainerContentGroupsRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
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>>, {}>;
13
10
  export declare const ContainerContentGroupsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -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,12 +43,15 @@ 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> & {
46
+ export declare const ContainerTreeItemsHeaderFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
44
47
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
45
48
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
46
- export declare const ContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
49
+ export declare const ContainerNodeMenuItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
47
50
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
48
51
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
49
- export declare const ContainerMenuItemsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
52
+ export declare const ContainerNodeMenuItemMainStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
50
53
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
51
54
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
55
+ export declare const MenuItemMainStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/MenuItem').MenuItemProps, keyof import('../../mui_extended/MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
56
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
57
+ }, {}, {}>;
@@ -1,7 +1,9 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { S as SideBarDesktopSlots, a as SideBarMobileSlots, C as ContentComponentSlots, b as SideBarFooterSlots, H as HeaderSidebarSlots, c as ContentGroupsSlots, d as ContainerMenuItemsMainSlots } 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";
6
+ import { M as MenuItem } from "../../mui_extended/MenuItem/MenuItem.js";
5
7
  const ContainerDesktopRootStyled = styled("section", {
6
8
  name: SIDEBAR_KEY_COMPONENT,
7
9
  slot: SideBarDesktopSlots.containerDesktopRoot
@@ -10,14 +12,10 @@ const ContainerDesktopContentStyled = styled("div", {
10
12
  name: SIDEBAR_KEY_COMPONENT,
11
13
  slot: SideBarDesktopSlots.containerDesktopContent
12
14
  })(sideBarStyles?.containerDesktopContent);
13
- const ContainerBtnAnchoredStyled = styled("div", {
15
+ const ContainerTreeGroupItemsStyled = styled("section", {
14
16
  name: SIDEBAR_KEY_COMPONENT,
15
- slot: SideBarDesktopSlots.containerBtnAnchored
16
- })(sideBarStyles?.containerBtnAnchored);
17
- const ContainerContentGroupsRootStyled = styled("section", {
18
- name: SIDEBAR_KEY_COMPONENT,
19
- slot: ContentGroupsSlots.containerContentGroupsRoot
20
- })(sideBarStyles?.containerContentGroupsRoot);
17
+ slot: ContentGroupsSlots.containerTreeGroupItems
18
+ })(sideBarStyles?.containerTreeGroupItems);
21
19
  const ContainerContentGroupsStyled = styled("section", {
22
20
  name: SIDEBAR_KEY_COMPONENT,
23
21
  slot: ContentGroupsSlots.containerContentGroups
@@ -26,7 +24,7 @@ const ContainerContentTitleStyled = styled("div", {
26
24
  name: SIDEBAR_KEY_COMPONENT,
27
25
  slot: ContentGroupsSlots.containerContentTitle
28
26
  })(sideBarStyles?.containerContentTitle);
29
- const ContainerContentNavItemsStyled = styled("nav", {
27
+ styled("nav", {
30
28
  name: SIDEBAR_KEY_COMPONENT,
31
29
  slot: ContentGroupsSlots.containerContentNavItems
32
30
  })(sideBarStyles?.containerContentNavItems);
@@ -38,14 +36,22 @@ const ContainerArrowIconRootStyled = styled("div", {
38
36
  name: SIDEBAR_KEY_COMPONENT,
39
37
  slot: ContentGroupsSlots.containerArrowIconRoot
40
38
  })(sideBarStyles?.containerArrowIconRoot);
41
- const ContainerHeaderSidebarRootStyled = styled("section", {
39
+ const HeaderContainerComponentStyled = styled("section", {
40
+ name: SIDEBAR_KEY_COMPONENT,
41
+ slot: HeaderSidebarSlots.headerContainerComponent
42
+ })(sideBarStyles?.headerContainerComponent);
43
+ const ContainerAdornmentIconStyled = styled("div", {
42
44
  name: SIDEBAR_KEY_COMPONENT,
43
- slot: HeaderSidebarSlots.containerHeaderSidebarRoot
44
- })(sideBarStyles?.containerHeaderSidebarRoot);
45
- const ContainerTitleSubtitleStyled = styled("div", {
45
+ slot: ContentGroupsSlots.containerAdornmentIcon
46
+ })(sideBarStyles?.containerAdornmentIcon);
47
+ const BackgroundAdornmentIconStyled = styled("div", {
46
48
  name: SIDEBAR_KEY_COMPONENT,
47
- slot: HeaderSidebarSlots.containerTitleSubtitle
48
- })(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);
49
55
  const ContainerFooterStyled = styled("div", {
50
56
  name: SIDEBAR_KEY_COMPONENT,
51
57
  slot: SideBarFooterSlots.containerFooter
@@ -58,33 +64,38 @@ const ContentComponentRootStyled = styled("div", {
58
64
  name: SIDEBAR_KEY_COMPONENT,
59
65
  slot: ContentComponentSlots.contentComponentRoot
60
66
  })(sideBarStyles?.contentComponentRoot);
61
- const ContentComponentHideStyled = styled("div", {
67
+ const ContainerTreeItemsHeaderFooterStyled = styled("div", {
68
+ name: SIDEBAR_KEY_COMPONENT,
69
+ slot: ContentComponentSlots.containerTreeItemsHeaderFooter
70
+ })(sideBarStyles?.containerTreeItemsHeaderFooter);
71
+ const ContainerNodeMenuItemStyled = styled("div", {
62
72
  name: SIDEBAR_KEY_COMPONENT,
63
- slot: ContentComponentSlots.contentComponentHide
64
- })(sideBarStyles?.contentComponentHide);
65
- const ContainerComponentStyled = styled("div", {
73
+ slot: ContentComponentSlots.containerNodeMenuItem
74
+ })(sideBarStyles?.containerNodeMenuItem);
75
+ const ContainerNodeMenuItemMainStyled = styled("div", {
66
76
  name: SIDEBAR_KEY_COMPONENT,
67
- slot: ContentComponentSlots.containerComponent
68
- })(sideBarStyles?.containerComponent);
69
- const ContainerMenuItemsStyled = styled("div", {
77
+ slot: ContentComponentSlots.containerNodeMenuItemMain
78
+ })(sideBarStyles?.containerNodeMenuItemMain);
79
+ const MenuItemMainStyled = styled(MenuItem, {
70
80
  name: SIDEBAR_KEY_COMPONENT,
71
- slot: ContainerMenuItemsMainSlots.containerMenuItems
72
- })(sideBarStyles?.containerMenuItems);
81
+ slot: ContentComponentSlots.menuItemMain
82
+ })(sideBarStyles?.menuItemMain);
73
83
  export {
84
+ ButtonAnchoredStyled as B,
74
85
  ContentComponentRootStyled as C,
75
- ContentComponentHideStyled as a,
76
- ContainerComponentStyled as b,
77
- ContainerBtnAnchoredStyled as c,
78
- ContainerContentGroupsRootStyled as d,
79
- ContainerContentGroupsStyled as e,
80
- ContainerContentTitleStyled as f,
81
- ContainerContentNavItemsStyled as g,
82
- ContainerMenuItemsStyled as h,
83
- ContainerArrowIconRootStyled as i,
84
- ContainerFooterStyled as j,
85
- ContainerHeaderSidebarRootStyled as k,
86
- ContainerTitleSubtitleStyled as l,
87
- ContainerDesktopContentStyled as m,
88
- ContainerDesktopRootStyled as n,
89
- ContainerSideBarMobileStyled as o
86
+ HeaderContainerComponentStyled as H,
87
+ MenuItemMainStyled as M,
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,
98
+ ContainerArrowIconRootStyled as k,
99
+ ContainerNodeMenuItemStyled as l,
100
+ ContainerNodeMenuItemMainStyled as m
90
101
  };
@@ -1,16 +1,14 @@
1
1
  import { s as sideBarDesktopStyles } from "./subcomponents/SideBarDesktop/styles.js";
2
- import { c as contentGroupStyles } from "./subcomponents/ContentGroups/styles.js";
3
- import { h as headerSidebarStyles } from "./subcomponents/HeaderSidebar/styles.js";
4
- import { f as footerSideBarStyles } from "./subcomponents/FooterSidebar/styles.js";
2
+ import { c as contentGroupStyles } from "./subcomponents/TreeGroupItems/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
- import { c as containerMenuItemsMainStyles } from "./subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js";
7
6
  import { s as sideBarMobileStyles } from "./subcomponents/SideBarMobile/styles.js";
8
7
  const sideBarStyles = {
9
- ...containerMenuItemsMainStyles,
10
8
  ...sideBarDesktopStyles,
11
9
  ...sideBarMobileStyles,
12
10
  ...contentGroupStyles,
13
- ...headerSidebarStyles,
11
+ ...headerComponentStyles,
14
12
  ...footerSideBarStyles,
15
13
  ...contentComponentStyles
16
14
  };
@@ -1,59 +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 ContentComponentHideStyled, b as ContainerComponentStyled, c as ContainerBtnAnchoredStyled } from "../../slots/SideBarSlots.js";
6
- import { C as ContentGroups } from "../ContentGroups/index.js";
7
- import { F as FooterSidebar } from "../FooterSidebar/index.js";
8
- import { H as HeaderSidebar } from "../HeaderSidebar/index.js";
9
- import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
10
- import { a as PATH_ARROW_RIGHT_ICON, C as CONTAINER_BTN_ANCHORED } from "../../constants.js";
3
+ import { C as ContentComponentRootStyled, a as ContainerTreeItemsHeaderFooterStyled } from "../../slots/SideBarSlots.js";
4
+ import { T as TreeGroupItems } from "../TreeGroupItems/index.js";
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, companyName, companySlogan, companyLogoSmallUrl, expandedWidth, size } = 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 { host_static_assets, environment_assets } = useEnvironment();
20
- const isDesktop = !useIsMobile();
21
15
  const { currentSize } = useComponentSize(size);
22
- const classRootBtnAnchored = getComponentSlotRoot(CONTAINER_BTN_ANCHORED);
23
- const handlerAnchoredButton = () => {
24
- onToggleAnchored(!anchored);
25
- };
26
- return /* @__PURE__ */ jsxs(ContentComponentRootStyled, { ownerState, children: [
27
- /* @__PURE__ */ jsx(ContentComponentHideStyled, { ownerState: { ...ownerState, isDesktop }, role: "complementary", "aria-label": "hidden content", children: /* @__PURE__ */ jsxs(ContainerComponentStyled, { ownerState, children: [
28
- /* @__PURE__ */ jsx(
29
- HeaderSidebar,
30
- {
31
- title: companyName ?? "",
32
- subtitle: companySlogan ?? "",
33
- srcIcon: companyLogoSmallUrl ?? ""
34
- }
35
- ),
36
- /* @__PURE__ */ jsx(ContentGroups, { size: currentSize }),
37
- /* @__PURE__ */ jsx(FooterSidebar, { onToggleAnchored, anchored })
38
- ] }) }),
39
- isDesktop && /* @__PURE__ */ jsx(
40
- ContainerBtnAnchoredStyled,
41
- {
42
- className: classRootBtnAnchored,
43
- ownerState,
44
- children: /* @__PURE__ */ jsx(
45
- IconButton,
46
- {
47
- role: "anchored-button",
48
- variant: "outline",
49
- rotationAngle: !anchored ? 0 : 180,
50
- onClick: handlerAnchoredButton,
51
- src: `${host_static_assets}/${environment_assets}/${PATH_ARROW_RIGHT_ICON}`
52
- }
53
- )
54
- }
55
- )
56
- ] });
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
+ ] }) });
57
21
  };
58
22
  export {
59
23
  ContentComponent as C
@@ -1,44 +1,169 @@
1
+ import { C as CLASS_NAME_IS_ROOT, a as CLASS_NAME_MENU_ACTIVE, b as CLASS_NAME_ITEM_IN_TREE_ACTIVE } from "../../constants.js";
2
+ import { g as getTypographyStyles } from "../../../../utils/getTypographyStyles.js";
3
+ import { g as getSizeStyles } from "../../../../utils/getSizeStyles/getSizeStyles.js";
1
4
  const contentComponentStyles = {
2
5
  /**
3
6
  * Estilos del contenedor principal del sidebar
4
7
  */
5
8
  contentComponentRoot: ({ theme }) => ({
6
9
  position: "relative",
7
- height: "100%",
8
- width: "auto",
9
- backgroundColor: theme.vars.palette.background.default,
10
10
  display: "flex",
11
- flexDirection: "column"
11
+ flexDirection: "column",
12
+ height: "100%",
13
+ width: "100%",
14
+ backgroundColor: theme.vars.palette.background.default
12
15
  }),
13
16
  /**
14
- * Estilos del contenedor que oculta el contenido cuando se encuentra des anclado.
17
+ * Contenedor que abraza el contenido del menu en primer lugar.
15
18
  */
16
- contentComponentHide: ({ theme, ownerState }) => ({
17
- width: "100%",
19
+ containerTreeItemsHeaderFooter: ({ theme, ownerState }) => ({
18
20
  height: "100%",
19
- overflow: "hidden",
20
- transition: "all 0.5s",
21
+ width: "100%",
21
22
  flex: 1,
22
- ...!ownerState?.anchored && {
23
- width: ownerState?.anchored && ownerState?.isDesktop ? ownerState?.expandedWidth : !ownerState?.isDesktop ? "100%" : theme.vars.size.baseSpacings.sp4,
24
- "&:hover": {
25
- transition: "all 0.5s",
26
- width: ownerState?.expandedWidth,
27
- contentVisibility: "visible",
28
- '& [class*="containerFooter"]': {
29
- borderWidth: theme.vars.size.baseSpacings["sp0-5"]
30
- }
23
+ overflow: "hidden",
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ gap: theme.vars.size.baseSpacings.sp4,
27
+ padding: "3px",
28
+ paddingBottom: theme.vars.size.baseSpacings.sp4,
29
+ ...!ownerState?.anchored && ownerState?.variant !== "host" && {
30
+ transition: "all 0.5s",
31
+ paddingLeft: "unset",
32
+ paddingRight: "unset"
33
+ },
34
+ '& [class*="M4LMenuItem-root"], & [class*="M4LMenuItem-skeletonMenuItem"]': {
35
+ ...getSizeStyles(
36
+ theme,
37
+ ownerState?.size || "medium",
38
+ "container",
39
+ (size) => ({
40
+ height: size,
41
+ minHeight: size,
42
+ maxHeight: size
43
+ })
44
+ )
45
+ },
46
+ "& .M4LMenuItem-root": {
47
+ border: "unset",
48
+ paddingLeft: theme.vars.size.baseSpacings.sp2,
49
+ paddingRight: theme.vars.size.baseSpacings.sp2,
50
+ "& .M4LTypography-root": {
51
+ paddingLeft: `${theme.vars.size.baseSpacings.sp2} !important`,
52
+ ...getTypographyStyles(
53
+ theme.generalSettings.isMobile,
54
+ ownerState?.size || "medium",
55
+ "caption"
56
+ )
31
57
  }
32
58
  }
33
59
  }),
34
60
  /**
35
- * Contenedor que abraza el contenido del menu en primer lugar.
61
+ * Contenedor que contiene grupo menu item desplegable.
36
62
  */
37
- containerComponent: ({ ownerState }) => ({
38
- height: "100%",
39
- width: ownerState?.expandedWidth,
63
+ containerNodeMenuItem: ({ theme }) => ({
64
+ marginLeft: "22px",
40
65
  display: "flex",
41
- flexDirection: "column"
66
+ flexDirection: "column",
67
+ overflow: "visible",
68
+ position: "relative",
69
+ gap: theme.vars.size.baseSpacings.sp1,
70
+ '& [class*="M4LMenuItem-root"]:not(.menu-active)': {
71
+ "& .M4LTypography-root": {
72
+ color: `${theme.vars.palette.text.secondary}!important`
73
+ }
74
+ },
75
+ [`&.${CLASS_NAME_IS_ROOT}`]: {
76
+ margin: "unset"
77
+ },
78
+ [`&.M4LSidebar-containerNodeMenuItem > .M4LMenuItem-root[class*="${CLASS_NAME_ITEM_IN_TREE_ACTIVE}"] .M4LIconClass-root`]: {
79
+ background: theme.vars.palette.text.primary
80
+ },
81
+ [`& > .M4LMenuItem-root:not(.${CLASS_NAME_IS_ROOT}).${CLASS_NAME_MENU_ACTIVE}`]: {
82
+ "&::before": {
83
+ content: '""',
84
+ position: "absolute",
85
+ width: "5px",
86
+ height: "5px",
87
+ top: "50%",
88
+ transform: "translateY(-50%)",
89
+ left: "-3px",
90
+ borderRadius: "50%",
91
+ backgroundColor: theme.vars.palette.primary.focus,
92
+ zIndex: 1
93
+ },
94
+ "&::after": {
95
+ content: '""',
96
+ position: "absolute",
97
+ width: "1px",
98
+ top: "5px",
99
+ bottom: "5px",
100
+ left: "-1px",
101
+ backgroundImage: `linear-gradient(to bottom,
102
+ ${theme.vars.palette.primary.opacityGradient2},
103
+ ${theme.vars.palette.primary.opacityGradient1},
104
+ ${theme.vars.palette.primary.opacityGradient2})`
105
+ }
106
+ },
107
+ [`& > .M4LMenuItem-root.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}`]: {
108
+ backgroundColor: theme.vars.palette.primary.opacity
109
+ },
110
+ "& .MuiCollapse-wrapperInner": {
111
+ display: "flex",
112
+ flexDirection: "column",
113
+ paddingLeft: 0,
114
+ paddingBottom: theme.vars.size.baseSpacings.sp1,
115
+ paddingTop: 0,
116
+ "&:before": {
117
+ content: '""',
118
+ position: "absolute",
119
+ width: "1px",
120
+ top: "0",
121
+ bottom: "0",
122
+ left: "-1px",
123
+ backgroundColor: theme.vars.palette.background.default,
124
+ zIndex: 1
125
+ }
126
+ },
127
+ [`&.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}`]: {
128
+ backgroundColor: theme.vars.palette.background.default,
129
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
130
+ border: theme.vars.size.borderStroke.container,
131
+ borderColor: theme.vars.palette.primary.selectedOpacity,
132
+ boxShadow: theme.vars.customShadows.z2,
133
+ overflow: "hidden"
134
+ },
135
+ "& .MuiCollapse-root:first-of-type": {
136
+ position: "relative"
137
+ },
138
+ "&.menu-active .MuiCollapse-wrapper.MuiCollapse-vertical:first-of-type:before": {
139
+ content: '""',
140
+ position: "absolute",
141
+ width: "1px",
142
+ top: "5px",
143
+ bottom: "5px",
144
+ left: "21px",
145
+ borderLeft: theme.vars.size.borderStroke.container,
146
+ borderColor: theme.vars.palette.border.secondary,
147
+ zIndex: 1
148
+ }
149
+ }),
150
+ /**
151
+ * Contenedor que contiene el menu item principal.
152
+ */
153
+ containerNodeMenuItemMain: ({ theme }) => ({
154
+ gap: theme.vars.size.baseSpacings.sp1
155
+ }),
156
+ /**
157
+ * Estilos del menu item principal.
158
+ */
159
+ menuItemMain: ({ theme, ownerState }) => ({
160
+ "&&& .M4LTypography-root": {
161
+ ...getTypographyStyles(
162
+ theme.generalSettings.isMobile,
163
+ ownerState?.size || "medium",
164
+ "bodyDens"
165
+ )
166
+ }
42
167
  })
43
168
  };
44
169
  export {
@@ -1,4 +1,4 @@
1
- import { FooterSidebarProps } from './types';
1
+ import { PromotionProps } from './types';
2
2
  /**
3
3
  * Renderiza el footer del sidebar
4
4
  * @param {CollapseButtonProps} props - Propiedades del componente
@@ -6,4 +6,4 @@ import { FooterSidebarProps } 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 FooterSidebar({ anchored }: FooterSidebarProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function FooterComponent({ anchored }: PromotionProps): import("react/jsx-runtime").JSX.Element | null;
@@ -2,32 +2,25 @@ 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 { j as ContainerFooterStyled } from "../../slots/SideBarSlots.js";
6
- import { I as Image } from "../../../Image/Image.js";
7
- function FooterSidebar({ anchored }) {
8
- const { companyLogoNormalUrl } = useSideBar();
5
+ import { b as ContainerFooterStyled } from "../../slots/SideBarSlots.js";
6
+ function FooterComponent({ anchored }) {
7
+ const { footerComponent: promotion } = useSideBar();
9
8
  const ownerState = {
10
9
  anchored
11
10
  };
11
+ if (!promotion) {
12
+ return null;
13
+ }
12
14
  return /* @__PURE__ */ jsx(
13
15
  ContainerFooterStyled,
14
16
  {
15
17
  ownerState,
16
18
  role: "footer",
17
19
  ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("footer") } : {},
18
- children: /* @__PURE__ */ jsx(
19
- Image,
20
- {
21
- width: "auto",
22
- height: "40px",
23
- src: companyLogoNormalUrl || "",
24
- alt: "logo"
25
- },
26
- "Logo"
27
- )
20
+ children: promotion
28
21
  }
29
22
  );
30
23
  }
31
24
  export {
32
- FooterSidebar as F
25
+ FooterComponent as F
33
26
  };
@@ -6,10 +6,16 @@ const footerSideBarStyles = {
6
6
  height: "auto",
7
7
  display: "grid",
8
8
  placeItems: "center",
9
- padding: `${theme.vars.size.baseSpacings.sp4} ${theme.vars.size.baseSpacings.sp12}`,
10
9
  borderTop: `${theme.vars.size.baseSpacings["sp0-5"]} solid ${theme.vars.palette.border.secondary}`,
11
10
  borderWidth: ownerState?.anchored ? theme.vars.size.baseSpacings["sp0-5"] : theme.vars.size.baseSpacings.sp0,
12
- transition: "all 0.5s"
11
+ transition: "all 0.5s",
12
+ paddingBottom: theme.vars.size.baseSpacings.sp2,
13
+ marginLeft: theme.vars.size.baseSpacings.sp4,
14
+ marginRight: theme.vars.size.baseSpacings.sp4,
15
+ ...!ownerState?.anchored && !theme.generalSettings.isMobile && {
16
+ transition: "all 0.5s",
17
+ visibility: "hidden"
18
+ }
13
19
  })
14
20
  };
15
21
  export {
@@ -0,0 +1,5 @@
1
+ export interface PromotionProps {
2
+ onToggleAnchored: (anchored: boolean) => void;
3
+ anchored: boolean;
4
+ }
5
+ export type WrapperCollapseButtonProps = Pick<PromotionProps, 'anchored'>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Componente que representa el encabezado del sidebar.
3
+ * @returns {JSX.Element}
4
+ */
5
+ export declare const HeaderComponent: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { u as useSideBar } from "../../hooks/useSideBar/index.js";
3
+ import { H as HeaderContainerComponentStyled, B as ButtonAnchoredStyled } from "../../slots/SideBarSlots.js";
4
+ import { useEnvironment } from "@m4l/core";
5
+ import { c as PATH_ARROW_RIGHT_ICON } from "../../constants.js";
6
+ import { useIsMobile } from "@m4l/graphics";
7
+ const HeaderComponent = () => {
8
+ const {
9
+ headerComponent,
10
+ onToggleAnchored,
11
+ anchored,
12
+ variant,
13
+ classes
14
+ } = useSideBar();
15
+ const { host_static_assets, environment_assets } = useEnvironment();
16
+ const isDesktop = !useIsMobile();
17
+ const handleToggleAnchored = () => {
18
+ onToggleAnchored(!anchored);
19
+ };
20
+ return /* @__PURE__ */ jsxs(HeaderContainerComponentStyled, { ownerState: { anchored, variant }, children: [
21
+ headerComponent && headerComponent,
22
+ variant === "microfrontend" && isDesktop && /* @__PURE__ */ jsx(
23
+ ButtonAnchoredStyled,
24
+ {
25
+ icon: `${host_static_assets}/${environment_assets}/${PATH_ARROW_RIGHT_ICON}`,
26
+ onClick: handleToggleAnchored,
27
+ rotationAngle: anchored ? 180 : 0,
28
+ className: classes.buttonAnchored,
29
+ variant: "outline",
30
+ role: "anchored-button"
31
+ }
32
+ )
33
+ ] });
34
+ };
35
+ export {
36
+ HeaderComponent as H
37
+ };
@@ -0,0 +1 @@
1
+ export { HeaderComponent } from './HeaderComponent';
@@ -0,0 +1,2 @@
1
+ import { HeaderComponentStyles } from '../../types';
2
+ export declare const headerComponentStyles: HeaderComponentStyles;