@douglasneuroinformatics/libui 3.8.5 → 3.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@douglasneuroinformatics/libui",
3
3
  "type": "module",
4
- "version": "3.8.5",
4
+ "version": "3.8.6",
5
5
  "packageManager": "pnpm@9.14.2",
6
6
  "description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
7
7
  "author": "Joshua Unrau",
@@ -97,9 +97,9 @@
97
97
  "class-variance-authority": "^0.7.0",
98
98
  "clsx": "^2.1.1",
99
99
  "cmdk": "^1.0.0",
100
- "framer-motion": "^11.11.7",
101
100
  "lodash-es": "^4.17.21",
102
101
  "lucide-react": "^0.451.0",
102
+ "motion": "^11.15.0",
103
103
  "react-dropzone": "^14.2.9",
104
104
  "react-error-boundary": "^4.0.13",
105
105
  "react-resizable-panels": "^2.1.4",
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
 
3
- import { AnimatePresence, motion } from 'framer-motion';
4
3
  import { ClipboardCheckIcon, ClipboardListIcon } from 'lucide-react';
4
+ import { AnimatePresence, motion } from 'motion/react';
5
5
  import { match } from 'ts-pattern';
6
6
 
7
7
  import { Button, type ButtonProps } from '../Button';
@@ -1,7 +1,7 @@
1
1
  import { forwardRef } from 'react';
2
2
 
3
- import { AnimatePresence, motion } from 'framer-motion';
4
3
  import { range } from 'lodash-es';
4
+ import { AnimatePresence, motion } from 'motion/react';
5
5
 
6
6
  import { useTranslation } from '@/hooks';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { useReducer, useState } from 'react';
2
2
  import * as React from 'react';
3
3
 
4
- import { AnimatePresence, motion } from 'framer-motion';
4
+ import { AnimatePresence, motion } from 'motion/react';
5
5
 
6
6
  import { useTranslation } from '@/hooks';
7
7
  import { cn } from '@/utils';
@@ -33,9 +33,9 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
33
33
  content: FormContent<TData>;
34
34
  fieldsFooter?: React.ReactNode;
35
35
  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>;
39
39
  preventResetValuesOnReset?: boolean;
40
40
  readOnly?: boolean;
41
41
  resetBtn?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { useEffect, useState } from 'react';
2
2
 
3
3
  import type { StringFormField } from '@douglasneuroinformatics/libui-form-types';
4
- import { motion } from 'framer-motion';
5
4
  import { EyeIcon, EyeOffIcon } from 'lucide-react';
5
+ import { motion } from 'motion/react';
6
6
 
7
7
  import { Input } from '@/components/Input';
8
8
  import { Label } from '@/components/Label';
@@ -1,5 +1,5 @@
1
- import { AnimatePresence, motion } from 'framer-motion';
2
1
  import { XIcon } from 'lucide-react';
2
+ import { AnimatePresence, motion } from 'motion/react';
3
3
 
4
4
  import { useTranslation } from '@/hooks';
5
5
  import { useNotificationsStore } from '@/hooks/useNotificationsStore';
@@ -1,6 +1,6 @@
1
1
  import { useEffect } from 'react';
2
2
 
3
- import { motion, useSpring, useTransform } from 'framer-motion';
3
+ import { motion, useSpring, useTransform } from 'motion/react';
4
4
 
5
5
  import { cn } from '@/utils';
6
6