UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

32 lines (30 loc) 1.04 kB
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs'); const require_factory = require('../../core/system/factory.cjs'); let motion_react = require("motion/react"); motion_react = require_rolldown_runtime.__toESM(motion_react); //#region src/components/motion/factory.ts function factory() { const cache = /* @__PURE__ */ new Map(); return new Proxy(require_factory.styled, { apply: function(_target, _thisArg, [el, options]) { const component = require_factory.styled(el, options); return motion_react.motion.create(component); }, get: function(_target, el) { if (!cache.has(el)) { const component = require_factory.styled(el); cache.set(el, motion_react.motion.create(component)); } return cache.get(el); } }); } /** * `motion` is a component that allows for the easy implementation of a wide variety of animations. * * @see https://yamada-ui.com/docs/components/motion */ const motion = factory(); //#endregion exports.motion = motion; //# sourceMappingURL=factory.cjs.map