@m4l/components 9.1.40 → 9.1.42
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/.storybook/constants.d.ts +11 -0
- package/.storybook/decorators/WithDictionaryContext/contants.d.ts +3 -0
- package/.storybook/decorators/WithDictionaryContext/index.d.ts +1 -0
- package/@types/types.d.ts +8 -0
- package/components/AccountPopover/AccountPopover.js +32 -39
- package/components/AccountPopover/{style.js → AccountPopover.styles.js} +17 -10
- package/components/AccountPopover/slots/AccountPopoverEnum.d.ts +3 -3
- package/components/AccountPopover/slots/AccountPopoverEnum.js +3 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +8 -8
- package/components/AccountPopover/slots/AccountPopoverSlots.js +16 -16
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +3 -2
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.js +2 -3
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +4 -0
- package/components/AppBar/AppBar.js +1 -1
- package/components/AppBar/slots/AppBarSlots.d.ts +6 -6
- package/components/BaseModule/BaseModule.js +3 -1
- package/components/BaseModule/types.d.ts +2 -0
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormIntro/index.js +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +4 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +4 -0
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +16 -16
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +16 -16
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/slots/IconSlots.d.ts +2 -2
- package/components/Icon/types.d.ts +1 -1
- package/components/Image/Image.d.ts +5 -0
- package/components/Image/Image.js +1 -1
- package/components/Image/hoc/WithTrackWindowScroll.d.ts +4 -0
- package/components/Image/image.styles.js +20 -7
- package/components/Image/slots/ImageEnum.d.ts +5 -5
- package/components/Image/slots/ImageEnum.js +5 -5
- package/components/Image/slots/ImageSlots.js +10 -10
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +5 -0
- package/components/Image/types.d.ts +1 -1
- package/components/Image/utils/get-scroll-ancestor.d.ts +4 -0
- package/components/Image/utils/isIntersectionObserverAvailable.d.ts +4 -0
- package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/LanguagePopover.d.ts +5 -0
- package/components/MFIsolationApp/MFIsolationApp.js +7 -4
- package/components/MFIsolationApp/types.d.ts +10 -0
- package/components/MFLoader/MFLoader.js +3 -3
- package/components/MenuActions/MenuActions.d.ts +2 -2
- package/components/MenuActions/MenuActions.js +17 -14
- package/components/MenuActions/MenuActions.styles.d.ts +1 -0
- package/components/MenuActions/MenuActions.styles.js +8 -0
- package/components/MenuActions/dictionary.d.ts +14 -0
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/MenuActions/types.d.ts +27 -1
- package/components/ModalDialog/ModalDialog.styles.js +3 -1
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +4 -4
- package/components/ModalDialog/types.d.ts +1 -1
- package/components/PaperForm/PaperForm.js +1 -1
- package/components/PaperForm/slots/PaperFormSlots.d.ts +3 -3
- package/components/SideBar/slots/SideBarSlots.d.ts +15 -15
- package/components/SideBar/subcomponents/ContentComponent/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/index.js +4 -5
- package/components/SideBar/subcomponents/ContentGroups/styles.js +5 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +3 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.d.ts +1 -1
- package/components/SideBar/subcomponents/FooterSidebar/index.d.ts +1 -1
- package/components/SideBar/subcomponents/FooterSidebar/styles.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/SideBar/types.d.ts +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +5 -5
- package/components/WindowBase/WindowBase.d.ts +2 -2
- package/components/WindowBase/WindowBase.js +1 -1
- package/components/WindowBase/WindowBase.styles.js +24 -24
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +7 -7
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +2 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +2 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +4 -4
- package/components/WindowBase/types.d.ts +2 -2
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/WindowConfirm/WindowConfirm.styles.js +5 -1
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +8 -8
- package/components/WindowConfirm/types.d.ts +1 -1
- package/components/animate/variants/background.d.ts +9 -9
- package/components/animate/variants/bounce.d.ts +9 -9
- package/components/animate/variants/fade.d.ts +20 -20
- package/components/animate/variants/flip.d.ts +6 -6
- package/components/animate/variants/rotate.d.ts +3 -3
- package/components/animate/variants/scale.d.ts +6 -6
- package/components/animate/variants/slide.d.ts +16 -16
- package/components/animate/variants/transition.d.ts +3 -3
- package/components/animate/variants/zoom.d.ts +15 -15
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +4 -0
- package/components/areas/contexts/AreasContext/store.js +1 -397
- package/components/areas/types.d.ts +27 -2
- package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +4 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +1 -1
- package/components/formatters/BooleanFormatter/types.d.ts +1 -1
- package/components/gclick/MyDevice/slots/MyDeviceSlots.d.ts +2 -2
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.d.ts +2 -2
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.js +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +4 -0
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.js +1 -1
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.d.ts +3 -3
- package/components/maps/components/Map/slots/MapSlots.d.ts +3 -3
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +2 -2
- package/components/mui_extended/Accordion/Accordion.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Accordion/styles.js +6 -6
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +3 -3
- package/components/mui_extended/Avatar/Avatar.js +19 -12
- package/components/mui_extended/Avatar/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/constants.js +4 -0
- package/components/mui_extended/Avatar/slots/AvatarEnum.d.ts +3 -0
- package/components/mui_extended/Avatar/slots/AvatarEnum.js +7 -0
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +5 -0
- package/components/mui_extended/Avatar/slots/AvatarSlots.js +12 -0
- package/components/mui_extended/Avatar/styles.d.ts +2 -1
- package/components/mui_extended/Avatar/styles.js +25 -5
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +7 -3
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +8 -8
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +2 -2
- package/components/mui_extended/Avatar/tests/Avatar.test.d.ts +1 -0
- package/components/mui_extended/Avatar/types.d.ts +11 -3
- package/components/mui_extended/Badge/Badge.js +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/Button.d.ts +1 -1
- package/components/mui_extended/Button/Button.js +6 -3
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.styles.js +2 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/CheckBox/types.d.ts +1 -1
- package/components/mui_extended/Dialog/Dialog.js +1 -1
- package/components/mui_extended/Dialog/Dialog.styles.js +5 -3
- package/components/mui_extended/Dialog/slots/DialogSlots.d.ts +2 -2
- package/components/mui_extended/Dialog/types.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +2 -2
- package/components/mui_extended/IconButton/IconButton.js +1 -1
- package/components/mui_extended/IconButton/IconButton.styles.js +12 -4
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +3 -3
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/ImageButton/ImageButton.d.ts +4 -0
- package/components/mui_extended/LoadingButton/LoadingButton.d.ts +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.js +17 -55
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +10 -155
- package/components/mui_extended/LoadingButton/constants.d.ts +5 -0
- package/components/mui_extended/LoadingButton/slots/LoadingButtonEnum.d.ts +1 -3
- package/components/mui_extended/LoadingButton/slots/LoadingButtonEnum.js +1 -3
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +4 -20
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.js +6 -18
- package/components/mui_extended/LoadingButton/types.d.ts +3 -5
- package/components/mui_extended/MenuItem/MenuItem.d.ts +2 -2
- package/components/mui_extended/MenuItem/MenuItem.js +29 -30
- package/components/mui_extended/MenuItem/MenuItem.styles.js +20 -12
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Popover/Popover.d.ts +6 -1
- package/components/mui_extended/Popover/Popover.js +7 -0
- package/components/mui_extended/Popover/Popover.styles.js +8 -0
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.d.ts +4 -0
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/Tab/Tab.styles.d.ts +1 -0
- package/components/mui_extended/Tab/Tab.styles.js +10 -0
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +2 -2
- package/components/mui_extended/TextField/TextField.styles.js +4 -4
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.styles.js +1 -1
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +2 -1
- package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/types.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/typography.styles.js +2 -2
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +5 -5
- package/package.json +3 -3
- package/test/TestAppWrapper.d.ts +2 -0
- package/utils/getComponentSlotRoot.js +2 -2
- package/components/mui_extended/Avatar/classes/constants.d.ts +0 -1
- package/components/mui_extended/Avatar/classes/constants.js +0 -4
- package/components/mui_extended/Avatar/classes/index.d.ts +0 -10
- package/components/mui_extended/Avatar/classes/index.js +0 -25
- package/components/mui_extended/Avatar/classes/types.d.ts +0 -7
- package/components/mui_extended/Avatar/index.js +0 -1
- package/components/mui_extended/Avatar/tests/constants.d.ts +0 -1
- package/components/mui_extended/Avatar/tests/constants.js +0 -4
- package/components/mui_extended/Avatar/tests/index.test.d.ts +0 -5
- package/components/mui_extended/Avatar/tests/utils.d.ts +0 -2
- package/components/mui_extended/Avatar/tests/utils.js +0 -7
- /package/components/AccountPopover/{style.d.ts → AccountPopover.styles.d.ts} +0 -0
|
@@ -8,6 +8,15 @@ export declare const MODES_ITEMS: {
|
|
|
8
8
|
value: string;
|
|
9
9
|
title: string;
|
|
10
10
|
}[];
|
|
11
|
+
export declare const DEVICE_TYPES: {
|
|
12
|
+
automatic: string;
|
|
13
|
+
mobile: string;
|
|
14
|
+
desktop: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const DEVICE_TYPES_ITEMS: {
|
|
17
|
+
value: string;
|
|
18
|
+
title: string;
|
|
19
|
+
}[];
|
|
11
20
|
export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
|
|
12
21
|
export declare const COLORS_THEME_ITEMS: Record<string, string>[];
|
|
13
22
|
export declare const USER = "carloszapata@gmail.com";
|
|
@@ -17,3 +26,5 @@ export declare const ENVIRONMENT_ASSETS = "d1";
|
|
|
17
26
|
export declare const HOST_API_LOCAL = "http://localhost:3000/domain";
|
|
18
27
|
export declare const HOST_API_REMOTE = "https://lab1.stage.made4labs.com/api/v1/domain";
|
|
19
28
|
export declare const HOST_STATIC_ASSETS = "https://s3.amazonaws.com/static.made4labs/environments";
|
|
29
|
+
export declare const DOMAIN_TOKEN = "lab1";
|
|
30
|
+
export declare const STORYBOOK_MODULE_ID = "login";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WithDictionaryContext';
|
package/@types/types.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ import {
|
|
|
140
140
|
ImageSlotsType,
|
|
141
141
|
} from '../components/Image/types';
|
|
142
142
|
import { PopperOwnerState, PopperSlotsType } from '../components/mui_extended/Popper/types';
|
|
143
|
+
import { AvatarOwnerState, AvatarSlotsType } from '../components/mui_extended/Avatar/types';
|
|
143
144
|
import { ToggleButtonOwnerState, ToggleButtonSlotsType } from '../components/mui_extended/ToggleButton/types';
|
|
144
145
|
|
|
145
146
|
import { BooleanFormatterOwnerState, PresentationType } from '../components/formatters/BooleanFormatter/types';
|
|
@@ -190,6 +191,7 @@ declare module '@mui/material/styles' {
|
|
|
190
191
|
M4LLoadingButton: LoadingButtonSlotsType;
|
|
191
192
|
M4LAccordion: AccordionSlotsType;
|
|
192
193
|
M4LPopper: PopperSlotsType;
|
|
194
|
+
M4LAvatar: AvatarSlotsType;
|
|
193
195
|
M4LToggleButton: ToggleButtonSlotsType;
|
|
194
196
|
M4LBooleanFormatter: PresentationType;
|
|
195
197
|
M4LToggleIconButton: ToggleIconButtonSlotsType;
|
|
@@ -237,6 +239,7 @@ declare module '@mui/material/styles' {
|
|
|
237
239
|
M4LLoadingButton: Partial<LoadingButtonOwnerState>;
|
|
238
240
|
M4LAccordion: Partial<AccordionOwnerState>;
|
|
239
241
|
M4LPopper: Partial<PopperOwnerState>;
|
|
242
|
+
M4LAvatar: Partial<AvatarOwnerState>;
|
|
240
243
|
M4LToggleButton: Partial<ToggleButtonOwnerState>;
|
|
241
244
|
M4LBooleanFormatter: Partial<BooleanFormatterOwnerState>;
|
|
242
245
|
M4LToggleIconButton: Partial<ToggleIconButtonOwnerState>;
|
|
@@ -528,6 +531,10 @@ declare module '@mui/material/styles' {
|
|
|
528
531
|
styleOverrides?: ComponentsOverrides<Theme>['M4LLoadingButton'];
|
|
529
532
|
variants?: ComponentsVariants['M4LLoadingButton'];
|
|
530
533
|
};
|
|
534
|
+
M4LAvatar?: {
|
|
535
|
+
defaultProps?: ComponentsPropsList['M4LAvatar'];
|
|
536
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAvatar'];
|
|
537
|
+
variants?: ComponentsVariants['M4LAvatar'];
|
|
531
538
|
M4LAccordion?: {
|
|
532
539
|
defaultProps?: ComponentsPropsList['M4LAccordion'];
|
|
533
540
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAccordion'];
|
|
@@ -555,3 +562,4 @@ declare module '@mui/material/styles' {
|
|
|
555
562
|
};
|
|
556
563
|
}
|
|
557
564
|
}
|
|
565
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork } from "@m4l/core";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { M as MenuPopover } from "./subcomponents/MenuPopover/MenuPopover.js";
|
|
5
5
|
import { A as ACCOUNT_KEY_POPOVER } from "./constants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { I as IconButtonRootStyled, A as AvatarStyled } from "./slots/AccountPopoverSlots.js";
|
|
7
7
|
import { M as MyAvatar } from "./subcomponents/MyAvatar/MyAvatar.js";
|
|
8
8
|
import { u as useStateRef } from "../../hooks/useStateRef/index.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { A as
|
|
11
|
-
import { M as MenuPopover } from "./subcomponents/MenuPopover/MenuPopover.js";
|
|
9
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
10
|
+
import { A as AccountPopoverSlots } from "./slots/AccountPopoverEnum.js";
|
|
12
11
|
const AccountPopover = (props) => {
|
|
13
12
|
const {
|
|
14
13
|
itemHandleClick,
|
|
@@ -53,39 +52,33 @@ const AccountPopover = (props) => {
|
|
|
53
52
|
const handleOpen = (event) => {
|
|
54
53
|
setOpen(event.currentTarget);
|
|
55
54
|
};
|
|
56
|
-
const
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
handleClose
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
);
|
|
55
|
+
const classes = getComponentClasses(ACCOUNT_KEY_POPOVER, AccountPopoverSlots);
|
|
56
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
IconButtonRootStyled,
|
|
59
|
+
{
|
|
60
|
+
icon: /* @__PURE__ */ jsx(MyAvatar, { size, avatarUrl, firstName, lastName, slotAvatar: AvatarStyled }),
|
|
61
|
+
src: "",
|
|
62
|
+
onClick: handleOpen,
|
|
63
|
+
selected: open ? true : false,
|
|
64
|
+
className: classes.iconButtonRoot
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
MenuPopover,
|
|
69
|
+
{
|
|
70
|
+
data: menuData,
|
|
71
|
+
asyncState,
|
|
72
|
+
itemHandleClick,
|
|
73
|
+
version,
|
|
74
|
+
handleLogOut,
|
|
75
|
+
userData,
|
|
76
|
+
settingsHandleOpen,
|
|
77
|
+
open,
|
|
78
|
+
handleClose
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] });
|
|
89
82
|
};
|
|
90
83
|
export {
|
|
91
84
|
AccountPopover as A
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const accountPopoverStyles = {
|
|
2
|
-
accountPopoverRoot: () => ({}),
|
|
3
2
|
/**
|
|
4
3
|
* ***************************************************************
|
|
5
4
|
* Estilos para el icono de usuario que se muestra en el popover.
|
|
@@ -9,7 +8,7 @@ const accountPopoverStyles = {
|
|
|
9
8
|
* @updatedAt 2024-12-11 15:39:20 - automatic
|
|
10
9
|
* @updatedUser Andrés Quintero - automatic
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
iconButtonRoot: ({ theme }) => ({
|
|
13
12
|
width: theme.vars.size.baseSpacings.sp6,
|
|
14
13
|
height: theme.vars.size.baseSpacings.sp6,
|
|
15
14
|
"& .M4LAvatar-root": {
|
|
@@ -23,7 +22,7 @@ const accountPopoverStyles = {
|
|
|
23
22
|
}),
|
|
24
23
|
/**
|
|
25
24
|
* ******************************************************************
|
|
26
|
-
* Estilos para el avatar del usuario que se muestra en el
|
|
25
|
+
* Estilos para el avatar del usuario que se muestra en el iconbutton.
|
|
27
26
|
* ******************************************************************
|
|
28
27
|
* @author Andrés Quintero - automatic
|
|
29
28
|
* @createdAt 2024-12-10 08:05:25 - automatic
|
|
@@ -31,14 +30,22 @@ const accountPopoverStyles = {
|
|
|
31
30
|
* @updatedUser Andrés Quintero - automatic
|
|
32
31
|
*/
|
|
33
32
|
avatar: () => ({
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
boxShadow: "none !important"
|
|
39
|
-
}
|
|
33
|
+
width: "100% !important",
|
|
34
|
+
height: "100% !important",
|
|
35
|
+
"& .MuiAvatar-root": {
|
|
36
|
+
boxShadow: "none !important"
|
|
40
37
|
}
|
|
41
38
|
}),
|
|
39
|
+
/**
|
|
40
|
+
* ******************************************************************
|
|
41
|
+
* Estilos para el avatar del usuario que se muestra en el popover.
|
|
42
|
+
* ******************************************************************
|
|
43
|
+
* @author Andrés Quintero - automatic
|
|
44
|
+
* @createdAt 2024-12-10 08:05:25 - automatic
|
|
45
|
+
* @updatedAt 2024-12-11 15:39:20 - automatic
|
|
46
|
+
* @updatedUser Andrés Quintero - automatic
|
|
47
|
+
*/
|
|
48
|
+
avatarPopover: {},
|
|
42
49
|
/**
|
|
43
50
|
* *******************************************************************
|
|
44
51
|
* Estilos para el popover que se muestra al hacer clic en el avatar.
|
|
@@ -48,7 +55,7 @@ const accountPopoverStyles = {
|
|
|
48
55
|
* @updatedAt 2024-12-11 15:39:20 - automatic
|
|
49
56
|
* @updatedUser Andrés Quintero - automatic
|
|
50
57
|
*/
|
|
51
|
-
|
|
58
|
+
popoverRoot: ({ theme }) => ({
|
|
52
59
|
"& .MuiPaper-root": {
|
|
53
60
|
marginTop: "5px",
|
|
54
61
|
padding: `${theme.vars.size.baseSpacings.sp2} !important`
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum AccountPopoverSlots {
|
|
2
|
-
|
|
2
|
+
iconButtonRoot = "iconButtonRoot",
|
|
3
3
|
avatar = "avatar",
|
|
4
|
-
|
|
4
|
+
avatarPopover = "avatarPopover",
|
|
5
|
+
popoverRoot = "popoverRoot",
|
|
5
6
|
userDataContainer = "userDataContainer",
|
|
6
7
|
userNameEmail = "userNameEmail",
|
|
7
8
|
divider = "divider",
|
|
@@ -9,7 +10,6 @@ export declare enum AccountPopoverSlots {
|
|
|
9
10
|
menuItemSetting = "menuItemSetting",
|
|
10
11
|
menuItem = "menuItem",
|
|
11
12
|
menuItemLogout = "menuItemLogout",
|
|
12
|
-
iconButton = "iconButton",
|
|
13
13
|
fullName = "fullName",
|
|
14
14
|
email = "email",
|
|
15
15
|
versionContainer = "versionContainer",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var AccountPopoverSlots = /* @__PURE__ */ ((AccountPopoverSlots2) => {
|
|
2
|
-
AccountPopoverSlots2["
|
|
2
|
+
AccountPopoverSlots2["iconButtonRoot"] = "iconButtonRoot";
|
|
3
3
|
AccountPopoverSlots2["avatar"] = "avatar";
|
|
4
|
-
AccountPopoverSlots2["
|
|
4
|
+
AccountPopoverSlots2["avatarPopover"] = "avatarPopover";
|
|
5
|
+
AccountPopoverSlots2["popoverRoot"] = "popoverRoot";
|
|
5
6
|
AccountPopoverSlots2["userDataContainer"] = "userDataContainer";
|
|
6
7
|
AccountPopoverSlots2["userNameEmail"] = "userNameEmail";
|
|
7
8
|
AccountPopoverSlots2["divider"] = "divider";
|
|
@@ -9,7 +10,6 @@ var AccountPopoverSlots = /* @__PURE__ */ ((AccountPopoverSlots2) => {
|
|
|
9
10
|
AccountPopoverSlots2["menuItemSetting"] = "menuItemSetting";
|
|
10
11
|
AccountPopoverSlots2["menuItem"] = "menuItem";
|
|
11
12
|
AccountPopoverSlots2["menuItemLogout"] = "menuItemLogout";
|
|
12
|
-
AccountPopoverSlots2["iconButton"] = "iconButton";
|
|
13
13
|
AccountPopoverSlots2["fullName"] = "fullName";
|
|
14
14
|
AccountPopoverSlots2["email"] = "email";
|
|
15
15
|
AccountPopoverSlots2["versionContainer"] = "versionContainer";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const IconButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "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" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
2
|
+
export declare const AvatarStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../..').AvatarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "size" | "id" | "hidden" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "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" | "slotProps" | "slots" | keyof import('react').RefAttributes<HTMLDivElement> | "src" | "dataTestid" | "sizes" | "alt" | "srcSet" | "imgProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
3
|
+
export declare const AvatarPopoverStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../..').AvatarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "size" | "id" | "hidden" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "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" | "slotProps" | "slots" | keyof import('react').RefAttributes<HTMLDivElement> | "src" | "dataTestid" | "sizes" | "alt" | "srcSet" | "imgProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
4
4
|
export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
5
|
-
export declare const UserDataContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
6
|
-
export declare const UserNameEmailStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
7
|
-
export declare const DividerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
5
|
+
export declare const UserDataContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
6
|
+
export declare const UserNameEmailStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const DividerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
8
8
|
export declare const CircularProgressStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/CircularProgress/types').CircularProgressProps, keyof import('../../mui_extended/CircularProgress/types').CircularProgressProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
9
9
|
export declare const MenuItemSettingsStyled: 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>, {}, {}>;
|
|
10
10
|
export declare const MenuItemLogoutStyled: 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>, {}, {}>;
|
|
11
11
|
export declare const MenuItemStyled: 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>, {}, {}>;
|
|
12
12
|
export declare const FullNametStyled: 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/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
13
13
|
export declare const EmailtStyled: 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/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
14
|
-
export declare const VersionContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
14
|
+
export declare const VersionContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
15
15
|
export declare const VersionStyled: 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/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
16
|
-
export declare const VersionIconStyled: import('@emotion/styled').StyledComponent<Pick<import('
|
|
16
|
+
export declare const VersionIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').IconProps, keyof import('../..').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { A as ACCOUNT_KEY_POPOVER } from "../constants.js";
|
|
3
3
|
import { A as AccountPopoverSlots } from "./AccountPopoverEnum.js";
|
|
4
|
-
import { a as accountPopoverStyles } from "../
|
|
5
|
-
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
4
|
+
import { a as accountPopoverStyles } from "../AccountPopover.styles.js";
|
|
6
5
|
import { A as Avatar } from "../../mui_extended/Avatar/Avatar.js";
|
|
7
|
-
import {
|
|
6
|
+
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
8
7
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
9
|
-
import {
|
|
8
|
+
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
10
9
|
import { M as MenuItem } from "../../mui_extended/MenuItem/MenuItem.js";
|
|
11
10
|
import { I as Icon } from "../../Icon/Icon.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
slot: AccountPopoverSlots.accountPopoverRoot
|
|
15
|
-
})(accountPopoverStyles?.accountPopoverRoot);
|
|
16
|
-
const IconButtonStyled = styled(IconButton, {
|
|
11
|
+
import { C as CircularProgress } from "../../mui_extended/CircularProgress/CircularProgress.js";
|
|
12
|
+
const IconButtonRootStyled = styled(IconButton, {
|
|
17
13
|
name: ACCOUNT_KEY_POPOVER,
|
|
18
|
-
slot: AccountPopoverSlots.
|
|
19
|
-
})(accountPopoverStyles?.
|
|
14
|
+
slot: AccountPopoverSlots.iconButtonRoot
|
|
15
|
+
})(accountPopoverStyles?.iconButtonRoot);
|
|
20
16
|
const AvatarStyled = styled(Avatar, {
|
|
21
17
|
name: ACCOUNT_KEY_POPOVER,
|
|
22
18
|
slot: AccountPopoverSlots.avatar
|
|
23
19
|
})(accountPopoverStyles?.avatar);
|
|
20
|
+
const AvatarPopoverStyled = styled(Avatar, {
|
|
21
|
+
name: ACCOUNT_KEY_POPOVER,
|
|
22
|
+
slot: AccountPopoverSlots.avatarPopover
|
|
23
|
+
})(accountPopoverStyles?.avatarPopover);
|
|
24
24
|
const PopoverStyled = styled(Popover, {
|
|
25
25
|
name: ACCOUNT_KEY_POPOVER,
|
|
26
|
-
slot: AccountPopoverSlots.
|
|
27
|
-
})(accountPopoverStyles?.
|
|
26
|
+
slot: AccountPopoverSlots.popoverRoot
|
|
27
|
+
})(accountPopoverStyles?.popoverRoot);
|
|
28
28
|
const UserDataContainerStyled = styled("div", {
|
|
29
29
|
name: ACCOUNT_KEY_POPOVER,
|
|
30
30
|
slot: AccountPopoverSlots.userDataContainer
|
|
@@ -74,17 +74,17 @@ const VersionIconStyled = styled(Icon, {
|
|
|
74
74
|
slot: AccountPopoverSlots.versionIcon
|
|
75
75
|
})(accountPopoverStyles?.versionIcon);
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
AvatarStyled as A,
|
|
78
78
|
CircularProgressStyled as C,
|
|
79
79
|
DividerStyled as D,
|
|
80
80
|
EmailtStyled as E,
|
|
81
81
|
FullNametStyled as F,
|
|
82
|
-
|
|
82
|
+
IconButtonRootStyled as I,
|
|
83
83
|
MenuItemSettingsStyled as M,
|
|
84
84
|
PopoverStyled as P,
|
|
85
85
|
UserDataContainerStyled as U,
|
|
86
86
|
VersionContainerStyled as V,
|
|
87
|
-
|
|
87
|
+
AvatarPopoverStyled as a,
|
|
88
88
|
UserNameEmailStyled as b,
|
|
89
89
|
VersionStyled as c,
|
|
90
90
|
VersionIconStyled as d,
|
|
@@ -2,8 +2,9 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
4
4
|
import { P as PATH_VERSION, a as PATH_CONFIGURATION, b as PATH_SIGN_OFF } from "../../constants.js";
|
|
5
|
-
import { P as PopoverStyled, U as UserDataContainerStyled, a as
|
|
5
|
+
import { P as PopoverStyled, U as UserDataContainerStyled, a as AvatarPopoverStyled, b as UserNameEmailStyled, F as FullNametStyled, E as EmailtStyled, V as VersionContainerStyled, c as VersionStyled, d as VersionIconStyled, D as DividerStyled, C as CircularProgressStyled, M as MenuItemSettingsStyled, e as MenuItemStyled, f as MenuItemLogoutStyled } from "../../slots/AccountPopoverSlots.js";
|
|
6
6
|
import { g as getNameDataTestId } from "../../tests/utils.js";
|
|
7
|
+
import { M as MyAvatar } from "../MyAvatar/MyAvatar.js";
|
|
7
8
|
const MenuPopover = (props) => {
|
|
8
9
|
const {
|
|
9
10
|
version,
|
|
@@ -44,7 +45,7 @@ const MenuPopover = (props) => {
|
|
|
44
45
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("popover") } : {},
|
|
45
46
|
children: [
|
|
46
47
|
/* @__PURE__ */ jsxs(UserDataContainerStyled, { children: [
|
|
47
|
-
/* @__PURE__ */ jsx(
|
|
48
|
+
/* @__PURE__ */ jsx(MyAvatar, { avatarUrl, firstName: firstName || "first name", lastName: lastName || "last name", slotAvatar: AvatarPopoverStyled }),
|
|
48
49
|
/* @__PURE__ */ jsxs(UserNameEmailStyled, { children: [
|
|
49
50
|
/* @__PURE__ */ jsx(FullNametStyled, { variant: "paragraphDens", children: `${firstName} ${lastName}` }),
|
|
50
51
|
/* @__PURE__ */ jsx(EmailtStyled, { variant: "body", children: email })
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as AvatarStyled } from "../../slots/AccountPopoverSlots.js";
|
|
3
2
|
function MyAvatar(props) {
|
|
4
|
-
const { avatarUrl, firstName, lastName, size } = props;
|
|
3
|
+
const { avatarUrl, firstName, lastName, size, slotAvatar: SlotAvatar } = props;
|
|
5
4
|
return /* @__PURE__ */ jsx(
|
|
6
|
-
|
|
5
|
+
SlotAvatar,
|
|
7
6
|
{
|
|
8
7
|
alt: "User avatar",
|
|
9
8
|
color: "default",
|
|
@@ -4,7 +4,7 @@ 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
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
|
-
import {
|
|
7
|
+
import { a 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) => {
|
|
10
10
|
const { onToggleVisible, children, companyLogo, companyName, dataTestid, size } = props;
|