Skip to content

Commit 1675dfc

Browse files
committed
framer-motion->motion
1 parent 95dae32 commit 1675dfc

File tree

14 files changed

+47
-77
lines changed

14 files changed

+47
-77
lines changed

apps/docs/src/components/Logo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import React from 'react'
4-
import { motion } from 'framer-motion'
4+
import { motion } from 'motion/react'
55

66
const Logo = ({ height }: React.ComponentProps<'svg'>) => {
77
return (

apps/docs/src/views/icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { RefObject, useEffect, useRef, useState, useTransition } from 'react'
66
import DocPreview from '@/components/DocPreview'
77
import icons from './icons.json'
88
import { toast } from 'sonner'
9-
import { useInView } from 'framer-motion'
9+
import { useInView } from 'motion/react'
1010

1111
const IconWrapper = ({
1212
children,

packages/actify/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
"clsx": "^2.1.1",
5959
"date-fns": "^4.1.0",
6060
"es-toolkit": "^1.29.0",
61-
"motion": "12.0.0-alpha.2",
62-
"popmotion": "^11.0.5",
61+
"motion": "^11.14.4",
6362
"react-aria": "^3.36.0",
6463
"react-aria-components": "^1.5.0",
6564
"react-stately": "^3.34.0"

packages/actify/rollup.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ export default [
4646
external: [
4747
'clsx',
4848
'react',
49+
'motion',
4950
'tslib',
5051
'date-fns',
5152
'react-dom',
52-
'popmotion',
53-
'framer-motion',
5453
'@babel/runtime'
5554
],
5655
plugins: [

packages/actify/src/components/Carousel/CarouselContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
'use client'
22

3-
import { AnimatePresence, motion } from 'framer-motion'
3+
import { AnimatePresence, motion, wrap } from 'motion/react'
44
import React, { Children, isValidElement, useEffect } from 'react'
55

66
import { useCarousel } from './CarouselContext'
7-
import { wrap } from 'popmotion'
87

98
const variants = {
109
enter: (direction: number) => {
@@ -51,7 +50,6 @@ const CarouselContent = ({ children }: React.ComponentProps<'div'>) => {
5150
<AnimatePresence initial={false} custom={direction}>
5251
{Children.map(children, (child, index) => {
5352
if (isValidElement(child)) {
54-
// @ts-expect-error
5553
const MotionComponent = motion(child.type)
5654
if (current == index) {
5755
return (

packages/actify/src/components/Field/Field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SupportingText, SupportingTextProps } from './SupportingText'
2-
import { cubicBezier, motion } from 'framer-motion'
2+
import { cubicBezier, motion } from 'motion/react'
33

44
import React from 'react'
55
import clsx from 'clsx'

packages/actify/src/components/Lists/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React, { useId } from 'react'
44

55
import { ListContext } from './ListContext'
6-
import { Transition } from 'framer-motion'
6+
import { Transition } from 'motion/react'
77
import clsx from 'clsx'
88
import styles from './list.module.css'
99

packages/actify/src/components/Lists/ListContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Transition } from 'framer-motion'
3+
import { Transition } from 'motion/react'
44
import { createContext } from 'react'
55

66
const ListContext = createContext({

packages/actify/src/components/Lists/ListGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import React, {
1111
import { Icon } from './../Icon'
1212
import { ListContext } from './ListContext'
1313
import clsx from 'clsx'
14-
import { motion } from 'framer-motion'
14+
import { motion } from 'motion/react'
1515
import styles from './list-group.module.css'
1616

1717
interface ListItemProps extends React.ComponentProps<'li'> {

packages/actify/src/components/Lists/ListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, { useContext, useId, useMemo, useState } from 'react'
55
import { ListContext } from './ListContext'
66
import { Ripple } from './../Ripple'
77
import clsx from 'clsx'
8-
import { motion } from 'framer-motion'
8+
import { motion } from 'motion/react'
99
import styles from './list-item.module.css'
1010

1111
interface ListItemProps extends React.ComponentProps<'li'> {

0 commit comments

Comments
 (0)