@m4l/components 9.2.63 → 9.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +8 -0
- package/components/AppBar/AppBar.js +12 -10
- package/components/AppBar/constants.d.ts +1 -1
- package/components/AppBar/constants.js +1 -1
- package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
- package/components/AppBar/slots/AppBarEnum.js +0 -4
- package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
- package/components/AppBar/slots/AppBarSlots.js +3 -27
- package/components/AppBar/styles.js +0 -42
- package/components/AppBar/types.d.ts +8 -0
- package/components/Chip/ChipStyles.js +1 -1
- package/components/ContainerFlow/ContainerFlow.d.ts +7 -0
- package/components/ContainerFlow/ContainerFlow.js +25 -0
- package/components/ContainerFlow/ContainerFlow.styles.d.ts +2 -0
- package/components/ContainerFlow/ContainerFlow.styles.js +46 -0
- package/components/ContainerFlow/constants.d.ts +9 -0
- package/components/ContainerFlow/constants.js +21 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.d.ts +7 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +10 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.test.d.ts +1 -0
- package/components/ContainerFlow/index.d.ts +2 -0
- package/components/ContainerFlow/index.js +1 -0
- package/components/ContainerFlow/slots/ContainerFlowEnum.d.ts +4 -0
- package/components/ContainerFlow/slots/ContainerFlowEnum.js +8 -0
- package/components/ContainerFlow/slots/ContainerFlowSlots.d.ts +6 -0
- package/components/ContainerFlow/slots/ContainerFlowSlots.js +16 -0
- package/components/ContainerFlow/slots/index.d.ts +0 -0
- package/components/ContainerFlow/tests/ContainerFlow.test.d.ts +1 -0
- package/components/ContainerFlow/types.d.ts +41 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/Image/Image.js +4 -2
- package/components/Image/image.styles.js +6 -3
- package/components/Image/types.d.ts +5 -0
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/SideBar.js +6 -2
- package/components/SideBar/constants.d.ts +8 -6
- package/components/SideBar/constants.js +8 -8
- package/components/SideBar/context/sideBarContext/index.js +9 -10
- package/components/SideBar/context/sideBarContext/types.d.ts +2 -10
- package/components/SideBar/slots/SideBarEnum.d.ts +8 -7
- package/components/SideBar/slots/SideBarEnum.js +6 -5
- package/components/SideBar/slots/SideBarSlots.d.ts +12 -9
- package/components/SideBar/slots/SideBarSlots.js +36 -28
- package/components/SideBar/styles.js +3 -3
- package/components/SideBar/subcomponents/ContentComponent/index.js +12 -68
- package/components/SideBar/subcomponents/ContentComponent/style.js +134 -107
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.d.ts +1 -1
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.js +4 -4
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.js +8 -2
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.js +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.js +40 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +4 -32
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.js +4 -3
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +112 -2
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +9 -7
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +1 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +11 -6
- package/components/SideBar/types.d.ts +12 -7
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +4 -4
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.d.ts +1 -1
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +7 -6
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/styles.js +3 -5
- package/components/mui_extended/MenuItem/MenuItem.js +1 -1
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +4 -1
- package/components/mui_extended/TabContent/constants.d.ts +1 -0
- package/components/mui_extended/TabContent/constants.js +2 -0
- package/components/mui_extended/TabContent/types.d.ts +13 -1
- package/components/mui_extended/Typography/Typography.js +3 -1
- package/components/mui_extended/Typography/types.d.ts +5 -0
- package/components/mui_extended/Typography/typography.styles.js +7 -1
- package/index.js +32 -30
- package/package.json +1 -1
- package/storybook/components/ContainerFlow/ContainerFlow.stories.d.ts +32 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +10 -0
- package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +1 -0
- package/utils/getSizeStyles/getSizeStyles.d.ts +1 -1
- package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -6
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
- package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +0 -1
- /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/types.d.ts +0 -0
- /package/storybook/components/SideBar/subcomponents/{FooterPromotion → FooterComponentHost}/constants.d.ts +0 -0
|
@@ -2,11 +2,14 @@ const imageStyles = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Estilos para Image.
|
|
4
4
|
*/
|
|
5
|
-
root: {
|
|
5
|
+
root: ({ ownerState }) => ({
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
|
-
alignItems: "flex-start"
|
|
9
|
-
|
|
8
|
+
alignItems: "flex-start",
|
|
9
|
+
...ownerState?.cover && {
|
|
10
|
+
objectFit: "cover"
|
|
11
|
+
}
|
|
12
|
+
}),
|
|
10
13
|
/**
|
|
11
14
|
* Estilos para el intersectComponente o para el 'span'
|
|
12
15
|
*/
|
|
@@ -31,9 +31,14 @@ export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible'
|
|
|
31
31
|
enableIntersectionObserver?: boolean;
|
|
32
32
|
className?: string;
|
|
33
33
|
dataTestId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Si es verdadero, la imagen se ajusta al contenedor y se recorta si es necesario.
|
|
36
|
+
*/
|
|
37
|
+
cover?: boolean;
|
|
34
38
|
}
|
|
35
39
|
export type ImageSlotsType = keyof typeof ImageSlots;
|
|
36
40
|
export interface ImageOwnerState {
|
|
37
41
|
isSkeleton?: boolean;
|
|
42
|
+
cover?: boolean;
|
|
38
43
|
}
|
|
39
44
|
export type ImageStyles = M4LOverridesStyleRules<ImageSlots, typeof IMAGE_KEY_COMPONENT, Theme>;
|
|
@@ -3,8 +3,8 @@ import { L as LOADING_ERROR_KEY_COMPONENT } from "../constants.js";
|
|
|
3
3
|
import { L as LoadingErrorSlots } from "./LoadingErrorEnum.js";
|
|
4
4
|
import { l as loadingErrorStyles } from "../LoadingError.styles.js";
|
|
5
5
|
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
|
-
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
6
|
import { I as Image } from "../../Image/Image.js";
|
|
7
|
+
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
8
|
const LoadingErrorRootStyled = styled("div", {
|
|
9
9
|
name: LOADING_ERROR_KEY_COMPONENT,
|
|
10
10
|
slot: LoadingErrorSlots.root
|
|
@@ -56,9 +56,11 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
59
60
|
case "numberInput:inputChange":
|
|
60
61
|
onChange?.(event, fieldValue);
|
|
61
62
|
break;
|
|
63
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
62
64
|
case "numberInput:clamp":
|
|
63
65
|
onChange?.(event, fieldValue);
|
|
64
66
|
break;
|
|
@@ -85,7 +85,7 @@ const propertyValueStyles = {
|
|
|
85
85
|
width: "100%",
|
|
86
86
|
display: "flex",
|
|
87
87
|
justifyContent: "flex-start",
|
|
88
|
-
alignItems: "
|
|
88
|
+
alignItems: "flex-start",
|
|
89
89
|
overflow: "hidden",
|
|
90
90
|
height: ownerState?.valueHeight ? ownerState?.valueHeight : "auto",
|
|
91
91
|
...ownerState?.isForm && {
|
|
@@ -24,7 +24,9 @@ const SideBar = memo((props) => {
|
|
|
24
24
|
companyName,
|
|
25
25
|
companySlogan,
|
|
26
26
|
urlIconPrefix = `${host_static_assets}/${environment_assets}${PATH_ICONS}`,
|
|
27
|
-
|
|
27
|
+
headerComponent,
|
|
28
|
+
footerComponent,
|
|
29
|
+
variant = "host"
|
|
28
30
|
} = props;
|
|
29
31
|
const menuDataWithState = useMemo(() => getMenuDataWithState({ menuData: menuData ?? getDataToSkeleton(), moduleSelectedId }), [menuData, moduleSelectedId]);
|
|
30
32
|
const isMobile = useIsMobile();
|
|
@@ -46,7 +48,9 @@ const SideBar = memo((props) => {
|
|
|
46
48
|
companyName,
|
|
47
49
|
companySlogan,
|
|
48
50
|
urlIconPrefix,
|
|
49
|
-
|
|
51
|
+
variant,
|
|
52
|
+
headerComponent,
|
|
53
|
+
footerComponent
|
|
50
54
|
},
|
|
51
55
|
children: !isMobile ? /* @__PURE__ */ jsx(SideBarDesktop, {}) : /* @__PURE__ */ jsx(SideBarMobile, {})
|
|
52
56
|
}
|
|
@@ -4,29 +4,31 @@ export declare const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
|
|
|
4
4
|
export declare const LIST_MENU_ITEM = "M4LListMenuItem";
|
|
5
5
|
export declare const PATH_ICONS = "/frontend/domain/microfrontends/";
|
|
6
6
|
export declare const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
|
|
7
|
-
export declare const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/
|
|
7
|
+
export declare const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
|
|
8
8
|
export declare const ALL_SIDEBAR_SLOTS: {
|
|
9
9
|
contentComponentRoot: ContentComponentSlots.contentComponentRoot;
|
|
10
|
-
|
|
11
|
-
containerTreeItemsAndPromotion: ContentComponentSlots.containerTreeItemsAndPromotion;
|
|
10
|
+
containerTreeItemsHeaderFooter: ContentComponentSlots.containerTreeItemsHeaderFooter;
|
|
12
11
|
containerNodeMenuItem: ContentComponentSlots.containerNodeMenuItem;
|
|
13
12
|
containerNodeMenuItemMain: ContentComponentSlots.containerNodeMenuItemMain;
|
|
14
13
|
menuItemMain: ContentComponentSlots.menuItemMain;
|
|
15
14
|
containerFooter: SideBarFooterSlots.containerFooter;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
headerContainerComponent: HeaderSidebarSlots.headerContainerComponent;
|
|
16
|
+
buttonAnchored: HeaderSidebarSlots.buttonAnchored;
|
|
18
17
|
containerTreeGroupItems: ContentGroupsSlots.containerTreeGroupItems;
|
|
19
18
|
containerContentGroups: ContentGroupsSlots.containerContentGroups;
|
|
20
19
|
containerContentTitle: ContentGroupsSlots.containerContentTitle;
|
|
21
20
|
containerContentNavItems: ContentGroupsSlots.containerContentNavItems;
|
|
22
21
|
containerContentItem: ContentGroupsSlots.containerContentItem;
|
|
23
22
|
containerArrowIconRoot: ContentGroupsSlots.containerArrowIconRoot;
|
|
23
|
+
containerAdornmentIcon: ContentGroupsSlots.containerAdornmentIcon;
|
|
24
|
+
wrapperMenuItem: ContentGroupsSlots.wrapperMenuItem;
|
|
25
|
+
backgroundAdornmentIcon: ContentGroupsSlots.backgroundAdornmentIcon;
|
|
24
26
|
containerSideBarMobile: SideBarMobileSlots.containerSideBarMobile;
|
|
25
27
|
containerDesktopRoot: SideBarDesktopSlots.containerDesktopRoot;
|
|
26
28
|
containerDesktopContent: SideBarDesktopSlots.containerDesktopContent;
|
|
27
|
-
containerBtnAnchored: SideBarDesktopSlots.containerBtnAnchored;
|
|
28
29
|
};
|
|
29
30
|
export declare const CLASS_NAME_IS_ROOT = "is-root";
|
|
30
31
|
export declare const CLASS_NAME_MENU_ACTIVE = "menu-active";
|
|
31
32
|
export declare const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
|
|
32
33
|
export declare const CLASS_NAME_HAS_CHILDREN = "has-children";
|
|
34
|
+
export declare const CLASS_NAME_ITEM_CLOSED = "item-closed";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { C as ContentComponentSlots, S as SideBarFooterSlots, H as HeaderSidebarSlots, a as ContentGroupsSlots, b as SideBarMobileSlots, c as SideBarDesktopSlots } from "./slots/SideBarEnum.js";
|
|
2
2
|
const SIDEBAR_KEY_COMPONENT = "M4LSideBar";
|
|
3
|
-
const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
|
|
4
3
|
const PATH_ICONS = "/frontend/domain/microfrontends/";
|
|
5
4
|
const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
|
|
6
|
-
const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/
|
|
5
|
+
const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
|
|
7
6
|
const ALL_SIDEBAR_SLOTS = {
|
|
8
7
|
...SideBarDesktopSlots,
|
|
9
8
|
...SideBarMobileSlots,
|
|
@@ -16,15 +15,16 @@ const CLASS_NAME_IS_ROOT = "is-root";
|
|
|
16
15
|
const CLASS_NAME_MENU_ACTIVE = "menu-active";
|
|
17
16
|
const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
|
|
18
17
|
const CLASS_NAME_HAS_CHILDREN = "has-children";
|
|
18
|
+
const CLASS_NAME_ITEM_CLOSED = "item-closed";
|
|
19
19
|
export {
|
|
20
20
|
ALL_SIDEBAR_SLOTS as A,
|
|
21
|
-
|
|
21
|
+
CLASS_NAME_IS_ROOT as C,
|
|
22
22
|
PATH_ICONS as P,
|
|
23
23
|
SIDEBAR_KEY_COMPONENT as S,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
CLASS_NAME_MENU_ACTIVE as a,
|
|
25
|
+
CLASS_NAME_ITEM_IN_TREE_ACTIVE as b,
|
|
26
|
+
CLASS_NAME_HAS_CHILDREN as c,
|
|
27
|
+
CLASS_NAME_ITEM_CLOSED as d,
|
|
28
|
+
PATH_ARROW_RIGHT_ICON as e,
|
|
29
29
|
PATH_ARROW_DOWN_ICON as f
|
|
30
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { createContext } from "react";
|
|
3
3
|
import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { A as ALL_SIDEBAR_SLOTS, S as SIDEBAR_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
const classes = getComponentClasses(SIDEBAR_KEY_COMPONENT, ALL_SIDEBAR_SLOTS);
|
|
@@ -19,15 +19,12 @@ const initialState = {
|
|
|
19
19
|
companyName: "",
|
|
20
20
|
companySlogan: "",
|
|
21
21
|
classes,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setIsHover: (_isHover) => {
|
|
25
|
-
}
|
|
22
|
+
headerComponent: /* @__PURE__ */ jsx(Fragment, {}),
|
|
23
|
+
footerComponent: /* @__PURE__ */ jsx(Fragment, {})
|
|
26
24
|
};
|
|
27
25
|
const SideBarContext = createContext(initialState);
|
|
28
26
|
const SideBarProvider = (props) => {
|
|
29
27
|
const { value, children } = props;
|
|
30
|
-
const [isHover, setIsHover] = useState(false);
|
|
31
28
|
const {
|
|
32
29
|
anchored,
|
|
33
30
|
visible,
|
|
@@ -42,7 +39,9 @@ const SideBarProvider = (props) => {
|
|
|
42
39
|
companyName,
|
|
43
40
|
companySlogan,
|
|
44
41
|
urlIconPrefix,
|
|
45
|
-
|
|
42
|
+
headerComponent,
|
|
43
|
+
footerComponent,
|
|
44
|
+
variant
|
|
46
45
|
} = value;
|
|
47
46
|
return (
|
|
48
47
|
// Proporcionar el contexto con las propiedades desestructuradas
|
|
@@ -64,9 +63,9 @@ const SideBarProvider = (props) => {
|
|
|
64
63
|
companySlogan,
|
|
65
64
|
urlIconPrefix,
|
|
66
65
|
classes,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
headerComponent,
|
|
67
|
+
footerComponent,
|
|
68
|
+
variant
|
|
70
69
|
},
|
|
71
70
|
children
|
|
72
71
|
}
|
|
@@ -17,15 +17,7 @@ export interface SideBarProviderValue extends SideBarProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Promoción del sidebar, se renderiza en el footer del sidebar
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Indica si el sidebar está siendo hoverado
|
|
23
|
-
*/
|
|
24
|
-
isHover: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Función para establecer el estado de hover
|
|
27
|
-
*/
|
|
28
|
-
setIsHover: (value: boolean) => void;
|
|
20
|
+
footerComponent: SideBarProps['footerComponent'];
|
|
29
21
|
}
|
|
30
22
|
/**
|
|
31
23
|
* Propiedades para el proveedor del contexto Sidebar.
|
|
@@ -38,5 +30,5 @@ export interface SideBarProviderProps {
|
|
|
38
30
|
/**
|
|
39
31
|
* Promoción del sidebar, se renderiza en el footer del sidebar
|
|
40
32
|
*/
|
|
41
|
-
promotion?: SideBarProps['
|
|
33
|
+
promotion?: SideBarProps['footerComponent'];
|
|
42
34
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare enum SideBarDesktopSlots {
|
|
2
2
|
containerDesktopRoot = "containerDesktopRoot",
|
|
3
|
-
containerDesktopContent = "containerDesktopContent"
|
|
4
|
-
containerBtnAnchored = "containerBtnAnchored"
|
|
3
|
+
containerDesktopContent = "containerDesktopContent"
|
|
5
4
|
}
|
|
6
5
|
export declare enum SideBarMobileSlots {
|
|
7
6
|
containerSideBarMobile = "containerSideBarMobile"
|
|
@@ -12,19 +11,21 @@ export declare enum ContentGroupsSlots {
|
|
|
12
11
|
containerContentTitle = "containerContentTitle",
|
|
13
12
|
containerContentNavItems = "containerContentNavItems",
|
|
14
13
|
containerContentItem = "containerContentItem",
|
|
15
|
-
containerArrowIconRoot = "containerArrowIconRoot"
|
|
14
|
+
containerArrowIconRoot = "containerArrowIconRoot",
|
|
15
|
+
containerAdornmentIcon = "containerAdornmentIcon",
|
|
16
|
+
wrapperMenuItem = "wrapperMenuItem",
|
|
17
|
+
backgroundAdornmentIcon = "backgroundAdornmentIcon"
|
|
16
18
|
}
|
|
17
19
|
export declare enum HeaderSidebarSlots {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
headerContainerComponent = "headerContainerComponent",
|
|
21
|
+
buttonAnchored = "buttonAnchored"
|
|
20
22
|
}
|
|
21
23
|
export declare enum SideBarFooterSlots {
|
|
22
24
|
containerFooter = "containerFooter"
|
|
23
25
|
}
|
|
24
26
|
export declare enum ContentComponentSlots {
|
|
25
27
|
contentComponentRoot = "contentComponentRoot",
|
|
26
|
-
|
|
27
|
-
containerTreeItemsAndPromotion = "containerTreeItemsAndPromotion",
|
|
28
|
+
containerTreeItemsHeaderFooter = "containerTreeItemsHeaderFooter",
|
|
28
29
|
containerNodeMenuItem = "containerNodeMenuItem",
|
|
29
30
|
containerNodeMenuItemMain = "containerNodeMenuItemMain",
|
|
30
31
|
menuItemMain = "menuItemMain"
|
|
@@ -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,14 @@ 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["wrapperMenuItem"] = "wrapperMenuItem";
|
|
19
|
+
ContentGroupsSlots2["backgroundAdornmentIcon"] = "backgroundAdornmentIcon";
|
|
18
20
|
return ContentGroupsSlots2;
|
|
19
21
|
})(ContentGroupsSlots || {});
|
|
20
22
|
var HeaderSidebarSlots = /* @__PURE__ */ ((HeaderSidebarSlots2) => {
|
|
21
|
-
HeaderSidebarSlots2["
|
|
22
|
-
HeaderSidebarSlots2["
|
|
23
|
+
HeaderSidebarSlots2["headerContainerComponent"] = "headerContainerComponent";
|
|
24
|
+
HeaderSidebarSlots2["buttonAnchored"] = "buttonAnchored";
|
|
23
25
|
return HeaderSidebarSlots2;
|
|
24
26
|
})(HeaderSidebarSlots || {});
|
|
25
27
|
var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
|
|
@@ -28,8 +30,7 @@ var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
|
|
|
28
30
|
})(SideBarFooterSlots || {});
|
|
29
31
|
var ContentComponentSlots = /* @__PURE__ */ ((ContentComponentSlots2) => {
|
|
30
32
|
ContentComponentSlots2["contentComponentRoot"] = "contentComponentRoot";
|
|
31
|
-
ContentComponentSlots2["
|
|
32
|
-
ContentComponentSlots2["containerTreeItemsAndPromotion"] = "containerTreeItemsAndPromotion";
|
|
33
|
+
ContentComponentSlots2["containerTreeItemsHeaderFooter"] = "containerTreeItemsHeaderFooter";
|
|
33
34
|
ContentComponentSlots2["containerNodeMenuItem"] = "containerNodeMenuItem";
|
|
34
35
|
ContentComponentSlots2["containerNodeMenuItemMain"] = "containerNodeMenuItemMain";
|
|
35
36
|
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,21 @@ 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
|
|
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
|
|
28
|
+
export declare const WrapperMenuItemStyled: 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 ContainerAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
32
|
+
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
33
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
34
|
+
export declare const BackgroundAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
32
35
|
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
33
36
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
37
|
+
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> & {
|
|
38
|
+
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
39
|
+
}, {}, {}>;
|
|
34
40
|
export declare const ContainerFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
41
|
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
36
42
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -40,10 +46,7 @@ export declare const ContainerSideBarMobileStyled: import('@emotion/styled').Sty
|
|
|
40
46
|
export declare const ContentComponentRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
41
47
|
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
42
48
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
43
|
-
export declare const
|
|
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> & {
|
|
49
|
+
export declare const ContainerTreeItemsHeaderFooterStyled: 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
52
|
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,
|
|
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,26 @@ 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.
|
|
45
|
-
})(sideBarStyles?.
|
|
46
|
-
styled("div", {
|
|
41
|
+
slot: HeaderSidebarSlots.headerContainerComponent
|
|
42
|
+
})(sideBarStyles?.headerContainerComponent);
|
|
43
|
+
const WrapperMenuItemStyled = styled("div", {
|
|
44
|
+
name: SIDEBAR_KEY_COMPONENT,
|
|
45
|
+
slot: ContentGroupsSlots.wrapperMenuItem
|
|
46
|
+
})(sideBarStyles?.wrapperMenuItem);
|
|
47
|
+
const ContainerAdornmentIconStyled = styled("div", {
|
|
47
48
|
name: SIDEBAR_KEY_COMPONENT,
|
|
48
|
-
slot:
|
|
49
|
-
})(sideBarStyles?.
|
|
49
|
+
slot: ContentGroupsSlots.containerAdornmentIcon
|
|
50
|
+
})(sideBarStyles?.containerAdornmentIcon);
|
|
51
|
+
const BackgroundAdornmentIconStyled = styled("div", {
|
|
52
|
+
name: SIDEBAR_KEY_COMPONENT,
|
|
53
|
+
slot: ContentGroupsSlots.backgroundAdornmentIcon
|
|
54
|
+
})(sideBarStyles?.backgroundAdornmentIcon);
|
|
55
|
+
const ButtonAnchoredStyled = styled(IconButton, {
|
|
56
|
+
name: SIDEBAR_KEY_COMPONENT,
|
|
57
|
+
slot: HeaderSidebarSlots.buttonAnchored
|
|
58
|
+
})(sideBarStyles?.buttonAnchored);
|
|
50
59
|
const ContainerFooterStyled = styled("div", {
|
|
51
60
|
name: SIDEBAR_KEY_COMPONENT,
|
|
52
61
|
slot: SideBarFooterSlots.containerFooter
|
|
@@ -59,14 +68,10 @@ const ContentComponentRootStyled = styled("div", {
|
|
|
59
68
|
name: SIDEBAR_KEY_COMPONENT,
|
|
60
69
|
slot: ContentComponentSlots.contentComponentRoot
|
|
61
70
|
})(sideBarStyles?.contentComponentRoot);
|
|
62
|
-
const
|
|
63
|
-
name: SIDEBAR_KEY_COMPONENT,
|
|
64
|
-
slot: ContentComponentSlots.contentComponentHide
|
|
65
|
-
})(sideBarStyles?.contentComponentHide);
|
|
66
|
-
const ContainerTreeItemsAndPromotionStyled = styled("div", {
|
|
71
|
+
const ContainerTreeItemsHeaderFooterStyled = styled("div", {
|
|
67
72
|
name: SIDEBAR_KEY_COMPONENT,
|
|
68
|
-
slot: ContentComponentSlots.
|
|
69
|
-
})(sideBarStyles?.
|
|
73
|
+
slot: ContentComponentSlots.containerTreeItemsHeaderFooter
|
|
74
|
+
})(sideBarStyles?.containerTreeItemsHeaderFooter);
|
|
70
75
|
const ContainerNodeMenuItemStyled = styled("div", {
|
|
71
76
|
name: SIDEBAR_KEY_COMPONENT,
|
|
72
77
|
slot: ContentComponentSlots.containerNodeMenuItem
|
|
@@ -80,18 +85,21 @@ const MenuItemMainStyled = styled(MenuItem, {
|
|
|
80
85
|
slot: ContentComponentSlots.menuItemMain
|
|
81
86
|
})(sideBarStyles?.menuItemMain);
|
|
82
87
|
export {
|
|
88
|
+
ButtonAnchoredStyled as B,
|
|
83
89
|
ContentComponentRootStyled as C,
|
|
90
|
+
HeaderContainerComponentStyled as H,
|
|
84
91
|
MenuItemMainStyled as M,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
WrapperMenuItemStyled as W,
|
|
93
|
+
ContainerTreeItemsHeaderFooterStyled as a,
|
|
94
|
+
ContainerFooterStyled as b,
|
|
95
|
+
ContainerDesktopContentStyled as c,
|
|
96
|
+
ContainerDesktopRootStyled as d,
|
|
97
|
+
ContainerSideBarMobileStyled as e,
|
|
98
|
+
ContainerTreeGroupItemsStyled as f,
|
|
99
|
+
ContainerContentGroupsStyled as g,
|
|
100
|
+
ContainerContentTitleStyled as h,
|
|
101
|
+
ContainerAdornmentIconStyled as i,
|
|
102
|
+
BackgroundAdornmentIconStyled as j,
|
|
95
103
|
ContainerArrowIconRootStyled as k,
|
|
96
104
|
ContainerNodeMenuItemStyled as l,
|
|
97
105
|
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
|
|
4
|
-
import { f as footerSideBarStyles } from "./subcomponents/
|
|
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
|
-
...
|
|
11
|
+
...headerComponentStyles,
|
|
12
12
|
...footerSideBarStyles,
|
|
13
13
|
...contentComponentStyles
|
|
14
14
|
};
|
|
@@ -1,79 +1,23 @@
|
|
|
1
|
-
import {
|
|
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
|
|
3
|
+
import { C as ContentComponentRootStyled, a as ContainerTreeItemsHeaderFooterStyled } from "../../slots/SideBarSlots.js";
|
|
6
4
|
import { T as TreeGroupItems } from "../TreeGroupItems/index.js";
|
|
7
|
-
import {
|
|
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 {
|
|
7
|
+
import { H as HeaderComponent } from "../HeaderComponent/HeaderComponent.js";
|
|
13
8
|
const ContentComponent = () => {
|
|
14
|
-
const { anchored, onToggleAnchored, expandedWidth, size,
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|