Skip to content

Commit d3943a2

Browse files
authored
Merge pull request #45 from DouglasNeuroInformatics/dev
update
2 parents 9337b25 + 389c4ef commit d3943a2

File tree

9 files changed

+55
-18
lines changed

9 files changed

+55
-18
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/Form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
3333
content: FormContent<TData>;
3434
fieldsFooter?: React.ReactNode;
3535
id?: string;
36-
initialValues?: PartialNullableFormDataType<TData>;
37-
onError?: (error: z.ZodError<TData>) => void;
38-
onSubmit: (data: TData) => Promisable<void>;
36+
initialValues?: PartialNullableFormDataType<NoInfer<TData>>;
37+
onError?: (error: z.ZodError<NoInfer<TData>>) => void;
38+
onSubmit: (data: NoInfer<TData>) => Promisable<void>;
3939
preventResetValuesOnReset?: boolean;
4040
readOnly?: boolean;
4141
resetBtn?: boolean;

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)