@m4l/layouts 9.1.10-beta.1 → 9.1.11

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.
@@ -32,7 +32,6 @@ const NoAuthModuleLayout = (props) => {
32
32
  companyLogoSmallUrl: finalCompanyLogoSmallUrl,
33
33
  companyLogoNormalUrl: finalCompanyLogoNormalUrl,
34
34
  moduleIlustrationUrl: finalIllustrationUrl,
35
- children,
36
35
  handleSetting
37
36
  },
38
37
  children: /* @__PURE__ */ jsx(FlagsProvider, { children: /* @__PURE__ */ jsx(
@@ -43,7 +42,7 @@ const NoAuthModuleLayout = (props) => {
43
42
  moduleNameField,
44
43
  componentsDictionary,
45
44
  currentLang: localeString,
46
- children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: finalSkeletonFlags, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayout, {}) })
45
+ children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: finalSkeletonFlags, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayout, { children }) })
47
46
  }
48
47
  ) })
49
48
  }
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Componente que contiene el contenido de la vista de escritorio/ móvil
3
3
  */
4
- export declare const BaseNoAuthModuleLayout: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const BaseNoAuthModuleLayout: (props: {
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -5,11 +5,12 @@ import { D as DesktopContent } from "./subcomponents/DesktopContent/index.js";
5
5
  import { M as MobileContent } from "./subcomponents/MobileContent/index.js";
6
6
  import { useIsMobile } from "@m4l/graphics";
7
7
  import { B as BaseNoAuthModuleLayoutRootStyled } from "../../slots/NoAuthModuleLayoutSlots.js";
8
- const BaseNoAuthModuleLayout = () => {
8
+ const BaseNoAuthModuleLayout = (props) => {
9
+ const { children } = props;
9
10
  const { getModuleLabel } = useModuleDictionary();
10
11
  const isMobile = useIsMobile();
11
12
  const { subtitle } = useBase();
12
- return /* @__PURE__ */ jsx(HelmetPage, { title: getModuleLabel(), subtitle, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayoutRootStyled, { id: "modulerootnouth", "data-testid": "modulerootnouth", children: isMobile ? /* @__PURE__ */ jsx(MobileContent, {}) : /* @__PURE__ */ jsx(DesktopContent, {}) }) });
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 }) }) });
13
14
  };
14
15
  export {
15
16
  BaseNoAuthModuleLayout as B
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Componente que contiene el contenido de la vista de escritorio
3
3
  */
4
- export declare const DesktopContent: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const DesktopContent: (props: {
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,9 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { LanguagePopover, Image, Typography, Stack, ScrollBar } from "@m4l/components";
3
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
4
  import { useBase, useModuleDictionary, useDomain } from "@m4l/core";
5
- const DesktopContent = () => {
6
- const { children, companyLogoSmallUrl } = useBase();
5
+ const DesktopContent = (props) => {
6
+ const { children } = props;
7
+ const { companyLogoSmallUrl } = useBase();
7
8
  const { getLabel } = useModuleDictionary();
8
9
  const { name, slogan } = useDomain();
9
10
  return /* @__PURE__ */ jsxs(DesktopContentRootStyled, { children: [
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Contenido de la vista mobile
3
3
  */
4
- export declare const MobileContent: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const MobileContent: (props: {
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Image, LanguagePopover, ScrollBar, Typography } from "@m4l/components";
3
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
4
  import { useBase, useModuleDictionary, useDomain } from "@m4l/core";
5
- const MobileContent = () => {
6
- const { children, companyLogoSmallUrl } = useBase();
5
+ const MobileContent = (props) => {
6
+ const { children } = props;
7
+ const { companyLogoSmallUrl } = useBase();
7
8
  const { getLabel } = useModuleDictionary();
8
9
  const { name } = useDomain();
9
10
  return /* @__PURE__ */ jsxs(MobileContentRootStyled, { children: [
@@ -7,7 +7,7 @@ export interface ContainerProps {
7
7
  vertical: boolean;
8
8
  }
9
9
  export type MenuActionType = 'main' | 'allways' | 'normal';
10
- export declare interface NoAuthBaseProviderProps {
10
+ export declare interface NoAuthBaseBaseProps {
11
11
  /**
12
12
  * Indica el Subtitulo del layout
13
13
  */
@@ -24,15 +24,17 @@ export declare interface NoAuthBaseProviderProps {
24
24
  * Url de la imagen de ilustración del módulo
25
25
  */
26
26
  moduleIlustrationUrl?: string;
27
- /**
28
- * Componente que será envuelto por el layout
29
- */
30
- children: ReactNode;
31
27
  /**
32
28
  * Función que se ejecuta al hacer clic en el botón de configuración
33
29
  */
34
30
  handleSetting?: () => void;
35
31
  }
32
+ export declare interface NoAuthBaseProviderProps extends NoAuthBaseBaseProps {
33
+ /**
34
+ * Componente que será envuelto por el layout
35
+ */
36
+ children: ReactNode;
37
+ }
36
38
  export interface NoAuthModuleLayoutProps extends NoAuthBaseProviderProps {
37
39
  /**
38
40
  * Identificador del módulo
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.1.10-beta.1",
3
+ "version": "9.1.11",
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.15-beta.2",
10
+ "@m4l/components": "^9.0.0",
11
11
  "@m4l/core": "^2.0.0",
12
12
  "@m4l/graphics": "^7.0.0",
13
13
  "@m4l/styles": "^7.0.0"