@m4l/layouts 9.3.4-19062025.beta.1 → 9.3.4-J18062025.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hooks/useDynamicAccordions/useBaseAccordions.js +1 -1
- package/hooks/useDynamicAccordions/useDynamicAccordions.js +1 -1
- package/layouts/NoAuthModuleLayout/constants.d.ts +0 -15
- package/layouts/NoAuthModuleLayout/constants.js +1 -16
- package/layouts/NoAuthModuleLayout/index.js +2 -9
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.d.ts +21 -8
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.js +31 -14
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts +19 -30
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.js +79 -35
- package/layouts/NoAuthModuleLayout/styles.js +232 -69
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.js +6 -3
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.d.ts +6 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.js +48 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.d.ts +6 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.js +44 -0
- package/layouts/NoAuthModuleLayout/types.d.ts +5 -25
- package/package.json +4 -4
- package/@types/types.d.ts +0 -20
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.d.ts +0 -5
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.js +0 -69
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/types.d.ts +0 -5
|
@@ -18,7 +18,7 @@ function useBaseAccordions(props) {
|
|
|
18
18
|
accordionProps: {
|
|
19
19
|
...accordion.accordionProps
|
|
20
20
|
},
|
|
21
|
-
children: /* @__PURE__ */ jsx(Stack, { direction: "column", children: accordion.properties.map((property) => {
|
|
21
|
+
children: /* @__PURE__ */ jsx(Stack, { direction: "column", gap: "8px", children: accordion.properties.map((property) => {
|
|
22
22
|
const value = property.getValue(data, endPointData);
|
|
23
23
|
return /* @__PURE__ */ createElement(
|
|
24
24
|
PropertyValue,
|
|
@@ -10,7 +10,7 @@ function useDynamicAccordions(props) {
|
|
|
10
10
|
endPointData,
|
|
11
11
|
configDynamicAccordions
|
|
12
12
|
});
|
|
13
|
-
return /* @__PURE__ */ jsx(Stack, { direction: "column", gap: "
|
|
13
|
+
return /* @__PURE__ */ jsx(Stack, { direction: "column", gap: "4px", style: { height: "auto" }, children: accordionsComponents });
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
@@ -1,16 +1 @@
|
|
|
1
1
|
export declare const NOT_AUTH_MODULE_LAYOUT_KEY = "M4LNoAuthModuleLayout";
|
|
2
|
-
/**
|
|
3
|
-
* Lista de iconos
|
|
4
|
-
*/
|
|
5
|
-
export declare const NOT_AUTH_MODULE_LAYOUT_ICONS: {
|
|
6
|
-
home: string;
|
|
7
|
-
themeSettings: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Lista de keys de diccionario
|
|
11
|
-
*/
|
|
12
|
-
export declare const DICTIONARY_KEYS: {
|
|
13
|
-
label_home_navigation: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const DEFAULT_HOME_PATH = "/auth/login";
|
|
16
|
-
export declare const NO_AUTH_MODULE_LAYOUT_CLASSES: Record<string, string>;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import { getComponentClasses } from "@m4l/components";
|
|
2
|
-
import { N as NoAuthModuleLayoutSlots } from "./slots/NoAuthModuleLayoutEnum.js";
|
|
3
1
|
const NOT_AUTH_MODULE_LAYOUT_KEY = "M4LNoAuthModuleLayout";
|
|
4
|
-
const NOT_AUTH_MODULE_LAYOUT_ICONS = {
|
|
5
|
-
home: "frontend/layouts/no_auth_module_layout/commons/assets/icons/house.svg",
|
|
6
|
-
themeSettings: "frontend/layouts/no_auth_module_layout/commons/assets/icons/configuration.svg"
|
|
7
|
-
};
|
|
8
|
-
const DICTIONARY_KEYS = {
|
|
9
|
-
label_home_navigation: "label_home_navigation"
|
|
10
|
-
};
|
|
11
|
-
const DEFAULT_HOME_PATH = "/auth/login";
|
|
12
|
-
const NO_AUTH_MODULE_LAYOUT_CLASSES = getComponentClasses(NOT_AUTH_MODULE_LAYOUT_KEY, NoAuthModuleLayoutSlots);
|
|
13
2
|
export {
|
|
14
|
-
|
|
15
|
-
NOT_AUTH_MODULE_LAYOUT_KEY as N,
|
|
16
|
-
NO_AUTH_MODULE_LAYOUT_CLASSES as a,
|
|
17
|
-
NOT_AUTH_MODULE_LAYOUT_ICONS as b,
|
|
18
|
-
DICTIONARY_KEYS as c
|
|
3
|
+
NOT_AUTH_MODULE_LAYOUT_KEY as N
|
|
19
4
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { D as DEFAULT_HOME_PATH } from "./constants.js";
|
|
3
2
|
import { B as BaseNoAuthModuleLayout } from "./subcomponents/BaseNoAuthModuleLayout/index.js";
|
|
4
3
|
import { useEnvironment, BaseProvider, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
|
|
5
4
|
import { useLocales } from "@m4l/graphics";
|
|
@@ -14,10 +13,7 @@ const NoAuthModuleLayout = (props) => {
|
|
|
14
13
|
companyLogoSmallUrl,
|
|
15
14
|
companyLogoNormalUrl,
|
|
16
15
|
moduleIlustrationUrl,
|
|
17
|
-
handleSetting
|
|
18
|
-
bannerUrl,
|
|
19
|
-
footerComponent,
|
|
20
|
-
homePath = DEFAULT_HOME_PATH
|
|
16
|
+
handleSetting
|
|
21
17
|
} = props;
|
|
22
18
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
23
19
|
const localeString = useLocales().currentLocale?.localeString;
|
|
@@ -36,10 +32,7 @@ const NoAuthModuleLayout = (props) => {
|
|
|
36
32
|
companyLogoSmallUrl: finalCompanyLogoSmallUrl,
|
|
37
33
|
companyLogoNormalUrl: finalCompanyLogoNormalUrl,
|
|
38
34
|
moduleIlustrationUrl: finalIllustrationUrl,
|
|
39
|
-
|
|
40
|
-
handleSetting,
|
|
41
|
-
bannerUrl,
|
|
42
|
-
homePath
|
|
35
|
+
handleSetting
|
|
43
36
|
},
|
|
44
37
|
children: /* @__PURE__ */ jsx(FlagsProvider, { children: /* @__PURE__ */ jsx(
|
|
45
38
|
ModuleDictionaryProvider,
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare enum InnerModuleSlots {
|
|
2
|
+
baseNoAuthModuleLayoutRoot = "baseNoAuthModuleLayoutRoot"
|
|
3
|
+
}
|
|
4
|
+
export declare enum MobileContentSlots {
|
|
5
|
+
mobileContentRoot = "mobileContentRoot",
|
|
6
|
+
mobileBanner = "mobileBanner",
|
|
7
|
+
containerImageLanguage = "containerImageLanguage",
|
|
8
|
+
containerLogo = "containerLogo",
|
|
9
|
+
companyName = "companyName",
|
|
10
|
+
formContent = "formContent",
|
|
5
11
|
wrapperFormContent = "wrapperFormContent",
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
containerModuleName = "containerModuleName"
|
|
13
|
+
}
|
|
14
|
+
export declare enum DesktopContentSlots {
|
|
15
|
+
desktopContentRoot = "desktopContentRoot",
|
|
8
16
|
desktopBanner = "desktopBanner",
|
|
17
|
+
containerLogoDesktop = "containerLogoDesktop",
|
|
18
|
+
companyNameDesktop = "companyNameDesktop",
|
|
19
|
+
companyLeyendDesktop = "companyLeyendDesktop",
|
|
20
|
+
formContentDesktop = "formContentDesktop",
|
|
21
|
+
wrapperFormContentDesktop = "wrapperFormContentDesktop",
|
|
22
|
+
containerModuleNameDesktop = "containerModuleNameDesktop",
|
|
9
23
|
contentFormDesktop = "contentFormDesktop",
|
|
10
|
-
|
|
11
|
-
formContent = "formContent"
|
|
24
|
+
typographyBanner = "typographyBanner"
|
|
12
25
|
}
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
var InnerModuleSlots = /* @__PURE__ */ ((InnerModuleSlots2) => {
|
|
2
|
+
InnerModuleSlots2["baseNoAuthModuleLayoutRoot"] = "baseNoAuthModuleLayoutRoot";
|
|
3
|
+
return InnerModuleSlots2;
|
|
4
|
+
})(InnerModuleSlots || {});
|
|
5
|
+
var MobileContentSlots = /* @__PURE__ */ ((MobileContentSlots2) => {
|
|
6
|
+
MobileContentSlots2["mobileContentRoot"] = "mobileContentRoot";
|
|
7
|
+
MobileContentSlots2["mobileBanner"] = "mobileBanner";
|
|
8
|
+
MobileContentSlots2["containerImageLanguage"] = "containerImageLanguage";
|
|
9
|
+
MobileContentSlots2["containerLogo"] = "containerLogo";
|
|
10
|
+
MobileContentSlots2["companyName"] = "companyName";
|
|
11
|
+
MobileContentSlots2["formContent"] = "formContent";
|
|
12
|
+
MobileContentSlots2["wrapperFormContent"] = "wrapperFormContent";
|
|
13
|
+
MobileContentSlots2["containerModuleName"] = "containerModuleName";
|
|
14
|
+
return MobileContentSlots2;
|
|
15
|
+
})(MobileContentSlots || {});
|
|
16
|
+
var DesktopContentSlots = /* @__PURE__ */ ((DesktopContentSlots2) => {
|
|
17
|
+
DesktopContentSlots2["desktopContentRoot"] = "desktopContentRoot";
|
|
18
|
+
DesktopContentSlots2["desktopBanner"] = "desktopBanner";
|
|
19
|
+
DesktopContentSlots2["containerLogoDesktop"] = "containerLogoDesktop";
|
|
20
|
+
DesktopContentSlots2["companyNameDesktop"] = "companyNameDesktop";
|
|
21
|
+
DesktopContentSlots2["companyLeyendDesktop"] = "companyLeyendDesktop";
|
|
22
|
+
DesktopContentSlots2["formContentDesktop"] = "formContentDesktop";
|
|
23
|
+
DesktopContentSlots2["wrapperFormContentDesktop"] = "wrapperFormContentDesktop";
|
|
24
|
+
DesktopContentSlots2["containerModuleNameDesktop"] = "containerModuleNameDesktop";
|
|
25
|
+
DesktopContentSlots2["contentFormDesktop"] = "contentFormDesktop";
|
|
26
|
+
DesktopContentSlots2["typographyBanner"] = "typographyBanner";
|
|
27
|
+
return DesktopContentSlots2;
|
|
28
|
+
})(DesktopContentSlots || {});
|
|
14
29
|
export {
|
|
15
|
-
|
|
30
|
+
DesktopContentSlots as D,
|
|
31
|
+
InnerModuleSlots as I,
|
|
32
|
+
MobileContentSlots as M
|
|
16
33
|
};
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
export declare const BaseNoAuthModuleLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
ownerState?: (Partial<import('../types').NoAuthModuleLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
-
export declare const ButtonHomeNavigationStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/components/src/components/mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "lang" | "form" | "label" | "slot" | "dir" | "className" | "classes" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
|
-
ownerState?: (Partial<import('../types').NoAuthModuleLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
24
|
-
}, {}, {}>;
|
|
25
|
-
export declare const ContainerCompanyLogoStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
|
-
ownerState?: (Partial<import('../types').NoAuthModuleLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
27
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
28
|
-
export declare const FormContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
-
ownerState?: (Partial<import('../types').NoAuthModuleLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
30
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
1
|
+
export declare const BaseNoAuthModuleLayoutRootStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
2
|
+
export declare const MobileContentRootStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
3
|
+
export declare const MobileBannerStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const ContainerImageLanguageStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const ContainerLogoStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
6
|
+
export declare const CompanyNameStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const FormContentStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
8
|
+
export declare const WrapperFormContentStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
9
|
+
export declare const ContainerModuleNameStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const DesktopContentRootStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
|
+
export declare const DesktopBannerStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
12
|
+
export declare const ContainerLogoDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const CompanyNameDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
14
|
+
export declare const CompanyLeyendDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
15
|
+
export declare const FormContentDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const WrapperFormContentDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
17
|
+
export declare const ContainerModuleNameDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
18
|
+
export declare const ContentFormDesktopStyled: 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').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const TypographyBannerStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps, keyof import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -1,56 +1,100 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { I as InnerModuleSlots, M as MobileContentSlots, D as DesktopContentSlots } from "./NoAuthModuleLayoutEnum.js";
|
|
3
3
|
import { N as NOT_AUTH_MODULE_LAYOUT_KEY } from "../constants.js";
|
|
4
|
+
import { Typography } from "@m4l/components";
|
|
4
5
|
import { n as noAuthModuleLayoutStyles } from "../styles.js";
|
|
5
|
-
import { Image, Button } from "@m4l/components";
|
|
6
6
|
const BaseNoAuthModuleLayoutRootStyled = styled("div", {
|
|
7
7
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
8
|
-
slot:
|
|
8
|
+
slot: InnerModuleSlots.baseNoAuthModuleLayoutRoot
|
|
9
9
|
})(noAuthModuleLayoutStyles?.baseNoAuthModuleLayoutRoot);
|
|
10
|
+
const MobileContentRootStyled = styled("div", {
|
|
11
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
12
|
+
slot: MobileContentSlots.mobileContentRoot
|
|
13
|
+
})(noAuthModuleLayoutStyles.mobileContentRoot);
|
|
14
|
+
const MobileBannerStyled = styled("div", {
|
|
15
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
16
|
+
slot: MobileContentSlots.mobileBanner
|
|
17
|
+
})(noAuthModuleLayoutStyles.mobileBanner);
|
|
18
|
+
styled("div", {
|
|
19
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
20
|
+
slot: MobileContentSlots.containerImageLanguage
|
|
21
|
+
})(noAuthModuleLayoutStyles.containerImageLanguage);
|
|
22
|
+
const ContainerLogoStyled = styled("div", {
|
|
23
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
24
|
+
slot: MobileContentSlots.containerLogo
|
|
25
|
+
})(noAuthModuleLayoutStyles.containerLogo);
|
|
26
|
+
const CompanyNameStyled = styled("div", {
|
|
27
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
28
|
+
slot: MobileContentSlots.companyName
|
|
29
|
+
})(noAuthModuleLayoutStyles.companyName);
|
|
30
|
+
const FormContentStyled = styled("div", {
|
|
31
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
32
|
+
slot: MobileContentSlots.formContent
|
|
33
|
+
})(noAuthModuleLayoutStyles.formContent);
|
|
10
34
|
const WrapperFormContentStyled = styled("div", {
|
|
11
35
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
12
|
-
slot:
|
|
36
|
+
slot: MobileContentSlots.wrapperFormContent
|
|
13
37
|
})(noAuthModuleLayoutStyles.wrapperFormContent);
|
|
14
|
-
const DesktopBannerStyled = styled(Image, {
|
|
15
|
-
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
16
|
-
slot: NoAuthModuleLayoutSlots.desktopBanner
|
|
17
|
-
})(noAuthModuleLayoutStyles.desktopBanner);
|
|
18
38
|
const ContainerModuleNameStyled = styled("div", {
|
|
19
39
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
20
|
-
slot:
|
|
40
|
+
slot: MobileContentSlots.containerModuleName
|
|
21
41
|
})(noAuthModuleLayoutStyles.containerModuleName);
|
|
22
|
-
styled("div", {
|
|
42
|
+
const DesktopContentRootStyled = styled("div", {
|
|
23
43
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
24
|
-
slot:
|
|
25
|
-
})(noAuthModuleLayoutStyles.
|
|
26
|
-
const
|
|
44
|
+
slot: DesktopContentSlots.desktopContentRoot
|
|
45
|
+
})(noAuthModuleLayoutStyles.desktopContentRoot);
|
|
46
|
+
const DesktopBannerStyled = styled("div", {
|
|
47
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
48
|
+
slot: DesktopContentSlots.desktopBanner
|
|
49
|
+
})(noAuthModuleLayoutStyles.desktopBanner);
|
|
50
|
+
const ContainerLogoDesktopStyled = styled("div", {
|
|
27
51
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
28
|
-
slot:
|
|
29
|
-
})(noAuthModuleLayoutStyles.
|
|
30
|
-
const
|
|
52
|
+
slot: DesktopContentSlots.containerLogoDesktop
|
|
53
|
+
})(noAuthModuleLayoutStyles.containerLogoDesktop);
|
|
54
|
+
const CompanyNameDesktopStyled = styled("div", {
|
|
31
55
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
32
|
-
slot:
|
|
33
|
-
})(noAuthModuleLayoutStyles.
|
|
34
|
-
const
|
|
56
|
+
slot: DesktopContentSlots.companyNameDesktop
|
|
57
|
+
})(noAuthModuleLayoutStyles.companyNameDesktop);
|
|
58
|
+
const CompanyLeyendDesktopStyled = styled("div", {
|
|
35
59
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
36
|
-
slot:
|
|
37
|
-
})(noAuthModuleLayoutStyles.
|
|
38
|
-
const
|
|
60
|
+
slot: DesktopContentSlots.companyLeyendDesktop
|
|
61
|
+
})(noAuthModuleLayoutStyles.companyLeyendDesktop);
|
|
62
|
+
const FormContentDesktopStyled = styled("div", {
|
|
39
63
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
40
|
-
slot:
|
|
41
|
-
})(noAuthModuleLayoutStyles.
|
|
42
|
-
const
|
|
64
|
+
slot: DesktopContentSlots.formContentDesktop
|
|
65
|
+
})(noAuthModuleLayoutStyles.formContentDesktop);
|
|
66
|
+
const WrapperFormContentDesktopStyled = styled("div", {
|
|
43
67
|
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
44
|
-
slot:
|
|
45
|
-
})(noAuthModuleLayoutStyles.
|
|
68
|
+
slot: DesktopContentSlots.wrapperFormContentDesktop
|
|
69
|
+
})(noAuthModuleLayoutStyles.wrapperFormContentDesktop);
|
|
70
|
+
const ContainerModuleNameDesktopStyled = styled("div", {
|
|
71
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
72
|
+
slot: DesktopContentSlots.containerModuleNameDesktop
|
|
73
|
+
})(noAuthModuleLayoutStyles.containerModuleNameDesktop);
|
|
74
|
+
styled("div", {
|
|
75
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
76
|
+
slot: DesktopContentSlots.contentFormDesktop
|
|
77
|
+
})(noAuthModuleLayoutStyles.contentFormDesktop);
|
|
78
|
+
const TypographyBannerStyled = styled(Typography, {
|
|
79
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
80
|
+
slot: DesktopContentSlots.typographyBanner
|
|
81
|
+
})(noAuthModuleLayoutStyles.typographyBanner);
|
|
46
82
|
export {
|
|
47
83
|
BaseNoAuthModuleLayoutRootStyled as B,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
84
|
+
ContainerLogoDesktopStyled as C,
|
|
85
|
+
DesktopContentRootStyled as D,
|
|
86
|
+
FormContentDesktopStyled as F,
|
|
87
|
+
MobileContentRootStyled as M,
|
|
88
|
+
TypographyBannerStyled as T,
|
|
89
|
+
WrapperFormContentDesktopStyled as W,
|
|
90
|
+
DesktopBannerStyled as a,
|
|
91
|
+
CompanyNameDesktopStyled as b,
|
|
92
|
+
CompanyLeyendDesktopStyled as c,
|
|
93
|
+
ContainerModuleNameDesktopStyled as d,
|
|
94
|
+
MobileBannerStyled as e,
|
|
95
|
+
ContainerLogoStyled as f,
|
|
96
|
+
CompanyNameStyled as g,
|
|
97
|
+
WrapperFormContentStyled as h,
|
|
98
|
+
FormContentStyled as i,
|
|
99
|
+
ContainerModuleNameStyled as j
|
|
56
100
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { alpha } from "@mui/material/styles";
|
|
1
2
|
const noAuthModuleLayoutStyles = {
|
|
2
3
|
/**
|
|
3
4
|
* ****************************************************
|
|
@@ -6,18 +7,47 @@ const noAuthModuleLayoutStyles = {
|
|
|
6
7
|
* ****************************************************
|
|
7
8
|
*/
|
|
8
9
|
baseNoAuthModuleLayoutRoot: ({ theme }) => ({
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
display: "flex",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
height: "100vh",
|
|
14
|
+
padding: theme.vars.size.baseSpacings.sp5,
|
|
15
|
+
[theme.breakpoints.down("md")]: {
|
|
16
|
+
padding: theme.vars.size.baseSpacings.sp0
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
/**
|
|
20
|
+
* ****************************************************
|
|
21
|
+
* Estilos para el contenedor raíz del componente
|
|
22
|
+
* DesktopContent.
|
|
23
|
+
* ****************************************************
|
|
24
|
+
*/
|
|
25
|
+
desktopContentRoot: ({ theme }) => ({
|
|
26
|
+
display: "flex",
|
|
27
|
+
borderRadius: theme.vars.size.borderRadius.r4,
|
|
28
|
+
backgroundColor: theme.vars.palette.background.surface,
|
|
29
|
+
boxShadow: theme.vars.customShadows?.z4,
|
|
30
|
+
padding: `${theme.vars.size.baseSpacings.sp5}`,
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
maxWidth: "965px",
|
|
34
|
+
//No hay token para este valor
|
|
35
|
+
maxHeight: "900px",
|
|
36
|
+
//No hay token para este valor
|
|
37
|
+
position: "relative",
|
|
38
|
+
overflow: "auto",
|
|
39
|
+
"& .M4LLanguagePopover-root": {
|
|
40
|
+
position: "absolute",
|
|
41
|
+
top: theme.vars.size.baseSpacings.sp5,
|
|
42
|
+
right: theme.vars.size.baseSpacings.sp5,
|
|
43
|
+
zIndex: 1
|
|
44
|
+
},
|
|
45
|
+
"& .M4LIconButton-root.config-icon": {
|
|
46
|
+
position: "absolute",
|
|
47
|
+
top: "25px",
|
|
48
|
+
//No hay token para este valor
|
|
49
|
+
right: theme.vars.size.baseSpacings.sp14,
|
|
50
|
+
zIndex: 1
|
|
21
51
|
}
|
|
22
52
|
}),
|
|
23
53
|
/**
|
|
@@ -26,124 +56,257 @@ const noAuthModuleLayoutStyles = {
|
|
|
26
56
|
* ****************************************************
|
|
27
57
|
*/
|
|
28
58
|
desktopBanner: ({ theme }) => ({
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: "column",
|
|
61
|
+
justifyContent: "center",
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
borderRadius: theme.vars.size.borderRadius.r3,
|
|
29
64
|
width: "100%",
|
|
65
|
+
maxWidth: "400px",
|
|
66
|
+
//No hay token para este valor
|
|
30
67
|
height: "100%",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
68
|
+
backgroundColor: theme.vars.palette.primary.enabled,
|
|
69
|
+
boxShadow: theme.vars.customShadows?.z4,
|
|
70
|
+
padding: `${theme.vars.size.baseSpacings.sp0} 60px`,
|
|
71
|
+
//No hay token para el valor 60px
|
|
72
|
+
gap: theme.vars.size.baseSpacings.sp10,
|
|
34
73
|
overflow: "hidden",
|
|
35
|
-
|
|
36
|
-
|
|
74
|
+
"& .MuiTypography-root": {
|
|
75
|
+
color: theme.palette.common?.white,
|
|
76
|
+
display: "flex",
|
|
77
|
+
justifyContent: "center",
|
|
78
|
+
textAlign: "center",
|
|
79
|
+
textTransform: "uppercase"
|
|
80
|
+
},
|
|
81
|
+
"& .M4LTypography-root .MuiSkeleton-root": {
|
|
82
|
+
backgroundColor: alpha(`${theme.colorSchemes.finalTheme.palette.common.white}`, 0.24),
|
|
83
|
+
margin: "auto"
|
|
37
84
|
}
|
|
38
85
|
}),
|
|
86
|
+
/**
|
|
87
|
+
* ****************************************************
|
|
88
|
+
* Estilos para el contenedor del logo en Desktop.
|
|
89
|
+
* ****************************************************
|
|
90
|
+
*/
|
|
91
|
+
containerLogoDesktop: ({ theme }) => ({
|
|
92
|
+
display: "flex",
|
|
93
|
+
width: "84px",
|
|
94
|
+
//No hay token para este valor
|
|
95
|
+
height: "84px",
|
|
96
|
+
//No hay token para este valor
|
|
97
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
98
|
+
backgroundColor: theme.vars.palette.primary.hover,
|
|
99
|
+
justifyContent: "center",
|
|
100
|
+
alignItems: "center",
|
|
101
|
+
padding: theme.vars.size.baseSpacings.sp3,
|
|
102
|
+
"& .M4LImage-root": {
|
|
103
|
+
backgroundColor: theme.vars.palette.common?.white,
|
|
104
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"]
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
/**
|
|
108
|
+
* ****************************************************
|
|
109
|
+
* Estilos para el contenedor del nombre de la empresa
|
|
110
|
+
* en Desktop.
|
|
111
|
+
* ****************************************************
|
|
112
|
+
*/
|
|
113
|
+
companyNameDesktop: ({ theme }) => ({
|
|
114
|
+
display: "flex",
|
|
115
|
+
flexDirection: "column",
|
|
116
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
117
|
+
width: "100%"
|
|
118
|
+
}),
|
|
119
|
+
/**
|
|
120
|
+
* ****************************************************
|
|
121
|
+
* Estilos para el contenedor del eslogan de la empresa
|
|
122
|
+
* en Desktop.
|
|
123
|
+
* ****************************************************
|
|
124
|
+
*/
|
|
125
|
+
companyLeyendDesktop: ({ theme }) => ({
|
|
126
|
+
display: "flex",
|
|
127
|
+
flexDirection: "column",
|
|
128
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
129
|
+
width: "100%"
|
|
130
|
+
}),
|
|
39
131
|
/**
|
|
40
132
|
* ****************************************************
|
|
41
133
|
* Estilos para el contenedor del formulario en Desktop.
|
|
42
134
|
* ****************************************************
|
|
43
135
|
*/
|
|
44
|
-
|
|
136
|
+
formContentDesktop: ({ theme }) => ({
|
|
45
137
|
display: "flex",
|
|
46
138
|
flexDirection: "column",
|
|
139
|
+
padding: `${theme.vars.size.baseSpacings.sp0} 72px`,
|
|
140
|
+
//No hay token para los valores 60px y 80px
|
|
47
141
|
margin: "auto 0",
|
|
48
|
-
width: "
|
|
142
|
+
width: "100%",
|
|
49
143
|
height: "auto",
|
|
50
|
-
gap: theme.vars.size.baseSpacings.
|
|
51
|
-
overflow: "auto",
|
|
52
|
-
...theme.generalSettings.isMobile && {
|
|
53
|
-
width: "100%"
|
|
54
|
-
}
|
|
144
|
+
gap: theme.vars.size.baseSpacings.sp5
|
|
55
145
|
}),
|
|
56
146
|
/**
|
|
57
147
|
* ****************************************************
|
|
58
148
|
* Estilos para el wrapper del contenedor en desktop
|
|
59
149
|
* ****************************************************
|
|
60
150
|
*/
|
|
61
|
-
|
|
151
|
+
wrapperFormContentDesktop: () => ({
|
|
62
152
|
display: "flex",
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
minWidth: "500px",
|
|
66
|
-
height: "100%",
|
|
67
|
-
padding: theme.vars.size.baseSpacings.sp6,
|
|
68
|
-
gap: theme.vars.size.baseSpacings.sp13,
|
|
69
|
-
overflow: "auto",
|
|
70
|
-
...theme.generalSettings.isMobile && {
|
|
71
|
-
minWidth: "100%"
|
|
72
|
-
}
|
|
153
|
+
width: "100%",
|
|
154
|
+
height: "100%"
|
|
73
155
|
}),
|
|
74
156
|
/**
|
|
75
157
|
* ************************************************************
|
|
76
158
|
* Estilos para el contenedor del nombre de la app en desktop
|
|
77
159
|
* ************************************************************
|
|
78
160
|
*/
|
|
79
|
-
|
|
161
|
+
containerModuleNameDesktop: ({ theme }) => ({
|
|
80
162
|
display: "flex",
|
|
81
163
|
flexDirection: "column",
|
|
82
164
|
width: "100%",
|
|
83
|
-
gap: theme.vars.size.baseSpacings.sp2
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
165
|
+
gap: theme.vars.size.baseSpacings.sp2
|
|
166
|
+
}),
|
|
167
|
+
/**
|
|
168
|
+
* ************************************************************
|
|
169
|
+
* Estilos para el contenedor del formulario en desktop
|
|
170
|
+
* ************************************************************
|
|
171
|
+
*/
|
|
172
|
+
contentFormDesktop: () => ({
|
|
173
|
+
display: "flex",
|
|
174
|
+
width: "100%",
|
|
175
|
+
height: "100%",
|
|
176
|
+
justifyContent: "center",
|
|
177
|
+
alignItems: "center"
|
|
178
|
+
}),
|
|
179
|
+
typographyBanner: ({ theme }) => ({
|
|
180
|
+
color: `${theme.vars.palette.primary.contrastText} !important`
|
|
87
181
|
}),
|
|
88
182
|
/**
|
|
89
183
|
* ****************************************************
|
|
90
|
-
* Estilos para el contenedor del
|
|
184
|
+
* Estilos para el contenedor raíz del componente
|
|
185
|
+
* MobileContent.
|
|
91
186
|
* ****************************************************
|
|
92
187
|
*/
|
|
93
|
-
|
|
188
|
+
mobileContentRoot: ({ theme }) => ({
|
|
94
189
|
display: "flex",
|
|
95
|
-
|
|
96
|
-
height: theme.vars.size.baseSpacings.sp12,
|
|
190
|
+
flexDirection: "column",
|
|
97
191
|
width: "100%",
|
|
98
|
-
|
|
192
|
+
height: "100%",
|
|
193
|
+
backgroundColor: theme.vars.palette.background.surface,
|
|
194
|
+
padding: theme.vars.size.baseSpacings.sp3,
|
|
195
|
+
gap: theme.vars.size.baseSpacings.sp8
|
|
99
196
|
}),
|
|
100
197
|
/**
|
|
101
198
|
* ****************************************************
|
|
102
|
-
* Estilos para el contenedor del
|
|
199
|
+
* Estilos para el contenedor del banner móvil.
|
|
103
200
|
* ****************************************************
|
|
104
201
|
*/
|
|
105
|
-
|
|
202
|
+
mobileBanner: ({ theme }) => ({
|
|
203
|
+
display: "flex",
|
|
204
|
+
flexDirection: "column",
|
|
205
|
+
padding: theme.vars.size.baseSpacings.sp3,
|
|
206
|
+
gap: theme.vars.size.baseSpacings.sp5,
|
|
106
207
|
width: "100%",
|
|
107
|
-
|
|
208
|
+
backgroundColor: theme.vars.palette.primary.enabled,
|
|
209
|
+
boxShadow: theme.customShadows?.z4,
|
|
210
|
+
position: "relative",
|
|
211
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
212
|
+
"& .M4LLanguagePopover-root": {
|
|
213
|
+
position: "absolute",
|
|
214
|
+
top: theme.vars.size.baseSpacings.sp3,
|
|
215
|
+
right: theme.vars.size.baseSpacings.sp3,
|
|
216
|
+
zIndex: 1
|
|
217
|
+
},
|
|
218
|
+
"& .M4LIconButton-root.config-icon": {
|
|
219
|
+
position: "absolute",
|
|
220
|
+
top: theme.vars.size.baseSpacings.sp3,
|
|
221
|
+
right: theme.vars.size.baseSpacings.sp10,
|
|
222
|
+
zIndex: 1,
|
|
223
|
+
"& .M4LIcon-root .M4LIcon-icon": {
|
|
224
|
+
backgroundColor: theme.vars.palette.common?.white
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"& .MuiTypography-root": {
|
|
228
|
+
color: theme.vars.palette.common?.white,
|
|
229
|
+
display: "flex",
|
|
230
|
+
textTransform: "uppercase"
|
|
231
|
+
},
|
|
232
|
+
"& .MuiSkeleton-root": {
|
|
233
|
+
backgroundColor: alpha(`${theme.colorSchemes.finalTheme.palette.common.white}`, 0.24),
|
|
234
|
+
margin: "auto"
|
|
235
|
+
}
|
|
236
|
+
}),
|
|
237
|
+
/**
|
|
238
|
+
* ****************************************************
|
|
239
|
+
* Estilos para el contenedor de la imagen que
|
|
240
|
+
* representa el lenguaje
|
|
241
|
+
* ****************************************************
|
|
242
|
+
*/
|
|
243
|
+
containerImageLanguage: () => ({
|
|
244
|
+
display: "flex"
|
|
245
|
+
}),
|
|
246
|
+
/**
|
|
247
|
+
* ****************************************************
|
|
248
|
+
* Estilos para el contenedor del logo
|
|
249
|
+
* ****************************************************
|
|
250
|
+
*/
|
|
251
|
+
containerLogo: ({ theme }) => ({
|
|
108
252
|
display: "flex",
|
|
109
|
-
|
|
110
|
-
|
|
253
|
+
width: theme.vars.size.baseSpacings.sp13,
|
|
254
|
+
height: theme.vars.size.baseSpacings.sp13,
|
|
255
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
256
|
+
backgroundColor: theme.vars.palette.primary.hover,
|
|
257
|
+
justifyContent: "center",
|
|
258
|
+
alignItems: "center",
|
|
259
|
+
"& .M4LImage-root": {
|
|
260
|
+
backgroundColor: theme.vars.palette.common?.white,
|
|
261
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"]
|
|
262
|
+
}
|
|
111
263
|
}),
|
|
112
264
|
/**
|
|
113
265
|
* ****************************************************
|
|
114
|
-
*
|
|
266
|
+
* Estilos para el contenedor del nombre de la empresa
|
|
115
267
|
* ****************************************************
|
|
116
268
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
269
|
+
companyName: ({ theme }) => ({
|
|
270
|
+
display: "flex",
|
|
271
|
+
flexDirection: "column",
|
|
272
|
+
width: "100%",
|
|
273
|
+
gap: theme.vars.size.baseSpacings.sp2
|
|
119
274
|
}),
|
|
120
275
|
/**
|
|
121
276
|
* ****************************************************
|
|
122
|
-
* Estilos para el contenedor
|
|
123
|
-
* el lenguaje en desktop
|
|
277
|
+
* Estilos para el contenedor del formulario
|
|
124
278
|
* ****************************************************
|
|
125
279
|
*/
|
|
126
|
-
|
|
280
|
+
formContent: ({ theme }) => ({
|
|
127
281
|
display: "flex",
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
borderColor: theme.vars.palette.border.disabled,
|
|
134
|
-
marginLeft: "auto"
|
|
282
|
+
flexDirection: "column",
|
|
283
|
+
padding: theme.vars.size.baseSpacings.sp4,
|
|
284
|
+
margin: "auto 0",
|
|
285
|
+
width: "100%",
|
|
286
|
+
gap: theme.vars.size.baseSpacings.sp5
|
|
135
287
|
}),
|
|
136
288
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
289
|
+
* ****************************************************
|
|
290
|
+
* Estilos para el wrapper del contenedor del formulario
|
|
291
|
+
* ****************************************************
|
|
140
292
|
*/
|
|
141
|
-
|
|
293
|
+
wrapperFormContent: () => ({
|
|
142
294
|
display: "flex",
|
|
143
295
|
width: "100%",
|
|
144
296
|
height: "100%",
|
|
145
|
-
|
|
146
|
-
|
|
297
|
+
overflow: "hidden"
|
|
298
|
+
}),
|
|
299
|
+
/**
|
|
300
|
+
* ****************************************************
|
|
301
|
+
* Estilos para el contenedor del nombre del módulo
|
|
302
|
+
* de la plataforma
|
|
303
|
+
* ****************************************************
|
|
304
|
+
*/
|
|
305
|
+
containerModuleName: ({ theme }) => ({
|
|
306
|
+
display: "flex",
|
|
307
|
+
flexDirection: "column",
|
|
308
|
+
width: "100%",
|
|
309
|
+
gap: theme.vars.size.baseSpacings.sp2
|
|
147
310
|
})
|
|
148
311
|
};
|
|
149
312
|
export {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HelmetPage } from "@m4l/components";
|
|
3
3
|
import { useModuleDictionary, useBase } from "@m4l/core";
|
|
4
|
-
import {
|
|
4
|
+
import { D as DesktopContent } from "./subcomponents/DesktopContent/index.js";
|
|
5
|
+
import { M as MobileContent } from "./subcomponents/MobileContent/index.js";
|
|
6
|
+
import { useIsMobile } from "@m4l/graphics";
|
|
5
7
|
import { B as BaseNoAuthModuleLayoutRootStyled } from "../../slots/NoAuthModuleLayoutSlots.js";
|
|
6
8
|
const BaseNoAuthModuleLayout = (props) => {
|
|
7
9
|
const { children } = props;
|
|
8
10
|
const { getModuleLabel } = useModuleDictionary();
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
+
const isMobile = useIsMobile();
|
|
12
|
+
const { subtitle } = useBase();
|
|
13
|
+
return /* @__PURE__ */ jsx(HelmetPage, { title: getModuleLabel(), subtitle, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayoutRootStyled, { id: "modulerootnouth", "data-testid": "modulerootnouth", children: isMobile ? /* @__PURE__ */ jsx(MobileContent, { children }) : /* @__PURE__ */ jsx(DesktopContent, { children }) }) });
|
|
11
14
|
};
|
|
12
15
|
export {
|
|
13
16
|
BaseNoAuthModuleLayout as B
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { LanguagePopover, Image, Typography, Stack } from "@m4l/components";
|
|
3
|
+
import { D as DesktopContentRootStyled, a as DesktopBannerStyled, C as ContainerLogoDesktopStyled, b as CompanyNameDesktopStyled, T as TypographyBannerStyled, c as CompanyLeyendDesktopStyled, W as WrapperFormContentDesktopStyled, F as FormContentDesktopStyled, d as ContainerModuleNameDesktopStyled } from "../../../../slots/NoAuthModuleLayoutSlots.js";
|
|
4
|
+
import { useBase, useModuleDictionary, useDomain } from "@m4l/core";
|
|
5
|
+
const DesktopContent = (props) => {
|
|
6
|
+
const { children } = props;
|
|
7
|
+
const { companyLogoSmallUrl } = useBase();
|
|
8
|
+
const { getLabel } = useModuleDictionary();
|
|
9
|
+
const { name, slogan } = useDomain();
|
|
10
|
+
return /* @__PURE__ */ jsxs(DesktopContentRootStyled, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx(LanguagePopover, {}),
|
|
12
|
+
/* @__PURE__ */ jsxs(DesktopBannerStyled, { children: [
|
|
13
|
+
/* @__PURE__ */ jsx(ContainerLogoDesktopStyled, { children: /* @__PURE__ */ jsx(Image, { src: companyLogoSmallUrl, width: "60px", height: "60px" }) }),
|
|
14
|
+
/* @__PURE__ */ jsxs(CompanyNameDesktopStyled, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
TypographyBannerStyled,
|
|
17
|
+
{
|
|
18
|
+
variant: "subtitleDens",
|
|
19
|
+
skeletonWidth: "70%",
|
|
20
|
+
children: name
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ jsx(TypographyBannerStyled, { variant: "subtitle", skeletonWidth: "40%", children: getLabel("company_name_subtitle") })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ jsxs(CompanyLeyendDesktopStyled, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(TypographyBannerStyled, { variant: "h5", skeletonWidth: "50%", children: getLabel("module_leyend") }),
|
|
27
|
+
/* @__PURE__ */ jsx(TypographyBannerStyled, { variant: "paragraph", skeletonWidth: "80%", children: slogan })
|
|
28
|
+
] })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsx(WrapperFormContentDesktopStyled, { children: /* @__PURE__ */ jsxs(FormContentDesktopStyled, { children: [
|
|
31
|
+
/* @__PURE__ */ jsxs(ContainerModuleNameDesktopStyled, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h3", skeletonWidth: "20%", children: getLabel("module_name") }),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Typography,
|
|
35
|
+
{
|
|
36
|
+
variant: "subtitle",
|
|
37
|
+
skeletonWidth: "40%",
|
|
38
|
+
children: getLabel("module_description")
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsx(Stack, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children })
|
|
43
|
+
] }) })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
DesktopContent as D
|
|
48
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Image, LanguagePopover, Typography } from "@m4l/components";
|
|
3
|
+
import { M as MobileContentRootStyled, e as MobileBannerStyled, f as ContainerLogoStyled, g as CompanyNameStyled, T as TypographyBannerStyled, h as WrapperFormContentStyled, i as FormContentStyled, j as ContainerModuleNameStyled } from "../../../../slots/NoAuthModuleLayoutSlots.js";
|
|
4
|
+
import { useBase, useModuleDictionary, useDomain } from "@m4l/core";
|
|
5
|
+
const MobileContent = (props) => {
|
|
6
|
+
const { children } = props;
|
|
7
|
+
const { companyLogoSmallUrl } = useBase();
|
|
8
|
+
const { getLabel } = useModuleDictionary();
|
|
9
|
+
const { name } = useDomain();
|
|
10
|
+
return /* @__PURE__ */ jsxs(MobileContentRootStyled, { children: [
|
|
11
|
+
/* @__PURE__ */ jsxs(MobileBannerStyled, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(ContainerLogoStyled, { children: /* @__PURE__ */ jsx(Image, { src: companyLogoSmallUrl, width: "44px", height: "44px" }) }),
|
|
13
|
+
/* @__PURE__ */ jsxs(CompanyNameStyled, { children: [
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
TypographyBannerStyled,
|
|
16
|
+
{
|
|
17
|
+
variant: "subtitleDens",
|
|
18
|
+
skeletonWidth: "70%",
|
|
19
|
+
children: name
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(TypographyBannerStyled, { variant: "subtitle", skeletonWidth: "40%", children: getLabel("company_name_subtitle") })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ jsx(LanguagePopover, {})
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ jsx(WrapperFormContentStyled, { children: /* @__PURE__ */ jsxs(FormContentStyled, { style: { overflow: "auto", position: "relative" }, children: [
|
|
27
|
+
/* @__PURE__ */ jsxs(ContainerModuleNameStyled, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h3", skeletonWidth: "20%", children: getLabel("module_name") }),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
Typography,
|
|
31
|
+
{
|
|
32
|
+
variant: "subtitle",
|
|
33
|
+
skeletonWidth: "40%",
|
|
34
|
+
children: getLabel("module_description")
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }),
|
|
38
|
+
children
|
|
39
|
+
] }) })
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
MobileContent as M
|
|
44
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
3
|
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import {
|
|
4
|
+
import { DesktopContentSlots, InnerModuleSlots, MobileContentSlots } from './slots/NoAuthModuleLayoutEnum';
|
|
4
5
|
import { NOT_AUTH_MODULE_LAYOUT_KEY } from './constants';
|
|
5
|
-
import { Sizes } from '@m4l/styles';
|
|
6
|
-
import { M4LOverridesStyleRules } from '@m4l/components';
|
|
7
6
|
export interface ContainerProps {
|
|
8
7
|
vertical: boolean;
|
|
9
8
|
}
|
|
@@ -29,18 +28,6 @@ export declare interface NoAuthBaseBaseProps {
|
|
|
29
28
|
* Función que se ejecuta al hacer clic en el botón de configuración
|
|
30
29
|
*/
|
|
31
30
|
handleSetting?: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* Url de la imagen del banner
|
|
34
|
-
*/
|
|
35
|
-
bannerUrl?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Componente que se debe cargar en el footer
|
|
38
|
-
*/
|
|
39
|
-
footerComponent?: ReactElement;
|
|
40
|
-
/**
|
|
41
|
-
* Ruta de la página de inicio
|
|
42
|
-
*/
|
|
43
|
-
homePath?: string;
|
|
44
31
|
}
|
|
45
32
|
export declare interface NoAuthBaseProviderProps extends NoAuthBaseBaseProps {
|
|
46
33
|
/**
|
|
@@ -69,19 +56,12 @@ export interface NoAuthModuleLayoutProps extends NoAuthBaseProviderProps {
|
|
|
69
56
|
* Referencia al div observado
|
|
70
57
|
*/
|
|
71
58
|
observedDivRef: Element | Text | null;
|
|
72
|
-
/**
|
|
73
|
-
* Componente que se debe cargar en el footer
|
|
74
|
-
*/
|
|
75
|
-
footerComponent?: ReactElement;
|
|
76
|
-
}
|
|
77
|
-
export interface NoAuthModuleLayoutOwnerState {
|
|
78
|
-
size: Extract<Sizes, 'small' | 'medium'>;
|
|
79
59
|
}
|
|
80
60
|
/**
|
|
81
61
|
* Define los tipos de Slots disponibles para el `NoAuthModuleLayout`.
|
|
82
62
|
*/
|
|
83
|
-
export type NoAuthModuleLayoutSlotsType =
|
|
63
|
+
export type NoAuthModuleLayoutSlotsType = InnerModuleSlots | MobileContentSlots | DesktopContentSlots;
|
|
84
64
|
/**
|
|
85
65
|
* Estilos aplicables al `NoAuthModuleLayout`
|
|
86
66
|
*/
|
|
87
|
-
export type NoAuthModuleLayoutStyles =
|
|
67
|
+
export type NoAuthModuleLayoutStyles = OverridesStyleRules<NoAuthModuleLayoutSlotsType, typeof NOT_AUTH_MODULE_LAYOUT_KEY, Theme>;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/layouts",
|
|
3
|
-
"version": "9.3.4-
|
|
3
|
+
"version": "9.3.4-J18062025.beta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "M4L Team ",
|
|
6
6
|
"lint-staged": {
|
|
7
7
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@m4l/components": "9.2.60-
|
|
10
|
+
"@m4l/components": "9.2.60-J18062025.beta.1",
|
|
11
11
|
"@m4l/core": "^2.0.0",
|
|
12
|
-
"@m4l/graphics": "
|
|
13
|
-
"@m4l/styles": "7.
|
|
12
|
+
"@m4l/graphics": "^9.0.0",
|
|
13
|
+
"@m4l/styles": "^7.0.0"
|
|
14
14
|
},
|
|
15
15
|
"resolutions": {
|
|
16
16
|
"glob": "^10.4.5",
|
package/@types/types.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NoAuthModuleLayoutOwnerState, NoAuthModuleLayoutSlotsType } from '../layouts/NoAuthModuleLayout/types';
|
|
2
|
-
|
|
3
|
-
declare module '@mui/material/styles' {
|
|
4
|
-
// Define the slots in the theme
|
|
5
|
-
interface ComponentNameToClassKey {
|
|
6
|
-
M4LNoAuthModuleLayout: NoAuthModuleLayoutSlotsType;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ComponentsPropsList {
|
|
10
|
-
M4LNoAuthModuleLayout: Partial<NoAuthModuleLayoutOwnerState>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface Components {
|
|
14
|
-
M4LNoAuthModuleLayout?: {
|
|
15
|
-
defaultProps?: ComponentsPropsList['M4LNoAuthModuleLayout'];
|
|
16
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LNoAuthModuleLayout'];
|
|
17
|
-
variants?: ComponentsVariants['M4LNoAuthModuleLayout'];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useComponentSize, LanguagePopover, IconButton, Image, Typography, Stack } from "@m4l/components";
|
|
3
|
-
import { D as DesktopBannerStyled, W as WrapperFormContentStyled, H as HeaderContainerStyled, a as ButtonHomeNavigationStyled, C as ContainerLanguageAndSettingsStyled, b as ContainerCompanyLogoStyled, F as FormContentStyled, c as ContainerModuleNameStyled } from "../../../../slots/NoAuthModuleLayoutSlots.js";
|
|
4
|
-
import { useLocation, useNavigate } from "react-router-dom";
|
|
5
|
-
import { useEnvironment, useBase, useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import { a as NO_AUTH_MODULE_LAYOUT_CLASSES, b as NOT_AUTH_MODULE_LAYOUT_ICONS, c as DICTIONARY_KEYS } from "../../../../constants.js";
|
|
7
|
-
const BaseContent = (props) => {
|
|
8
|
-
const { children, bannerUrl } = props;
|
|
9
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
-
const { currentSize } = useComponentSize();
|
|
11
|
-
const location = useLocation();
|
|
12
|
-
const { handleSetting, companyLogoNormalUrl, footerComponent, homePath } = useBase();
|
|
13
|
-
const navigate = useNavigate();
|
|
14
|
-
const ownerState = {
|
|
15
|
-
size: currentSize
|
|
16
|
-
};
|
|
17
|
-
const { getLabel } = useModuleDictionary();
|
|
18
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx(DesktopBannerStyled, { enableIntersectionObserver: false, src: bannerUrl, className: NO_AUTH_MODULE_LAYOUT_CLASSES.desktopBanner }),
|
|
20
|
-
/* @__PURE__ */ jsxs(WrapperFormContentStyled, { children: [
|
|
21
|
-
/* @__PURE__ */ jsxs(HeaderContainerStyled, { children: [
|
|
22
|
-
location.pathname !== homePath && /* @__PURE__ */ jsx(
|
|
23
|
-
ButtonHomeNavigationStyled,
|
|
24
|
-
{
|
|
25
|
-
variant: "text",
|
|
26
|
-
ownerState: { ownerState },
|
|
27
|
-
label: getLabel(DICTIONARY_KEYS.label_home_navigation),
|
|
28
|
-
startIcon: `${host_static_assets}/${environment_assets}/${NOT_AUTH_MODULE_LAYOUT_ICONS.home}`,
|
|
29
|
-
onClick: () => {
|
|
30
|
-
navigate(homePath || "/");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ jsxs(ContainerLanguageAndSettingsStyled, { children: [
|
|
35
|
-
/* @__PURE__ */ jsx(LanguagePopover, {}),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
IconButton,
|
|
38
|
-
{
|
|
39
|
-
icon: `${host_static_assets}/${environment_assets}/${NOT_AUTH_MODULE_LAYOUT_ICONS.themeSettings}`,
|
|
40
|
-
variant: "text",
|
|
41
|
-
onClick: () => {
|
|
42
|
-
handleSetting?.();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] })
|
|
47
|
-
] }),
|
|
48
|
-
/* @__PURE__ */ jsx(ContainerCompanyLogoStyled, { children: /* @__PURE__ */ jsx(Image, { src: companyLogoNormalUrl }) }),
|
|
49
|
-
/* @__PURE__ */ jsxs(FormContentStyled, { children: [
|
|
50
|
-
/* @__PURE__ */ jsxs(ContainerModuleNameStyled, { children: [
|
|
51
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h5", skeletonWidth: "20%", children: getLabel("module_name") }),
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
53
|
-
Typography,
|
|
54
|
-
{
|
|
55
|
-
variant: "subtitle",
|
|
56
|
-
skeletonWidth: "40%",
|
|
57
|
-
children: getLabel("module_description")
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ jsx(Stack, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children })
|
|
62
|
-
] }),
|
|
63
|
-
footerComponent && footerComponent
|
|
64
|
-
] })
|
|
65
|
-
] });
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
BaseContent as B
|
|
69
|
-
};
|