react-card-flip
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,3 +0,39 @@ | ||
import * as React from 'react'; | ||
declare const ReactCardFlip: React.FC<ReactFlipCardProps>; | ||
export default ReactCardFlip; | ||
declare module 'react-card-flip' { | ||
export interface ReactFlipCardProps { | ||
/**z-Index for the flip card. Used to help solve context stack issues while using multiple flip cards. | ||
* @default 'auto' | ||
*/ | ||
cardZIndex?: string; | ||
/**Extra css styling that can be applied to the container. | ||
* @default {} | ||
*/ | ||
containerStyle?: {}; | ||
/**False to show the front of the card, true to show the back | ||
* @default undefined | ||
*/ | ||
isFlipped?: boolean; | ||
/**The speed of the flip animation when the card flips from back to front, the higher the number the slower the flip animation | ||
* @default 0.6 | ||
*/ | ||
flipSpeedBackToFront?: number; | ||
/**The speed of the flip animation when the card flips from front to back, the higher the number the slower the flip animation | ||
* @default 0.6 | ||
*/ | ||
flipSpeedFrontToBack?: number; | ||
cardStyles?: { front?: {}; back?: {} }; | ||
/**False to rotate in opposite directions on both sides of the card, true to rotate in the same direction | ||
* @default false | ||
*/ | ||
infinite?: boolean; | ||
/**Direction of the card flip (options are: 'horizontal' or 'vertical' ) | ||
* @default 'horizontal' | ||
*/ | ||
flipDirection?: 'horizontal' | 'vertical'; | ||
children: [React.ReactNode, React.ReactNode]; | ||
} | ||
const ReactFlipCard: React.FC<ReactFlipCardProps> = () => {}; | ||
} | ||
export default ReactCardFlip; |
{ | ||
"name": "react-card-flip", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "ReactCardFlip", | ||
@@ -8,5 +8,7 @@ "main": "./lib/ReactCardFlip.js", | ||
"scripts": { | ||
"prebuild": "rm -rf lib", | ||
"build": "tsc", | ||
"build-example": "webpack --env production", | ||
"build-e2e": "webpack --env production --config webpack.e2e.js", | ||
"postbuild": "cp types/index.d.ts lib/ReactCardFlip.d.ts", | ||
"start": "npm run build-example && webpack-dev-server --progress --colors --open", | ||
@@ -13,0 +15,0 @@ "test": "npm run build-e2e && jest", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13740
105