react-pop-cards 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +16 -0
  2. package/package.json +2 -2
@@ -0,0 +1,16 @@
1
+ interface CardDataItem {
2
+ title: string
3
+ description: string
4
+ image?: string
5
+ }
6
+
7
+ interface CardProps {
8
+ data: CardDataItem[]
9
+ bgColor?: string
10
+ disposition?: "LeftRight" | "RightLeft" | "TopBottom" | "BottomTop"
11
+ isRounded?: boolean
12
+ tension?: number
13
+ friction?: number
14
+ }
15
+
16
+ export declare const Card: React.FC<CardProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-pop-cards",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "react-scripts start",
37
- "build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/lib/components/Card.js --out-dir dist/lib/components --copy-files && postcss src/index.css -o dist/index.css",
37
+ "build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/index.d.ts --out-dir dist --copy-files && babel src/lib/components/Card.js --out-dir dist/lib/components --copy-files && postcss src/index.css -o dist/index.css",
38
38
  "build:vercel": "react-scripts build",
39
39
  "test": "react-scripts test",
40
40
  "eject": "react-scripts eject"