@m4l/components 9.1.31 → 9.1.33
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/components/AppBar/AppBar.js +6 -3
- package/components/AppBar/slots/AppBarEnum.d.ts +3 -1
- package/components/AppBar/slots/AppBarEnum.js +2 -0
- package/components/AppBar/slots/AppBarSlots.d.ts +14 -6
- package/components/AppBar/slots/AppBarSlots.js +13 -2
- package/components/AppBar/styles.js +34 -6
- package/components/AppBar/types.d.ts +1 -1
- package/components/SideBar/constants.d.ts +3 -0
- package/components/SideBar/constants.js +8 -2
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/SideBar/slots/SideBarSlots.js +2 -2
- package/components/SideBar/subcomponents/ContentComponent/index.js +3 -1
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +4 -1
- package/components/SideBar/subcomponents/ContentGroups/index.js +8 -5
- package/components/SideBar/subcomponents/ContentGroups/styles.js +7 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +14 -7
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +27 -7
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +4 -4
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +2 -0
- package/components/SideBar/subcomponents/FooterSidebar/index.js +1 -1
- package/components/SideBar/subcomponents/FooterSidebar/styles.js +1 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
- package/components/mui_extended/Button/Button.d.ts +2 -2
- package/components/mui_extended/IconButton/IconButton.js +3 -1
- package/components/mui_extended/MenuItem/MenuItem.js +11 -7
- package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -13
- package/components/mui_extended/ToggleButton/ToggleButton.styles.js +2 -2
- package/components/mui_extended/Typography/typography.styles.js +160 -160
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { useIsMobile } from "@m4l/graphics";
|
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
5
|
import { g as getNameDataTestId } from "./tests/utils.js";
|
|
6
|
-
import { A as AppBarRootStyled, C as ContainerIsotypeNameStyled, I as ImageIsotypeStyled,
|
|
6
|
+
import { A as AppBarRootStyled, C as ContainerIsotypeNameStyled, a as ContentIsotypeStyled, I as ImageIsotypeStyled, b as CompanyNameStyled, D as DividerStyled, M as MenuIconButtonStyled, c as ContentStyled } from "./slots/AppBarSlots.js";
|
|
7
7
|
import { g as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import { P as PATH_IMG_HAMBURGUER, A as APP_BAR_KEY } from "./constants.js";
|
|
9
9
|
const AppBar = (props) => {
|
|
@@ -24,8 +24,11 @@ const AppBar = (props) => {
|
|
|
24
24
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(dataTestid) } : {},
|
|
25
25
|
children: [
|
|
26
26
|
!isMobile ? /* @__PURE__ */ jsxs(ContainerIsotypeNameStyled, { ownerState: {}, children: [
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
/* @__PURE__ */ jsxs(ContentIsotypeStyled, { ownerState: {}, children: [
|
|
28
|
+
companyLogo && /* @__PURE__ */ jsx(ImageIsotypeStyled, { alt: "logo", ownerState: {}, src: companyLogo, size }),
|
|
29
|
+
/* @__PURE__ */ jsx(CompanyNameStyled, { ownerState: {}, variant: "bodyDens", skeletonWidth: "100px", size, children: companyName })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ jsx(DividerStyled, { orientation: "vertical", flexItem: true, ownerState: {} })
|
|
29
32
|
] }) : null,
|
|
30
33
|
isMobile ? /* @__PURE__ */ jsx(
|
|
31
34
|
MenuIconButtonStyled,
|
|
@@ -5,6 +5,8 @@ var AppBarSlots = /* @__PURE__ */ ((AppBarSlots2) => {
|
|
|
5
5
|
AppBarSlots2["companyName"] = "companyName";
|
|
6
6
|
AppBarSlots2["menuIconButton"] = "menuIconButton";
|
|
7
7
|
AppBarSlots2["content"] = "content";
|
|
8
|
+
AppBarSlots2["contentIsoType"] = "contentIsoType";
|
|
9
|
+
AppBarSlots2["divider"] = "divider";
|
|
8
10
|
return AppBarSlots2;
|
|
9
11
|
})(AppBarSlots || {});
|
|
10
12
|
export {
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
export declare const AppBarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
1
|
+
export declare const AppBarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
|
|
4
|
-
export declare const ContainerIsotypeNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
4
|
+
export declare const ContainerIsotypeNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
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 ImageIsotypeStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Image').ImageProps, keyof import('../../Image').ImageProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
7
|
+
export declare const ImageIsotypeStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Image').ImageProps, keyof import('../../Image').ImageProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
9
9
|
}, {}, {}>;
|
|
10
|
-
export declare const CompanyNameStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
10
|
+
export declare const CompanyNameStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
11
11
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
12
12
|
}, {}, {}>;
|
|
13
|
-
export declare const MenuIconButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/IconButton/types').IconButtonProps, keyof import('../../mui_extended/IconButton/types').IconButtonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
13
|
+
export declare const MenuIconButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/IconButton/types').IconButtonProps, keyof import('../../mui_extended/IconButton/types').IconButtonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
14
14
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
15
15
|
}, {}, {}>;
|
|
16
|
-
export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material
|
|
16
|
+
export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
17
17
|
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
18
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const ContentIsotypeStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
20
|
+
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
21
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
+
export declare const DividerStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').DividerOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLHRElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLHRElement> | null | undefined;
|
|
24
|
+
}, "children" | "light" | "style" | "absolute" | "variant" | "className" | "classes" | "sx" | "textAlign" | "orientation" | "flexItem">, "children" | "ref" | "title" | "id" | "light" | "hidden" | "color" | "content" | "style" | "absolute" | "variant" | "className" | "classes" | "onChange" | "sx" | "textAlign" | "translate" | "slot" | "key" | "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" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "orientation" | "flexItem"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AppBarOwnerState> & Record<string, unknown> & {
|
|
25
|
+
ownerState: Partial<import('../types').AppBarOwnerState> & Record<string, unknown>;
|
|
26
|
+
}, {}, {}>;
|
|
@@ -2,6 +2,7 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { A as APP_BAR_KEY } from "../constants.js";
|
|
3
3
|
import { A as AppBarSlots } from "./AppBarEnum.js";
|
|
4
4
|
import { a as appBarStyles } from "../styles.js";
|
|
5
|
+
import { Divider } from "@mui/material";
|
|
5
6
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
7
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
7
8
|
import { I as Image } from "../../Image/Image.js";
|
|
@@ -29,11 +30,21 @@ const ContentStyled = styled("div", {
|
|
|
29
30
|
name: APP_BAR_KEY,
|
|
30
31
|
slot: AppBarSlots.content
|
|
31
32
|
})(appBarStyles?.content);
|
|
33
|
+
const ContentIsotypeStyled = styled("div", {
|
|
34
|
+
name: APP_BAR_KEY,
|
|
35
|
+
slot: AppBarSlots.contentIsoType
|
|
36
|
+
})(appBarStyles?.contentIsoType);
|
|
37
|
+
const DividerStyled = styled(Divider, {
|
|
38
|
+
name: APP_BAR_KEY,
|
|
39
|
+
slot: AppBarSlots.divider
|
|
40
|
+
})(appBarStyles?.divider);
|
|
32
41
|
export {
|
|
33
42
|
AppBarRootStyled as A,
|
|
34
43
|
ContainerIsotypeNameStyled as C,
|
|
44
|
+
DividerStyled as D,
|
|
35
45
|
ImageIsotypeStyled as I,
|
|
36
46
|
MenuIconButtonStyled as M,
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
ContentIsotypeStyled as a,
|
|
48
|
+
CompanyNameStyled as b,
|
|
49
|
+
ContentStyled as c
|
|
39
50
|
};
|
|
@@ -12,7 +12,7 @@ const appBarStyles = {
|
|
|
12
12
|
display: "flex",
|
|
13
13
|
flexDirection: "row",
|
|
14
14
|
flexWrap: "nowrap",
|
|
15
|
-
height:
|
|
15
|
+
height: theme.vars.size.baseSpacings.sp12,
|
|
16
16
|
padding: `0 ${theme.vars.size.baseSpacings.sp4}`,
|
|
17
17
|
borderBottom: `1px solid ${theme.vars.palette.border.default}`,
|
|
18
18
|
gap: theme.vars.size.baseSpacings.sp3
|
|
@@ -30,9 +30,14 @@ const appBarStyles = {
|
|
|
30
30
|
display: "flex",
|
|
31
31
|
flexDirection: "row",
|
|
32
32
|
alignItems: "center",
|
|
33
|
+
justifyContent: "space-between",
|
|
33
34
|
gap: theme.vars.size.baseSpacings.sp3,
|
|
34
35
|
padding: `${theme.vars.size.baseSpacings.sp3} 0`,
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Se pone los px directamente porque no existe un token con este valor
|
|
38
|
+
*/
|
|
39
|
+
width: "204px",
|
|
40
|
+
minWidth: "204px"
|
|
36
41
|
}),
|
|
37
42
|
/**
|
|
38
43
|
* ****************************************************
|
|
@@ -85,13 +90,36 @@ const appBarStyles = {
|
|
|
85
90
|
* @updatedAt 2024-11-30 11:32:23 - automatic
|
|
86
91
|
* @updatedUser Andrés Quintero - automatic
|
|
87
92
|
*/
|
|
88
|
-
content: ({ theme
|
|
89
|
-
padding:
|
|
90
|
-
borderLeft: ownerState.isMobile ? "0" : `1px solid ${theme.vars.palette.border.secondary}`,
|
|
93
|
+
content: ({ theme }) => ({
|
|
94
|
+
padding: `0 ${theme.vars.size.baseSpacings.sp2}`,
|
|
91
95
|
display: "flex",
|
|
92
96
|
flexDirection: "row",
|
|
93
97
|
justifyContent: "flex-start",
|
|
94
|
-
alignItems: "center"
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
flex: "1",
|
|
100
|
+
height: theme.vars.size.baseSpacings.sp12
|
|
101
|
+
}),
|
|
102
|
+
/**
|
|
103
|
+
* **************************************************************
|
|
104
|
+
* Estilos para el contenedor del contenido del logotipo y nombre
|
|
105
|
+
* **************************************************************
|
|
106
|
+
*/
|
|
107
|
+
contentIsoType: ({ theme }) => ({
|
|
108
|
+
display: "flex",
|
|
109
|
+
flexDirection: "row",
|
|
110
|
+
alignItems: "center",
|
|
111
|
+
gap: theme.vars.size.baseSpacings.sp3,
|
|
112
|
+
height: theme.vars.size.baseSpacings.sp6
|
|
113
|
+
}),
|
|
114
|
+
/**
|
|
115
|
+
* **************************************************************
|
|
116
|
+
* Estilos para el divisor entre el logotipo y el contenido
|
|
117
|
+
* **************************************************************
|
|
118
|
+
*/
|
|
119
|
+
divider: ({ theme, ownerState }) => ({
|
|
120
|
+
height: "100%",
|
|
121
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
122
|
+
borderRightWidth: ownerState.isMobile ? "thin" : "none"
|
|
95
123
|
})
|
|
96
124
|
};
|
|
97
125
|
export {
|
|
@@ -35,4 +35,4 @@ export type AppBarSlotsType = keyof typeof AppBarSlots;
|
|
|
35
35
|
/**
|
|
36
36
|
* Estilos aplicables al `AppBar`
|
|
37
37
|
*/
|
|
38
|
-
export type AppBarStyles =
|
|
38
|
+
export type AppBarStyles = OverridesStyleRules<AppBarSlotsType, typeof APP_BAR_KEY, Theme>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const SIDEBAR_KEY_COMPONENT = "M4LSideBar";
|
|
2
2
|
export declare const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
|
|
3
3
|
export declare const LIST_MENU_ITEM = "M4LListMenuItem";
|
|
4
|
+
export declare const ITEM_ACTIVE = "M4LItemActive";
|
|
5
|
+
export declare const ITEM_IN_TREE_ACTIVE = "M4LItemInTreeActive";
|
|
6
|
+
export declare const PATH_ICONS = "/frontend/domain/microfrontends/";
|
|
4
7
|
export declare const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
|
|
5
8
|
export declare const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/arrow_right.svg";
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
const SIDEBAR_KEY_COMPONENT = "M4LSideBar";
|
|
2
2
|
const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
|
|
3
3
|
const LIST_MENU_ITEM = "M4LListMenuItem";
|
|
4
|
+
const ITEM_ACTIVE = "M4LItemActive";
|
|
5
|
+
const ITEM_IN_TREE_ACTIVE = "M4LItemInTreeActive";
|
|
6
|
+
const PATH_ICONS = "/frontend/domain/microfrontends/";
|
|
4
7
|
const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
|
|
5
8
|
const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/arrow_right.svg";
|
|
6
9
|
export {
|
|
7
10
|
CONTAINER_BTN_ANCHORED as C,
|
|
11
|
+
ITEM_ACTIVE as I,
|
|
8
12
|
LIST_MENU_ITEM as L,
|
|
9
|
-
|
|
13
|
+
PATH_ICONS as P,
|
|
10
14
|
SIDEBAR_KEY_COMPONENT as S,
|
|
11
|
-
|
|
15
|
+
ITEM_IN_TREE_ACTIVE as a,
|
|
16
|
+
PATH_ARROW_DOWN_ICON as b,
|
|
17
|
+
PATH_ARROW_RIGHT_ICON as c
|
|
12
18
|
};
|
|
@@ -13,7 +13,7 @@ export declare const ContainerContentGroupsRootStyled: import('@emotion/styled')
|
|
|
13
13
|
export declare const ContainerContentGroupsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').SideBarOwnerState> & Record<string, unknown> & {
|
|
14
14
|
ownerState: Partial<import('../types').SideBarOwnerState> & Record<string, unknown>;
|
|
15
15
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const ContainerContentTitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').SideBarOwnerState> & Record<string, unknown> & {
|
|
17
17
|
ownerState: Partial<import('../types').SideBarOwnerState> & Record<string, unknown>;
|
|
18
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
19
|
export declare const ContainerContentNavItemsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').SideBarOwnerState> & Record<string, unknown> & {
|
|
@@ -22,7 +22,7 @@ const ContainerContentGroupsStyled = styled("section", {
|
|
|
22
22
|
name: SIDEBAR_KEY_COMPONENT,
|
|
23
23
|
slot: ContentGroupsSlots.containerContentGroups
|
|
24
24
|
})(sideBarStyles?.containerContentGroups);
|
|
25
|
-
const
|
|
25
|
+
const ContainerContentTitleStyled = styled("div", {
|
|
26
26
|
name: SIDEBAR_KEY_COMPONENT,
|
|
27
27
|
slot: ContentGroupsSlots.containerContentTitle
|
|
28
28
|
})(sideBarStyles?.containerContentTitle);
|
|
@@ -66,7 +66,7 @@ export {
|
|
|
66
66
|
ContentComponentRootStyled as C,
|
|
67
67
|
ContainerContentGroupsRootStyled as a,
|
|
68
68
|
ContainerContentGroupsStyled as b,
|
|
69
|
-
|
|
69
|
+
ContainerContentTitleStyled as c,
|
|
70
70
|
ContainerContentNavItemsStyled as d,
|
|
71
71
|
ContainerMenuItemsStyled as e,
|
|
72
72
|
ContainerArrowIconRootStyled as f,
|
|
@@ -4,11 +4,13 @@ import { C as ContentComponentRootStyled } from "../../slots/SideBarSlots.js";
|
|
|
4
4
|
import { C as ContentGroups } from "../ContentGroups/index.js";
|
|
5
5
|
import { F as FooterSidebar } from "../FooterSidebar/index.js";
|
|
6
6
|
import { H as HeaderSidebar } from "../HeaderSidebar/index.js";
|
|
7
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
7
8
|
const ContentComponent = () => {
|
|
8
9
|
const { anchored, onToggleAnchored, companyName, companySlogan, companyLogoSmallUrl, expandedWidth } = useSideBar();
|
|
9
10
|
const ownerState = {
|
|
10
11
|
expandedWidth
|
|
11
12
|
};
|
|
13
|
+
const { currentSize } = useComponentSize();
|
|
12
14
|
return /* @__PURE__ */ jsxs(ContentComponentRootStyled, { ownerState, children: [
|
|
13
15
|
/* @__PURE__ */ jsx(
|
|
14
16
|
HeaderSidebar,
|
|
@@ -18,7 +20,7 @@ const ContentComponent = () => {
|
|
|
18
20
|
srcIcon: companyLogoSmallUrl ?? ""
|
|
19
21
|
}
|
|
20
22
|
),
|
|
21
|
-
/* @__PURE__ */ jsx(ContentGroups, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(ContentGroups, { size: currentSize }),
|
|
22
24
|
/* @__PURE__ */ jsx(FooterSidebar, { onToggleAnchored, anchored })
|
|
23
25
|
] });
|
|
24
26
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Sizes } from '@m4l/styles';
|
|
1
2
|
/**
|
|
2
3
|
* Renderiza el contenido de los grupos
|
|
3
4
|
* @author Andrés Quintero - automatic
|
|
@@ -5,4 +6,6 @@
|
|
|
5
6
|
* @updatedAt 2024-12-10 11:21:21 - automatic
|
|
6
7
|
* @updatedUser Andrés Quintero - automatic
|
|
7
8
|
*/
|
|
8
|
-
export declare const ContentGroups: (
|
|
9
|
+
export declare const ContentGroups: (props: {
|
|
10
|
+
size: Sizes;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,24 +3,27 @@ import { useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { u as useSideBar } from "../../hooks/useSideBar/index.js";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
5
5
|
import { g as getNameDataTestId } from "../../tests/utils.js";
|
|
6
|
-
import { a as ContainerContentGroupsRootStyled, b as ContainerContentGroupsStyled, c as
|
|
6
|
+
import { a as ContainerContentGroupsRootStyled, b as ContainerContentGroupsStyled, c as ContainerContentTitleStyled, d as ContainerContentNavItemsStyled } from "../../slots/SideBarSlots.js";
|
|
7
7
|
import { C as ContainerMenuItemsMain } from "./subcomponents/ContainerMenuItemsMain/index.js";
|
|
8
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
9
|
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
9
10
|
import { M as MenuItem } from "../../../mui_extended/MenuItem/MenuItem.js";
|
|
10
|
-
const ContentGroups = () => {
|
|
11
|
+
const ContentGroups = (props) => {
|
|
12
|
+
const { size } = props;
|
|
11
13
|
const { menuData } = useSideBar();
|
|
12
14
|
const { getLabel } = useModuleDictionary();
|
|
15
|
+
const { currentSize } = useComponentSize(size);
|
|
13
16
|
const ownerState = {
|
|
14
17
|
noItems: menuData.length === 0
|
|
15
18
|
};
|
|
16
19
|
const renderTitle = (title) => {
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
+
return /* @__PURE__ */ jsx(ContainerContentTitleStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(Typography, { variant: "bodyDens", skeletonWidth: "100px", children: title }) });
|
|
18
21
|
};
|
|
19
22
|
const renderItems = (item) => {
|
|
20
|
-
return /* @__PURE__ */ jsx(ContainerContentNavItemsStyled, { ownerState: {}, children: item?.map((list, id) => /* @__PURE__ */ jsx(ContainerMenuItemsMain, { item: list, openSubItem: true }, id)) });
|
|
23
|
+
return /* @__PURE__ */ jsx(ContainerContentNavItemsStyled, { ownerState: {}, children: item?.map((list, id) => /* @__PURE__ */ jsx(ContainerMenuItemsMain, { item: list, openSubItem: true, size: currentSize }, id)) });
|
|
21
24
|
};
|
|
22
25
|
const renderItemsDisabled = () => {
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
+
return /* @__PURE__ */ jsx(ContainerContentTitleStyled, { ownerState: { disabled: true }, children: Array.from({ length: 1 }).map((_, index) => /* @__PURE__ */ jsx(
|
|
24
27
|
MenuItem,
|
|
25
28
|
{
|
|
26
29
|
disabled: true,
|
|
@@ -36,10 +36,13 @@ const contentGroupStyles = {
|
|
|
36
36
|
* @updatedAt 2024-12-10 11:21:21 - automatic
|
|
37
37
|
* @updatedUser Andrés Quintero - automatic
|
|
38
38
|
*/
|
|
39
|
-
containerContentTitle: ({ theme }) => ({
|
|
39
|
+
containerContentTitle: ({ theme, ownerState }) => ({
|
|
40
40
|
padding: `${theme.vars.size.baseSpacings.sp3} ${theme.vars.size.baseSpacings.sp4} ${theme.vars.size.baseSpacings.sp1}`,
|
|
41
41
|
color: theme.vars.palette.text.primary,
|
|
42
|
-
textAlign: "left"
|
|
42
|
+
textAlign: "left",
|
|
43
|
+
"& .MuiTypography-root": {
|
|
44
|
+
color: !ownerState.disabled ? theme.vars.palette.text.primary : `${theme.vars.palette.text.primary} !important`
|
|
45
|
+
}
|
|
43
46
|
}),
|
|
44
47
|
/**
|
|
45
48
|
* Navigation wrapper for every principal item group in the sidebar
|
|
@@ -51,7 +54,8 @@ const contentGroupStyles = {
|
|
|
51
54
|
containerContentNavItems: ({ theme }) => ({
|
|
52
55
|
display: "flex",
|
|
53
56
|
flexDirection: "column",
|
|
54
|
-
gap: theme.vars.size.baseSpacings["sp0-5"]
|
|
57
|
+
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
58
|
+
marginRight: theme.vars.size.baseSpacings.sp4
|
|
55
59
|
}),
|
|
56
60
|
/**
|
|
57
61
|
*Container for the items in the sidebar group
|
package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js
CHANGED
|
@@ -9,17 +9,23 @@ import { g as getNameDataTestId } from "../../../../tests/utils.js";
|
|
|
9
9
|
import { A as ArrowIcon } from "./subcomponents/ArrowIcon/index.js";
|
|
10
10
|
import { e as ContainerMenuItemsStyled } from "../../../../slots/SideBarSlots.js";
|
|
11
11
|
import { g as getComponentSlotRoot } from "../../../../../../utils/getComponentSlotRoot.js";
|
|
12
|
-
import { L as LIST_MENU_ITEM } from "../../../../constants.js";
|
|
12
|
+
import { I as ITEM_ACTIVE, a as ITEM_IN_TREE_ACTIVE, P as PATH_ICONS, L as LIST_MENU_ITEM } from "../../../../constants.js";
|
|
13
|
+
import { useEnvironment } from "@m4l/core";
|
|
14
|
+
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
13
15
|
import { M as MenuItem } from "../../../../../mui_extended/MenuItem/MenuItem.js";
|
|
14
16
|
function ContainerMenuItemsMain(props) {
|
|
15
|
-
const { item } = props;
|
|
17
|
+
const { item, size } = props;
|
|
16
18
|
const { onMenuItemClick, onToggleVisible } = useSideBar();
|
|
17
19
|
const [openSub, setOpenSub] = useState(props.openSubItem ?? false);
|
|
18
20
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
19
21
|
const isMobile = useIsMobile();
|
|
22
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
23
|
+
const { currentSize } = useComponentSize(size);
|
|
24
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
20
25
|
const ownerState = {
|
|
21
26
|
active: item.active,
|
|
22
|
-
itemInTreeActive: item.itemInTreeActive
|
|
27
|
+
itemInTreeActive: item.itemInTreeActive,
|
|
28
|
+
sidebarSize: adjustedSize
|
|
23
29
|
};
|
|
24
30
|
const handlerClick = () => {
|
|
25
31
|
if (item.moduleId) {
|
|
@@ -42,15 +48,16 @@ function ContainerMenuItemsMain(props) {
|
|
|
42
48
|
/* @__PURE__ */ jsx(
|
|
43
49
|
MenuItem,
|
|
44
50
|
{
|
|
45
|
-
className: clsx(item.active ?
|
|
51
|
+
className: clsx(item.active ? ITEM_ACTIVE : ITEM_IN_TREE_ACTIVE),
|
|
46
52
|
label: item.title,
|
|
47
53
|
selected: item.active || item.itemInTreeActive,
|
|
48
|
-
startIcon: item.iconUrl
|
|
54
|
+
startIcon: `${host_static_assets}/${environment_assets}${PATH_ICONS}${item.iconUrl}`,
|
|
49
55
|
endIcon: hasChildren ? /* @__PURE__ */ jsx(ArrowIcon, { openState: openSub, active: item.active }) : null,
|
|
50
|
-
onClick: handlerClick
|
|
56
|
+
onClick: handlerClick,
|
|
57
|
+
size: adjustedSize
|
|
51
58
|
}
|
|
52
59
|
),
|
|
53
|
-
hasChildren ? /* @__PURE__ */ jsx(Collapse, { in: openSub, timeout: "auto", unmountOnExit: true, children: (item.children || []).map((child) => /* @__PURE__ */ jsx(ContainerMenuItemsMain, { item: child }, child.title)) }) : null
|
|
60
|
+
hasChildren ? /* @__PURE__ */ jsx(Collapse, { in: openSub, timeout: "auto", unmountOnExit: true, children: (item.children || []).map((child) => /* @__PURE__ */ jsx(ContainerMenuItemsMain, { item: child, size: adjustedSize }, child.title)) }) : null
|
|
54
61
|
]
|
|
55
62
|
}
|
|
56
63
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { a as ITEM_IN_TREE_ACTIVE, I as ITEM_ACTIVE } from "../../../../constants.js";
|
|
1
2
|
const containerMenuItemsMainStyles = {
|
|
2
3
|
/**
|
|
3
4
|
* Style aplicado al contenedor de los items del menú
|
|
@@ -6,21 +7,39 @@ const containerMenuItemsMainStyles = {
|
|
|
6
7
|
* @updatedAt 2024-12-10 11:21:21 - automatic
|
|
7
8
|
* @updatedUser Andrés Quintero - automatic
|
|
8
9
|
*/
|
|
9
|
-
containerMenuItems: ({ theme }) => ({
|
|
10
|
+
containerMenuItems: ({ theme, ownerState }) => ({
|
|
10
11
|
marginLeft: theme.vars.size.baseSpacings.sp4,
|
|
11
|
-
/* padding: `${theme.vars.size.baseSpacings['sp0-5']} 0`, */
|
|
12
12
|
display: "flex",
|
|
13
13
|
flexDirection: "column",
|
|
14
14
|
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
"& .M4LMenuItem-menuItemContainer": {
|
|
16
|
+
// Estilos específicos para el tamaño small
|
|
17
|
+
...ownerState.sidebarSize === "small" && {
|
|
18
|
+
...theme.generalSettings.isMobile ? {
|
|
19
|
+
minHeight: theme.vars.size.mobile.small.action
|
|
20
|
+
} : {
|
|
21
|
+
minHeight: theme.vars.size.desktop.small.action
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
// Estilos específicos para el tamaño medium
|
|
25
|
+
...ownerState.sidebarSize === "medium" && {
|
|
26
|
+
...theme.generalSettings.isMobile ? {
|
|
27
|
+
minHeight: theme.vars.size.mobile.medium.action
|
|
28
|
+
} : {
|
|
29
|
+
minHeight: theme.vars.size.desktop.medium.action
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
[`&.M4LListMenuItem-root > .M4LMenuItemRoot[class*="${ITEM_IN_TREE_ACTIVE}"]`]: {
|
|
17
34
|
borderColor: theme.vars.palette.divider,
|
|
18
35
|
"& span": {
|
|
19
36
|
color: theme.vars.palette.text.primary
|
|
20
37
|
}
|
|
21
38
|
},
|
|
22
|
-
|
|
23
|
-
|
|
39
|
+
[`&.M4LListMenuItem-root > .M4LMenuItemRoot[class*="${ITEM_IN_TREE_ACTIVE}"] .M4LIconClass-root`]: {
|
|
40
|
+
background: theme.vars.palette.text.primary
|
|
41
|
+
},
|
|
42
|
+
[`&.M4LListMenuItem-root > .M4LMenuItemRoot[class*="${ITEM_ACTIVE}"]`]: {
|
|
24
43
|
borderColor: theme.vars.palette.primary.main,
|
|
25
44
|
"& span": {
|
|
26
45
|
color: theme.vars.palette.primary.main
|
|
@@ -42,7 +61,8 @@ const containerMenuItemsMainStyles = {
|
|
|
42
61
|
containerArrowIconRoot: () => ({
|
|
43
62
|
display: "flex",
|
|
44
63
|
alignSelf: "center",
|
|
45
|
-
lineHeight: 0
|
|
64
|
+
lineHeight: 0,
|
|
65
|
+
marginLeft: "auto"
|
|
46
66
|
})
|
|
47
67
|
};
|
|
48
68
|
export {
|
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
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 {
|
|
5
|
+
import { b as PATH_ARROW_DOWN_ICON } from "../../../../../../constants.js";
|
|
6
6
|
import { f as ContainerArrowIconRootStyled } from "../../../../../../slots/SideBarSlots.js";
|
|
7
|
-
import { I as
|
|
7
|
+
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
8
8
|
function ArrowIcon(props) {
|
|
9
9
|
const { openState, active } = props;
|
|
10
10
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -14,11 +14,11 @@ function ArrowIcon(props) {
|
|
|
14
14
|
ownerState: {},
|
|
15
15
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("arrowIconRoot") } : {},
|
|
16
16
|
children: /* @__PURE__ */ jsx(
|
|
17
|
-
|
|
17
|
+
IconButton,
|
|
18
18
|
{
|
|
19
19
|
src: `${host_static_assets}/${environment_assets}/${PATH_ARROW_DOWN_ICON}`,
|
|
20
20
|
rotationAngle: openState ? 270 : 90,
|
|
21
|
-
|
|
21
|
+
componentPaletteColor: active ? "primary" : "default"
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -7,6 +7,7 @@ const footerSideBarStyles = {
|
|
|
7
7
|
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
containerFooter: ({ theme, ownerState }) => ({
|
|
10
|
+
height: "auto",
|
|
10
11
|
display: "grid",
|
|
11
12
|
placeItems: "center",
|
|
12
13
|
padding: `${theme.vars.size.baseSpacings.sp4} ${theme.vars.size.baseSpacings.sp12}`,
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { u as useSideBar } from "../../hooks/useSideBar/index.js";
|
|
4
4
|
import { j as ContainerDesktopContentStyled, k as ContainerDesktopRootStyled, l as ContainerBtnAnchoredStyled } from "../../slots/SideBarSlots.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as PATH_ARROW_RIGHT_ICON, S as SIDEBAR_KEY_COMPONENT, C as CONTAINER_BTN_ANCHORED } from "../../constants.js";
|
|
6
6
|
import { C as ContentComponent } from "../ContentComponent/index.js";
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
8
8
|
import { useFirstRender } from "@m4l/graphics";
|
|
@@ -7,5 +7,7 @@ import { MarkerClusterGroupProps } from './types';
|
|
|
7
7
|
* @author Juan Andrés Escobar
|
|
8
8
|
* @createdAt 2024/02/22
|
|
9
9
|
* @returns ForwardRefExoticComponent (significa que es un componente que ha sido envuelto con React.forwardRef.).
|
|
10
|
+
* @updatedAt 2024-12-20 16:44:24 - automatic
|
|
11
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
12
|
*/
|
|
11
13
|
export declare const MarkerClusterGroup: import('react').ForwardRefExoticComponent<L.MarkerClusterGroupOptions & import('@react-leaflet/core').PathProps & import('./types').PropsWithChildren & import('react').RefAttributes<MarkerClusterGroupProps>>;
|
|
@@ -7,7 +7,7 @@ import { ButtonProps } from './types';
|
|
|
7
7
|
* @returns
|
|
8
8
|
* @author SebastianM - automatic
|
|
9
9
|
* @createdAt 2024-11-06 07:42:00 - automatic
|
|
10
|
-
* @updatedAt 2024-12-
|
|
11
|
-
* @updatedUser
|
|
10
|
+
* @updatedAt 2024-12-20 16:44:24 - automatic
|
|
11
|
+
* @updatedUser Andrés Quintero - automatic
|
|
12
12
|
*/
|
|
13
13
|
export declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -23,6 +23,7 @@ const IconButton = (props) => {
|
|
|
23
23
|
componentPaletteColor = "default",
|
|
24
24
|
selected = false,
|
|
25
25
|
icon,
|
|
26
|
+
rotationAngle,
|
|
26
27
|
...other
|
|
27
28
|
} = props;
|
|
28
29
|
const classRoot = getComponentSlotRoot(ICON_BUTTON_KEY_COMPONENT);
|
|
@@ -62,7 +63,8 @@ const IconButton = (props) => {
|
|
|
62
63
|
src,
|
|
63
64
|
size: adjustedSize,
|
|
64
65
|
color: iconColor,
|
|
65
|
-
disabled
|
|
66
|
+
disabled,
|
|
67
|
+
rotationAngle
|
|
66
68
|
}
|
|
67
69
|
);
|
|
68
70
|
}
|