@m4l/layouts 0.1.10 → 0.1.12

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 (38) hide show
  1. package/hooks/useMasterDetail/{index.ca232c69.js → index.d5830f95.js} +1 -1
  2. package/hooks/useModule/{index.066da119.js → index.f9e8dfff.js} +1 -1
  3. package/index.js +5 -5
  4. package/layouts/MasterDetailLayout/{index.56544ac9.js → index.a35e475f.js} +2 -2
  5. package/layouts/ModuleLayout/contexts/ModuleContext/index.d.ts +1 -1
  6. package/layouts/ModuleLayout/contexts/ModuleContext/types.d.ts +1 -1
  7. package/layouts/ModuleLayout/{index.4cfb7261.js → index.fe7cec18.js} +112 -119
  8. package/layouts/ModuleLayout/subcomponents/InnerModule/index.d.ts +3 -0
  9. package/layouts/ModuleLayout/{components/ModuleContent → subcomponents/InnerModule}/styles.d.ts +1 -1
  10. package/layouts/ModuleLayout/{components → subcomponents/InnerModule/subcomponents}/Header/index.d.ts +0 -0
  11. package/layouts/ModuleLayout/{components → subcomponents/InnerModule/subcomponents}/Header/skeleton.d.ts +0 -0
  12. package/layouts/ModuleLayout/{components → subcomponents/InnerModule/subcomponents}/Header/styles.d.ts +0 -0
  13. package/layouts/ModuleLayout/{components → subcomponents/InnerModule/subcomponents}/Header/types.d.ts +0 -0
  14. package/layouts/ModuleLayout/{components/ModuleContent → subcomponents/InnerModule}/types.d.ts +0 -0
  15. package/layouts/ModuleLayout/types.d.ts +9 -9
  16. package/layouts/NoAuthModuleLayout/index.798fbe31.js +200 -0
  17. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/index.d.ts +3 -0
  18. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/styles.d.ts +2 -0
  19. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/index.d.ts +3 -0
  20. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/styles.d.ts +2 -0
  21. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/AppBar/index.d.ts +2 -0
  22. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/AppBar/styles.d.ts +2 -0
  23. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/index.d.ts +3 -0
  24. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/styles.d.ts +3 -0
  25. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/subcomponents/NameDescription/index.d.ts +2 -0
  26. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/subcomponents/NameDescription/styles.d.ts +2 -0
  27. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/types.d.ts +4 -0
  28. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/types.d.ts +4 -0
  29. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/LogoLeyend/index.d.ts +2 -0
  30. package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/LogoLeyend/styles.d.ts +2 -0
  31. package/layouts/NoAuthModuleLayout/{ModuleWrapper → subcomponents/InnerModule}/types.d.ts +0 -0
  32. package/layouts/NoAuthModuleLayout/types.d.ts +8 -2
  33. package/layouts/index.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/layouts/ModuleLayout/components/ModuleContent/index.d.ts +0 -3
  36. package/layouts/NoAuthModuleLayout/ModuleWrapper/index.d.ts +0 -3
  37. package/layouts/NoAuthModuleLayout/ModuleWrapper/styles.d.ts +0 -13
  38. package/layouts/NoAuthModuleLayout/index.5050b988.js +0 -178
@@ -1,5 +1,5 @@
1
1
  import { useContext as t } from "react";
2
- import { M as e } from "../../layouts/MasterDetailLayout/index.56544ac9.js";
2
+ import { M as e } from "../../layouts/MasterDetailLayout/index.a35e475f.js";
3
3
  const s = () => t(e);
