react-switch
Advanced tools
Comparing version
{ | ||
"name": "react-switch", | ||
"version": "0.1.0", | ||
"description": "React components for Dailymotion Switch", | ||
"main": "build/index.js", | ||
"version": "1.0.0", | ||
"description": "Draggable toggle-switch component for react", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/gulp build", | ||
"test": "jest" | ||
"build": "babel src -d dist", | ||
"build:watch": "babel src -w -d dist", | ||
"lint": "eslint --ext .js,.jsx src/", | ||
"prepublishOnly": "npm run build", | ||
"test": "jest --verbose" | ||
}, | ||
"author": "Romain Berger <romain.berger@dailymotion.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/yogaboll/react-switch.git" | ||
}, | ||
"author": "Markus Englund <markus.s.englund@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/yogaboll/react-switch/issues" | ||
}, | ||
"homepage": "https://github.com/yogaboll/react-switch#readme", | ||
"peerDependencies": { | ||
"react": ">=15", | ||
"react-dom": ">=15", | ||
"prop-types": ">=15" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.8.11", | ||
"gulp-babel": "^5.0.0", | ||
"gulp-plumber": "^1.0.0", | ||
"jest-cli": "^0.4.0", | ||
"react-tools": "^0.13.1" | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"enzyme": "^2.9.1", | ||
"eslint": "^4.6.1", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^5.1.1", | ||
"eslint-plugin-react": "^7.3.0", | ||
"jest": "^21.1.0", | ||
"react-test-renderer": "^15.6.1" | ||
}, | ||
"dependencies": { | ||
"react": "^0.13.1" | ||
}, | ||
"jest": { | ||
"scriptPreprocessor": "<rootDir>/preprocessor.js", | ||
"unmockedModulePathPatterns": [ | ||
"<rootDir>/node_modules/react" | ||
] | ||
"react-draggable": "^3.0.3" | ||
} | ||
} |
@@ -1,38 +0,2 @@ | ||
# React Switch [](http://travis-ci.org/romainberger/react-switch) | ||
Set of React components for Dailymotion Switch | ||
## Installation | ||
$ npm install -save react-switch | ||
## Usage | ||
```javascript | ||
import {Button} from 'react-switch' | ||
export default class FollowButton extend React.Component { | ||
handleClick() { | ||
API.followUser(this.user) | ||
} | ||
render() { | ||
var classes = 'btn-primary' | ||
return ( | ||
<Button classes={classes} onClick={this.handleClick}><Icon icon="plus" /></Button> | ||
) | ||
} | ||
} | ||
``` | ||
## Components | ||
- Buttons | ||
- Icons | ||
- Badges | ||
## Todo | ||
- Alerts | ||
- Modals | ||
- Player | ||
# react-switch | ||
Draggable toggle-switch component for react |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
290
18.85%0
-100%0
-100%0
-100%12116
-19.45%4
300%13
160%4
-78.95%3
-92.31%2
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed