@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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import "@mui/material/styles";
|
|
2
|
+
import "@mui/material/useMediaQuery";
|
|
3
|
+
import { p as palette } from "../theme/index.js";
|
|
4
|
+
function pxToRem(value) {
|
|
5
|
+
return `${value / 16}rem`;
|
|
6
|
+
}
|
|
7
|
+
function responsiveFontSizes({ sm, md, lg }) {
|
|
8
|
+
return {
|
|
9
|
+
"@media (min-width:600px)": {
|
|
10
|
+
fontSize: pxToRem(sm)
|
|
11
|
+
},
|
|
12
|
+
"@media (min-width:900px)": {
|
|
13
|
+
fontSize: pxToRem(md)
|
|
14
|
+
},
|
|
15
|
+
"@media (min-width:1200px)": {
|
|
16
|
+
fontSize: pxToRem(lg)
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const colorPresets = [
|
|
21
|
+
{
|
|
22
|
+
name: "default",
|
|
23
|
+
...palette.light.primary,
|
|
24
|
+
LightSelected: "#EBF9F1",
|
|
25
|
+
LightSelectedHover: "#D6F2E3",
|
|
26
|
+
DarkSelected: "#142827",
|
|
27
|
+
DarkSelectedHover: "#12342B"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "purple",
|
|
31
|
+
lighter: "#EBD6FD",
|
|
32
|
+
light: "#B985F4",
|
|
33
|
+
main: "#7635dc",
|
|
34
|
+
dark: "#431A9E",
|
|
35
|
+
darker: "#200A69",
|
|
36
|
+
contrastText: "#fff"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "cyan",
|
|
40
|
+
lighter: "#D1FFFC",
|
|
41
|
+
light: "#76F2FF",
|
|
42
|
+
main: "#1CCAFF",
|
|
43
|
+
dark: "#0E77B7",
|
|
44
|
+
darker: "#053D7A",
|
|
45
|
+
contrastText: palette.light.grey[800]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "blue",
|
|
49
|
+
lighter: "#D1E9FC",
|
|
50
|
+
light: "#76B0F1",
|
|
51
|
+
main: "#2065D1",
|
|
52
|
+
dark: "#103996",
|
|
53
|
+
darker: "#061B64",
|
|
54
|
+
contrastText: "#fff"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "orange",
|
|
58
|
+
lighter: "#FEF4D4",
|
|
59
|
+
light: "#FED680",
|
|
60
|
+
main: "#fda92d",
|
|
61
|
+
dark: "#B66816",
|
|
62
|
+
darker: "#793908",
|
|
63
|
+
contrastText: palette.light.grey[800]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "red",
|
|
67
|
+
lighter: "#FFE3D5",
|
|
68
|
+
light: "#FFC1AC",
|
|
69
|
+
main: "#FF3030",
|
|
70
|
+
dark: "#B71833",
|
|
71
|
+
darker: "#7A0930",
|
|
72
|
+
contrastText: "#fff"
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
const defaultPreset = colorPresets[0];
|
|
76
|
+
const purplePreset = colorPresets[1];
|
|
77
|
+
const cyanPreset = colorPresets[2];
|
|
78
|
+
const bluePreset = colorPresets[3];
|
|
79
|
+
const orangePreset = colorPresets[4];
|
|
80
|
+
const redPreset = colorPresets[5];
|
|
81
|
+
function getColorPresets(presetsKey) {
|
|
82
|
+
return {
|
|
83
|
+
purple: purplePreset,
|
|
84
|
+
cyan: cyanPreset,
|
|
85
|
+
blue: bluePreset,
|
|
86
|
+
orange: orangePreset,
|
|
87
|
+
red: redPreset,
|
|
88
|
+
default: defaultPreset
|
|
89
|
+
}[presetsKey];
|
|
90
|
+
}
|
|
91
|
+
export { getColorPresets as g, pxToRem as p, responsiveFontSizes as r };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/graphics",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "M4L Team",
|
|
7
7
|
"scripts": {
|
|
@@ -24,29 +24,24 @@
|
|
|
24
24
|
"react-helmet-async": "^1.3.0",
|
|
25
25
|
"react-hook-form": "^7.31.3",
|
|
26
26
|
"react-intersection-observer": "^9.2.2",
|
|
27
|
-
"react-lazy-load-image-component": "^1.5.4",
|
|
28
27
|
"react-router-dom": "^6.3.0",
|
|
29
28
|
"vite-tsconfig-paths": "^3.5.0"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
|
-
"@m4l/core": "^0.0.
|
|
31
|
+
"@m4l/core": "^0.0.27",
|
|
33
32
|
"react": ">=18",
|
|
34
33
|
"react-dom": "^18.0.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@emotion/styled": "^11.9.3",
|
|
38
37
|
"@hookform/resolvers": "^2.9.3",
|
|
39
|
-
"@m4l/core": "^0.0.
|
|
38
|
+
"@m4l/core": "^0.0.27",
|
|
40
39
|
"@mui/icons-material": "^5.8.4",
|
|
41
40
|
"@mui/lab": "^5.0.0-alpha.87",
|
|
42
|
-
"@types/lodash": "^4.14.182",
|
|
43
41
|
"@types/node": "^17.0.40",
|
|
44
42
|
"@types/nprogress": "^0.2.0",
|
|
45
43
|
"@types/react": "^18.0.0",
|
|
46
44
|
"@types/react-dom": "^18.0.0",
|
|
47
|
-
"@types/react-lazy-load-image-component": "^1.5.2",
|
|
48
|
-
"@types/react-resizable": "^3.0.1",
|
|
49
|
-
"@types/react-splitter-layout": "^3.0.2",
|
|
50
45
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
51
46
|
"@typescript-eslint/parser": "^5.27.1",
|
|
52
47
|
"@vitejs/plugin-react": "^1.3.0",
|
|
@@ -63,7 +58,6 @@
|
|
|
63
58
|
"prettier": "^2.6.2",
|
|
64
59
|
"react": "^18.2.0",
|
|
65
60
|
"react-dom": "^18.2.0",
|
|
66
|
-
"react-json-view": "^1.21.3",
|
|
67
61
|
"react-toastify": "^9.0.5",
|
|
68
62
|
"rollup-plugin-terser": "^7.0.2",
|
|
69
63
|
"typescript": "^4.6.3",
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
2
|
-
import { Skeleton, Typography as Typography$1 } from "@mui/material";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { styled } from "@mui/material/styles";
|
|
5
|
-
const WrapperSKTLoadingButton = styled("div")(({
|
|
6
|
-
theme
|
|
7
|
-
}) => ({
|
|
8
|
-
display: "flex",
|
|
9
|
-
width: "100%",
|
|
10
|
-
borderRadius: theme.spacing(1),
|
|
11
|
-
overflow: "hidden"
|
|
12
|
-
}));
|
|
13
|
-
const SKTLoadingButton = () => /* @__PURE__ */ jsx(WrapperSKTLoadingButton, {
|
|
14
|
-
id: "WrapperSKTLoadingButton",
|
|
15
|
-
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
16
|
-
variant: "rectangular",
|
|
17
|
-
width: "100%",
|
|
18
|
-
height: "48px"
|
|
19
|
-
})
|
|
20
|
-
});
|
|
21
|
-
const LoadingButton = (props) => {
|
|
22
|
-
const {
|
|
23
|
-
isSkeleton,
|
|
24
|
-
children,
|
|
25
|
-
...other
|
|
26
|
-
} = props;
|
|
27
|
-
if (isSkeleton) {
|
|
28
|
-
return /* @__PURE__ */ jsx(SKTLoadingButton, {});
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ jsx(LoadingButton$1, {
|
|
31
|
-
...other,
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
function Typography(props) {
|
|
36
|
-
const {
|
|
37
|
-
skeletonProps = {},
|
|
38
|
-
...other
|
|
39
|
-
} = props;
|
|
40
|
-
const {
|
|
41
|
-
isSkeleton = "false",
|
|
42
|
-
width = "100%",
|
|
43
|
-
height = "14px"
|
|
44
|
-
} = skeletonProps;
|
|
45
|
-
return isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
|
|
46
|
-
variant: "text",
|
|
47
|
-
width,
|
|
48
|
-
height
|
|
49
|
-
}) : /* @__PURE__ */ jsx(Typography$1, {
|
|
50
|
-
...other
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
export { LoadingButton as L, Typography as T };
|
package/dist/layouts/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { M as ModuleWrapper } from "../components/index.js";
|
|
2
|
-
import { M as ModuleProvider } from "../contexts/index.js";
|
|
3
|
-
import { FlagsProvider, ModuleDictionaryProvider } from "@m4l/core";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import "@mui/material";
|
|
6
|
-
import "@mui/material/styles";
|
|
7
|
-
import "@mui/material/useMediaQuery";
|
|
8
|
-
import "react";
|
|
9
|
-
import "react-hook-form";
|
|
10
|
-
import "react-lazy-load-image-component";
|
|
11
|
-
import "react-lazy-load-image-component/src/effects/blur.css";
|
|
12
|
-
import "@mui/lab";
|
|
13
|
-
import "../components/mui_extended/index.js";
|
|
14
|
-
import "nprogress";
|
|
15
|
-
import "react-router-dom";
|
|
16
|
-
import "framer-motion";
|
|
17
|
-
const NoAuthModuleLayout = (props) => {
|
|
18
|
-
const {
|
|
19
|
-
moduleId,
|
|
20
|
-
moduleName,
|
|
21
|
-
children,
|
|
22
|
-
componentsDictionary
|
|
23
|
-
} = props;
|
|
24
|
-
return /* @__PURE__ */ jsx(FlagsProvider, {
|
|
25
|
-
children: /* @__PURE__ */ jsx(ModuleDictionaryProvider, {
|
|
26
|
-
isAuth: false,
|
|
27
|
-
moduleId,
|
|
28
|
-
moduleName,
|
|
29
|
-
componentsDictionary,
|
|
30
|
-
children: /* @__PURE__ */ jsx(ModuleProvider, {
|
|
31
|
-
moduleId,
|
|
32
|
-
children: /* @__PURE__ */ jsx(ModuleWrapper, {
|
|
33
|
-
children
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
export { NoAuthModuleLayout as N };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const RootStyle: 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 HeaderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
4
|
-
export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export declare const SKTCompanyLogoMask: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { styleProps } from './types';
|
|
3
|
-
import { WrapperLazyLoadImageProps } from './types';
|
|
4
|
-
export declare const SKTWrapperImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & styleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export declare const WrapperLazyLoadImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperLazyLoadImageProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LazyLoadImageProps } from 'react-lazy-load-image-component';
|
|
2
|
-
import { BoxProps, SxProps } from '@mui/material';
|
|
3
|
-
import { Theme } from '@mui/material/styles';
|
|
4
|
-
export declare type ImageRato = '4/3' | '3/4' | '6/4' | '4/6' | '16/9' | '9/16' | '21/9' | '9/21' | '1/1';
|
|
5
|
-
export declare type IProps = BoxProps & LazyLoadImageProps;
|
|
6
|
-
export interface Props extends IProps {
|
|
7
|
-
sx?: SxProps<Theme>;
|
|
8
|
-
ratio?: ImageRato;
|
|
9
|
-
isSekeleton?: boolean;
|
|
10
|
-
width?: string;
|
|
11
|
-
height?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface styleProps {
|
|
14
|
-
width?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface WrapperLazyLoadImageProps {
|
|
17
|
-
width?: string | number;
|
|
18
|
-
height?: string | number;
|
|
19
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DialogProps } from '@mui/material';
|
|
3
|
-
export interface Props extends DialogProps {
|
|
4
|
-
variants?: Record<string, unknown>;
|
|
5
|
-
onClose?: VoidFunction;
|
|
6
|
-
}
|
|
7
|
-
export default function DialogAnimate({ open, variants, onClose, children, sx, ...other }: Props): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FabProps, SxProps } from '@mui/material';
|
|
3
|
-
interface Props extends Omit<FabProps, 'color'> {
|
|
4
|
-
sxWrap?: SxProps;
|
|
5
|
-
color?: 'inherit' | 'default' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
|
|
6
|
-
}
|
|
7
|
-
declare const FabButtonAnimate: import("react").ForwardRefExoticComponent<Pick<Props, "value" | "children" | "disabled" | "classes" | "form" | "slot" | "style" | "title" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "sx" | "key" | "variant" | "name" | "type" | "href" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "sxWrap"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
export default FabButtonAnimate;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconButtonProps } from '@mui/material';
|
|
3
|
-
declare const IconButtonAnimate: import("react").ForwardRefExoticComponent<Pick<IconButtonProps<"button", {}>, "value" | "children" | "disabled" | "form" | "slot" | "title" | keyof import("@mui/material/OverridableComponent").CommonProps | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "sx" | "key" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
export default IconButtonAnimate;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MotionProps } from 'framer-motion';
|
|
3
|
-
import { BoxProps } from '@mui/material';
|
|
4
|
-
declare type IProps = BoxProps & MotionProps;
|
|
5
|
-
export interface Props extends IProps {
|
|
6
|
-
animate?: boolean;
|
|
7
|
-
action?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export default function MotionContainer({ animate, action, children, ...other }: Props): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MotionProps } from 'framer-motion';
|
|
3
|
-
import { BoxProps } from '@mui/material';
|
|
4
|
-
declare type Props = BoxProps & MotionProps;
|
|
5
|
-
interface MotionInViewProps extends Props {
|
|
6
|
-
threshold?: number | number[];
|
|
7
|
-
}
|
|
8
|
-
export default function MotionInView({ children, variants, transition, threshold, ...other }: MotionInViewProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MotionProps } from 'framer-motion';
|
|
3
|
-
import { BoxProps } from '@mui/material';
|
|
4
|
-
declare type Props = BoxProps & MotionProps;
|
|
5
|
-
interface TextAnimateProps extends Props {
|
|
6
|
-
text: string;
|
|
7
|
-
}
|
|
8
|
-
export default function TextAnimate({ text, variants, sx, ...other }: TextAnimateProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './variants';
|
|
2
|
-
export { default as DialogAnimate } from './DialogAnimate';
|
|
3
|
-
export { default as TextAnimate } from './TextAnimate';
|
|
4
|
-
export { default as FabButtonAnimate } from './FabButtonAnimate';
|
|
5
|
-
export { default as IconButtonAnimate } from './IconButtonAnimate';
|
|
6
|
-
export { default as MotionInView } from './MotionInView';
|
|
7
|
-
export { default as MotionContainer } from './MotionContainer';
|
|
8
|
-
export { default as MotionLazyContainer } from './MotionLazyContainer';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare type EaseType = 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate' | number[];
|
|
2
|
-
export declare type VariantsType = {
|
|
3
|
-
distance?: number;
|
|
4
|
-
durationIn?: number;
|
|
5
|
-
durationOut?: number;
|
|
6
|
-
easeIn?: EaseType;
|
|
7
|
-
easeOut?: EaseType;
|
|
8
|
-
};
|
|
9
|
-
export declare type TranHoverType = {
|
|
10
|
-
duration?: number;
|
|
11
|
-
ease?: EaseType;
|
|
12
|
-
};
|
|
13
|
-
export declare type TranEnterType = {
|
|
14
|
-
durationIn?: number;
|
|
15
|
-
easeIn?: EaseType;
|
|
16
|
-
};
|
|
17
|
-
export declare type TranExitType = {
|
|
18
|
-
durationOut?: number;
|
|
19
|
-
easeOut?: EaseType;
|
|
20
|
-
};
|
|
21
|
-
export declare type BackgroundType = {
|
|
22
|
-
colors?: string[];
|
|
23
|
-
duration?: number;
|
|
24
|
-
ease?: EaseType;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { BackgroundType } from '../type';
|
|
2
|
-
export declare const varBgColor: (props?: BackgroundType | undefined) => {
|
|
3
|
-
animate: {
|
|
4
|
-
background: string[];
|
|
5
|
-
transition: {
|
|
6
|
-
duration: number;
|
|
7
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const varBgKenburns: (props?: BackgroundType | undefined) => {
|
|
12
|
-
top: {
|
|
13
|
-
animate: {
|
|
14
|
-
scale: number[];
|
|
15
|
-
y: number[];
|
|
16
|
-
transformOrigin: string[];
|
|
17
|
-
transition: {
|
|
18
|
-
duration: number;
|
|
19
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
right: {
|
|
24
|
-
animate: {
|
|
25
|
-
scale: number[];
|
|
26
|
-
x: number[];
|
|
27
|
-
y: number[];
|
|
28
|
-
transformOrigin: string[];
|
|
29
|
-
transition: {
|
|
30
|
-
duration: number;
|
|
31
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
bottom: {
|
|
36
|
-
animate: {
|
|
37
|
-
scale: number[];
|
|
38
|
-
y: number[];
|
|
39
|
-
transformOrigin: string[];
|
|
40
|
-
transition: {
|
|
41
|
-
duration: number;
|
|
42
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
left: {
|
|
47
|
-
animate: {
|
|
48
|
-
scale: number[];
|
|
49
|
-
x: number[];
|
|
50
|
-
y: number[];
|
|
51
|
-
transformOrigin: string[];
|
|
52
|
-
transition: {
|
|
53
|
-
duration: number;
|
|
54
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export declare const varBgPan: (props?: BackgroundType | undefined) => {
|
|
60
|
-
top: {
|
|
61
|
-
animate: {
|
|
62
|
-
backgroundImage: string[];
|
|
63
|
-
backgroundPosition: string[];
|
|
64
|
-
backgroundSize: string[];
|
|
65
|
-
transition: {
|
|
66
|
-
duration: number;
|
|
67
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
right: {
|
|
72
|
-
animate: {
|
|
73
|
-
backgroundPosition: string[];
|
|
74
|
-
backgroundImage: string[];
|
|
75
|
-
backgroundSize: string[];
|
|
76
|
-
transition: {
|
|
77
|
-
duration: number;
|
|
78
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
bottom: {
|
|
83
|
-
animate: {
|
|
84
|
-
backgroundImage: string[];
|
|
85
|
-
backgroundPosition: string[];
|
|
86
|
-
backgroundSize: string[];
|
|
87
|
-
transition: {
|
|
88
|
-
duration: number;
|
|
89
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
left: {
|
|
94
|
-
animate: {
|
|
95
|
-
backgroundPosition: string[];
|
|
96
|
-
backgroundImage: string[];
|
|
97
|
-
backgroundSize: string[];
|
|
98
|
-
transition: {
|
|
99
|
-
duration: number;
|
|
100
|
-
ease: number[] | "easeIn" | "linear" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|