4
4
  export {
5
5
  s as u
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../layouts/ModuleLayout/index.4cfb7261.js";
2
+ import { M as t } from "../../layouts/ModuleLayout/index.fe7cec18.js";
3
3
  const n = () => {
4
4
  const e = o(t);
5
5
  if (!e)
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { a as p, d as l, g as y } from "./layouts/ModuleLayout/index.4cfb7261.js";
1
+ import { a as p, d as l, g as y } from "./layouts/ModuleLayout/index.fe7cec18.js";
2
2
  import "@m4l/components";
3
3
  import "react";
4
4
  import "@m4l/core";
5
- import { a as n, d as M, g as D } from "./layouts/MasterDetailLayout/index.56544ac9.js";
5
+ import { a as n, d as M, g as D } from "./layouts/MasterDetailLayout/index.a35e475f.js";
6
6
  import "@m4l/graphics";
7
7
  import "@mui/material";
8
8
  import "react/jsx-runtime";
9
- import { N as L, d as c, g } from "./layouts/NoAuthModuleLayout/index.5050b988.js";
10
- import { u as N } from "./hooks/useMasterDetail/index.ca232c69.js";
11
- import { u as A } from "./hooks/useModule/index.066da119.js";
9
+ import { N as L, d as c, g } from "./layouts/NoAuthModuleLayout/index.798fbe31.js";
10
+ import { u as N } from "./hooks/useMasterDetail/index.d5830f95.js";
11
+ import { u as A } from "./hooks/useModule/index.f9e8dfff.js";
12
12
  import "@mui/material/styles";
13
13
  export {
14
14
  n as MasterDetailLayout,
@@ -1,11 +1,11 @@
1
1
  import { createContext as L, useState as v, useRef as P, useCallback as z, useMemo as p } from "react";
2
2
  import { voidFunction as N, useEnvironment as x } from "@m4l/core";
3
3
  import { SplitLayout as R } from "@m4l/components";
4
- import { g as B, a as V } from "../ModuleLayout/index.4cfb7261.js";
4
+ import { g as B, a as V } from "../ModuleLayout/index.fe7cec18.js";
5
5
  import { jsx as r } from "react/jsx-runtime";
6
6
  import { useResponsiveDesktop as j } from "@m4l/graphics";
7
7
  import { Button as E } from "@mui/material";
8
- import { u as H } from "../../hooks/useMasterDetail/index.ca232c69.js";
8
+ import { u as H } from "../../hooks/useMasterDetail/index.d5830f95.js";
9
9
  function T() {
10
10
  return ["master_detail_layout"].concat(B());
11
11
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { ModuleLayoutContextProps, ModuleLayoutProviderProps } from './types';
3
- declare const ModuleContext: import("react").Context<ModuleLayoutContextProps>;
3
+ declare const ModuleContext: import("react").Context<ModuleLayoutContextProps | null>;
4
4
  declare function ModuleProvider(props: ModuleLayoutProviderProps): JSX.Element;
5
5
  export { ModuleProvider, ModuleContext };
@@ -1,6 +1,6 @@
1
1
  import type { TLink } from '@m4l/components';
2
2
  import type { ReactNode } from 'react';
3
- import type { ModuleAction } from '../../types';
3
+ import { ModuleAction } from '../../types';
4
4
  export interface ModuleLayoutContextStateProps {
5
5
  urlIcon: string;
6
6
  moduleId: string;
@@ -1,12 +1,12 @@
1
- import { BoxIcon as y, Breadcrumbs as T, MenuActions as A, useModal as D, ModalProvider as F, getModalDialogComponentsDictionary as L } from "@m4l/components";
2
- import { createContext as N, useState as x, useMemo as f, forwardRef as M, useRef as b, useImperativeHandle as w } from "react";
3
- import { styled as d, useTheme as R } from "@mui/material/styles";
4
- import { voidFunction as S, useModuleDictionary as $, useModuleSkeleton as P, FlagsProvider as _, ModuleDictionaryProvider as B, ModuleSkeletonProvider as H, ModulePrivilegesProvider as G } from "@m4l/core";
5
- import { Skeleton as l, Typography as j, IconButton as O } from "@mui/material";
6
- import { useResponsiveDesktop as k } from "@m4l/graphics";
7
- import { jsxs as p, jsx as i, Fragment as W } from "react/jsx-runtime";
8
- import { u as z } from "../../hooks/useModule/index.066da119.js";
9
- const q = d("div")(() => ({
1
+ import { Icon as C, Breadcrumbs as T, BoxIcon as L, MenuActions as D, useModal as N, ModalProvider as R, getModalDialogComponentsDictionary as $ } from "@m4l/components";
2
+ import { createContext as F, useState as f, useMemo as v, forwardRef as y, useRef as x, useImperativeHandle as M } from "react";
3
+ import { styled as s } from "@mui/material/styles";
4
+ import { useModuleDictionary as P, useModuleSkeleton as S, FlagsProvider as _, ModuleDictionaryProvider as A, ModuleSkeletonProvider as B, ModulePrivilegesProvider as H } from "@m4l/core";
5
+ import { Skeleton as d, Typography as G, IconButton as j } from "@mui/material";
6
+ import { useResponsiveDesktop as b } from "@m4l/graphics";
7
+ import { jsxs as p, jsx as i, Fragment as O } from "react/jsx-runtime";
8
+ import { u as W } from "../../hooks/useModule/index.f9e8dfff.js";
9
+ const z = s("div")(() => ({
10
10
  display: "flex",
11
11
  flexDirection: "column",
12
12
  position: "absolute",
@@ -16,7 +16,7 @@ const q = d("div")(() => ({
16
16
  top: "0px",
17
17
  bottom: "0px",
18
18
  overflow: "hidden"
19
- })), K = d("div")(({
19
+ })), q = s("div")(({
20
20
  theme: e
21
21
  }) => ({
22
22
  display: "flex",
@@ -25,7 +25,7 @@ const q = d("div")(() => ({
25
25
  justifyContent: "center",
26
26
  flexGrow: "1",
27
27
  overflow: "hidden"
28
- })), E = d("div")(({
28
+ })), K = s("div")(({
29
29
  theme: e
30
30
  }) => ({
31
31
  display: "flex",
@@ -52,7 +52,7 @@ const q = d("div")(() => ({
52
52
  width: "20px",
53
53
  height: "20px"
54
54
  }
55
- })), J = d("div")(({
55
+ })), E = s("div")(({
56
56
  theme: e
57
57
  }) => ({
58
58
  display: "flex",
@@ -60,7 +60,7 @@ const q = d("div")(() => ({
60
60
  padding: "0 0",
61
61
  borderBottom: `1px solid ${e.palette.divider}`,
62
62
  minHeight: "60px"
63
- })), Q = d("div")(({
63
+ })), J = s("div")(({
64
64
  theme: e
65
65
  }) => ({
66
66
  display: "grid",
@@ -72,7 +72,7 @@ const q = d("div")(() => ({
72
72
  [e.breakpoints.up("sm")]: {
73
73
  gridTemplateColumns: "repeat(3, auto)"
74
74
  }
75
- })), U = d("div")(({
75
+ })), Q = s("div")(({
76
76
  theme: e
77
77
  }) => ({
78
78
  display: "grid",
@@ -81,7 +81,7 @@ const q = d("div")(() => ({
81
81
  alignItems: "center",
82
82
  width: "auto",
83
83
  height: "auto"
84
- })), V = d("div")(({
84
+ })), U = s("div")(({
85
85
  theme: e
86
86
  }) => ({
87
87
  display: "none",
@@ -93,14 +93,14 @@ const q = d("div")(() => ({
93
93
  [e.breakpoints.up("sm")]: {
94
94
  display: "flex"
95
95
  }
96
- })), X = d("div")(({
96
+ })), V = s("div")(({
97
97
  theme: e
98
98
  }) => ({
99
99
  display: "grid",
100
100
  alignItems: "center",
101
101
  gridTemplateColumns: "repeat(3, auto)",
102
102
  gridGap: e.spacing(2)
103
- })), Y = d("div")(({
103
+ })), X = s("div")(({
104
104
  theme: e
105
105
  }) => ({
106
106
  display: "grid",
@@ -113,52 +113,52 @@ const q = d("div")(() => ({
113
113
  gridGap: e.spacing(2)
114
114
  }
115
115
  }));
116
- function Z() {
117
- const e = k();
118
- return /* @__PURE__ */ p(J, {
116
+ function Y() {
117
+ const e = b();
118
+ return /* @__PURE__ */ p(E, {
119
119
  id: "HeaderSkeleton",
120
- children: [/* @__PURE__ */ p(Q, {
121
- children: [/* @__PURE__ */ p(U, {
122
- children: [/* @__PURE__ */ i(l, {
120
+ children: [/* @__PURE__ */ p(J, {
121
+ children: [/* @__PURE__ */ p(Q, {
122
+ children: [/* @__PURE__ */ i(d, {
123
123
  variant: "circular",
124
124
  width: 24,
125
125
  height: 24
126
- }), /* @__PURE__ */ i(l, {
126
+ }), /* @__PURE__ */ i(d, {
127
127
  variant: "text",
128
128
  width: 120,
129
129
  height: 14
130
130
  })]
131
- }), /* @__PURE__ */ i(V, {}), /* @__PURE__ */ p(X, {
132
- children: [/* @__PURE__ */ i(l, {
131
+ }), /* @__PURE__ */ i(U, {}), /* @__PURE__ */ p(V, {
132
+ children: [/* @__PURE__ */ i(d, {
133
133
  variant: "text",
134
134
  width: 68,
135
135
  height: 14
136
- }), /* @__PURE__ */ i(l, {
136
+ }), /* @__PURE__ */ i(d, {
137
137
  variant: "circular",
138
138
  width: 4,
139
139
  height: 4
140
- }), /* @__PURE__ */ i(l, {
140
+ }), /* @__PURE__ */ i(d, {
141
141
  variant: "text",
142
142
  width: 68,
143
143
  height: 14
144
144
  })]
145
145
  })]
146
- }), /* @__PURE__ */ i(Y, {
147
- children: e ? /* @__PURE__ */ p(W, {
148
- children: [/* @__PURE__ */ i(l, {
146
+ }), /* @__PURE__ */ i(X, {
147
+ children: e ? /* @__PURE__ */ p(O, {
148
+ children: [/* @__PURE__ */ i(d, {
149
149
  variant: "circular",
150
150
  width: 24,
151
151
  height: 24
152
- }), /* @__PURE__ */ i(l, {
152
+ }), /* @__PURE__ */ i(d, {
153
153
  variant: "circular",
154
154
  width: 24,
155
155
  height: 24
156
- }), /* @__PURE__ */ i(l, {
156
+ }), /* @__PURE__ */ i(d, {
157
157
  variant: "circular",
158
158
  width: 24,
159
159
  height: 24
160
160
  })]
161
- }) : /* @__PURE__ */ i(l, {
161
+ }) : /* @__PURE__ */ i(d, {
162
162
  variant: "circular",
163
163
  width: 24,
164
164
  height: 24
@@ -166,94 +166,86 @@ function Z() {
166
166
  })]
167
167
  });
168
168
  }
169
- const ee = {
170
- moduleId: "",
171
- moduleNameField: "module_name",
172
- urlIcon: "",
173
- moduleActions: [],
174
- dynamicActions: [],
175
- setDynamicActions: S,
176
- breadcrumbLinks: []
177
- }, ie = N(ee);
178
- function te(e) {
169
+ const Z = F(null);
170
+ function ee(e) {
179
171
  const {
180
172
  children: n,
181
173
  initialModuleActions: t,
182
174
  moduleId: o,
183
175
  moduleNameField: a,
184
- urlIcon: g,
185
- breadcrumbLinks: s
186
- } = e, [c] = x(() => ({
176
+ urlIcon: c,
177
+ breadcrumbLinks: h
178
+ } = e, [l] = f(() => ({
187
179
  moduleId: o,
188
- urlIcon: g,
180
+ urlIcon: c,
189
181
  moduleNameField: a,
190
182
  dictionary: void 0,
191
- breadcrumbLinks: s
192
- })), [u, h] = x([]), r = f(() => t.concat(u), [t, u]);
193
- return /* @__PURE__ */ i(ie.Provider, {
183
+ breadcrumbLinks: h
184
+ })), [u, r] = f([]), m = v(() => t.concat(u), [t, u]);
185
+ return /* @__PURE__ */ i(Z.Provider, {
194
186
  value: {
195
- moduleActions: r,
187
+ moduleActions: m,
196
188
  dynamicActions: u,
197
- setDynamicActions: h,
198
- moduleId: c.moduleId,
199
- moduleNameField: c.moduleNameField,
200
- urlIcon: c.urlIcon,
201
- breadcrumbLinks: c.breadcrumbLinks
189
+ setDynamicActions: r,
190
+ moduleId: l.moduleId,
191
+ moduleNameField: l.moduleNameField,
192
+ urlIcon: l.urlIcon,
193
+ breadcrumbLinks: l.breadcrumbLinks
202
194
  },
203
195
  children: n
204
196
  });
205
197
  }
206
- function oe(e, n) {
198
+ function ie(e, n) {
207
199
  let t = [...n.filter((o) => o.visibility !== "allways")];
208
200
  return e !== void 0 && e && (t = t.filter((o) => o.visibility === "normal")), t;
209
201
  }
210
- function ne(e, n) {
202
+ function te(e, n) {
211
203
  let t = [];
212
204
  return e !== void 0 && e && (t = t.concat(n.filter((o) => o.visibility === "main"))), t = t.concat(n.filter((o) => o.visibility === "allways")), t;
213
205
  }
214
- function re() {
206
+ function oe() {
215
207
  const {
216
208
  moduleActions: e,
217
209
  moduleNameField: n,
218
210
  breadcrumbLinks: t,
219
211
  urlIcon: o
220
- } = z(), {
212
+ } = W(), {
221
213
  getLabel: a
222
- } = $(), g = R(), s = k(), c = P(), u = f(
223
- () => oe(s, e),
224
- [e, s]
225
- ), h = f(() => ne(s, e), [e, s]);
226
- return c ? /* @__PURE__ */ i(Z, {}) : /* @__PURE__ */ p(E, {
214
+ } = P(), c = b(), h = S(), l = v(
215
+ () => ie(c, e),
216
+ [e, c]
217
+ ), u = v(() => te(c, e), [e, c]);
218
+ return h ? /* @__PURE__ */ i(Y, {}) : /* @__PURE__ */ p(K, {
227
219
  id: "Header",
228
- children: [/* @__PURE__ */ i(y, {
220
+ children: [/* @__PURE__ */ i(C, {
229
221
  src: o,
230
- sx: {
231
- color: g.palette.primary.main
232
- }
233
- }), /* @__PURE__ */ i(j, {
222
+ bgColor: "primary.main",
223
+ size: "24px"
224
+ }), /* @__PURE__ */ i(G, {
234
225
  variant: "h5",
235
226
  sx: {
236
227
  maxWidth: 260,
237
228
  overflow: "hidden",
238
229
  whiteSpace: "nowrap",
239
230
  color: "text.primary",
231
+ marginLeft: "12px",
240
232
  marginRight: "24px",
241
233
  textOverflow: "ellipsis"
242
234
  },
243
235
  children: a(n)
244
236
  }), /* @__PURE__ */ i(T, {
245
237
  links: t
246
- }), h.map((r, m) => {
247
- const v = a(r.dictionaryField);
238
+ }), u.map((r, m) => {
239
+ const g = a(r.dictionaryField);
248
240
  return r.component ? /* @__PURE__ */ i(r.component, {
249
- description: v,
241
+ description: g,
250
242
  onClick: r.onClick
251
- }, `main_action_${m}`) : /* @__PURE__ */ i(O, {
243
+ }, `main_action_${m}`) : /* @__PURE__ */ i(j, {
252
244
  className: r.className,
253
245
  onClick: r.onClick,
254
- "aria-label": `${v}`,
246
+ "aria-label": `${g}`,
255
247
  disabled: r.disabled,
256
- children: /* @__PURE__ */ i(y, {
248
+ children: /* @__PURE__ */ i(L, {
257
249
  src: r.urlIcon,
258
250
  sx: {
259
251
  width: 18,
@@ -261,9 +253,9 @@ function re() {
261
253
  }
262
254
  })
263
255
  }, `main_action_${m}`);
264
- }), u.length > 0 && /* @__PURE__ */ i(A, {
265
- arrow: "right-top",
266
- marginTop: "-11px",
256
+ }), l.length > 0 && /* @__PURE__ */ i(D, {
257
+ arrowType: "right-top",
258
+ marginTop: "11px",
267
259
  anchorOrigin: {
268
260
  vertical: "top",
269
261
  horizontal: "left"
@@ -272,64 +264,65 @@ function re() {
272
264
  vertical: "top",
273
265
  horizontal: "right"
274
266
  },
275
- menuActions: u
267
+ menuActions: l
276
268
  })]
277
269
  });
278
270
  }
279
- const I = M((e, n) => {
271
+ const w = y((e, n) => {
280
272
  const {
281
273
  children: t
282
274
  } = e, {
283
275
  openModal: o
284
- } = D(), a = b(null);
285
- return w(n, () => ({
276
+ } = N(), a = x(null);
277
+ return M(n, () => ({
286
278
  openModal: o,
287
279
  current: a.current
288
- })), /* @__PURE__ */ p(q, {
289
- id: "WrapperModule",
280
+ })), /* @__PURE__ */ p(z, {
281
+ id: "WrapperInnerModule",
282
+ className: "m4l_module_layout",
290
283
  ref: a,
291
- children: [/* @__PURE__ */ i(re, {}), /* @__PURE__ */ i(K, {
284
+ children: [/* @__PURE__ */ i(oe, {}), /* @__PURE__ */ i(q, {
292
285
  id: "ModuleContent",
293
286
  children: t
294
287
  })]
295
288
  });
296
289
  });
297
- I.displayName = "Module";
298
- const ae = M((e, n) => {
290
+ w.displayName = "InnerModule";
291
+ const ne = y((e, n) => {
299
292
  const {
300
293
  moduleId: t,
301
294
  moduleNameField: o = "module_name",
302
295
  moduleActions: a,
303
- urlIcon: g,
304
- children: s,
305
- componentsDictionary: c,
296
+ urlIcon: c,
297
+ children: h,
298
+ componentsDictionary: l,
306
299
  breadcrumbLinks: u,
307
- privileges: h,
308
- skeletonFlags: r
309
- } = e, m = b(null), v = (C) => {
310
- m.current?.openModal(C);
300
+ privileges: r,
301
+ skeletonFlags: m
302
+ } = e, g = x(null), I = (k) => {
303
+ g.current?.openModal(k);
311
304
  };
312
- return w(n, () => ({
313
- openModal: v,
314
- current: m.current
305
+ return M(n, () => ({
306
+ openModal: I,
307
+ current: g.current
315
308
  })), /* @__PURE__ */ i(_, {
316
- children: /* @__PURE__ */ i(B, {
309
+ children: /* @__PURE__ */ i(A, {
317
310
  moduleId: t,
318
- componentsDictionary: c,
319
- children: /* @__PURE__ */ i(H, {
320
- flags: r,
321
- children: /* @__PURE__ */ i(G, {
322
- queryPrivileges: h,
323
- children: /* @__PURE__ */ i(te, {
311
+ componentsDictionary: l,
312
+ children: /* @__PURE__ */ i(B, {
313
+ flags: m,
314
+ children: /* @__PURE__ */ i(H, {
315
+ queryPrivileges: r,
316
+ children: /* @__PURE__ */ i(ee, {
324
317
  moduleId: t,
325
- urlIcon: g,
318
+ urlIcon: c,
326
319
  moduleNameField: o,
327
320
  initialModuleActions: a,
328
321
  breadcrumbLinks: u,
329
- children: /* @__PURE__ */ i(F, {
330
- children: /* @__PURE__ */ i(I, {
331
- ref: m,
332
- children: s
322
+ children: /* @__PURE__ */ i(R, {
323
+ children: /* @__PURE__ */ i(w, {
324
+ ref: g,
325
+ children: h
333
326
  })
334
327
  })
335
328
  })
@@ -338,16 +331,16 @@ const ae = M((e, n) => {
338
331
  })
339
332
  });
340
333
  });
341
- ae.displayName = "ModuleLayout";
342
- function he() {
343
- return ["module_layout"].concat(L());
334
+ ne.displayName = "ModuleLayout";
335
+ function me() {
336
+ return ["module_layout"].concat($());
344
337
  }
345
- const ve = {
338
+ const ge = {
346
339
  module_layout: {}
347
340
  };
348
341
  export {
349
- ie as M,
350
- ae as a,
351
- ve as d,
352
- he as g
342
+ Z as M,
343
+ ne as a,
344
+ ge as d,
345
+ me as g
353
346
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ModuleProps, ModuleRef } from './types';
3
+ export declare const InnerModule: import("react").ForwardRefExoticComponent<ModuleProps & import("react").RefAttributes<ModuleRef>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const WrapperModule: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const WrapperInnerModule: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
3
  export declare const ModuleContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,20 +1,20 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { MenuAction, TLink, ModalOpenOptions } from '@m4l/components';
3
- import type { HeaderProps } from './components/Header/types';
4
- import type { ModuleRef } from './components/ModuleContent/types';
2
+ import type { TLink, ModalOpenOptions, MenuAction } from '@m4l/components';
3
+ import type { HeaderProps } from './subcomponents/InnerModule/subcomponents/Header/types';
4
+ import type { ModuleRef } from './subcomponents/InnerModule/types';
5
+ export declare type MenuActionType = 'main' | 'allways' | 'normal';
6
+ export interface ModuleAction extends MenuAction {
7
+ visibility: MenuActionType;
8
+ tag?: any;
9
+ className?: string;
10
+ }
5
11
  export interface ContainerProps {
6
12
  vertical: boolean;
7
13
  }
8
- export declare type MenuActionType = 'main' | 'allways' | 'normal';
9
14
  export declare type ModuleLayoutRef = {
10
15
  openModal: (modalOpenProps: ModalOpenOptions) => void;
11
16
  current: ModuleRef | null;
12
17
  };
13
- export interface ModuleAction extends MenuAction {
14
- visibility: MenuActionType;
15
- tag?: any;
16
- className?: string;
17
- }
18
18
  export interface ModuleLayoutProps extends HeaderProps {
19
19
  moduleId: string;
20
20
  urlIcon: string;
@@ -0,0 +1,200 @@
1
+ import { useResponsive as h, useLocales as N } from "@m4l/graphics";
2
+ import { Image as p, Typography as u, LanguagePopover as W, HelmetPage as k } from "@m4l/components";
3
+ import { useModuleDictionary as m, useBase as g, useEnvironment as b, BaseProvider as I, FlagsProvider as F, ModuleDictionaryProvider as S, ModuleSkeletonProvider as A } from "@m4l/core";
4
+ import { styled as t } from "@mui/material/styles";
5
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
6
+ const C = t("div")(({
7
+ theme: o
8
+ }) => ({
9
+ boxShadow: o.customShadows.card,
10
+ borderRadius: o.spacing(2),
11
+ width: "100%",
12
+ maxWidth: "464px",
13
+ display: "flex",
14
+ flexDirection: "column",
15
+ justifyContent: "flex-start",
16
+ alignItems: "center",
17
+ margin: o.spacing(2, 0, 2, 2),
18
+ padding: o.spacing(4, 3),
19
+ gap: o.spacing(3),
20
+ overflow: "hidden"
21
+ })), j = () => {
22
+ const {
23
+ getLabel: o
24
+ } = m(), {
25
+ companyLogoNormalUrl: n,
26
+ moduleIlustrationUrl: l
27
+ } = g();
28
+ return /* @__PURE__ */ i(C, {
29
+ children: [/* @__PURE__ */ e(p, {
30
+ width: "400px",
31
+ height: "400px",
32
+ src: n,
33
+ alt: "logo"
34
+ }, "Logo"), l ? /* @__PURE__ */ e(p, {
35
+ src: l,
36
+ width: "100%",
37
+ height: "300px"
38
+ }) : null, /* @__PURE__ */ e(u, {
39
+ variant: "h3",
40
+ skeletonWidth: "30%",
41
+ skeletongHeight: "18px",
42
+ children: o("module_leyend")
43
+ }, "Leyend")]
44
+ });
45
+ }, B = t("div")(() => ({
46
+ flexGrow: "1",
47
+ display: "flex",
48
+ flexDirection: "column"
49
+ })), P = t("header")(({
50
+ theme: o
51
+ }) => ({
52
+ width: "100%",
53
+ display: "flex",
54
+ justifyContent: "space-between",
55
+ padding: o.spacing(1, 3),
56
+ [o.breakpoints.up("md")]: {
57
+ justifyContent: "flex-end"
58
+ }
59
+ })), $ = () => {
60
+ const {
61
+ companyLogoSmallUrl: o
62
+ } = g(), n = h("down", "md");
63
+ return /* @__PURE__ */ i(P, {
64
+ children: [n ? /* @__PURE__ */ e(p, {
65
+ src: o,
66
+ width: "40px",
67
+ height: "40px",
68
+ skeletonVariant: "circle"
69
+ }, "Isotipo") : null, /* @__PURE__ */ e(W, {})]
70
+ });
71
+ }, H = t("div")(() => ({
72
+ display: "flex",
73
+ overflow: "auto",
74
+ width: "100%",
75
+ height: "100%",
76
+ justifyContent: "center"
77
+ })), R = t("div")(({
78
+ theme: o
79
+ }) => ({
80
+ display: "flex",
81
+ width: "100%",
82
+ height: "auto",
83
+ margin: "auto",
84
+ maxWidth: "480px",
85
+ flexDirection: "column",
86
+ gap: o.spacing(3)
87
+ })), E = t("div")(({
88
+ theme: o
89
+ }) => ({
90
+ display: "flex",
91
+ flexDirection: "column",
92
+ gap: o.spacing(2),
93
+ padding: o.spacing(0, 3)
94
+ })), G = () => {
95
+ const {
96
+ getModuleLabel: o,
97
+ getLabel: n
98
+ } = m();
99
+ return /* @__PURE__ */ i(E, {
100
+ children: [/* @__PURE__ */ e(u, {
101
+ variant: "h4",
102
+ skeletonWidth: "35%",
103
+ skeletongHeight: "36px",
104
+ children: o()
105
+ }, "ModuleName"), /* @__PURE__ */ e(u, {
106
+ skeletonWidth: "60%",
107
+ skeletongHeight: "21px",
108
+ children: n("module_description")
109
+ }, "ModuleDescription")]
110
+ });
111
+ }, T = (o) => {
112
+ const {
113
+ children: n
114
+ } = o;
115
+ return /* @__PURE__ */ e(H, {
116
+ children: /* @__PURE__ */ i(R, {
117
+ children: [/* @__PURE__ */ e(G, {}), n]
118
+ })
119
+ });
120
+ }, V = (o) => {
121
+ const {
122
+ children: n
123
+ } = o;
124
+ return /* @__PURE__ */ i(B, {
125
+ children: [/* @__PURE__ */ e($, {}), /* @__PURE__ */ e(T, {
126
+ children: n
127
+ })]
128
+ });
129
+ }, q = t("div")(() => ({
130
+ display: "flex",
131
+ height: "100vh"
132
+ })), z = (o) => {
133
+ const {
134
+ children: n
135
+ } = o, {
136
+ getModuleLabel: l
137
+ } = m(), r = h("up", "md"), {
138
+ subtitle: a
139
+ } = g();
140
+ return /* @__PURE__ */ e(k, {
141
+ title: l(),
142
+ subtitle: a,
143
+ children: /* @__PURE__ */ i(q, {
144
+ children: [r ? /* @__PURE__ */ e(j, {}) : null, /* @__PURE__ */ e(V, {
145
+ children: n
146
+ })]
147
+ })
148
+ });
149
+ }, Y = (o) => {
150
+ const {
151
+ moduleId: n,
152
+ moduleNameField: l,
153
+ children: r,
154
+ componentsDictionary: a,
155
+ skeletonFlags: f,
156
+ subtitle: y,
157
+ companyLogoSmallUrl: x,
158
+ companyLogoNormalUrl: L,
159
+ moduleIlustrationUrl: v
160
+ } = o, {
161
+ host_static_assets: s,
162
+ environment_assets: d
163
+ } = b(), {
164
+ currentLang: _
165
+ } = N(), w = L || `${s}/${d}/frontend/commons/assets/icons/logotipo_m4l.svg`, M = x || `${s}/${d}/frontend/commons/assets/icons/isotipo_m4l.svg`, U = v || `${s}/${d}/frontend/domain/host/commons/assets/img/illustration_noauth.png`, c = f;
166
+ return c.findIndex((D) => D === "dictionary_loaded") < 0 && c.push("dictionary_loaded"), /* @__PURE__ */ e(I, {
167
+ value: {
168
+ subtitle: y,
169
+ companyLogoSmallUrl: M,
170
+ companyLogoNormalUrl: w,
171
+ moduleIlustrationUrl: U
172
+ },
173
+ children: /* @__PURE__ */ e(F, {
174
+ children: /* @__PURE__ */ e(S, {
175
+ isAuth: !1,
176
+ moduleId: n,
177
+ moduleNameField: l,
178
+ componentsDictionary: a,
179
+ currentLang: _.value,
180
+ children: /* @__PURE__ */ e(A, {
181
+ flags: c,
182
+ children: /* @__PURE__ */ e(z, {
183
+ children: r
184
+ })
185
+ })
186
+ })
187
+ })
188
+ });
189
+ };
190
+ function Z() {
191
+ return ["no_auth_module_layout"];
192
+ }
193
+ const oo = {
194
+ no_auth_module_layout: {}
195
+ };
196
+ export {
197
+ Y as N,
198
+ oo as d,
199
+ Z as g
200
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ModuleProps } from './types';
3
+ export declare const InnerModule: (props: ModuleProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperMain: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { WrapperAppBarFormProps } from './types';
3
+ export declare const AppBarForm: (props: WrapperAppBarFormProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperAppBarForm: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AppBar: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperAppBar: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { WrapperFormScrollProps } from './types';
3
+ export declare const Form: (props: WrapperFormScrollProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperFormScroll: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const WrapperForm: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NameDescription: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperNameDescription: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export interface WrapperFormScrollProps {
3
+ children: ReactNode;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export interface WrapperAppBarFormProps {
3
+ children: ReactNode;
4
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LogoLeyend: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperLogoLeyend: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -3,9 +3,15 @@ export interface ContainerProps {
3
3
  vertical: boolean;
4
4
  }
5
5
  export declare type MenuActionType = 'main' | 'allways' | 'normal';
6
- export interface NoAuthModuleLayoutProps {
6
+ export declare interface NoAuthBaseProviderProps {
7
+ subtitle?: string;
8
+ companyLogoSmallUrl: string;
9
+ companyLogoNormalUrl: string;
10
+ moduleIlustrationUrl?: string;
11
+ }
12
+ export interface NoAuthModuleLayoutProps extends NoAuthBaseProviderProps {
7
13
  moduleId: string;
8
- moduleName?: string;
14
+ moduleNameField?: string;
9
15
  componentsDictionary: string[];
10
16
  skeletonFlags: string[];
11
17
  children: ReactNode;
@@ -1,7 +1,7 @@
1
1
  export { ModuleLayout } from './ModuleLayout';
2
- export type { ModuleAction } from './ModuleLayout/types';
3
2
  export * from './ModuleLayout/dicctionary';
4
3
  export { MasterDetailLayout } from './MasterDetailLayout';
5
4
  export * from './MasterDetailLayout/dicctionary';
6
5
  export { NoAuthModuleLayout } from './NoAuthModuleLayout';
7
6
  export * from './NoAuthModuleLayout/dicctionary';
7
+ export type { ModuleAction } from '../layouts/ModuleLayout/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/components": "*",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { ModuleProps, ModuleRef } from './types';
3
- export declare const Module: import("react").ForwardRefExoticComponent<ModuleProps & import("react").RefAttributes<ModuleRef>>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { ModuleProps } from './types';
3
- export declare const ModuleWrapper: (props: ModuleProps) => JSX.Element;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const RootStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const HeaderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
4
- export declare const SectionStyle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").PaperProps<"div", {}>, "classes"> & {
5
- classes?: Partial<import("@mui/material").CardClasses> | undefined;
6
- raised?: boolean | undefined;
7
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "translate" | "slot" | "title" | "children" | "ref" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "elevation" | "square" | "variant" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
- export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
- export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
- export declare const ModuleTitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,178 +0,0 @@
1
- import { useResponsive as u, useLocales as h } from "@m4l/graphics";
2
- import { Page as g, CompanyLogo as y, LanguagePopover as f, Typography as m, Image as x } from "@m4l/components";
3
- import { Card as v, Container as _, Stack as C } from "@mui/material";
4
- import { styled as i } from "@mui/material/styles";
5
- import { useModuleDictionary as S, useFlagsPresent as k, FlagsProvider as w, DomainProvider as L, ModuleDictionaryProvider as P, ModuleSkeletonProvider as b } from "@m4l/core";
6
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
7
- const M = i("div")(({
8
- theme: e
9
- }) => ({
10
- [e.breakpoints.up("md")]: {
11
- display: "flex"
12
- }
13
- })), D = i("header")(({
14
- theme: e
15
- }) => ({
16
- top: 0,
17
- zIndex: 9,
18
- lineHeight: 0,
19
- width: "100%",
20
- display: "flex",
21
- alignItems: "center",
22
- position: "absolute",
23
- padding: e.spacing(2, 2, 0, 2),
24
- justifyContent: "space-between",
25
- [e.breakpoints.up("md")]: {
26
- alignItems: "flex-start",
27
- padding: e.spacing(7, 7, 0, 7)
28
- }
29
- })), I = i(v)(({
30
- theme: e
31
- }) => ({
32
- width: "100%",
33
- maxWidth: 464,
34
- display: "flex",
35
- flexDirection: "column",
36
- justifyContent: "center",
37
- margin: e.spacing(2, 0, 2, 2),
38
- "& > div:nth-of-type(2)": {
39
- maxHeight: "348px"
40
- }
41
- })), j = i("div")(({
42
- theme: e
43
- }) => ({
44
- maxWidth: 480,
45
- margin: "auto",
46
- display: "flex",
47
- minHeight: "100vh",
48
- flexDirection: "column",
49
- justifyContent: "center",
50
- padding: e.spacing(12, 0)
51
- })), H = i("div")(({
52
- theme: e
53
- }) => ({
54
- padding: e.spacing(0, 5)
55
- })), N = i("div")(({
56
- theme: e
57
- }) => ({
58
- width: "100%",
59
- display: "grid",
60
- gridTemplateColumns: "1fr",
61
- gridGap: e.spacing(1)
62
- })), A = (e) => {
63
- const {
64
- children: s
65
- } = e, {
66
- getLabel: a,
67
- getModuleLabel: l
68
- } = S(), r = u("up", "md"), n = !k(["dictionary_loaded"]);
69
- return /* @__PURE__ */ t(g, {
70
- title: l(),
71
- children: /* @__PURE__ */ d(M, {
72
- children: [/* @__PURE__ */ d(D, {
73
- id: "HeaderStyle",
74
- children: [/* @__PURE__ */ t(y, {
75
- size: r ? "normal" : "small",
76
- isSkeleton: n
77
- }), /* @__PURE__ */ t(f, {})]
78
- }), r && /* @__PURE__ */ d(I, {
79
- id: "SectionStyle",
80
- children: [/* @__PURE__ */ t(H, {
81
- id: "module_leyend",
82
- children: /* @__PURE__ */ t(m, {
83
- variant: "h3",
84
- sx: {
85
- px: 5,
86
- mt: 10,
87
- mb: 5
88
- },
89
- skeletonProps: {
90
- isSkeleton: n,
91
- width: "30%",
92
- height: "18px"
93
- },
94
- children: a("module_leyend")
95
- })
96
- }), /* @__PURE__ */ t(x, {
97
- isSkeleton: n,
98
- width: "100%",
99
- height: "auto",
100
- src: "https://s3.amazonaws.com/static.made4labs/environment_assetss/d1/frontend/domain/host/login/assets/img/illustration_login.png",
101
- alt: "illustration module",
102
- effect: "opacity"
103
- })]
104
- }), /* @__PURE__ */ t(_, {
105
- maxWidth: "sm",
106
- id: "formContainer",
107
- children: /* @__PURE__ */ d(j, {
108
- children: [/* @__PURE__ */ t(C, {
109
- direction: "row",
110
- alignItems: "center",
111
- sx: {
112
- mb: 5
113
- },
114
- children: /* @__PURE__ */ d(N, {
115
- children: [/* @__PURE__ */ t(m, {
116
- variant: "h4",
117
- skeletonProps: {
118
- isSkeleton: n,
119
- width: "35%",
120
- height: "36px"
121
- },
122
- children: l()
123
- }), /* @__PURE__ */ t(m, {
124
- sx: {
125
- color: "text.secondary"
126
- },
127
- skeletonProps: {
128
- isSkeleton: n,
129
- width: "60%",
130
- height: "21px"
131
- },
132
- children: a("module_description")
133
- })]
134
- })
135
- }), s]
136
- })
137
- })]
138
- })
139
- });
140
- }, U = (e) => {
141
- const {
142
- moduleId: s,
143
- moduleName: a,
144
- children: l,
145
- componentsDictionary: r,
146
- skeletonFlags: n
147
- } = e, {
148
- currentLang: p
149
- } = h(), o = n;
150
- return o.findIndex((c) => c === "dictionary_loaded") < 0 && o.push("dictionary_loaded"), o.findIndex((c) => c === "domain_loaded") < 0 && o.push("domain_loaded"), /* @__PURE__ */ t(w, {
151
- children: /* @__PURE__ */ t(L, {
152
- children: /* @__PURE__ */ t(P, {
153
- isAuth: !1,
154
- moduleId: s,
155
- moduleName: a,
156
- componentsDictionary: r,
157
- currentLang: p.value,
158
- children: /* @__PURE__ */ t(b, {
159
- flags: o,
160
- children: /* @__PURE__ */ t(A, {
161
- children: l
162
- })
163
- })
164
- })
165
- })
166
- });
167
- };
168
- function q() {
169
- return ["no_auth_module_layout"];
170
- }
171
- const B = {
172
- no_auth_module_layout: {}
173
- };
174
- export {
175
- U as N,
176
- B as d,
177
- q as g
178
- };