@m4l/components 0.1.27 → 0.1.28
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/assets/Logo/index.228dcb5a.js +42 -35
- package/commonjs.565e6834.js +5 -5
- package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
- package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
- package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
- package/components/DataGrid/index.76d8fd25.js +1075 -0
- package/components/DynamicFilter/index.342ba5fe.js +1577 -0
- package/components/ErrorLabel/index.c8615f16.js +13 -12
- package/components/Icon/index.619c31c4.js +65 -53
- package/components/Image/index.93d5f37f.js +190 -0
- package/components/Loadable/index.f5518558.js +8 -8
- package/components/ModalDialog/index.9ea10764.js +184 -0
- package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
- package/components/ObjectLogs/index.f941fb79.js +288 -0
- package/components/Page/index.4237c241.js +22 -20
- package/components/PaperForm/index.ec9cb8c9.js +66 -59
- package/components/Period/index.2941fbda.js +249 -0
- package/components/PropertyValue/index.dfcfe1ba.js +95 -65
- package/components/Resizeable/index.45995d2b.js +19 -19
- package/components/ScrollBar/index.39eeb2de.js +26 -21
- package/components/ScrollToTop/index.e06f98f6.js +8 -7
- package/components/SplitLayout/index.4032673d.js +35 -33
- package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
- package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
- package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
- package/components/animate/features.0fbf41e1.js +3 -3
- package/components/animate/variants/bounce.784aaaaa.js +16 -13
- package/components/animate/variants/container.11f82b76.js +8 -6
- package/components/animate/variants/fade.b561c0fc.js +32 -28
- package/components/animate/variants/transition.bd46b9ce.js +17 -12
- package/components/formatters/BooleanFormatter/index.8da35c9c.js +46 -33
- package/components/formatters/DateFormatter/index.1b9baacc.js +49 -37
- package/components/formatters/index.689a8086.js +119 -0
- package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
- package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
- package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
- package/components/hook-form/RHFTextField/index.f9aaaa90.js +110 -93
- package/components/hook-form/RHFUpload/{index.ec4d5326.js → index.d5cc7c13.js} +151 -130
- package/components/mui_extended/Accordion/index.a02ac6ae.js +73 -69
- package/components/mui_extended/Avatar/index.fe06afd7.js +44 -34
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
- package/components/mui_extended/Button/index.53b56958.js +178 -0
- package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
- package/components/mui_extended/IconButton/index.a321e5cb.js +82 -67
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
- package/components/mui_extended/Pager/index.c0865b70.js +141 -0
- package/components/mui_extended/Popover/index.705275a4.js +278 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
- package/components/mui_extended/Typography/index.e5494696.js +25 -21
- package/contexts/ModalContext/index.b92fa565.js +153 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
- package/contexts/RHFormContext/index.b142190a.js +63 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
- package/hooks/useModal/index.5fee01a3.js +11 -0
- package/index.js +153 -153
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +2206 -1663
- package/react-draggable.20e95c61.js +800 -553
- package/react-json-view.f56a7f8e.js +2344 -2340
- package/react-resizable.5277deaf.js +470 -298
- package/react-splitter-layout.7810ac1b.js +130 -128
- package/utils/index.214d9542.js +500 -354
- package/components/CommonActions/components/ActionCancel/index.431160ba.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.6a0f34aa.js +0 -49
- package/components/CommonActions/components/ActionIntro/index.85557b90.js +0 -18
- package/components/CommonActions/components/Actions/index.edeb05c2.js +0 -742
- package/components/DataGrid/index.2ce9da7d.js +0 -894
- package/components/DynamicFilter/index.e1d4a948.js +0 -1157
- package/components/Image/index.c9da2d5a.js +0 -152
- package/components/ModalDialog/index.ad61757f.js +0 -168
- package/components/ObjectLogs/index.6ebaec71.js +0 -266
- package/components/Period/index.81de7941.js +0 -175
- package/components/contexts/RHFormContext/index.33dba822.js +0 -56
- package/components/formatters/index.c2a9b55d.js +0 -106
- package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
- package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
- package/components/hook-form/RHFPeriod/index.e08fb1ab.js +0 -51
- package/components/mui_extended/Button/index.51dae0bb.js +0 -144
- package/components/mui_extended/Pager/index.1dc45f5e.js +0 -126
- package/components/mui_extended/Popover/index.cb2ccc66.js +0 -252
- package/contexts/ModalContext/index.9ebc793c.js +0 -136
- package/hooks/useModal/index.34f5978e.js +0 -11
- package/node_modules.168cb897.js +0 -55
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { styled
|
|
3
|
-
import { jsx
|
|
4
|
-
const
|
|
5
|
-
theme
|
|
1
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.7810ac1b.js";
|
|
2
|
+
import { styled } from "@mui/material/styles";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
const WrapperSplit = styled("div")(({
|
|
5
|
+
theme
|
|
6
6
|
}) => ({
|
|
7
7
|
display: "flex",
|
|
8
8
|
flexDirection: "column",
|
|
@@ -31,7 +31,7 @@ const u = r("div")(({
|
|
|
31
31
|
"& .splitter-layout > .layout-splitter": {
|
|
32
32
|
display: "flex",
|
|
33
33
|
alignItems: "center",
|
|
34
|
-
backgroundColor:
|
|
34
|
+
backgroundColor: theme.palette.divider,
|
|
35
35
|
boxSizing: "border-box",
|
|
36
36
|
backgroundClip: "padding-box",
|
|
37
37
|
width: "11px",
|
|
@@ -43,17 +43,17 @@ const u = r("div")(({
|
|
|
43
43
|
height: "100%"
|
|
44
44
|
},
|
|
45
45
|
"& .splitter-layout .layout-splitter:before": {
|
|
46
|
-
content:
|
|
46
|
+
content: `""`,
|
|
47
47
|
height: "45px",
|
|
48
48
|
width: "4px",
|
|
49
49
|
top: "calc(50% - 22.5px)",
|
|
50
50
|
position: "absolute",
|
|
51
|
-
background:
|
|
51
|
+
background: theme.palette.grey[500],
|
|
52
52
|
borderRadius: "6px"
|
|
53
53
|
},
|
|
54
54
|
"& .splitter-layout > .layout-splitter:hover": {
|
|
55
|
-
borderLeft: `5px solid ${
|
|
56
|
-
borderRight: `5px solid ${
|
|
55
|
+
borderLeft: `5px solid ${theme.palette.grey[5008]}`,
|
|
56
|
+
borderRight: `5px solid ${theme.palette.grey[5008]}`
|
|
57
57
|
},
|
|
58
58
|
"& .splitter-layout.splitter-layout-vertical.layout-changing": {
|
|
59
59
|
cursor: "row-resize"
|
|
@@ -73,23 +73,25 @@ const u = r("div")(({
|
|
|
73
73
|
top: "unset"
|
|
74
74
|
},
|
|
75
75
|
"& .splitter-layout > .layout-splitter:hover:before, .splitter-layout.layout-changing > .layout-splitter:before": {
|
|
76
|
-
background:
|
|
76
|
+
background: theme.palette.primary.main
|
|
77
77
|
},
|
|
78
78
|
"& .splitter-layout.splitter-layout-vertical": {
|
|
79
79
|
flexDirection: "column"
|
|
80
80
|
},
|
|
81
81
|
"& .splitter-layout.splitter-layout-vertical > .layout-splitter:hover": {
|
|
82
|
-
borderTop: `5px solid ${
|
|
83
|
-
borderBottom: `5px solid ${
|
|
82
|
+
borderTop: `5px solid ${theme.palette.grey[5008]}`,
|
|
83
|
+
borderBottom: `5px solid ${theme.palette.grey[5008]}`
|
|
84
84
|
}
|
|
85
|
-
}))
|
|
85
|
+
}));
|
|
86
|
+
const SplitMaster = styled("div")(() => ({
|
|
86
87
|
display: "flex",
|
|
87
88
|
flexDirection: "column",
|
|
88
89
|
position: "relative",
|
|
89
90
|
width: "100%",
|
|
90
91
|
height: "100%",
|
|
91
92
|
overflow: "hidden"
|
|
92
|
-
}))
|
|
93
|
+
}));
|
|
94
|
+
const SplitDetail = styled("div")(() => ({
|
|
93
95
|
display: "flex",
|
|
94
96
|
flexDirection: "column",
|
|
95
97
|
justifyContent: "center",
|
|
@@ -101,31 +103,31 @@ const u = r("div")(({
|
|
|
101
103
|
top: "0px",
|
|
102
104
|
bottom: "0px"
|
|
103
105
|
}));
|
|
104
|
-
function
|
|
106
|
+
function SplitLayout(props) {
|
|
105
107
|
const {
|
|
106
|
-
splitPosition
|
|
107
|
-
firstPart
|
|
108
|
-
secondPart
|
|
109
|
-
secondParrtInitialSize
|
|
110
|
-
percentage
|
|
111
|
-
} =
|
|
112
|
-
return /* @__PURE__ */
|
|
108
|
+
splitPosition,
|
|
109
|
+
firstPart,
|
|
110
|
+
secondPart,
|
|
111
|
+
secondParrtInitialSize = 50,
|
|
112
|
+
percentage = true
|
|
113
|
+
} = props;
|
|
114
|
+
return /* @__PURE__ */ jsx(WrapperSplit, {
|
|
113
115
|
id: "WrapperSplit",
|
|
114
|
-
className: `split_${
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
vertical:
|
|
117
|
-
percentage
|
|
118
|
-
secondaryInitialSize:
|
|
119
|
-
children: [/* @__PURE__ */
|
|
116
|
+
className: `split_${splitPosition}`,
|
|
117
|
+
children: /* @__PURE__ */ jsxs(SplitterLayout, {
|
|
118
|
+
vertical: splitPosition === "vertical",
|
|
119
|
+
percentage,
|
|
120
|
+
secondaryInitialSize: secondParrtInitialSize,
|
|
121
|
+
children: [/* @__PURE__ */ jsx(SplitMaster, {
|
|
120
122
|
id: "splitMaster",
|
|
121
|
-
children: typeof
|
|
122
|
-
}),
|
|
123
|
+
children: typeof firstPart === "function" ? firstPart() : firstPart
|
|
124
|
+
}), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
|
|
123
125
|
id: "detail2",
|
|
124
|
-
children: typeof
|
|
126
|
+
children: typeof secondPart === "function" ? secondPart() : secondPart
|
|
125
127
|
})]
|
|
126
128
|
})
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
131
|
export {
|
|
130
|
-
|
|
132
|
+
SplitLayout as S
|
|
131
133
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m
|
|
2
|
-
import { alpha
|
|
3
|
-
import { styled
|
|
4
|
-
import { L as
|
|
5
|
-
import { jsx
|
|
6
|
-
const
|
|
7
|
-
shouldForwardProp: (
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { alpha } from "@mui/material/styles";
|
|
3
|
+
import { styled, Box } from "@mui/material";
|
|
4
|
+
import { L as Logo } from "../../../assets/Logo/index.228dcb5a.js";
|
|
5
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
6
|
+
const RootStyle = styled("div", {
|
|
7
|
+
shouldForwardProp: (props) => props !== "variant"
|
|
8
8
|
})(({
|
|
9
|
-
theme
|
|
10
|
-
variant
|
|
9
|
+
theme,
|
|
10
|
+
variant
|
|
11
11
|
}) => ({
|
|
12
12
|
right: 0,
|
|
13
13
|
bottom: 0,
|
|
@@ -18,23 +18,23 @@ const u = l("div", {
|
|
|
18
18
|
display: "flex",
|
|
19
19
|
alignItems: "center",
|
|
20
20
|
justifyContent: "center",
|
|
21
|
-
backgroundColor:
|
|
22
|
-
...
|
|
21
|
+
backgroundColor: theme.palette.background.default,
|
|
22
|
+
...variant === "microfrontend" && {
|
|
23
23
|
position: "relative",
|
|
24
24
|
zIndex: 0
|
|
25
25
|
}
|
|
26
26
|
}));
|
|
27
|
-
function
|
|
27
|
+
function LoadingScreen(props) {
|
|
28
28
|
const {
|
|
29
|
-
isDashboard
|
|
30
|
-
variant
|
|
31
|
-
...
|
|
32
|
-
} =
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
children: !
|
|
35
|
-
variant
|
|
36
|
-
...
|
|
37
|
-
children: [/* @__PURE__ */
|
|
29
|
+
isDashboard,
|
|
30
|
+
variant = "fullpage",
|
|
31
|
+
...other
|
|
32
|
+
} = props;
|
|
33
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
34
|
+
children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, {
|
|
35
|
+
variant,
|
|
36
|
+
...other,
|
|
37
|
+
children: [/* @__PURE__ */ jsx(m.div, {
|
|
38
38
|
initial: {
|
|
39
39
|
rotateY: 0
|
|
40
40
|
},
|
|
@@ -45,17 +45,17 @@ function y(t) {
|
|
|
45
45
|
duration: 2,
|
|
46
46
|
ease: "easeInOut",
|
|
47
47
|
repeatDelay: 1,
|
|
48
|
-
repeat:
|
|
48
|
+
repeat: Infinity
|
|
49
49
|
},
|
|
50
|
-
children: /* @__PURE__ */
|
|
51
|
-
disabledLink:
|
|
50
|
+
children: /* @__PURE__ */ jsx(Logo, {
|
|
51
|
+
disabledLink: true,
|
|
52
52
|
sx: {
|
|
53
53
|
width: 32,
|
|
54
54
|
height: 32
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
|
-
}), /* @__PURE__ */
|
|
58
|
-
component:
|
|
57
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
58
|
+
component: m.div,
|
|
59
59
|
animate: {
|
|
60
60
|
scale: [1.2, 1, 1, 1.2, 1.2],
|
|
61
61
|
rotate: [270, 0, 0, 270, 270],
|
|
@@ -65,17 +65,17 @@ function y(t) {
|
|
|
65
65
|
transition: {
|
|
66
66
|
ease: "linear",
|
|
67
67
|
duration: 3.2,
|
|
68
|
-
repeat:
|
|
68
|
+
repeat: Infinity
|
|
69
69
|
},
|
|
70
70
|
sx: {
|
|
71
71
|
width: 50,
|
|
72
72
|
height: 50,
|
|
73
73
|
borderRadius: "25%",
|
|
74
74
|
position: "absolute",
|
|
75
|
-
border: (
|
|
75
|
+
border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
|
|
76
76
|
}
|
|
77
|
-
}), /* @__PURE__ */
|
|
78
|
-
component:
|
|
77
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
78
|
+
component: m.div,
|
|
79
79
|
animate: {
|
|
80
80
|
scale: [1, 1.2, 1.2, 1, 1],
|
|
81
81
|
rotate: [0, 270, 270, 0, 0],
|
|
@@ -85,19 +85,19 @@ function y(t) {
|
|
|
85
85
|
transition: {
|
|
86
86
|
ease: "linear",
|
|
87
87
|
duration: 3.2,
|
|
88
|
-
repeat:
|
|
88
|
+
repeat: Infinity
|
|
89
89
|
},
|
|
90
90
|
sx: {
|
|
91
91
|
width: 60,
|
|
92
92
|
height: 60,
|
|
93
93
|
borderRadius: "25%",
|
|
94
94
|
position: "absolute",
|
|
95
|
-
border: (
|
|
95
|
+
border: (theme) => `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`
|
|
96
96
|
}
|
|
97
97
|
})]
|
|
98
98
|
})
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
102
|
-
|
|
102
|
+
LoadingScreen as L
|
|
103
103
|
};
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { m
|
|
2
|
-
import { Box
|
|
3
|
-
import { v as
|
|
4
|
-
import { jsx
|
|
5
|
-
function
|
|
6
|
-
animate
|
|
7
|
-
action
|
|
8
|
-
children
|
|
9
|
-
...
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { Box } from "@mui/material";
|
|
3
|
+
import { v as varContainer } from "../variants/container.11f82b76.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function MotionContainer({
|
|
6
|
+
animate,
|
|
7
|
+
action = false,
|
|
8
|
+
children,
|
|
9
|
+
...other
|
|
10
10
|
}) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
if (action) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
13
|
+
component: m.div,
|
|
14
|
+
initial: false,
|
|
15
|
+
animate: animate ? "animate" : "exit",
|
|
16
|
+
variants: varContainer(),
|
|
17
|
+
...other,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
22
|
+
component: m.div,
|
|
20
23
|
initial: "initial",
|
|
21
24
|
animate: "animate",
|
|
22
25
|
exit: "exit",
|
|
23
|
-
variants:
|
|
24
|
-
...
|
|
25
|
-
children
|
|
26
|
+
variants: varContainer(),
|
|
27
|
+
...other,
|
|
28
|
+
children
|
|
26
29
|
});
|
|
27
30
|
}
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
MotionContainer as M
|
|
30
33
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { LazyMotion
|
|
2
|
-
import { jsx
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
children
|
|
1
|
+
import { LazyMotion } from "framer-motion";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
const loadFeatures = () => import("../features.0fbf41e1.js").then((res) => res.default);
|
|
4
|
+
function MotionLazyContainer({
|
|
5
|
+
children
|
|
6
6
|
}) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
strict:
|
|
9
|
-
features:
|
|
10
|
-
children
|
|
7
|
+
return /* @__PURE__ */ jsx(LazyMotion, {
|
|
8
|
+
strict: true,
|
|
9
|
+
features: loadFeatures,
|
|
10
|
+
children
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
MotionLazyContainer as M
|
|
15
15
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { v as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { v as varTranEnter, a as varTranExit } from "./transition.bd46b9ce.js";
|
|
2
|
+
const varBounce = (props) => {
|
|
3
|
+
const durationIn = props?.durationIn;
|
|
4
|
+
const durationOut = props?.durationOut;
|
|
5
|
+
const easeIn = props?.easeIn;
|
|
6
|
+
const easeOut = props?.easeOut;
|
|
4
7
|
return {
|
|
5
8
|
in: {
|
|
6
9
|
initial: {},
|
|
7
10
|
animate: {
|
|
8
11
|
scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
|
|
9
12
|
opacity: [0, 1, 1, 1, 1, 1],
|
|
10
|
-
transition:
|
|
13
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
11
14
|
},
|
|
12
15
|
exit: {
|
|
13
16
|
scale: [0.9, 1.1, 0.3],
|
|
@@ -20,13 +23,13 @@ const r = (n) => {
|
|
|
20
23
|
y: [720, -24, 12, -4, 0],
|
|
21
24
|
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
22
25
|
opacity: [0, 1, 1, 1, 1],
|
|
23
|
-
transition: { ...
|
|
26
|
+
transition: { ...varTranEnter({ durationIn, easeIn }) }
|
|
24
27
|
},
|
|
25
28
|
exit: {
|
|
26
29
|
y: [12, -24, 720],
|
|
27
30
|
scaleY: [0.985, 0.9, 3],
|
|
28
31
|
opacity: [1, 1, 0],
|
|
29
|
-
transition:
|
|
32
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
30
33
|
}
|
|
31
34
|
},
|
|
32
35
|
inDown: {
|
|
@@ -35,13 +38,13 @@ const r = (n) => {
|
|
|
35
38
|
y: [-720, 24, -12, 4, 0],
|
|
36
39
|
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
37
40
|
opacity: [0, 1, 1, 1, 1],
|
|
38
|
-
transition:
|
|
41
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
39
42
|
},
|
|
40
43
|
exit: {
|
|
41
44
|
y: [-12, 24, -720],
|
|
42
45
|
scaleY: [0.985, 0.9, 3],
|
|
43
46
|
opacity: [1, 1, 0],
|
|
44
|
-
transition:
|
|
47
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
inLeft: {
|
|
@@ -50,13 +53,13 @@ const r = (n) => {
|
|
|
50
53
|
x: [-720, 24, -12, 4, 0],
|
|
51
54
|
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
52
55
|
opacity: [0, 1, 1, 1, 1],
|
|
53
|
-
transition:
|
|
56
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
54
57
|
},
|
|
55
58
|
exit: {
|
|
56
59
|
x: [0, 24, -720],
|
|
57
60
|
scaleX: [1, 0.9, 2],
|
|
58
61
|
opacity: [1, 1, 0],
|
|
59
|
-
transition:
|
|
62
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
60
63
|
}
|
|
61
64
|
},
|
|
62
65
|
inRight: {
|
|
@@ -65,13 +68,13 @@ const r = (n) => {
|
|
|
65
68
|
x: [720, -24, 12, -4, 0],
|
|
66
69
|
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
67
70
|
opacity: [0, 1, 1, 1, 1],
|
|
68
|
-
transition:
|
|
71
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
69
72
|
},
|
|
70
73
|
exit: {
|
|
71
74
|
x: [0, -24, 720],
|
|
72
75
|
scaleX: [1, 0.9, 2],
|
|
73
76
|
opacity: [1, 1, 0],
|
|
74
|
-
transition:
|
|
77
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
75
78
|
}
|
|
76
79
|
},
|
|
77
80
|
out: {
|
|
@@ -92,5 +95,5 @@ const r = (n) => {
|
|
|
92
95
|
};
|
|
93
96
|
};
|
|
94
97
|
export {
|
|
95
|
-
|
|
98
|
+
varBounce as v
|
|
96
99
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const varContainer = (props) => {
|
|
2
|
+
const staggerIn = props?.staggerIn || 0.05;
|
|
3
|
+
const delayIn = props?.staggerIn || 0.05;
|
|
4
|
+
const staggerOut = props?.staggerIn || 0.05;
|
|
3
5
|
return {
|
|
4
6
|
animate: {
|
|
5
7
|
transition: {
|
|
6
|
-
staggerChildren:
|
|
7
|
-
delayChildren:
|
|
8
|
+
staggerChildren: staggerIn,
|
|
9
|
+
delayChildren: delayIn
|
|
8
10
|
}
|
|
9
11
|
},
|
|
10
12
|
exit: {
|
|
11
13
|
transition: {
|
|
12
|
-
staggerChildren:
|
|
14
|
+
staggerChildren: staggerOut,
|
|
13
15
|
staggerDirection: -1
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
varContainer as v
|
|
20
22
|
};
|
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
import { v as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { v as varTranEnter, a as varTranExit } from "./transition.bd46b9ce.js";
|
|
2
|
+
const varFade = (props) => {
|
|
3
|
+
const distance = props?.distance || 120;
|
|
4
|
+
const durationIn = props?.durationIn;
|
|
5
|
+
const durationOut = props?.durationOut;
|
|
6
|
+
const easeIn = props?.easeIn;
|
|
7
|
+
const easeOut = props?.easeOut;
|
|
4
8
|
return {
|
|
5
9
|
in: {
|
|
6
10
|
initial: { opacity: 0 },
|
|
7
|
-
animate: { opacity: 1, transition:
|
|
8
|
-
exit: { opacity: 0, transition:
|
|
11
|
+
animate: { opacity: 1, transition: varTranEnter },
|
|
12
|
+
exit: { opacity: 0, transition: varTranExit }
|
|
9
13
|
},
|
|
10
14
|
inUp: {
|
|
11
|
-
initial: { y:
|
|
12
|
-
animate: { y: 0, opacity: 1, transition:
|
|
13
|
-
exit: { y:
|
|
15
|
+
initial: { y: distance, opacity: 0 },
|
|
16
|
+
animate: { y: 0, opacity: 1, transition: varTranEnter({ durationIn, easeIn }) },
|
|
17
|
+
exit: { y: distance, opacity: 0, transition: varTranExit({ durationOut, easeOut }) }
|
|
14
18
|
},
|
|
15
19
|
inDown: {
|
|
16
|
-
initial: { y: -
|
|
17
|
-
animate: { y: 0, opacity: 1, transition:
|
|
18
|
-
exit: { y: -
|
|
20
|
+
initial: { y: -distance, opacity: 0 },
|
|
21
|
+
animate: { y: 0, opacity: 1, transition: varTranEnter({ durationIn, easeIn }) },
|
|
22
|
+
exit: { y: -distance, opacity: 0, transition: varTranExit({ durationOut, easeOut }) }
|
|
19
23
|
},
|
|
20
24
|
inLeft: {
|
|
21
|
-
initial: { x: -
|
|
22
|
-
animate: { x: 0, opacity: 1, transition:
|
|
23
|
-
exit: { x: -
|
|
25
|
+
initial: { x: -distance, opacity: 0 },
|
|
26
|
+
animate: { x: 0, opacity: 1, transition: varTranEnter({ durationIn, easeIn }) },
|
|
27
|
+
exit: { x: -distance, opacity: 0, transition: varTranExit({ durationOut, easeOut }) }
|
|
24
28
|
},
|
|
25
29
|
inRight: {
|
|
26
|
-
initial: { x:
|
|
27
|
-
animate: { x: 0, opacity: 1, transition:
|
|
28
|
-
exit: { x:
|
|
30
|
+
initial: { x: distance, opacity: 0 },
|
|
31
|
+
animate: { x: 0, opacity: 1, transition: varTranEnter({ durationIn, easeIn }) },
|
|
32
|
+
exit: { x: distance, opacity: 0, transition: varTranExit({ durationOut, easeOut }) }
|
|
29
33
|
},
|
|
30
34
|
out: {
|
|
31
35
|
initial: { opacity: 1 },
|
|
32
|
-
animate: { opacity: 0, transition:
|
|
33
|
-
exit: { opacity: 1, transition:
|
|
36
|
+
animate: { opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
37
|
+
exit: { opacity: 1, transition: varTranExit({ durationOut, easeOut }) }
|
|
34
38
|
},
|
|
35
39
|
outUp: {
|
|
36
40
|
initial: { y: 0, opacity: 1 },
|
|
37
|
-
animate: { y: -
|
|
38
|
-
exit: { y: 0, opacity: 1, transition:
|
|
41
|
+
animate: { y: -distance, opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
42
|
+
exit: { y: 0, opacity: 1, transition: varTranExit({ durationOut, easeOut }) }
|
|
39
43
|
},
|
|
40
44
|
outDown: {
|
|
41
45
|
initial: { y: 0, opacity: 1 },
|
|
42
|
-
animate: { y:
|
|
43
|
-
exit: { y: 0, opacity: 1, transition:
|
|
46
|
+
animate: { y: distance, opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
47
|
+
exit: { y: 0, opacity: 1, transition: varTranExit({ durationOut, easeOut }) }
|
|
44
48
|
},
|
|
45
49
|
outLeft: {
|
|
46
50
|
initial: { x: 0, opacity: 1 },
|
|
47
|
-
animate: { x: -
|
|
48
|
-
exit: { x: 0, opacity: 1, transition:
|
|
51
|
+
animate: { x: -distance, opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
52
|
+
exit: { x: 0, opacity: 1, transition: varTranExit({ durationOut, easeOut }) }
|
|
49
53
|
},
|
|
50
54
|
outRight: {
|
|
51
55
|
initial: { x: 0, opacity: 1 },
|
|
52
|
-
animate: { x:
|
|
53
|
-
exit: { x: 0, opacity: 1, transition:
|
|
56
|
+
animate: { x: distance, opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
57
|
+
exit: { x: 0, opacity: 1, transition: varTranExit({ durationOut, easeOut }) }
|
|
54
58
|
}
|
|
55
59
|
};
|
|
56
60
|
};
|
|
57
61
|
export {
|
|
58
|
-
|
|
62
|
+
varFade as v
|
|
59
63
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
return { duration
|
|
1
|
+
const varTranHover = (props) => {
|
|
2
|
+
const duration = props?.duration || 0.32;
|
|
3
|
+
const ease = props?.ease || [0.43, 0.13, 0.23, 0.96];
|
|
4
|
+
return { duration, ease };
|
|
5
|
+
};
|
|
6
|
+
const varTranEnter = (props) => {
|
|
7
|
+
const duration = props?.durationIn || 0.64;
|
|
8
|
+
const ease = props?.easeIn || [0.43, 0.13, 0.23, 0.96];
|
|
9
|
+
return { duration, ease };
|
|
10
|
+
};
|
|
11
|
+
const varTranExit = (props) => {
|
|
12
|
+
const duration = props?.durationOut || 0.48;
|
|
13
|
+
const ease = props?.easeOut || [0.43, 0.13, 0.23, 0.96];
|
|
14
|
+
return { duration, ease };
|
|
10
15
|
};
|
|
11
16
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
varTranExit as a,
|
|
18
|
+
varTranHover as b,
|
|
19
|
+
varTranEnter as v
|
|
15
20
|
};
|