@aphrody/m3-motion 3.3.4 → 3.3.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 +3 -2
- package/src/components/M3Collapse.tsx +2 -2
- package/src/components/M3ContainerTransform.tsx +3 -3
- package/src/components/M3Fade.tsx +2 -2
- package/src/components/M3FadeThrough.tsx +2 -2
- package/src/components/M3ListStagger.tsx +2 -2
- package/src/components/M3SharedAxis.tsx +2 -2
- package/src/components/M3Transition.tsx +2 -2
- package/src/hooks/useM3Animate.ts +2 -2
- package/src/index.ts +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aphrody/m3-motion",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"description": "Material 3 animation plugin powered by Motion (formerly Framer Motion)",
|
|
5
5
|
"homepage": "https://github.com/aphrody-code/material-web/tree/main/packages/m3-motion#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"motion": "^13.4.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@aphrody/m3-config": "3.3.
|
|
44
|
+
"@aphrody/m3-config": "3.3.6",
|
|
45
|
+
"react-dom": "^19.3.0"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"motion": ">=12.0.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { motion, AnimatePresence } from "motion/react";
|
|
3
3
|
import type { HTMLMotionProps } from "motion/react";
|
|
4
|
-
import { m3Easings, m3Durations } from "../easings
|
|
5
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
4
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
5
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
6
6
|
|
|
7
7
|
export interface M3CollapseProps extends HTMLMotionProps<"div"> {
|
|
8
8
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { motion } from "motion/react";
|
|
3
3
|
import type { HTMLMotionProps, Transition, MotionStyle } from "motion/react";
|
|
4
|
-
import { m3Springs } from "../springs
|
|
5
|
-
import { m3Easings } from "../easings
|
|
6
|
-
import { useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
4
|
+
import { m3Springs } from "../springs";
|
|
5
|
+
import { m3Easings } from "../easings";
|
|
6
|
+
import { useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
7
7
|
|
|
8
8
|
export interface M3ContainerTransformProps extends HTMLMotionProps<"div"> {
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { motion, AnimatePresence } from "motion/react";
|
|
3
3
|
import type { HTMLMotionProps } from "motion/react";
|
|
4
|
-
import { m3Easings, m3Durations } from "../easings
|
|
5
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
4
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
5
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
6
6
|
|
|
7
7
|
export interface M3FadeProps extends HTMLMotionProps<"div"> {
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { motion, AnimatePresence } from "motion/react";
|
|
3
3
|
import type { HTMLMotionProps, Transition, Variants } from "motion/react";
|
|
4
|
-
import { m3Easings } from "../easings
|
|
5
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
4
|
+
import { m3Easings } from "../easings";
|
|
5
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
6
6
|
|
|
7
7
|
export interface M3FadeThroughProps extends HTMLMotionProps<"div"> {
|
|
8
8
|
/**
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { AnimatePresence, motion, useIsPresent } from "motion/react";
|
|
4
4
|
import type { HTMLMotionProps, Variants } from "motion/react";
|
|
5
|
-
import { m3Easings, m3Durations } from "../easings
|
|
6
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
5
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
6
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
7
7
|
|
|
8
8
|
export interface M3ListStaggerProps {
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { motion, AnimatePresence } from "motion/react";
|
|
3
3
|
import type { HTMLMotionProps, Transition, Variants } from "motion/react";
|
|
4
|
-
import { m3Easings, m3Durations } from "../easings
|
|
5
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
4
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
5
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
6
6
|
|
|
7
7
|
export interface M3SharedAxisProps extends HTMLMotionProps<"div"> {
|
|
8
8
|
/**
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { AnimatePresence, motion } from "motion/react";
|
|
4
4
|
import type { HTMLMotionProps, MotionStyle, Transition, Variants } from "motion/react";
|
|
5
|
-
import { m3Easings, m3Durations } from "../easings
|
|
6
|
-
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion
|
|
5
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
6
|
+
import { motionVariants, useM3ReducedMotion } from "../hooks/useM3ReducedMotion";
|
|
7
7
|
|
|
8
8
|
export type M3TransitionPattern =
|
|
9
9
|
| "fade"
|
|
@@ -12,8 +12,8 @@ import type {
|
|
|
12
12
|
ValueAnimationTransition,
|
|
13
13
|
ObjectTarget,
|
|
14
14
|
} from "motion/react";
|
|
15
|
-
import { m3Easings, m3Durations } from "../easings
|
|
16
|
-
import { useM3ReducedMotion } from "./useM3ReducedMotion
|
|
15
|
+
import { m3Easings, m3Durations } from "../easings";
|
|
16
|
+
import { useM3ReducedMotion } from "./useM3ReducedMotion";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Overloaded type for the scoped animate function returned by useM3Animate.
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./springs
|
|
2
|
-
export * from "./easings
|
|
3
|
-
export * from "./spring-interpolation
|
|
4
|
-
export * from "./components/M3Fade
|
|
5
|
-
export * from "./components/M3SharedAxis
|
|
6
|
-
export * from "./components/M3FadeThrough
|
|
7
|
-
export * from "./components/M3Collapse
|
|
8
|
-
export * from "./components/M3ContainerTransform
|
|
9
|
-
export * from "./components/M3Transition
|
|
10
|
-
export * from "./components/M3ListStagger
|
|
11
|
-
export * from "./hooks/useM3Animate
|
|
12
|
-
export { useM3ReducedMotion } from "./hooks/useM3ReducedMotion
|
|
1
|
+
export * from "./springs";
|
|
2
|
+
export * from "./easings";
|
|
3
|
+
export * from "./spring-interpolation";
|
|
4
|
+
export * from "./components/M3Fade";
|
|
5
|
+
export * from "./components/M3SharedAxis";
|
|
6
|
+
export * from "./components/M3FadeThrough";
|
|
7
|
+
export * from "./components/M3Collapse";
|
|
8
|
+
export * from "./components/M3ContainerTransform";
|
|
9
|
+
export * from "./components/M3Transition";
|
|
10
|
+
export * from "./components/M3ListStagger";
|
|
11
|
+
export * from "./hooks/useM3Animate";
|
|
12
|
+
export { useM3ReducedMotion } from "./hooks/useM3ReducedMotion";
|