react-magic-card 2.0.8 → 2.0.10

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/README.md CHANGED
@@ -1,13 +1,9 @@
1
- [![Release Status](https://img.shields.io/github/release/su-pull/react-magic-card.svg)](https://github.com/su-pull/react-magic-card/releases/latest)
2
- [![Minzip Size](https://img.shields.io/bundlephobia/minzip/react-magic-card)](https://bundlephobia.com/package/react-magic-card)
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
4
-
5
1
  This is the framer motion animation components, that support images gallery.
6
2
 
7
3
  ## Installation
8
4
 
9
5
  ```sh
10
- npm install react-magic-card framer-motion
6
+ pnpm add react-magic-card framer-motion
11
7
  ```
12
8
 
13
9
  ## Usage Guide
@@ -14,7 +14,7 @@ const DetailImage = ({ onClick, classDetail, hasDetail, detailRef, detailKey, sr
14
14
  return (react_1.default.createElement(framer_motion_1.m.div, { role: "button", onClick: onClick, ref: detailRef, className: styles_module_css_1.default.full_size, animate: {
15
15
  zIndex: zIndex,
16
16
  backdropFilter: backdropFilter,
17
- WebkitBackdropFilter: backdropFilter,
17
+ ...{ WebkitBackdropFilter: backdropFilter },
18
18
  backgroundColor: backgroundColor,
19
19
  pointerEvents: hasDetail ? 'auto' : 'none'
20
20
  }, initial: false, transition: transition },
package/dist/types.d.ts CHANGED
@@ -20,7 +20,7 @@ type AnimationProperty = {
20
20
  type TransitionProperty = {
21
21
  duration?: number;
22
22
  type: undefined;
23
- ease: number[] | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate';
23
+ ease: [number, number, number, number] | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate';
24
24
  } | {
25
25
  duration?: number;
26
26
  type?: 'spring';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "React Component library for images gallery using the framer motion animation.",
5
5
  "keywords": [
6
6
  "react",
@@ -11,10 +11,11 @@
11
11
  "circle",
12
12
  "infinity"
13
13
  ],
14
+ "funding": "https://github.com/sponsors/refirst11",
14
15
  "license": "MIT",
15
16
  "repository": {
16
17
  "type": "git",
17
- "url": "https://github.com/su-pull/react-magic-card",
18
+ "url": "https://github.com/refirst11/react-magic-card",
18
19
  "directory": "react-magic-card/src"
19
20
  },
20
21
  "main": "dist/index.js",
@@ -31,11 +32,12 @@
31
32
  "test": "test"
32
33
  },
33
34
  "peerDependencies": {
34
- "framer-motion": "^11.3.21"
35
+ "framer-motion": ">=11.3.21"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@types/css-modules": "^1.0.5",
38
- "@types/react": "^18.3.31",
39
+ "@types/react": "^19.3.0",
40
+ "framer-motion": "^14.0.0",
39
41
  "typescript": "^6.0.3"
40
42
  }
41
43
  }