@yamada-ui/motion 0.3.1 → 0.3.2
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/{chunk-4RHIQEKP.mjs → chunk-AJFJWPGL.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/motion.js +1 -1
- package/dist/motion.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/motion.tsx
|
|
2
|
-
import { ui,
|
|
2
|
+
import { ui, forwardRef } from "@yamada-ui/core";
|
|
3
3
|
import { cx } from "@yamada-ui/utils";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var Motion =
|
|
6
|
+
var Motion = forwardRef(
|
|
7
7
|
({ as = "div", className, ...rest }, ref) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(ui.div, { as: motion[as], ref, className: cx("ui-motion", className), ...rest });
|
|
9
9
|
}
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var import_core = require("@yamada-ui/core");
|
|
|
60
60
|
var import_utils = require("@yamada-ui/utils");
|
|
61
61
|
var import_framer_motion = require("framer-motion");
|
|
62
62
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
|
-
var Motion = (0, import_core.
|
|
63
|
+
var Motion = (0, import_core.forwardRef)(
|
|
64
64
|
({ as = "div", className, ...rest }, ref) => {
|
|
65
65
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.div, { as: import_framer_motion.motion[as], ref, className: (0, import_utils.cx)("ui-motion", className), ...rest });
|
|
66
66
|
}
|
package/dist/index.mjs
CHANGED
package/dist/motion.js
CHANGED
|
@@ -27,7 +27,7 @@ var import_core = require("@yamada-ui/core");
|
|
|
27
27
|
var import_utils = require("@yamada-ui/utils");
|
|
28
28
|
var import_framer_motion = require("framer-motion");
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
var Motion = (0, import_core.
|
|
30
|
+
var Motion = (0, import_core.forwardRef)(
|
|
31
31
|
({ as = "div", className, ...rest }, ref) => {
|
|
32
32
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.div, { as: import_framer_motion.motion[as], ref, className: (0, import_utils.cx)("ui-motion", className), ...rest });
|
|
33
33
|
}
|
package/dist/motion.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/motion",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Yamada UI motion components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"framer-motion": "^9.1.7",
|
|
39
|
-
"@yamada-ui/core": "0.4.
|
|
39
|
+
"@yamada-ui/core": "0.4.3",
|
|
40
40
|
"@yamada-ui/utils": "0.1.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|