@m4l/layouts 9.3.4 → 9.3.5-B07072025beta.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.
Files changed (22) hide show
  1. package/@types/types.d.ts +20 -0
  2. package/components/ModuleDetailTabs/useModuleDatailTabs.d.ts +85 -85
  3. package/hooks/useDynamicAccordions/useBaseAccordions.js +1 -1
  4. package/hooks/useDynamicAccordions/useDynamicAccordions.js +1 -1
  5. package/layouts/NoAuthModuleLayout/constants.d.ts +15 -0
  6. package/layouts/NoAuthModuleLayout/constants.js +16 -1
  7. package/layouts/NoAuthModuleLayout/index.js +9 -2
  8. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.d.ts +8 -21
  9. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.js +14 -31
  10. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts +30 -19
  11. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.js +35 -79
  12. package/layouts/NoAuthModuleLayout/styles.js +71 -232
  13. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.js +3 -6
  14. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.d.ts +5 -0
  15. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.js +69 -0
  16. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/types.d.ts +5 -0
  17. package/layouts/NoAuthModuleLayout/types.d.ts +25 -5
  18. package/package.json +3 -3
  19. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.d.ts +0 -6
  20. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.js +0 -48
  21. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.d.ts +0 -6
  22. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.js +0 -44
@@ -1,8 +1,9 @@
1
- import { ReactNode } from 'react';
2
- import { OverridesStyleRules } from '@mui/material/styles/overrides';
1
+ import { ReactElement, ReactNode } from 'react';
3
2
  import { Theme } from '@mui/material/styles';
4
- import { DesktopContentSlots, InnerModuleSlots, MobileContentSlots } from './slots/NoAuthModuleLayoutEnum';
3
+ import { NoAuthModuleLayoutSlots } from './slots/NoAuthModuleLayoutEnum';
5
4
  import { NOT_AUTH_MODULE_LAYOUT_KEY } from './constants';
5
+ import { Sizes } from '@m4l/styles';
6
+ import { M4LOverridesStyleRules } from '@m4l/components';
6
7
  export interface ContainerProps {
7
8
  vertical: boolean;
8
9
  }
@@ -28,6 +29,18 @@ export declare interface NoAuthBaseBaseProps {
28
29
  * Función que se ejecuta al hacer clic en el botón de configuración
29
30
  */
30
31
  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;
31
44
  }
32
45
  export declare interface NoAuthBaseProviderProps extends NoAuthBaseBaseProps {
33
46
  /**
@@ -56,12 +69,19 @@ export interface NoAuthModuleLayoutProps extends NoAuthBaseProviderProps {
56
69
  * Referencia al div observado
57
70
  */
58
71
  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'>;
59
79
  }
60
80
  /**
61
81
  * Define los tipos de Slots disponibles para el `NoAuthModuleLayout`.
62
82
  */
63
- export type NoAuthModuleLayoutSlotsType = InnerModuleSlots | MobileContentSlots | DesktopContentSlots;
83
+ export type NoAuthModuleLayoutSlotsType = keyof typeof NoAuthModuleLayoutSlots;
64
84
  /**
65
85
  * Estilos aplicables al `NoAuthModuleLayout`
66
86
  */
67
- export type NoAuthModuleLayoutStyles = OverridesStyleRules<NoAuthModuleLayoutSlotsType, typeof NOT_AUTH_MODULE_LAYOUT_KEY, Theme>;
87
+ export type NoAuthModuleLayoutStyles = M4LOverridesStyleRules<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.5-B07072025beta.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.0.0",
10
+ "@m4l/components": "9.0.0-B07072025beta.1",
11
11
  "@m4l/core": "^2.0.0",
12
12
  "@m4l/graphics": "^7.0.0",
13
- "@m4l/styles": "^7.0.0"
13
+ "@m4l/styles": "7.0.0-B07072025beta.1"
14
14
  },
15
15
  "resolutions": {
16
16
  "glob": "^10.4.5",
@@ -1,6 +0,0 @@
1
- /**
2
- * Componente que contiene el contenido de la vista de escritorio
3
- */
4
- export declare const DesktopContent: (props: {
5
- children: React.ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,48 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * Contenido de la vista mobile
3
- */
4
- export declare const MobileContent: (props: {
5
- children: React.ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,44 +0,0 @@
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
- };