react-pop-cards 0.2.6 → 0.2.7
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.
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
interface CardDataItem {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
interface CardProps {
|
|
3
|
-
data:
|
|
9
|
+
data: CardDataItem[];
|
|
4
10
|
bgColor?: string;
|
|
5
|
-
disposition?:
|
|
11
|
+
disposition?: string;
|
|
6
12
|
isRounded?: boolean;
|
|
7
13
|
tension?: number;
|
|
8
14
|
friction?: number;
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-pop-cards",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
6
11
|
"module": "dist/index.js",
|
|
7
12
|
"keywords": [
|
|
8
13
|
"card",
|
|
@@ -24,6 +29,7 @@
|
|
|
24
29
|
"@testing-library/jest-dom": "^6.2.0",
|
|
25
30
|
"@testing-library/react": "^14.1.2",
|
|
26
31
|
"@testing-library/user-event": "^14.5.2",
|
|
32
|
+
"chroma-js": "^2.4.2",
|
|
27
33
|
"core-js": "^3.35.1",
|
|
28
34
|
"prop-types": "^15.8.1",
|
|
29
35
|
"react": "^18.2.0",
|
|
@@ -31,13 +37,12 @@
|
|
|
31
37
|
"react-color": "^2.19.3",
|
|
32
38
|
"react-dom": "^18.2.0",
|
|
33
39
|
"react-responsive": "^9.0.2",
|
|
34
|
-
"chroma-js": "^2.4.2",
|
|
35
40
|
"react-scripts": "5.0.1",
|
|
36
41
|
"web-vitals": "^3.5.1"
|
|
37
42
|
},
|
|
38
43
|
"scripts": {
|
|
39
44
|
"dev": "react-scripts start",
|
|
40
|
-
"build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/components/Card.js --out-dir dist/components --copy-files && postcss src/index.css -o dist/index.css",
|
|
45
|
+
"build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/components/Card.js --out-dir dist/components --copy-files && postcss src/index.css -o dist/index.css tsc",
|
|
41
46
|
"build:vercel": "react-scripts build",
|
|
42
47
|
"test": "react-scripts test",
|
|
43
48
|
"eject": "react-scripts eject"
|
|
@@ -70,6 +75,7 @@
|
|
|
70
75
|
"daisyui": "^4.6.0",
|
|
71
76
|
"postcss-cli": "^11.0.0",
|
|
72
77
|
"react-typed": "^2.0.12",
|
|
73
|
-
"tailwindcss": "^3.4.1"
|
|
78
|
+
"tailwindcss": "^3.4.1",
|
|
79
|
+
"typescript": "^5.3.3"
|
|
74
80
|
}
|
|
75
|
-
}
|
|
81
|
+
}
|