Skip to content

Commit 389c4ef

Browse files
committed
chore: replace framer-motion with motion
1 parent 58f5597 commit 389c4ef

File tree

8 files changed

+52
-15
lines changed

8 files changed

+52
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@
9797
"class-variance-authority": "^0.7.0",
9898
"clsx": "^2.1.1",
9999
"cmdk": "^1.0.0",
100-
"framer-motion": "^11.11.7",
101100
"lodash-es": "^4.17.21",
102101
"lucide-react": "^0.451.0",
102+
"motion": "^11.15.0",
103103
"react-dropzone": "^14.2.9",
104104
"react-error-boundary": "^4.0.13",
105105
"react-resizable-panels": "^2.1.4",

pnpm-lock.yaml

Lines changed: 45 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/CopyButton/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22

3-
import { AnimatePresence, motion } from 'framer-motion';
43
import { ClipboardCheckIcon, ClipboardListIcon } from 'lucide-react';
4+
import { AnimatePresence, motion } from 'motion/react';
55
import { match } from 'ts-pattern';
66

77
import { Button, type ButtonProps } from '../Button';

src/components/DatePicker/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { forwardRef } from 'react';
22

3-
import { AnimatePresence, motion } from 'framer-motion';
43
import { range } from 'lodash-es';
4+
import { AnimatePresence, motion } from 'motion/react';
55

66
import { useTranslation } from '@/hooks';
77

src/components/DatePicker/DatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useReducer, useState } from 'react';
22
import * as React from 'react';
33

4-
import { AnimatePresence, motion } from 'framer-motion';
4+
import { AnimatePresence, motion } from 'motion/react';
55

66
import { useTranslation } from '@/hooks';
77
import { cn } from '@/utils';

src/components/Form/StringField/StringFieldPassword.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useEffect, useState } from 'react';
22

33
import type { StringFormField } from '@douglasneuroinformatics/libui-form-types';
4-
import { motion } from 'framer-motion';
54
import { EyeIcon, EyeOffIcon } from 'lucide-react';
5+
import { motion } from 'motion/react';
66

77
import { Input } from '@/components/Input';
88
import { Label } from '@/components/Label';

src/components/NotificationHub/NotificationHub.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AnimatePresence, motion } from 'framer-motion';
21
import { XIcon } from 'lucide-react';
2+
import { AnimatePresence, motion } from 'motion/react';
33

44
import { useTranslation } from '@/hooks';
55
import { useNotificationsStore } from '@/hooks/useNotificationsStore';

src/components/StatisticCard/StatisticCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect } from 'react';
22

3-
import { motion, useSpring, useTransform } from 'framer-motion';
3+
import { motion, useSpring, useTransform } from 'motion/react';
44

55
import { cn } from '@/utils';
66

0 commit comments

Comments
 (0)