Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-card-flip

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-card-flip - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

42

lib/ReactCardFlip.d.ts

@@ -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;

4

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc