@m4l/layouts 0.1.56 → 1.0.0
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/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { B } from "./components/BaseModule/index.8ff0193e.js";
|
|
|
5
5
|
import { a, A } from "./contexts/AuthContext/index.6f966215.js";
|
|
6
6
|
import { a as a2, d, g } from "./layouts/ModuleLayout/index.e7218171.js";
|
|
7
7
|
import { a as a3, d as d2, g as g2 } from "./layouts/MasterDetailLayout/index.748f7ada.js";
|
|
8
|
-
import { N, d as d3, g as g3 } from "./layouts/NoAuthModuleLayout/index.
|
|
8
|
+
import { N, d as d3, g as g3 } from "./layouts/NoAuthModuleLayout/index.a0c88ca8.js";
|
|
9
9
|
import { u } from "./hooks/useMasterDetail/index.d45f2a86.js";
|
|
10
10
|
import { u as u2 } from "./hooks/useAuth/index.cb6a3420.js";
|
|
11
11
|
import { u as u3 } from "./hooks/useModule/index.b5f598b1.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useResponsiveDesktop, useLocales, ResponsiveContainerProvider } from "@m4l/graphics";
|
|
2
|
-
import { LanguagePopover,
|
|
2
|
+
import { LanguagePopover, Image, Typography, Stack, ScrollBar, HelmetPage } from "@m4l/components";
|
|
3
3
|
import { styled } from "@mui/material";
|
|
4
4
|
import { useBase, useModuleDictionary, useDomain, useEnvironment, BaseProvider, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
|
|
5
5
|
import { styled as styled$1, alpha } from "@mui/material/styles";
|
|
@@ -12,7 +12,7 @@ const InnerModuleRoot = styled("div")(({
|
|
|
12
12
|
alignItems: "center",
|
|
13
13
|
height: "100vh",
|
|
14
14
|
padding: "20px",
|
|
15
|
-
backgroundColor: theme.palette.background.background,
|
|
15
|
+
backgroundColor: theme.vars.palette.background.background,
|
|
16
16
|
[theme.breakpoints.down("md")]: {
|
|
17
17
|
padding: "0px"
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@ const InnerModuleRoot = styled("div")(({
|
|
|
20
20
|
const DesktopContentRoot = styled$1("div")(({ theme }) => ({
|
|
21
21
|
display: "flex",
|
|
22
22
|
borderRadius: "16px",
|
|
23
|
-
backgroundColor: theme.palette.background.neutral,
|
|
23
|
+
backgroundColor: theme.vars.palette.background.neutral,
|
|
24
24
|
boxShadow: theme.customShadows?.z4,
|
|
25
25
|
padding: "20px 0 20px 20px",
|
|
26
26
|
width: "100%",
|
|
@@ -51,7 +51,7 @@ const DesktopBanner = styled$1("div")(({ theme }) => ({
|
|
|
51
51
|
width: "100%",
|
|
52
52
|
maxWidth: "400px",
|
|
53
53
|
height: "100%",
|
|
54
|
-
backgroundColor: theme.palette.state?.focus,
|
|
54
|
+
backgroundColor: theme.vars.palette.state?.focus,
|
|
55
55
|
boxShadow: theme.customShadows?.z4,
|
|
56
56
|
padding: "0 60px",
|
|
57
57
|
gap: "40px",
|
|
@@ -64,7 +64,7 @@ const DesktopBanner = styled$1("div")(({ theme }) => ({
|
|
|
64
64
|
textTransform: "uppercase"
|
|
65
65
|
},
|
|
66
66
|
"& .M4LTypography-root .MuiSkeleton-root": {
|
|
67
|
-
backgroundColor: alpha(`${theme.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
67
|
+
backgroundColor: alpha(`${theme.colorSchemes.finalTheme.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
68
68
|
margin: "auto"
|
|
69
69
|
}
|
|
70
70
|
}));
|
|
@@ -73,12 +73,12 @@ const ContainerLogo$1 = styled$1("div")(({ theme }) => ({
|
|
|
73
73
|
width: "84px",
|
|
74
74
|
height: "84px",
|
|
75
75
|
borderRadius: "6px",
|
|
76
|
-
backgroundColor: theme.palette.state?.active,
|
|
76
|
+
backgroundColor: theme.vars.palette.state?.active,
|
|
77
77
|
justifyContent: "center",
|
|
78
78
|
alignItems: "center",
|
|
79
|
-
boxShadow: `0px 4px 8px ${alpha(theme.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
79
|
+
boxShadow: `0px 4px 8px ${alpha(theme.colorSchemes.finalTheme.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
80
80
|
"& .M4LImage-root": {
|
|
81
|
-
backgroundColor: theme.palette.patronus?.marbleLight[10],
|
|
81
|
+
backgroundColor: theme.vars.palette.patronus?.marbleLight[10],
|
|
82
82
|
borderRadius: "6px"
|
|
83
83
|
}
|
|
84
84
|
}));
|
|
@@ -124,8 +124,7 @@ styled$1("div")(() => ({
|
|
|
124
124
|
const DesktopContent = () => {
|
|
125
125
|
const {
|
|
126
126
|
children,
|
|
127
|
-
companyLogoSmallUrl
|
|
128
|
-
handleSetting
|
|
127
|
+
companyLogoSmallUrl
|
|
129
128
|
} = useBase();
|
|
130
129
|
const {
|
|
131
130
|
getLabel
|
|
@@ -134,16 +133,8 @@ const DesktopContent = () => {
|
|
|
134
133
|
name,
|
|
135
134
|
slogan
|
|
136
135
|
} = useDomain();
|
|
137
|
-
const {
|
|
138
|
-
host_static_assets,
|
|
139
|
-
environment_assets
|
|
140
|
-
} = useEnvironment();
|
|
141
136
|
return /* @__PURE__ */ jsxs(DesktopContentRoot, {
|
|
142
|
-
children: [/* @__PURE__ */ jsx(LanguagePopover, {}), /* @__PURE__ */
|
|
143
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/account_popover/assets/icons/configuration.svg`,
|
|
144
|
-
onClick: handleSetting,
|
|
145
|
-
className: "config-icon"
|
|
146
|
-
}), /* @__PURE__ */ jsxs(DesktopBanner, {
|
|
137
|
+
children: [/* @__PURE__ */ jsx(LanguagePopover, {}), /* @__PURE__ */ jsxs(DesktopBanner, {
|
|
147
138
|
children: [/* @__PURE__ */ jsx(ContainerLogo$1, {
|
|
148
139
|
children: /* @__PURE__ */ jsx(Image, {
|
|
149
140
|
src: companyLogoSmallUrl,
|
|
@@ -208,7 +199,7 @@ const MobileContentRoot = styled$1("div")(({ theme }) => ({
|
|
|
208
199
|
flexDirection: "column",
|
|
209
200
|
width: "100%",
|
|
210
201
|
height: "100%",
|
|
211
|
-
backgroundColor: theme.palette.background.neutral,
|
|
202
|
+
backgroundColor: theme.vars.palette.background.neutral,
|
|
212
203
|
padding: "12px",
|
|
213
204
|
gap: "32px"
|
|
214
205
|
}));
|
|
@@ -218,7 +209,7 @@ const MobileBanner = styled$1("div")(({ theme }) => ({
|
|
|
218
209
|
padding: "12px",
|
|
219
210
|
gap: "20px",
|
|
220
211
|
width: "100%",
|
|
221
|
-
backgroundColor: theme.palette.state?.focus,
|
|
212
|
+
backgroundColor: theme.vars.palette.state?.focus,
|
|
222
213
|
boxShadow: theme.customShadows?.z4,
|
|
223
214
|
position: "relative",
|
|
224
215
|
borderRadius: "8px",
|
|
@@ -234,16 +225,16 @@ const MobileBanner = styled$1("div")(({ theme }) => ({
|
|
|
234
225
|
right: "40px",
|
|
235
226
|
zIndex: 1,
|
|
236
227
|
"& .M4LIcon-root .M4LIcon-icon": {
|
|
237
|
-
backgroundColor: theme.palette.patronus?.marbleLight[10]
|
|
228
|
+
backgroundColor: theme.vars.palette.patronus?.marbleLight[10]
|
|
238
229
|
}
|
|
239
230
|
},
|
|
240
231
|
"& .MuiTypography-root": {
|
|
241
|
-
color: theme.palette.patronus?.marbleLight[10],
|
|
232
|
+
color: theme.vars.palette.patronus?.marbleLight[10],
|
|
242
233
|
display: "flex",
|
|
243
234
|
textTransform: "uppercase"
|
|
244
235
|
},
|
|
245
236
|
"& .MuiSkeleton-root": {
|
|
246
|
-
backgroundColor: alpha(`${theme.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
237
|
+
backgroundColor: alpha(`${theme.colorSchemes.finalTheme.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
247
238
|
margin: "auto"
|
|
248
239
|
}
|
|
249
240
|
}));
|
|
@@ -255,12 +246,12 @@ const ContainerLogo = styled$1("div")(({ theme }) => ({
|
|
|
255
246
|
width: "52px",
|
|
256
247
|
height: "52px",
|
|
257
248
|
borderRadius: "6px",
|
|
258
|
-
backgroundColor: theme.palette.state?.active,
|
|
249
|
+
backgroundColor: theme.vars.palette.state?.active,
|
|
259
250
|
justifyContent: "center",
|
|
260
251
|
alignItems: "center",
|
|
261
|
-
boxShadow: `0px 4px 8px ${alpha(theme.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
252
|
+
boxShadow: `0px 4px 8px ${alpha(theme.colorSchemes.finalTheme.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
262
253
|
"& .M4LImage-root": {
|
|
263
|
-
backgroundColor: theme.palette.patronus?.marbleLight[10],
|
|
254
|
+
backgroundColor: theme.vars.palette.patronus?.marbleLight[10],
|
|
264
255
|
borderRadius: "6px"
|
|
265
256
|
}
|
|
266
257
|
}));
|
|
@@ -292,16 +283,11 @@ const ContainerModuleName = styled$1("div")(() => ({
|
|
|
292
283
|
const MobileContent = () => {
|
|
293
284
|
const {
|
|
294
285
|
children,
|
|
295
|
-
companyLogoSmallUrl
|
|
296
|
-
handleSetting
|
|
286
|
+
companyLogoSmallUrl
|
|
297
287
|
} = useBase();
|
|
298
288
|
const {
|
|
299
289
|
getLabel
|
|
300
290
|
} = useModuleDictionary();
|
|
301
|
-
const {
|
|
302
|
-
host_static_assets,
|
|
303
|
-
environment_assets
|
|
304
|
-
} = useEnvironment();
|
|
305
291
|
const {
|
|
306
292
|
name
|
|
307
293
|
} = useDomain();
|
|
@@ -326,10 +312,6 @@ const MobileContent = () => {
|
|
|
326
312
|
skeletongHeight: "20px",
|
|
327
313
|
children: getLabel("company_name_subtitle")
|
|
328
314
|
})]
|
|
329
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
330
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/account_popover/assets/icons/configuration.svg`,
|
|
331
|
-
onClick: handleSetting,
|
|
332
|
-
className: "config-icon"
|
|
333
315
|
}), /* @__PURE__ */ jsx(LanguagePopover, {})]
|
|
334
316
|
}), /* @__PURE__ */ jsx(WrapperFormContent, {
|
|
335
317
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/layouts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@m4l/components": "*",
|
|
7
7
|
"@m4l/core": "*",
|
|
8
8
|
"@m4l/graphics": "*",
|
|
9
9
|
"@m4l/styles": "*",
|
|
10
|
-
"@mui/material": "5.
|
|
10
|
+
"@mui/material": "5.15.19"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@types/react": "^17.0.0 || ^18.0.0",
|