Mission Control Dashboard - Initial implementation
This commit is contained in:
17
node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
generated
vendored
Normal file
17
node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { isControllingVariants, isVariantLabel } from 'motion-dom';
|
||||
|
||||
function getCurrentTreeVariants(props, context) {
|
||||
if (isControllingVariants(props)) {
|
||||
const { initial, animate } = props;
|
||||
return {
|
||||
initial: initial === false || isVariantLabel(initial)
|
||||
? initial
|
||||
: undefined,
|
||||
animate: isVariantLabel(animate) ? animate : undefined,
|
||||
};
|
||||
}
|
||||
return props.inherit !== false ? context : {};
|
||||
}
|
||||
|
||||
export { getCurrentTreeVariants };
|
||||
//# sourceMappingURL=utils.mjs.map
|
||||
Reference in New Issue
Block a user