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