From 09bd0768ef7978d709c9f34c9c0a62eaee1f89b4 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Thu, 5 Aug 2021 09:39:28 -0700 Subject: [PATCH] import framer motion from wordpress/components --- packages/components/src/tree-grid/index.js | 5 ++++- packages/components/src/tree-grid/row.js | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/components/src/tree-grid/index.js b/packages/components/src/tree-grid/index.js index 40dc9b9d4767a..8b5ef0de163c3 100644 --- a/packages/components/src/tree-grid/index.js +++ b/packages/components/src/tree-grid/index.js @@ -2,7 +2,6 @@ * External dependencies */ import { includes } from 'lodash'; -import { motion, AnimateSharedLayout } from 'framer-motion'; /** * WordPress dependencies @@ -15,6 +14,10 @@ import { UP, DOWN, LEFT, RIGHT } from '@wordpress/keycodes'; * Internal dependencies */ import RovingTabIndexContainer from './roving-tab-index'; +import { + __unstableMotion as motion, + __unstableAnimateSharedLayout as AnimateSharedLayout, +} from '../animation'; /** * Return focusables in a row element, excluding those from other branches diff --git a/packages/components/src/tree-grid/row.js b/packages/components/src/tree-grid/row.js index 196550f271a05..57a7b5a896072 100644 --- a/packages/components/src/tree-grid/row.js +++ b/packages/components/src/tree-grid/row.js @@ -1,12 +1,12 @@ /** - * External dependencies + * WordPress dependencies */ -import { motion } from 'framer-motion'; +import { forwardRef } from '@wordpress/element'; /** - * WordPress dependencies + * Internal dependencies */ -import { forwardRef } from '@wordpress/element'; +import { __unstableMotion as motion } from '../animation'; const TREE_GRID_ROW_VARIANTS = { init: {