Permalink
Browse files

v0.7.0

  • Loading branch information...
gilbarbara committed Dec 7, 2017
1 parent 2249284 commit 5e13a748c1433676d273d3ff88541166e4587502
Showing with 57 additions and 36 deletions.
  1. +6 −4 README.md
  2. +41 −27 package-lock.json
  3. +10 −5 package.json
View
@@ -6,7 +6,7 @@ React Credit Cards
[![Maintainability](https://api.codeclimate.com/v1/badges/bb0aa1a6b782c3845f6a/maintainability)](https://codeclimate.com/github/amarofashion/react-credit-cards/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/bb0aa1a6b782c3845f6a/test_coverage)](https://codeclimate.com/github/amarofashion/react-credit-cards/test_coverage)
A modern credit card component for React 0.14+.
A modern credit card component for React.
![demo](https://raw.githubusercontent.com/amarofashion/react-credit-cards/master/docs/media/rccs.gif)
@@ -42,13 +42,15 @@ Don't forget to import the `react-credit-cards/lib/styles.scss` in your main.scs
- `name` {string}: Name on card. *
- `number` {string|number}: Card number. *
- `expiry` {string|number}: Card expiry date. *
- `expiry` {string|number}: Card expiry date. `10/20` or `012017` *
- `cvc` {string|number}: Card CVC/CVV. *
- `focused` {string}: Focused card field. `name|number|expiry|cvc` *
- `focused` {string}: Focused card field. `name|number|expiry|cvc`
- `locale` {object}: Localization text (e.g. `{ valid: 'valid thru' }`).
- `placeholders` {object}: Placeholder text (e.g. `{ name: 'YOUR NAME HERE' }`).
- `preview` {bool}: To use the card to show scrambled data (e.g. `**** 4567`).
- `issuer` {string}: Set the issuer for the `preview` mode (e.g. `visa|mastercard|...`)
- `acceptedCards` {array}: If you want to limit the accepted cards. (e.g. `['visa', 'mastercard']`
- `callback` {func}: A callback function that will be called when the card number has changed with 2 paramaters: `type {{ issuer: 'visa', maxLenght: 19 }}, isValid {boolean}`
- `callback` {func}: A callback function that will be called when the card number has changed with 2 paramaters: `type ({ issuer: 'visa', maxLenght: 19 }), isValid ({boolean})`
\* *Required fields*
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "react-credit-cards",
"version": "0.6.3",
"version": "0.7.0",
"description": "Beautiful credit cards for your payment forms",
"author": "AMARO Fashion <it@amaro.com>",
"contributors": [
@@ -100,10 +100,11 @@
"stylelint": "^8.3.1",
"stylelint-config-standard": "^18.0.0",
"stylelint-declaration-strict-value": "^1.0.4",
"stylelint-order": "^0.7.0",
"stylelint-order": "^0.8.0",
"stylelint-scss": "^2.2.0",
"watch-run": "^1.2.5",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.5",
"webpack-dev-server": "^2.9.7",
"webpack-merge": "^4.1.1",
"webpack-node-externals": "^1.6.0",
"yargs": "^10.0.3"
@@ -113,7 +114,7 @@
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src -d lib",
"build:es": "cross-env NODE_ENV=production babel src -d es",
"build:styles": "node tasks build-styles",
"watch": "npm run build:commonjs -- -w",
"watch": "npm run build && watch-run -p 'src/**/*.js' npm run build:es",
"clean": "rimraf es && rimraf lib",
"start": "node demo/config/webpack.server.js",
"build:demo": "NODE_ENV=production webpack --config demo/config/webpack.build.js",
@@ -126,5 +127,9 @@
"postmerge": "node tasks update && npm update",
"prepublishOnly": "npm run build"
},
"browserslist": ["last 2 versions", "safari >= 8", "ios > 8"]
"browserslist": [
"last 2 versions",
"safari >= 8",
"ios > 8"
]
}

0 comments on commit 5e13a74

Please sign in to comment.