@m4l/graphics 0.0.15 → 0.0.19
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/dist/commonjs.js +1 -0
- package/dist/components/Page/index.js +31 -0
- package/dist/components/ProgressBarStyle/index.js +34 -0
- package/dist/components/index.js +4 -1318
- package/dist/contexts/HostThemeContext/index.js +71 -0
- package/dist/contexts/LocalesContext/index.js +46 -0
- package/dist/contexts/index.js +3 -174
- package/dist/hooks/index.js +6 -40
- package/dist/hooks/useHostTheme/index.js +9 -0
- package/dist/hooks/useLocales/index.js +9 -0
- package/dist/hooks/useResponsive/index.js +26 -0
- package/dist/index.js +19 -1654
- package/dist/lib/components/Page/index.d.ts +3 -9
- package/dist/lib/components/Page/types.d.ts +7 -0
- package/dist/lib/components/{ProgressBar → ProgressBarStyle}/index.d.ts +0 -1
- package/dist/lib/components/index.d.ts +1 -6
- package/dist/lib/hooks/useHostTheme/index.d.ts +1 -0
- package/dist/lib/hooks/useLocales/index.d.ts +1 -0
- package/dist/lib/hooks/{useResponsive.d.ts → useResponsive/index.d.ts} +0 -0
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/theme/palette.d.ts +1 -2
- package/dist/react-helmet-async-invariant.js +19 -0
- package/dist/react-helmet-async-react-fast-compare.js +90 -0
- package/dist/react-helmet-async-shallowequal.js +32 -0
- package/dist/react-helmet-async.js +363 -0
- package/dist/theme/index.js +1553 -0
- package/dist/utils/index.js +91 -0
- package/package.json +3 -9
- package/dist/components/mui_extended/index.js +0 -53
- package/dist/layouts/index.js +0 -39
- package/dist/lib/components/CompanyLogo/index.d.ts +0 -3
- package/dist/lib/components/CompanyLogo/styles.d.ts +0 -5
- package/dist/lib/components/CompanyLogo/types.d.ts +0 -6
- package/dist/lib/components/Image/index.d.ts +0 -3
- package/dist/lib/components/Image/styles.d.ts +0 -5
- package/dist/lib/components/Image/types.d.ts +0 -19
- package/dist/lib/components/LanguagePopover/index.d.ts +0 -3
- package/dist/lib/components/LanguagePopover/types.d.ts +0 -3
- package/dist/lib/components/LinkWithRoute/index.d.ts +0 -3
- package/dist/lib/components/LinkWithRoute/types.d.ts +0 -7
- package/dist/lib/components/Loadable/index.d.ts +0 -2
- package/dist/lib/components/Typography/index.d.ts +0 -3
- package/dist/lib/components/Typography/types.d.ts +0 -5
- package/dist/lib/components/animate/DialogAnimate.d.ts +0 -7
- package/dist/lib/components/animate/FabButtonAnimate.d.ts +0 -8
- package/dist/lib/components/animate/IconButtonAnimate/index.d.ts +0 -4
- package/dist/lib/components/animate/MotionContainer.d.ts +0 -10
- package/dist/lib/components/animate/MotionInView.d.ts +0 -9
- package/dist/lib/components/animate/MotionLazyContainer.d.ts +0 -6
- package/dist/lib/components/animate/TextAnimate.d.ts +0 -9
- package/dist/lib/components/animate/index.d.ts +0 -8
- package/dist/lib/components/animate/type.d.ts +0 -26
- package/dist/lib/components/animate/variants/actions.d.ts +0 -5
- package/dist/lib/components/animate/variants/background.d.ts +0 -104
- package/dist/lib/components/animate/variants/bounce.d.ts +0 -136
- package/dist/lib/components/animate/variants/container.d.ts +0 -19
- package/dist/lib/components/animate/variants/fade.d.ts +0 -217
- package/dist/lib/components/animate/variants/flip.d.ts +0 -75
- package/dist/lib/components/animate/variants/index.d.ts +0 -12
- package/dist/lib/components/animate/variants/path.d.ts +0 -14
- package/dist/lib/components/animate/variants/rotate.d.ts +0 -39
- package/dist/lib/components/animate/variants/scale.d.ts +0 -75
- package/dist/lib/components/animate/variants/slide.d.ts +0 -155
- package/dist/lib/components/animate/variants/transition.d.ts +0 -13
- package/dist/lib/components/animate/variants/zoom.d.ts +0 -199
- package/dist/lib/components/mui_extended/LoadingButton/index.d.ts +0 -3
- package/dist/lib/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
- package/dist/lib/components/mui_extended/LoadingButton/styles.d.ts +0 -2
- package/dist/lib/components/mui_extended/LoadingButton/types.d.ts +0 -5
- package/dist/lib/components/mui_extended/Typography/index.d.ts +0 -3
- package/dist/lib/components/mui_extended/Typography/types.d.ts +0 -5
- package/dist/lib/components/mui_extended/index.d.ts +0 -37
- package/dist/lib/hooks/useHostTheme.d.ts +0 -1
- package/dist/lib/hooks/useLocales.d.ts +0 -1
- package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/index.d.ts +0 -3
- package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/styles.d.ts +0 -13
- package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/types.d.ts +0 -4
- package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/index.d.ts +0 -5
- package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/types.d.ts +0 -12
- package/dist/lib/layouts/NoAuthModuleLayout/index.d.ts +0 -3
- package/dist/lib/layouts/NoAuthModuleLayout/types.d.ts +0 -11
- package/dist/lib/layouts/index.d.ts +0 -1
- package/dist/node_modules.js +0 -150
package/dist/commonjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { W } from "../../react-helmet-async.js";
|
|
3
|
+
import { Box } from "@mui/material";
|
|
4
|
+
import { u as useLocales } from "../../hooks/useLocales/index.js";
|
|
5
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
6
|
+
const Page = forwardRef((props, ref) => {
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
title = "",
|
|
10
|
+
meta,
|
|
11
|
+
...other
|
|
12
|
+
} = props;
|
|
13
|
+
const {
|
|
14
|
+
currentLang
|
|
15
|
+
} = useLocales();
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
17
|
+
children: [/* @__PURE__ */ jsxs(W, {
|
|
18
|
+
children: [/* @__PURE__ */ jsx("title", {
|
|
19
|
+
children: `${title} | Made4Labs`
|
|
20
|
+
}), /* @__PURE__ */ jsx("html", {
|
|
21
|
+
lang: currentLang.value
|
|
22
|
+
}), meta]
|
|
23
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
24
|
+
ref,
|
|
25
|
+
...other,
|
|
26
|
+
children
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
Page.displayName = "Page";
|
|
31
|
+
export { Page as P };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useTheme } from "@mui/material/styles";
|
|
2
|
+
import { GlobalStyles } from "@mui/material";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
function ProgressBarStyle() {
|
|
5
|
+
const theme = useTheme();
|
|
6
|
+
return /* @__PURE__ */ jsx(GlobalStyles, {
|
|
7
|
+
styles: {
|
|
8
|
+
"#nprogress": {
|
|
9
|
+
pointerEvents: "none",
|
|
10
|
+
"& .bar": {
|
|
11
|
+
top: 0,
|
|
12
|
+
left: 0,
|
|
13
|
+
height: 2,
|
|
14
|
+
width: "100%",
|
|
15
|
+
position: "fixed",
|
|
16
|
+
zIndex: theme.zIndex.snackbar,
|
|
17
|
+
backgroundColor: theme.palette.primary.main,
|
|
18
|
+
boxShadow: `0 0 2px ${theme.palette.primary.main}`
|
|
19
|
+
},
|
|
20
|
+
"& .peg": {
|
|
21
|
+
right: 0,
|
|
22
|
+
opacity: 1,
|
|
23
|
+
width: 100,
|
|
24
|
+
height: "100%",
|
|
25
|
+
display: "block",
|
|
26
|
+
position: "absolute",
|
|
27
|
+
transform: "rotate(3deg) translate(0px, -4px)",
|
|
28
|
+
boxShadow: `0 0 10px ${theme.palette.primary.main}, 0 0 5px ${theme.palette.primary.main}`
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export { ProgressBarStyle as P };
|